OSDN Git Service

PR libjava/47484: Install Python modules into versioned directory
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     PATH=/empty FPATH=/empty; export PATH FPATH
178     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 enable_option_checking=no
602 ac_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBDIR
608 OS
609 CPU
610 GCJ_BIN_DIR
611 JRE_LIB_DIR
612 JRE_BIN_DIR
613 SDK_INCLUDE_DIR
614 SDK_LIB_DIR
615 SDK_BIN_DIR
616 SDK_LNK
617 JRE_LNK
618 JRE_DIR
619 JVM_JAR_DIR
620 JVM_JAR_ROOT_DIR
621 JVM_ROOT_DIR
622 BUILD_VERSION
623 JAVA_VERSION
624 gcc_suffix
625 CREATE_JAVA_HOME_FALSE
626 CREATE_JAVA_HOME_TRUE
627 INSTALL_AOT_RPM_FALSE
628 INSTALL_AOT_RPM_TRUE
629 MAKE
630 python_mod_dir_expanded
631 python_mod_dir
632 here
633 LD_FINISH_STATIC_SPEC
634 LD_START_STATIC_SPEC
635 ANONVERSCRIPT_SUN_FALSE
636 ANONVERSCRIPT_SUN_TRUE
637 ANONVERSCRIPT_GNU_FALSE
638 ANONVERSCRIPT_GNU_TRUE
639 ANONVERSCRIPT_FALSE
640 ANONVERSCRIPT_TRUE
641 SYSDEP_SOURCES
642 PERL
643 libstdcxx_incdir
644 gxx_include_dir
645 gcjsubdir
646 dbexecdir
647 GCJVERSION
648 toolexeclibdir
649 toolexecmainlibdir
650 toolexecdir
651 GCC_UNWIND_INCLUDE
652 INSTALL_BINARIES_FALSE
653 INSTALL_BINARIES_TRUE
654 NEEDS_DATA_START_FALSE
655 NEEDS_DATA_START_TRUE
656 ENABLE_SHARED_FALSE
657 ENABLE_SHARED_TRUE
658 NATIVE_FALSE
659 NATIVE_TRUE
660 ATOMICSPEC
661 IEEESPEC
662 BACKTRACESPEC
663 EXCEPTIONSPEC
664 CHECKREFSPEC
665 DIVIDESPEC
666 ZINCS
667 SYS_ZLIBS
668 ZLIBS
669 CLASSPATH_SEPARATOR
670 LIBART_LIBS
671 LIBART_CFLAGS
672 GLIB_LIBS
673 GLIB_CFLAGS
674 GTK_LIBS
675 GTK_CFLAGS
676 PKG_CONFIG
677 LDLIBICONV
678 LTLIBICONV
679 LIBICONV
680 USING_GCC_FALSE
681 USING_GCC_TRUE
682 HASH_SYNC_SPEC
683 LIBGCJ_BC_SPEC
684 LIBGCJ_SPEC
685 USE_LIBGCJ_BC_FALSE
686 USE_LIBGCJ_BC_TRUE
687 USING_NO_THREADS_FALSE
688 USING_NO_THREADS_TRUE
689 USING_WIN32_THREADS_FALSE
690 USING_WIN32_THREADS_TRUE
691 USING_POSIX_THREADS_FALSE
692 USING_POSIX_THREADS_TRUE
693 THREADCXXFLAGS
694 THREADLDFLAGS
695 THREADSTARTFILESPEC
696 THREADSPEC
697 THREADDEPS
698 THREADINCS
699 THREADLIBS
700 USING_NOGC_FALSE
701 USING_NOGC_TRUE
702 USING_BOEHMGC_FALSE
703 USING_BOEHMGC_TRUE
704 GCTESTSPEC
705 JC1GCSPEC
706 GCSPEC
707 GCDEPS
708 GCINCS
709 GCLIBS
710 LIBGCJTESTSPEC
711 LIBMATHSPEC
712 LIBSTDCXXSPEC
713 extra_ldflags
714 extra_ldflags_libjava
715 X_EXTRA_LIBS
716 X_LIBS
717 X_PRE_LIBS
718 X_CFLAGS
719 XMKMF
720 ZLIBTESTSPEC
721 ZLIBSPEC
722 SYSTEMSPEC
723 USING_DARWIN_CRT_FALSE
724 USING_DARWIN_CRT_TRUE
725 USING_POSIX_PLATFORM_FALSE
726 USING_POSIX_PLATFORM_TRUE
727 USING_WIN32_PLATFORM_FALSE
728 USING_WIN32_PLATFORM_TRUE
729 PLATFORM
730 LIBFFIINCS
731 LIBFFI
732 INTERPRETER_FALSE
733 INTERPRETER_TRUE
734 INTERPRETER
735 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
736 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
737 SUPPRESS_LIBGCJ_BC_FALSE
738 SUPPRESS_LIBGCJ_BC_TRUE
739 JAVA_HOME
740 JAVA_HOME_SET_FALSE
741 JAVA_HOME_SET_TRUE
742 INSTALL_ECJ_JAR_FALSE
743 INSTALL_ECJ_JAR_TRUE
744 BUILD_ECJ1_FALSE
745 BUILD_ECJ1_TRUE
746 ECJ_JAR
747 ECJ_BUILD_JAR
748 TESTSUBDIR_FALSE
749 TESTSUBDIR_TRUE
750 subdirs
751 am__fastdepGCJ_FALSE
752 am__fastdepGCJ_TRUE
753 GCJDEPMODE
754 GCJFLAGS
755 ac_ct_GCJ
756 GCJ
757 lt_host_flags
758 CXXCPP
759 CPP
760 OTOOL64
761 OTOOL
762 LIPO
763 NMEDIT
764 DSYMUTIL
765 OBJDUMP
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 FGREP
770 EGREP
771 GREP
772 SED
773 LIBTOOL
774 DIRLTDL
775 LIBLTDL
776 INCLTDL
777 host_exeext
778 GCJH
779 GCC_FOR_ECJX
780 GCJ_FOR_ECJX
781 X_AWT_FALSE
782 X_AWT_TRUE
783 XLIB_AWT_FALSE
784 XLIB_AWT_TRUE
785 TOOLKIT
786 LIBGCJDEBUG
787 BUILD_SUBLIBS_FALSE
788 BUILD_SUBLIBS_TRUE
789 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790 LIBGCJ_LD_SYMBOLIC
791 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
792 LIBGCJ_SUBLIB_LTFLAGS
793 LIBGCJ_JAVAFLAGS
794 LIBGCJ_CXXFLAGS
795 LIBGCJ_CFLAGS
796 MAINT
797 MAINTAINER_MODE_FALSE
798 MAINTAINER_MODE_TRUE
799 UNZIP
800 ZIP
801 JAR
802 DLLTOOL
803 RANLIB
804 AR
805 LD
806 AS
807 am__fastdepCXX_FALSE
808 am__fastdepCXX_TRUE
809 CXXDEPMODE
810 am__fastdepCC_FALSE
811 am__fastdepCC_TRUE
812 CCDEPMODE
813 AMDEPBACKSLASH
814 AMDEP_FALSE
815 AMDEP_TRUE
816 am__quote
817 am__include
818 DEPDIR
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
824 AWK
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 ac_ct_CXX
843 CXXFLAGS
844 CXX
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
851 CC
852 JAVA_MAINTAINER_MODE_FALSE
853 JAVA_MAINTAINER_MODE_TRUE
854 CREATE_GJDOC_FALSE
855 CREATE_GJDOC_TRUE
856 ANTLR_JAR
857 mkinstalldirs
858 LN_S
859 target_noncanonical
860 target_os
861 target_vendor
862 target_cpu
863 target
864 host_os
865 host_vendor
866 host_cpu
867 host
868 multi_basedir
869 target_subdir
870 host_subdir
871 build_subdir
872 build_libsubdir
873 build_os
874 build_vendor
875 build_cpu
876 build
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 with_build_libsubdir
919 with_target_subdir
920 enable_multilib
921 with_cross_host
922 with_newlib
923 enable_version_specific_runtime_libs
924 enable_browser_plugin
925 enable_gconf_peer
926 with_antlr_jar
927 enable_gjdoc
928 enable_java_maintainer_mode
929 enable_dependency_tracking
930 enable_maintainer_mode
931 enable_libgcj_sublibs
932 enable_libgcj_debug
933 with_escher
934 enable_java_awt
935 enable_shared
936 enable_static
937 with_pic
938 enable_fast_install
939 with_gnu_ld
940 enable_libtool_lock
941 enable_getenv_properties
942 enable_hash_synchronization
943 with_ecj_jar
944 with_java_home
945 enable_libgcj_bc
946 enable_reduced_reflection
947 with_win32_nlsapi
948 enable_gc_debug
949 enable_interpreter
950 enable_sjlj_exceptions
951 enable_java_net
952 with_libffi
953 enable_jvmpi
954 with_ecos
955 with_system_zlib
956 with_x
957 enable_java_gc
958 enable_rpath
959 with_libiconv_prefix
960 enable_tls
961 with_system_libunwind
962 with_python_dir
963 enable_aot_compile_rpm
964 enable_java_home
965 with_gcc_suffix
966 with_arch_directory
967 with_os_directory
968 with_origin_name
969 with_arch_suffix
970 with_jvm_root_dir
971 with_jvm_jar_dir
972 '
973       ac_precious_vars='build_alias
974 host_alias
975 target_alias
976 CC
977 CFLAGS
978 LDFLAGS
979 LIBS
980 CPPFLAGS
981 CXX
982 CXXFLAGS
983 CCC
984 CPP
985 CXXCPP
986 XMKMF'
987 ac_subdirs_all='classpath libltdl'
988
989 # Initialize some variables set by options.
990 ac_init_help=
991 ac_init_version=false
992 ac_unrecognized_opts=
993 ac_unrecognized_sep=
994 # The variables have the same names as the options, with
995 # dashes changed to underlines.
996 cache_file=/dev/null
997 exec_prefix=NONE
998 no_create=
999 no_recursion=
1000 prefix=NONE
1001 program_prefix=NONE
1002 program_suffix=NONE
1003 program_transform_name=s,x,x,
1004 silent=
1005 site=
1006 srcdir=
1007 verbose=
1008 x_includes=NONE
1009 x_libraries=NONE
1010
1011 # Installation directory options.
1012 # These are left unexpanded so users can "make install exec_prefix=/foo"
1013 # and all the variables that are supposed to be based on exec_prefix
1014 # by default will actually change.
1015 # Use braces instead of parens because sh, perl, etc. also accept them.
1016 # (The list follows the same order as the GNU Coding Standards.)
1017 bindir='${exec_prefix}/bin'
1018 sbindir='${exec_prefix}/sbin'
1019 libexecdir='${exec_prefix}/libexec'
1020 datarootdir='${prefix}/share'
1021 datadir='${datarootdir}'
1022 sysconfdir='${prefix}/etc'
1023 sharedstatedir='${prefix}/com'
1024 localstatedir='${prefix}/var'
1025 includedir='${prefix}/include'
1026 oldincludedir='/usr/include'
1027 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1028 infodir='${datarootdir}/info'
1029 htmldir='${docdir}'
1030 dvidir='${docdir}'
1031 pdfdir='${docdir}'
1032 psdir='${docdir}'
1033 libdir='${exec_prefix}/lib'
1034 localedir='${datarootdir}/locale'
1035 mandir='${datarootdir}/man'
1036
1037 ac_prev=
1038 ac_dashdash=
1039 for ac_option
1040 do
1041   # If the previous option needs an argument, assign it.
1042   if test -n "$ac_prev"; then
1043     eval $ac_prev=\$ac_option
1044     ac_prev=
1045     continue
1046   fi
1047
1048   case $ac_option in
1049   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050   *)    ac_optarg=yes ;;
1051   esac
1052
1053   # Accept the important Cygnus configure options, so we can diagnose typos.
1054
1055   case $ac_dashdash$ac_option in
1056   --)
1057     ac_dashdash=yes ;;
1058
1059   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060     ac_prev=bindir ;;
1061   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1062     bindir=$ac_optarg ;;
1063
1064   -build | --build | --buil | --bui | --bu)
1065     ac_prev=build_alias ;;
1066   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1067     build_alias=$ac_optarg ;;
1068
1069   -cache-file | --cache-file | --cache-fil | --cache-fi \
1070   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1071     ac_prev=cache_file ;;
1072   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1073   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1074     cache_file=$ac_optarg ;;
1075
1076   --config-cache | -C)
1077     cache_file=config.cache ;;
1078
1079   -datadir | --datadir | --datadi | --datad)
1080     ac_prev=datadir ;;
1081   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1082     datadir=$ac_optarg ;;
1083
1084   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1085   | --dataroo | --dataro | --datar)
1086     ac_prev=datarootdir ;;
1087   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1088   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1089     datarootdir=$ac_optarg ;;
1090
1091   -disable-* | --disable-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error "invalid feature name: $ac_useropt"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "enable_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval enable_$ac_useropt=no ;;
1106
1107   -docdir | --docdir | --docdi | --doc | --do)
1108     ac_prev=docdir ;;
1109   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110     docdir=$ac_optarg ;;
1111
1112   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113     ac_prev=dvidir ;;
1114   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115     dvidir=$ac_optarg ;;
1116
1117   -enable-* | --enable-*)
1118     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121       as_fn_error "invalid feature name: $ac_useropt"
1122     ac_useropt_orig=$ac_useropt
1123     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124     case $ac_user_opts in
1125       *"
1126 "enable_$ac_useropt"
1127 "*) ;;
1128       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1129          ac_unrecognized_sep=', ';;
1130     esac
1131     eval enable_$ac_useropt=\$ac_optarg ;;
1132
1133   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1134   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1135   | --exec | --exe | --ex)
1136     ac_prev=exec_prefix ;;
1137   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1138   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1139   | --exec=* | --exe=* | --ex=*)
1140     exec_prefix=$ac_optarg ;;
1141
1142   -gas | --gas | --ga | --g)
1143     # Obsolete; use --with-gas.
1144     with_gas=yes ;;
1145
1146   -help | --help | --hel | --he | -h)
1147     ac_init_help=long ;;
1148   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1149     ac_init_help=recursive ;;
1150   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1151     ac_init_help=short ;;
1152
1153   -host | --host | --hos | --ho)
1154     ac_prev=host_alias ;;
1155   -host=* | --host=* | --hos=* | --ho=*)
1156     host_alias=$ac_optarg ;;
1157
1158   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159     ac_prev=htmldir ;;
1160   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161   | --ht=*)
1162     htmldir=$ac_optarg ;;
1163
1164   -includedir | --includedir | --includedi | --included | --include \
1165   | --includ | --inclu | --incl | --inc)
1166     ac_prev=includedir ;;
1167   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1168   | --includ=* | --inclu=* | --incl=* | --inc=*)
1169     includedir=$ac_optarg ;;
1170
1171   -infodir | --infodir | --infodi | --infod | --info | --inf)
1172     ac_prev=infodir ;;
1173   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1174     infodir=$ac_optarg ;;
1175
1176   -libdir | --libdir | --libdi | --libd)
1177     ac_prev=libdir ;;
1178   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1179     libdir=$ac_optarg ;;
1180
1181   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1182   | --libexe | --libex | --libe)
1183     ac_prev=libexecdir ;;
1184   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1185   | --libexe=* | --libex=* | --libe=*)
1186     libexecdir=$ac_optarg ;;
1187
1188   -localedir | --localedir | --localedi | --localed | --locale)
1189     ac_prev=localedir ;;
1190   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1191     localedir=$ac_optarg ;;
1192
1193   -localstatedir | --localstatedir | --localstatedi | --localstated \
1194   | --localstate | --localstat | --localsta | --localst | --locals)
1195     ac_prev=localstatedir ;;
1196   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1197   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1198     localstatedir=$ac_optarg ;;
1199
1200   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201     ac_prev=mandir ;;
1202   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1203     mandir=$ac_optarg ;;
1204
1205   -nfp | --nfp | --nf)
1206     # Obsolete; use --without-fp.
1207     with_fp=no ;;
1208
1209   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1210   | --no-cr | --no-c | -n)
1211     no_create=yes ;;
1212
1213   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1214   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215     no_recursion=yes ;;
1216
1217   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1218   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1219   | --oldin | --oldi | --old | --ol | --o)
1220     ac_prev=oldincludedir ;;
1221   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1222   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1223   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1224     oldincludedir=$ac_optarg ;;
1225
1226   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227     ac_prev=prefix ;;
1228   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1229     prefix=$ac_optarg ;;
1230
1231   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1232   | --program-pre | --program-pr | --program-p)
1233     ac_prev=program_prefix ;;
1234   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1235   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1236     program_prefix=$ac_optarg ;;
1237
1238   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1239   | --program-suf | --program-su | --program-s)
1240     ac_prev=program_suffix ;;
1241   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1242   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1243     program_suffix=$ac_optarg ;;
1244
1245   -program-transform-name | --program-transform-name \
1246   | --program-transform-nam | --program-transform-na \
1247   | --program-transform-n | --program-transform- \
1248   | --program-transform | --program-transfor \
1249   | --program-transfo | --program-transf \
1250   | --program-trans | --program-tran \
1251   | --progr-tra | --program-tr | --program-t)
1252     ac_prev=program_transform_name ;;
1253   -program-transform-name=* | --program-transform-name=* \
1254   | --program-transform-nam=* | --program-transform-na=* \
1255   | --program-transform-n=* | --program-transform-=* \
1256   | --program-transform=* | --program-transfor=* \
1257   | --program-transfo=* | --program-transf=* \
1258   | --program-trans=* | --program-tran=* \
1259   | --progr-tra=* | --program-tr=* | --program-t=*)
1260     program_transform_name=$ac_optarg ;;
1261
1262   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263     ac_prev=pdfdir ;;
1264   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1265     pdfdir=$ac_optarg ;;
1266
1267   -psdir | --psdir | --psdi | --psd | --ps)
1268     ac_prev=psdir ;;
1269   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270     psdir=$ac_optarg ;;
1271
1272   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273   | -silent | --silent | --silen | --sile | --sil)
1274     silent=yes ;;
1275
1276   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1277     ac_prev=sbindir ;;
1278   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1279   | --sbi=* | --sb=*)
1280     sbindir=$ac_optarg ;;
1281
1282   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1283   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1284   | --sharedst | --shareds | --shared | --share | --shar \
1285   | --sha | --sh)
1286     ac_prev=sharedstatedir ;;
1287   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1288   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1289   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1290   | --sha=* | --sh=*)
1291     sharedstatedir=$ac_optarg ;;
1292
1293   -site | --site | --sit)
1294     ac_prev=site ;;
1295   -site=* | --site=* | --sit=*)
1296     site=$ac_optarg ;;
1297
1298   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1299     ac_prev=srcdir ;;
1300   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1301     srcdir=$ac_optarg ;;
1302
1303   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1304   | --syscon | --sysco | --sysc | --sys | --sy)
1305     ac_prev=sysconfdir ;;
1306   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1307   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1308     sysconfdir=$ac_optarg ;;
1309
1310   -target | --target | --targe | --targ | --tar | --ta | --t)
1311     ac_prev=target_alias ;;
1312   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1313     target_alias=$ac_optarg ;;
1314
1315   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1316     verbose=yes ;;
1317
1318   -version | --version | --versio | --versi | --vers | -V)
1319     ac_init_version=: ;;
1320
1321   -with-* | --with-*)
1322     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1323     # Reject names that are not valid shell variable names.
1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325       as_fn_error "invalid package name: $ac_useropt"
1326     ac_useropt_orig=$ac_useropt
1327     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328     case $ac_user_opts in
1329       *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1333          ac_unrecognized_sep=', ';;
1334     esac
1335     eval with_$ac_useropt=\$ac_optarg ;;
1336
1337   -without-* | --without-*)
1338     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341       as_fn_error "invalid package name: $ac_useropt"
1342     ac_useropt_orig=$ac_useropt
1343     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344     case $ac_user_opts in
1345       *"
1346 "with_$ac_useropt"
1347 "*) ;;
1348       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1349          ac_unrecognized_sep=', ';;
1350     esac
1351     eval with_$ac_useropt=no ;;
1352
1353   --x)
1354     # Obsolete; use --with-x.
1355     with_x=yes ;;
1356
1357   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1358   | --x-incl | --x-inc | --x-in | --x-i)
1359     ac_prev=x_includes ;;
1360   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1361   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1362     x_includes=$ac_optarg ;;
1363
1364   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1365   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1366     ac_prev=x_libraries ;;
1367   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1368   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1369     x_libraries=$ac_optarg ;;
1370
1371   -*) as_fn_error "unrecognized option: \`$ac_option'
1372 Try \`$0 --help' for more information."
1373     ;;
1374
1375   *=*)
1376     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377     # Reject names that are not valid shell variable names.
1378     case $ac_envvar in #(
1379       '' | [0-9]* | *[!_$as_cr_alnum]* )
1380       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1381     esac
1382     eval $ac_envvar=\$ac_optarg
1383     export $ac_envvar ;;
1384
1385   *)
1386     # FIXME: should be removed in autoconf 3.0.
1387     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1388     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1389       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1390     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1391     ;;
1392
1393   esac
1394 done
1395
1396 if test -n "$ac_prev"; then
1397   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1398   as_fn_error "missing argument to $ac_option"
1399 fi
1400
1401 if test -n "$ac_unrecognized_opts"; then
1402   case $enable_option_checking in
1403     no) ;;
1404     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1405     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406   esac
1407 fi
1408
1409 # Check all directory arguments for consistency.
1410 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1411                 datadir sysconfdir sharedstatedir localstatedir includedir \
1412                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413                 libdir localedir mandir
1414 do
1415   eval ac_val=\$$ac_var
1416   # Remove trailing slashes.
1417   case $ac_val in
1418     */ )
1419       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1420       eval $ac_var=\$ac_val;;
1421   esac
1422   # Be sure to have absolute directory names.
1423   case $ac_val in
1424     [\\/$]* | ?:[\\/]* )  continue;;
1425     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1426   esac
1427   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1428 done
1429
1430 # There might be people who depend on the old broken behavior: `$host'
1431 # used to hold the argument of --host etc.
1432 # FIXME: To remove some day.
1433 build=$build_alias
1434 host=$host_alias
1435 target=$target_alias
1436
1437 # FIXME: To remove some day.
1438 if test "x$host_alias" != x; then
1439   if test "x$build_alias" = x; then
1440     cross_compiling=maybe
1441     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1442     If a cross compiler is detected then cross compile mode will be used." >&2
1443   elif test "x$build_alias" != "x$host_alias"; then
1444     cross_compiling=yes
1445   fi
1446 fi
1447
1448 ac_tool_prefix=
1449 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450
1451 test "$silent" = yes && exec 6>/dev/null
1452
1453
1454 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1455 ac_ls_di=`ls -di .` &&
1456 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1457   as_fn_error "working directory cannot be determined"
1458 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1459   as_fn_error "pwd does not report name of working directory"
1460
1461
1462 # Find the source files, if location was not specified.
1463 if test -z "$srcdir"; then
1464   ac_srcdir_defaulted=yes
1465   # Try the directory containing this script, then the parent directory.
1466   ac_confdir=`$as_dirname -- "$as_myself" ||
1467 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1468          X"$as_myself" : 'X\(//\)[^/]' \| \
1469          X"$as_myself" : 'X\(//\)$' \| \
1470          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1471 $as_echo X"$as_myself" |
1472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1473             s//\1/
1474             q
1475           }
1476           /^X\(\/\/\)[^/].*/{
1477             s//\1/
1478             q
1479           }
1480           /^X\(\/\/\)$/{
1481             s//\1/
1482             q
1483           }
1484           /^X\(\/\).*/{
1485             s//\1/
1486             q
1487           }
1488           s/.*/./; q'`
1489   srcdir=$ac_confdir
1490   if test ! -r "$srcdir/$ac_unique_file"; then
1491     srcdir=..
1492   fi
1493 else
1494   ac_srcdir_defaulted=no
1495 fi
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1497   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1498   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1499 fi
1500 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501 ac_abs_confdir=`(
1502         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1503         pwd)`
1504 # When building in place, set srcdir=.
1505 if test "$ac_abs_confdir" = "$ac_pwd"; then
1506   srcdir=.
1507 fi
1508 # Remove unnecessary trailing slashes from srcdir.
1509 # Double slashes in file names in object file debugging info
1510 # mess up M-x gdb in Emacs.
1511 case $srcdir in
1512 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1513 esac
1514 for ac_var in $ac_precious_vars; do
1515   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1516   eval ac_env_${ac_var}_value=\$${ac_var}
1517   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1518   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1519 done
1520
1521 #
1522 # Report the --help message.
1523 #
1524 if test "$ac_init_help" = "long"; then
1525   # Omit some internal or obsolete options to make the list less imposing.
1526   # This message is too long to be a string in the A/UX 3.1 sh.
1527   cat <<_ACEOF
1528 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1529
1530 Usage: $0 [OPTION]... [VAR=VALUE]...
1531
1532 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1533 VAR=VALUE.  See below for descriptions of some of the useful variables.
1534
1535 Defaults for the options are specified in brackets.
1536
1537 Configuration:
1538   -h, --help              display this help and exit
1539       --help=short        display options specific to this package
1540       --help=recursive    display the short help of all the included packages
1541   -V, --version           display version information and exit
1542   -q, --quiet, --silent   do not print \`checking...' messages
1543       --cache-file=FILE   cache test results in FILE [disabled]
1544   -C, --config-cache      alias for \`--cache-file=config.cache'
1545   -n, --no-create         do not create output files
1546       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1547
1548 Installation directories:
1549   --prefix=PREFIX         install architecture-independent files in PREFIX
1550                           [$ac_default_prefix]
1551   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1552                           [PREFIX]
1553
1554 By default, \`make install' will install all the files in
1555 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1556 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1557 for instance \`--prefix=\$HOME'.
1558
1559 For better control, use the options below.
1560
1561 Fine tuning of the installation directories:
1562   --bindir=DIR            user executables [EPREFIX/bin]
1563   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1564   --libexecdir=DIR        program executables [EPREFIX/libexec]
1565   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1566   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1567   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1568   --libdir=DIR            object code libraries [EPREFIX/lib]
1569   --includedir=DIR        C header files [PREFIX/include]
1570   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1571   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1572   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1573   --infodir=DIR           info documentation [DATAROOTDIR/info]
1574   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1575   --mandir=DIR            man documentation [DATAROOTDIR/man]
1576   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1577   --htmldir=DIR           html documentation [DOCDIR]
1578   --dvidir=DIR            dvi documentation [DOCDIR]
1579   --pdfdir=DIR            pdf documentation [DOCDIR]
1580   --psdir=DIR             ps documentation [DOCDIR]
1581 _ACEOF
1582
1583   cat <<\_ACEOF
1584
1585 Program names:
1586   --program-prefix=PREFIX            prepend PREFIX to installed program names
1587   --program-suffix=SUFFIX            append SUFFIX to installed program names
1588   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1589
1590 X features:
1591   --x-includes=DIR    X include files are in DIR
1592   --x-libraries=DIR   X library files are in DIR
1593
1594 System types:
1595   --build=BUILD     configure for building on BUILD [guessed]
1596   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1597   --target=TARGET   configure for building compilers for TARGET [HOST]
1598 _ACEOF
1599 fi
1600
1601 if test -n "$ac_init_help"; then
1602   case $ac_init_help in
1603      short | recursive ) echo "Configuration of libjava version-unused:";;
1604    esac
1605   cat <<\_ACEOF
1606
1607 Optional Features:
1608   --disable-option-checking  ignore unrecognized --enable/--with options
1609   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611   --enable-multilib       build many library versions (default)
1612   --enable-version-specific-runtime-libs
1613                           specify that runtime libraries should be installed
1614                           in a compiler-specific directory
1615   --enable-browser-plugin build gcjwebplugin web browser plugin
1616   --enable-gconf-peer     compile GConf native peers for util.preferences
1617   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1618                           default=yes
1619   --enable-java-maintainer-mode
1620                           allow rebuilding of .class and .h files
1621   --disable-dependency-tracking  speeds up one-time build
1622   --enable-dependency-tracking   do not reject slow dependency extractors
1623   --enable-maintainer-mode  enable make rules and dependencies not useful
1624                           (and sometimes confusing) to the casual installer
1625   --enable-libgcj-sublibs build libgcj as many sub-libraries
1626   --enable-libgcj-debug   enable runtime debugging code
1627   --enable-java-awt       list of AWT peer implementations to be built
1628   --enable-shared[=PKGS]  build shared libraries [default=yes]
1629   --enable-static[=PKGS]  build static libraries [default=yes]
1630   --enable-fast-install[=PKGS]
1631                           optimize for fast installation [default=yes]
1632   --disable-libtool-lock  avoid locking (might break parallel builds)
1633   --disable-getenv-properties
1634                           don't set system properties from GCJ_PROPERTIES
1635   --enable-hash-synchronization
1636                           use global hash table for monitor locks
1637   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1638                           libgcj
1639   --enable-reduced-reflection
1640                           enable or disable(default) -freduced-reflection when
1641                           building portions of libgcj
1642   --enable-gc-debug       include full support for pointer backtracing etc.
1643   --enable-interpreter    enable interpreter
1644   --enable-sjlj-exceptions
1645                           force use of builtin_setjmp for exceptions
1646   --disable-java-net      disable java.net
1647   --disable-jvmpi         disable JVMPI support
1648   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-tls            Use thread-local storage [default=yes]
1651   --enable-aot-compile-rpm
1652                           enable installation of aot-compile-rpm [default=no]
1653   --enable-java-home      create a standard JDK-style directory layout in the
1654                           install tree [default=no]
1655
1656 Optional Packages:
1657   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1658   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1659   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1660   --with-target-subdir=SUBDIR
1661                           configure in a subdirectory
1662   --with-cross-host=HOST  configure with a cross compiler from HOST
1663   --with-newlib           configure with newlib
1664   --with-antlr-jar=file   Use ANTLR from the specified jar file
1665   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1666   --with-pic              try to use only PIC/non-PIC objects [default=use
1667                           both]
1668   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1669   --with-ecj-jar=FILE     use preinstalled ecj jar
1670   --with-java-home=DIRECTORY
1671                           value of java.home system property
1672   --with-win32-nlsapi=ansi or unicows or unicode
1673                           native MinGW libgcj Win32 OS API (default is ansi)
1674   --without-libffi        don't use libffi
1675   --with-ecos             enable runtime eCos target support
1676   --with-system-zlib      use installed libz
1677   --with-x                use the X Window System
1678   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1679   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1680   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1681   --with-system-libunwind use installed libunwind
1682   --with-python-dir       the location to install Python modules. This path
1683                           should NOT include the prefix.
1684   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1685   --with-arch-directory   the arch directory under jre/lib (defaults to
1686                           auto-detect)
1687   --with-os-directory     the os directory under include (defaults to
1688                           auto-detect)
1689   --with-origin-name      the JPackage origin name of this package (default is
1690                           gcj${gcc_suffix}
1691   --with-arch-suffix      the arch directory suffix (default is the empty
1692                           string
1693   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1694   --with-jvm-jar-dir      where to install jars (default is
1695                           ${prefix}/lib/jvm-exports)
1696
1697 Some influential environment variables:
1698   CC          C compiler command
1699   CFLAGS      C compiler flags
1700   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1701               nonstandard directory <lib dir>
1702   LIBS        libraries to pass to the linker, e.g. -l<library>
1703   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1704               you have headers in a nonstandard directory <include dir>
1705   CXX         C++ compiler command
1706   CXXFLAGS    C++ compiler flags
1707   CPP         C preprocessor
1708   CXXCPP      C++ preprocessor
1709   XMKMF       Path to xmkmf, Makefile generator for X Window System
1710
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1713
1714 Report bugs to the package provider.
1715 _ACEOF
1716 ac_status=$?
1717 fi
1718
1719 if test "$ac_init_help" = "recursive"; then
1720   # If there are subdirs, report their specific --help.
1721   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722     test -d "$ac_dir" ||
1723       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724       continue
1725     ac_builddir=.
1726
1727 case "$ac_dir" in
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 *)
1730   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731   # A ".." for each directory in $ac_dir_suffix.
1732   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733   case $ac_top_builddir_sub in
1734   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736   esac ;;
1737 esac
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1742
1743 case $srcdir in
1744   .)  # We are building in place.
1745     ac_srcdir=.
1746     ac_top_srcdir=$ac_top_builddir_sub
1747     ac_abs_top_srcdir=$ac_pwd ;;
1748   [\\/]* | ?:[\\/]* )  # Absolute name.
1749     ac_srcdir=$srcdir$ac_dir_suffix;
1750     ac_top_srcdir=$srcdir
1751     ac_abs_top_srcdir=$srcdir ;;
1752   *) # Relative name.
1753     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754     ac_top_srcdir=$ac_top_build_prefix$srcdir
1755     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 esac
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759     cd "$ac_dir" || { ac_status=$?; continue; }
1760     # Check for guested configure.
1761     if test -f "$ac_srcdir/configure.gnu"; then
1762       echo &&
1763       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764     elif test -f "$ac_srcdir/configure"; then
1765       echo &&
1766       $SHELL "$ac_srcdir/configure" --help=recursive
1767     else
1768       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769     fi || ac_status=$?
1770     cd "$ac_pwd" || { ac_status=$?; break; }
1771   done
1772 fi
1773
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776   cat <<\_ACEOF
1777 libjava configure version-unused
1778 generated by GNU Autoconf 2.64
1779
1780 Copyright (C) 2009 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784   exit
1785 fi
1786
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1790
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   rm -f conftest.$ac_objext
1798   if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_compile") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && {
1814          test -z "$ac_c_werror_flag" ||
1815          test ! -s conftest.err
1816        } && test -s conftest.$ac_objext; then :
1817   ac_retval=0
1818 else
1819   $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822         ac_retval=1
1823 fi
1824   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825   return $ac_retval
1826
1827 } # ac_fn_c_try_compile
1828
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   rm -f conftest.$ac_objext
1836   if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_compile") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } && {
1852          test -z "$ac_cxx_werror_flag" ||
1853          test ! -s conftest.err
1854        } && test -s conftest.$ac_objext; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863   return $ac_retval
1864
1865 } # ac_fn_cxx_try_compile
1866
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_link ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   rm -f conftest.$ac_objext conftest$ac_exeext
1874   if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_link") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && {
1890          test -z "$ac_c_werror_flag" ||
1891          test ! -s conftest.err
1892        } && test -s conftest$ac_exeext && {
1893          test "$cross_compiling" = yes ||
1894          $as_test_x conftest$ac_exeext
1895        }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905   # interfere with the next link command; also delete a directory that is
1906   # left behind by Apple's compiler.  We do this before executing the actions.
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909   return $ac_retval
1910
1911 } # ac_fn_c_try_link
1912
1913 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists and can be compiled using the include files in
1916 # INCLUDES, setting the cache variable VAR accordingly.
1917 ac_fn_c_check_header_compile ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923   $as_echo_n "(cached) " >&6
1924 else
1925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 $4
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931   eval "$3=yes"
1932 else
1933   eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942 } # ac_fn_c_check_header_compile
1943
1944 # ac_fn_c_try_cpp LINENO
1945 # ----------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_c_try_cpp ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958   ac_status=$?
1959   if test -s conftest.err; then
1960     grep -v '^ *+' conftest.err >conftest.er1
1961     cat conftest.er1 >&5
1962     mv -f conftest.er1 conftest.err
1963   fi
1964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965   test $ac_status = 0; } >/dev/null && {
1966          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1967          test ! -s conftest.err
1968        }; then :
1969   ac_retval=0
1970 else
1971   $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974     ac_retval=1
1975 fi
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977   return $ac_retval
1978
1979 } # ac_fn_c_try_cpp
1980
1981 # ac_fn_c_try_run LINENO
1982 # ----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1984 # that executables *can* be run.
1985 ac_fn_c_try_run ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991   *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995   (eval "$ac_link") 2>&5
1996   ac_status=$?
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1999   { { case "(($ac_try" in
2000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001   *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005   (eval "$ac_try") 2>&5
2006   ac_status=$?
2007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008   test $ac_status = 0; }; }; then :
2009   ac_retval=0
2010 else
2011   $as_echo "$as_me: program exited with status $ac_status" >&5
2012        $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015        ac_retval=$ac_status
2016 fi
2017   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019   return $ac_retval
2020
2021 } # ac_fn_c_try_run
2022
2023 # ac_fn_c_check_func LINENO FUNC VAR
2024 # ----------------------------------
2025 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2026 ac_fn_c_check_func ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   if test x$gcc_no_link = xyes; then
2035   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2036 fi
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2041 #define $2 innocuous_$2
2042
2043 /* System header to define __stub macros and hopefully few prototypes,
2044     which can conflict with char $2 (); below.
2045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2046     <limits.h> exists even on freestanding compilers.  */
2047
2048 #ifdef __STDC__
2049 # include <limits.h>
2050 #else
2051 # include <assert.h>
2052 #endif
2053
2054 #undef $2
2055
2056 /* Override any GCC internal prototype to avoid an error.
2057    Use char because int might match the return type of a GCC
2058    builtin and then its argument prototype would still apply.  */
2059 #ifdef __cplusplus
2060 extern "C"
2061 #endif
2062 char $2 ();
2063 /* The GNU C library defines this for functions which it implements
2064     to always fail with ENOSYS.  Some functions are actually named
2065     something starting with __ and the normal name is an alias.  */
2066 #if defined __stub_$2 || defined __stub___$2
2067 choke me
2068 #endif
2069
2070 int
2071 main ()
2072 {
2073 return $2 ();
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_link "$LINENO"; then :
2079   eval "$3=yes"
2080 else
2081   eval "$3=no"
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext \
2084     conftest$ac_exeext conftest.$ac_ext
2085 fi
2086 eval ac_res=\$$3
2087                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090
2091 } # ac_fn_c_check_func
2092
2093 # ac_fn_cxx_try_cpp LINENO
2094 # ------------------------
2095 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2096 ac_fn_cxx_try_cpp ()
2097 {
2098   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099   if { { ac_try="$ac_cpp conftest.$ac_ext"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2107   ac_status=$?
2108   if test -s conftest.err; then
2109     grep -v '^ *+' conftest.err >conftest.er1
2110     cat conftest.er1 >&5
2111     mv -f conftest.er1 conftest.err
2112   fi
2113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114   test $ac_status = 0; } >/dev/null && {
2115          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2116          test ! -s conftest.err
2117        }; then :
2118   ac_retval=0
2119 else
2120   $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123     ac_retval=1
2124 fi
2125   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2126   return $ac_retval
2127
2128 } # ac_fn_cxx_try_cpp
2129
2130 # ac_fn_cxx_try_link LINENO
2131 # -------------------------
2132 # Try to link conftest.$ac_ext, and return whether this succeeded.
2133 ac_fn_cxx_try_link ()
2134 {
2135   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136   rm -f conftest.$ac_objext conftest$ac_exeext
2137   if { { ac_try="$ac_link"
2138 case "(($ac_try" in
2139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140   *) ac_try_echo=$ac_try;;
2141 esac
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144   (eval "$ac_link") 2>conftest.err
2145   ac_status=$?
2146   if test -s conftest.err; then
2147     grep -v '^ *+' conftest.err >conftest.er1
2148     cat conftest.er1 >&5
2149     mv -f conftest.er1 conftest.err
2150   fi
2151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152   test $ac_status = 0; } && {
2153          test -z "$ac_cxx_werror_flag" ||
2154          test ! -s conftest.err
2155        } && test -s conftest$ac_exeext && {
2156          test "$cross_compiling" = yes ||
2157          $as_test_x conftest$ac_exeext
2158        }; then :
2159   ac_retval=0
2160 else
2161   $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164         ac_retval=1
2165 fi
2166   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2167   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2168   # interfere with the next link command; also delete a directory that is
2169   # left behind by Apple's compiler.  We do this before executing the actions.
2170   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2171   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172   return $ac_retval
2173
2174 } # ac_fn_cxx_try_link
2175
2176 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2177 # -------------------------------------------------------
2178 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2179 # the include files in INCLUDES and setting the cache variable VAR
2180 # accordingly.
2181 ac_fn_c_check_header_mongrel ()
2182 {
2183   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188   $as_echo_n "(cached) " >&6
2189 fi
2190 eval ac_res=\$$3
2191                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 else
2194   # Is the header compilable?
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2196 $as_echo_n "checking $2 usability... " >&6; }
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h.  */
2199 $4
2200 #include <$2>
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203   ac_header_compiler=yes
2204 else
2205   ac_header_compiler=no
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2209 $as_echo "$ac_header_compiler" >&6; }
2210
2211 # Is the header present?
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2213 $as_echo_n "checking $2 presence... " >&6; }
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 #include <$2>
2217 _ACEOF
2218 if ac_fn_c_try_cpp "$LINENO"; then :
2219   ac_header_preproc=yes
2220 else
2221   ac_header_preproc=no
2222 fi
2223 rm -f conftest.err conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2225 $as_echo "$ac_header_preproc" >&6; }
2226
2227 # So?  What about this header?
2228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2229   yes:no: )
2230     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2231 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2233 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2234     ;;
2235   no:yes:* )
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2237 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2239 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2240     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2241 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2243 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2246     ;;
2247 esac
2248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251   $as_echo_n "(cached) " >&6
2252 else
2253   eval "$3=\$ac_header_compiler"
2254 fi
2255 eval ac_res=\$$3
2256                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 fi
2259   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260
2261 } # ac_fn_c_check_header_mongrel
2262
2263 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2264 # ----------------------------------------------------
2265 # Tries to find if the field MEMBER exists in type AGGR, after including
2266 # INCLUDES, setting cache variable VAR accordingly.
2267 ac_fn_c_check_member ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2271 $as_echo_n "checking for $2.$3... " >&6; }
2272 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2273   $as_echo_n "(cached) " >&6
2274 else
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $5
2278 int
2279 main ()
2280 {
2281 static $2 ac_aggr;
2282 if (ac_aggr.$3)
2283 return 0;
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289   eval "$4=yes"
2290 else
2291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h.  */
2293 $5
2294 int
2295 main ()
2296 {
2297 static $2 ac_aggr;
2298 if (sizeof ac_aggr.$3)
2299 return 0;
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305   eval "$4=yes"
2306 else
2307   eval "$4=no"
2308 fi
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 fi
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 eval ac_res=\$$4
2314                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2317
2318 } # ac_fn_c_check_member
2319
2320 # ac_fn_c_check_decl LINENO SYMBOL VAR
2321 # ------------------------------------
2322 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2323 ac_fn_c_check_decl ()
2324 {
2325   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326   as_decl_name=`echo $2|sed 's/ *(.*//'`
2327   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2329 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2330 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2331   $as_echo_n "(cached) " >&6
2332 else
2333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h.  */
2335 $4
2336 int
2337 main ()
2338 {
2339 #ifndef $as_decl_name
2340 #ifdef __cplusplus
2341   (void) $as_decl_use;
2342 #else
2343   (void) $as_decl_name;
2344 #endif
2345 #endif
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352   eval "$3=yes"
2353 else
2354   eval "$3=no"
2355 fi
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 fi
2358 eval ac_res=\$$3
2359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362
2363 } # ac_fn_c_check_decl
2364
2365 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2366 # --------------------------------------------
2367 # Tries to find the compile-time value of EXPR in a program that includes
2368 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2369 # computed
2370 ac_fn_c_compute_int ()
2371 {
2372   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373   if test "$cross_compiling" = yes; then
2374     # Depending upon the size, compute the lo and hi bounds.
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 $4
2378 int
2379 main ()
2380 {
2381 static int test_array [1 - 2 * !(($2) >= 0)];
2382 test_array [0] = 0
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   ac_lo=0 ac_mid=0
2390   while :; do
2391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h.  */
2393 $4
2394 int
2395 main ()
2396 {
2397 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 test_array [0] = 0
2399
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405   ac_hi=$ac_mid; break
2406 else
2407   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2408                         if test $ac_lo -le $ac_mid; then
2409                           ac_lo= ac_hi=
2410                           break
2411                         fi
2412                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2413 fi
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415   done
2416 else
2417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $4
2420 int
2421 main ()
2422 {
2423 static int test_array [1 - 2 * !(($2) < 0)];
2424 test_array [0] = 0
2425
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   ac_hi=-1 ac_mid=-1
2432   while :; do
2433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h.  */
2435 $4
2436 int
2437 main ()
2438 {
2439 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2440 test_array [0] = 0
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447   ac_lo=$ac_mid; break
2448 else
2449   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2450                         if test $ac_mid -le $ac_hi; then
2451                           ac_lo= ac_hi=
2452                           break
2453                         fi
2454                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457   done
2458 else
2459   ac_lo= ac_hi=
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 # Binary search between lo and hi bounds.
2465 while test "x$ac_lo" != "x$ac_hi"; do
2466   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h.  */
2469 $4
2470 int
2471 main ()
2472 {
2473 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2474 test_array [0] = 0
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481   ac_hi=$ac_mid
2482 else
2483   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 done
2487 case $ac_lo in #((
2488 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2489 '') ac_retval=1 ;;
2490 esac
2491   else
2492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h.  */
2494 $4
2495 static long int longval () { return $2; }
2496 static unsigned long int ulongval () { return $2; }
2497 #include <stdio.h>
2498 #include <stdlib.h>
2499 int
2500 main ()
2501 {
2502
2503   FILE *f = fopen ("conftest.val", "w");
2504   if (! f)
2505     return 1;
2506   if (($2) < 0)
2507     {
2508       long int i = longval ();
2509       if (i != ($2))
2510         return 1;
2511       fprintf (f, "%ld", i);
2512     }
2513   else
2514     {
2515       unsigned long int i = ulongval ();
2516       if (i != ($2))
2517         return 1;
2518       fprintf (f, "%lu", i);
2519     }
2520   /* Do not output a trailing newline, as this causes \r\n confusion
2521      on some platforms.  */
2522   return ferror (f) || fclose (f) != 0;
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_run "$LINENO"; then :
2529   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2530 else
2531   ac_retval=1
2532 fi
2533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2534   conftest.$ac_objext conftest.beam conftest.$ac_ext
2535 rm -f conftest.val
2536
2537   fi
2538   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539   return $ac_retval
2540
2541 } # ac_fn_c_compute_int
2542
2543 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2544 # -------------------------------------------
2545 # Tests whether TYPE exists after having included INCLUDES, setting cache
2546 # variable VAR accordingly.
2547 ac_fn_c_check_type ()
2548 {
2549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553   $as_echo_n "(cached) " >&6
2554 else
2555   eval "$3=no"
2556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h.  */
2558 $4
2559 int
2560 main ()
2561 {
2562 if (sizeof ($2))
2563          return 0;
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h.  */
2571 $4
2572 int
2573 main ()
2574 {
2575 if (sizeof (($2)))
2576             return 0;
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582
2583 else
2584   eval "$3=yes"
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 fi
2590 eval ac_res=\$$3
2591                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2594
2595 } # ac_fn_c_check_type
2596 cat >config.log <<_ACEOF
2597 This file contains any messages produced by compilers while
2598 running configure, to aid debugging if configure makes a mistake.
2599
2600 It was created by libjava $as_me version-unused, which was
2601 generated by GNU Autoconf 2.64.  Invocation command line was
2602
2603   $ $0 $@
2604
2605 _ACEOF
2606 exec 5>>config.log
2607 {
2608 cat <<_ASUNAME
2609 ## --------- ##
2610 ## Platform. ##
2611 ## --------- ##
2612
2613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2618
2619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2620 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2621
2622 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2623 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2625 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2626 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2627 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2628 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2629
2630 _ASUNAME
2631
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637     $as_echo "PATH: $as_dir"
2638   done
2639 IFS=$as_save_IFS
2640
2641 } >&5
2642
2643 cat >&5 <<_ACEOF
2644
2645
2646 ## ----------- ##
2647 ## Core tests. ##
2648 ## ----------- ##
2649
2650 _ACEOF
2651
2652
2653 # Keep a trace of the command line.
2654 # Strip out --no-create and --no-recursion so they do not pile up.
2655 # Strip out --silent because we don't want to record it for future runs.
2656 # Also quote any args containing shell meta-characters.
2657 # Make two passes to allow for proper duplicate-argument suppression.
2658 ac_configure_args=
2659 ac_configure_args0=
2660 ac_configure_args1=
2661 ac_must_keep_next=false
2662 for ac_pass in 1 2
2663 do
2664   for ac_arg
2665   do
2666     case $ac_arg in
2667     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2668     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2669     | -silent | --silent | --silen | --sile | --sil)
2670       continue ;;
2671     *\'*)
2672       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2673     esac
2674     case $ac_pass in
2675     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2676     2)
2677       as_fn_append ac_configure_args1 " '$ac_arg'"
2678       if test $ac_must_keep_next = true; then
2679         ac_must_keep_next=false # Got value, back to normal.
2680       else
2681         case $ac_arg in
2682           *=* | --config-cache | -C | -disable-* | --disable-* \
2683           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2684           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2685           | -with-* | --with-* | -without-* | --without-* | --x)
2686             case "$ac_configure_args0 " in
2687               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2688             esac
2689             ;;
2690           -* ) ac_must_keep_next=true ;;
2691         esac
2692       fi
2693       as_fn_append ac_configure_args " '$ac_arg'"
2694       ;;
2695     esac
2696   done
2697 done
2698 { ac_configure_args0=; unset ac_configure_args0;}
2699 { ac_configure_args1=; unset ac_configure_args1;}
2700
2701 # When interrupted or exit'd, cleanup temporary files, and complete
2702 # config.log.  We remove comments because anyway the quotes in there
2703 # would cause problems or look ugly.
2704 # WARNING: Use '\'' to represent an apostrophe within the trap.
2705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2706 trap 'exit_status=$?
2707   # Save into config.log some information that might help in debugging.
2708   {
2709     echo
2710
2711     cat <<\_ASBOX
2712 ## ---------------- ##
2713 ## Cache variables. ##
2714 ## ---------------- ##
2715 _ASBOX
2716     echo
2717     # The following way of writing the cache mishandles newlines in values,
2718 (
2719   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2720     eval ac_val=\$$ac_var
2721     case $ac_val in #(
2722     *${as_nl}*)
2723       case $ac_var in #(
2724       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2726       esac
2727       case $ac_var in #(
2728       _ | IFS | as_nl) ;; #(
2729       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2730       *) { eval $ac_var=; unset $ac_var;} ;;
2731       esac ;;
2732     esac
2733   done
2734   (set) 2>&1 |
2735     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2736     *${as_nl}ac_space=\ *)
2737       sed -n \
2738         "s/'\''/'\''\\\\'\'''\''/g;
2739           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2740       ;; #(
2741     *)
2742       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2743       ;;
2744     esac |
2745     sort
2746 )
2747     echo
2748
2749     cat <<\_ASBOX
2750 ## ----------------- ##
2751 ## Output variables. ##
2752 ## ----------------- ##
2753 _ASBOX
2754     echo
2755     for ac_var in $ac_subst_vars
2756     do
2757       eval ac_val=\$$ac_var
2758       case $ac_val in
2759       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2760       esac
2761       $as_echo "$ac_var='\''$ac_val'\''"
2762     done | sort
2763     echo
2764
2765     if test -n "$ac_subst_files"; then
2766       cat <<\_ASBOX
2767 ## ------------------- ##
2768 ## File substitutions. ##
2769 ## ------------------- ##
2770 _ASBOX
2771       echo
2772       for ac_var in $ac_subst_files
2773       do
2774         eval ac_val=\$$ac_var
2775         case $ac_val in
2776         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777         esac
2778         $as_echo "$ac_var='\''$ac_val'\''"
2779       done | sort
2780       echo
2781     fi
2782
2783     if test -s confdefs.h; then
2784       cat <<\_ASBOX
2785 ## ----------- ##
2786 ## confdefs.h. ##
2787 ## ----------- ##
2788 _ASBOX
2789       echo
2790       cat confdefs.h
2791       echo
2792     fi
2793     test "$ac_signal" != 0 &&
2794       $as_echo "$as_me: caught signal $ac_signal"
2795     $as_echo "$as_me: exit $exit_status"
2796   } >&5
2797   rm -f core *.core core.conftest.* &&
2798     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2799     exit $exit_status
2800 ' 0
2801 for ac_signal in 1 2 13 15; do
2802   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2803 done
2804 ac_signal=0
2805
2806 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2807 rm -f -r conftest* confdefs.h
2808
2809 $as_echo "/* confdefs.h */" > confdefs.h
2810
2811 # Predefined preprocessor variables.
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_NAME "$PACKAGE_NAME"
2815 _ACEOF
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2819 _ACEOF
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_STRING "$PACKAGE_STRING"
2827 _ACEOF
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2831 _ACEOF
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_URL "$PACKAGE_URL"
2835 _ACEOF
2836
2837
2838 # Let the site file select an alternate cache file if it wants to.
2839 # Prefer an explicitly selected file to automatically selected ones.
2840 ac_site_file1=NONE
2841 ac_site_file2=NONE
2842 if test -n "$CONFIG_SITE"; then
2843   ac_site_file1=$CONFIG_SITE
2844 elif test "x$prefix" != xNONE; then
2845   ac_site_file1=$prefix/share/config.site
2846   ac_site_file2=$prefix/etc/config.site
2847 else
2848   ac_site_file1=$ac_default_prefix/share/config.site
2849   ac_site_file2=$ac_default_prefix/etc/config.site
2850 fi
2851 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2852 do
2853   test "x$ac_site_file" = xNONE && continue
2854   if test -r "$ac_site_file"; then
2855     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2856 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2857     sed 's/^/| /' "$ac_site_file" >&5
2858     . "$ac_site_file"
2859   fi
2860 done
2861
2862 if test -r "$cache_file"; then
2863   # Some versions of bash will fail to source /dev/null (special
2864   # files actually), so we avoid doing that.
2865   if test -f "$cache_file"; then
2866     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2867 $as_echo "$as_me: loading cache $cache_file" >&6;}
2868     case $cache_file in
2869       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2870       *)                      . "./$cache_file";;
2871     esac
2872   fi
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2875 $as_echo "$as_me: creating cache $cache_file" >&6;}
2876   >$cache_file
2877 fi
2878
2879 # Check that the precious variables saved in the cache have kept the same
2880 # value.
2881 ac_cache_corrupted=false
2882 for ac_var in $ac_precious_vars; do
2883   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2884   eval ac_new_set=\$ac_env_${ac_var}_set
2885   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2886   eval ac_new_val=\$ac_env_${ac_var}_value
2887   case $ac_old_set,$ac_new_set in
2888     set,)
2889       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2890 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2891       ac_cache_corrupted=: ;;
2892     ,set)
2893       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2894 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2895       ac_cache_corrupted=: ;;
2896     ,);;
2897     *)
2898       if test "x$ac_old_val" != "x$ac_new_val"; then
2899         # differences in whitespace do not lead to failure.
2900         ac_old_val_w=`echo x $ac_old_val`
2901         ac_new_val_w=`echo x $ac_new_val`
2902         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2903           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2904 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2905           ac_cache_corrupted=:
2906         else
2907           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2908 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2909           eval $ac_var=\$ac_old_val
2910         fi
2911         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2912 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2913         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2914 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2915       fi;;
2916   esac
2917   # Pass precious variables to config.status.
2918   if test "$ac_new_set" = set; then
2919     case $ac_new_val in
2920     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2921     *) ac_arg=$ac_var=$ac_new_val ;;
2922     esac
2923     case " $ac_configure_args " in
2924       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2925       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2926     esac
2927   fi
2928 done
2929 if $ac_cache_corrupted; then
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2933 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2934   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2935 fi
2936 ## -------------------- ##
2937 ## Main body of script. ##
2938 ## -------------------- ##
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946
2947
2948
2949
2950
2951
2952
2953 ac_aux_dir=
2954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2955   for ac_t in install-sh install.sh shtool; do
2956     if test -f "$ac_dir/$ac_t"; then
2957       ac_aux_dir=$ac_dir
2958       ac_install_sh="$ac_aux_dir/$ac_t -c"
2959       break 2
2960     fi
2961   done
2962 done
2963 if test -z "$ac_aux_dir"; then
2964   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2965 fi
2966
2967 # These three variables are undocumented and unsupported,
2968 # and are intended to be withdrawn in a future Autoconf release.
2969 # They can cause serious problems if a builder's source tree is in a directory
2970 # whose full name contains unusual characters.
2971 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2972 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2973 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2974
2975
2976 # Make sure we can run config.sub.
2977 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2978   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2981 $as_echo_n "checking build system type... " >&6; }
2982 if test "${ac_cv_build+set}" = set; then :
2983   $as_echo_n "(cached) " >&6
2984 else
2985   ac_build_alias=$build_alias
2986 test "x$ac_build_alias" = x &&
2987   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2988 test "x$ac_build_alias" = x &&
2989   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2990 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2991   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2992
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2995 $as_echo "$ac_cv_build" >&6; }
2996 case $ac_cv_build in
2997 *-*-*) ;;
2998 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2999 esac
3000 build=$ac_cv_build
3001 ac_save_IFS=$IFS; IFS='-'
3002 set x $ac_cv_build
3003 shift
3004 build_cpu=$1
3005 build_vendor=$2
3006 shift; shift
3007 # Remember, the first character of IFS is used to create $*,
3008 # except with old shells:
3009 build_os=$*
3010 IFS=$ac_save_IFS
3011 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3012
3013
3014  case ${build_alias} in
3015   "") build_noncanonical=${build} ;;
3016   *) build_noncanonical=${build_alias} ;;
3017 esac
3018
3019  case ${host_alias} in
3020   "") host_noncanonical=${build_noncanonical} ;;
3021   *) host_noncanonical=${host_alias} ;;
3022 esac
3023
3024  case ${target_alias} in
3025   "") target_noncanonical=${host_noncanonical} ;;
3026   *) target_noncanonical=${target_alias} ;;
3027 esac
3028
3029
3030 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3031 # have matching libraries, they should use host libraries: Makefile.tpl
3032 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3033 # However, they still use the build modules, because the corresponding
3034 # host modules (e.g. bison) are only built for the host when bootstrap
3035 # finishes. So:
3036 # - build_subdir is where we find build modules, and never changes.
3037 # - build_libsubdir is where we find build libraries, and can be overridden.
3038
3039 # Prefix 'build-' so this never conflicts with target_subdir.
3040 build_subdir="build-${build_noncanonical}"
3041
3042 # Check whether --with-build-libsubdir was given.
3043 if test "${with_build_libsubdir+set}" = set; then :
3044   withval=$with_build_libsubdir; build_libsubdir="$withval"
3045 else
3046   build_libsubdir="$build_subdir"
3047 fi
3048
3049 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3050 if ( test $srcdir = . && test -d gcc ) \
3051    || test -d $srcdir/../host-${host_noncanonical}; then
3052   host_subdir="host-${host_noncanonical}"
3053 else
3054   host_subdir=.
3055 fi
3056 # No prefix.
3057 target_subdir=${target_noncanonical}
3058
3059
3060 # We use these options to decide which functions to include.
3061
3062 # Check whether --with-target-subdir was given.
3063 if test "${with_target_subdir+set}" = set; then :
3064   withval=$with_target_subdir;
3065 fi
3066
3067
3068 # We may get other options which we don't document:
3069 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3070
3071 # Find the rest of the source tree framework.
3072 # Default to --enable-multilib
3073 # Check whether --enable-multilib was given.
3074 if test "${enable_multilib+set}" = set; then :
3075   enableval=$enable_multilib; case "$enableval" in
3076   yes) multilib=yes ;;
3077   no)  multilib=no ;;
3078   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3079  esac
3080 else
3081   multilib=yes
3082 fi
3083
3084
3085 # We may get other options which we leave undocumented:
3086 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3087 # See config-ml.in if you want the gory details.
3088
3089 if test "$srcdir" = "."; then
3090   if test "$with_target_subdir" != "."; then
3091     multi_basedir="$srcdir/$with_multisrctop../.."
3092   else
3093     multi_basedir="$srcdir/$with_multisrctop.."
3094   fi
3095 else
3096   multi_basedir="$srcdir/.."
3097 fi
3098
3099
3100 # Even if the default multilib is not a cross compilation,
3101 # it may be that some of the other multilibs are.
3102 if test $cross_compiling = no && test $multilib = yes \
3103    && test "x${with_multisubdir}" != x ; then
3104    cross_compiling=maybe
3105 fi
3106
3107 ac_config_commands="$ac_config_commands default-1"
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3111 $as_echo_n "checking host system type... " >&6; }
3112 if test "${ac_cv_host+set}" = set; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if test "x$host_alias" = x; then
3116   ac_cv_host=$ac_cv_build
3117 else
3118   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3119     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3124 $as_echo "$ac_cv_host" >&6; }
3125 case $ac_cv_host in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3128 esac
3129 host=$ac_cv_host
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_host
3132 shift
3133 host_cpu=$1
3134 host_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 host_os=$*
3139 IFS=$ac_save_IFS
3140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3144 $as_echo_n "checking target system type... " >&6; }
3145 if test "${ac_cv_target+set}" = set; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   if test "x$target_alias" = x; then
3149   ac_cv_target=$ac_cv_host
3150 else
3151   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3152     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3153 fi
3154
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3157 $as_echo "$ac_cv_target" >&6; }
3158 case $ac_cv_target in
3159 *-*-*) ;;
3160 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3161 esac
3162 target=$ac_cv_target
3163 ac_save_IFS=$IFS; IFS='-'
3164 set x $ac_cv_target
3165 shift
3166 target_cpu=$1
3167 target_vendor=$2
3168 shift; shift
3169 # Remember, the first character of IFS is used to create $*,
3170 # except with old shells:
3171 target_os=$*
3172 IFS=$ac_save_IFS
3173 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3174
3175
3176 # The aliases save the names the user supplied, while $host etc.
3177 # will get canonicalized.
3178 test -n "$target_alias" &&
3179   test "$program_prefix$program_suffix$program_transform_name" = \
3180     NONENONEs,x,x, &&
3181   program_prefix=${target_alias}-
3182
3183  case ${build_alias} in
3184   "") build_noncanonical=${build} ;;
3185   *) build_noncanonical=${build_alias} ;;
3186 esac
3187
3188  case ${target_alias} in
3189   "") target_noncanonical=${host_noncanonical} ;;
3190   *) target_noncanonical=${target_alias} ;;
3191 esac
3192
3193
3194
3195
3196 # This works around the fact that libtool configuration may change LD
3197 # for this particular configuration, but some shells, instead of
3198 # keeping the changes in LD private, export them just because LD is
3199 # exported.
3200 ORIGINAL_LD_FOR_MULTILIBS=$LD
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3203 $as_echo_n "checking whether ln -s works... " >&6; }
3204 LN_S=$as_ln_s
3205 if test "$LN_S" = "ln -s"; then
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 else
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3210 $as_echo "no, using $LN_S" >&6; }
3211 fi
3212
3213
3214 # This works around an automake problem.
3215 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3216
3217
3218
3219 # Check whether --with-cross-host was given.
3220 if test "${with_cross_host+set}" = set; then :
3221   withval=$with_cross_host;
3222 fi
3223
3224
3225
3226 # Check whether --with-newlib was given.
3227 if test "${with_newlib+set}" = set; then :
3228   withval=$with_newlib;
3229 fi
3230
3231
3232 # Check whether --enable-version-specific-runtime-libs was given.
3233 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3234   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3235       yes) version_specific_libs=yes ;;
3236       no)  version_specific_libs=no ;;
3237       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3238      esac
3239 else
3240   version_specific_libs=no
3241
3242 fi
3243
3244
3245 # Check whether --enable-browser-plugin was given.
3246 if test "${enable_browser_plugin+set}" = set; then :
3247   enableval=$enable_browser_plugin; case "$enableval" in
3248       yes) browser_plugin_enabled=yes ;;
3249       no)  browser_plugin_enabled=no ;;
3250       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3251      esac
3252 else
3253   browser_plugin_enabled=no
3254
3255 fi
3256
3257
3258 # Check whether --enable-gconf-peer was given.
3259 if test "${enable_gconf_peer+set}" = set; then :
3260   enableval=$enable_gconf_peer; case "$enableval" in
3261       yes) gconf_enabled=yes ;;
3262       no)  gconf_enabled=no ;;
3263       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3264      esac
3265 else
3266   gconf_enabled=no
3267
3268 fi
3269
3270
3271
3272 # Check whether --with-antlr-jar was given.
3273 if test "${with_antlr_jar+set}" = set; then :
3274   withval=$with_antlr_jar;
3275              ANTLR_JAR=$withval
3276
3277 else
3278
3279              ANTLR_JAR=
3280
3281 fi
3282
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3285 $as_echo_n "checking for antlr.jar... " >&6; }
3286 if test "x$ANTLR_JAR" = x; then
3287     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3288         /usr/share/antlr/lib /usr/share/java /usr/lib;
3289     do
3290         if test -f "$antlr_lib_home/antlr.jar"; then
3291             # FIXME: version check for antlr needed without using a VM
3292             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3293             break
3294         fi
3295     done
3296     if test "x$ANTLR_JAR" = x; then
3297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3298 $as_echo "not found" >&6; }
3299     else
3300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3301 $as_echo "$ANTLR_JAR" >&6; }
3302     fi
3303 else
3304     if test -f "${ANTLR_JAR}"; then
3305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3306 $as_echo "$ANTLR_JAR" >&6; }
3307     else
3308         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3309     fi
3310 fi
3311
3312
3313 # Check whether --enable-gjdoc was given.
3314 if test "${enable_gjdoc+set}" = set; then :
3315   enableval=$enable_gjdoc; case "${enableval}" in
3316                 yes) BUILD_GJDOC=yes ;;
3317                 no) BUILD_GJDOC=no ;;
3318                 *) BUILD_GJDOC=yes ;;
3319               esac
3320 else
3321   BUILD_GJDOC=maybe
3322 fi
3323
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3326 $as_echo_n "checking whether to build gjdoc... " >&6; }
3327 if test "x$BUILD_GJDOC" = xmaybe; then
3328     if test -f "${ANTLR_JAR}"; then
3329         BUILD_GJDOC=yes
3330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332     else
3333         BUILD_GJDOC=no
3334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3335 $as_echo "no, antlr.jar not found" >&6; }
3336     fi
3337 else
3338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3339 $as_echo "$BUILD_GJDOC" >&6; }
3340 fi
3341  if test "x${BUILD_GJDOC}" = xyes; then
3342   CREATE_GJDOC_TRUE=
3343   CREATE_GJDOC_FALSE='#'
3344 else
3345   CREATE_GJDOC_TRUE='#'
3346   CREATE_GJDOC_FALSE=
3347 fi
3348
3349
3350 # Check whether --enable-java-maintainer-mode was given.
3351 if test "${enable_java_maintainer_mode+set}" = set; then :
3352   enableval=$enable_java_maintainer_mode;
3353 fi
3354
3355  if test "$enable_java_maintainer_mode" = yes; then
3356   JAVA_MAINTAINER_MODE_TRUE=
3357   JAVA_MAINTAINER_MODE_FALSE='#'
3358 else
3359   JAVA_MAINTAINER_MODE_TRUE='#'
3360   JAVA_MAINTAINER_MODE_FALSE=
3361 fi
3362
3363
3364 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3365
3366
3367 # For libstdc++-v3, -fno-builtin must be present here so that a
3368 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3369 # used in later tests.  This may not be necessary in libjava; I don't know.
3370 save_CXXFLAGS="$CXXFLAGS"
3371 CXXFLAGS="$CXXFLAGS -fno-builtin"
3372 ac_ext=c
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 if test -n "$ac_tool_prefix"; then
3378   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$CC"; then
3386   ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393     for ac_exec_ext in '' $ac_executable_extensions; do
3394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400   done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415 fi
3416 if test -z "$ac_cv_prog_CC"; then
3417   ac_ct_CC=$CC
3418   # Extract the first word of "gcc", so it can be a program name with args.
3419 set dummy gcc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if test -n "$ac_ct_CC"; then
3426   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433     for ac_exec_ext in '' $ac_executable_extensions; do
3434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435     ac_cv_prog_ac_ct_CC="gcc"
3436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440   done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 $as_echo "$ac_ct_CC" >&6; }
3449 else
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454   if test "x$ac_ct_CC" = x; then
3455     CC=""
3456   else
3457     case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463     CC=$ac_ct_CC
3464   fi
3465 else
3466   CC="$ac_cv_prog_CC"
3467 fi
3468
3469 if test -z "$CC"; then
3470           if test -n "$ac_tool_prefix"; then
3471     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472 set dummy ${ac_tool_prefix}cc; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test -n "$CC"; then
3479   ac_cv_prog_CC="$CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486     for ac_exec_ext in '' $ac_executable_extensions; do
3487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488     ac_cv_prog_CC="${ac_tool_prefix}cc"
3489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493   done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 CC=$ac_cv_prog_CC
3499 if test -n "$CC"; then
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3502 else
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507
3508   fi
3509 fi
3510 if test -z "$CC"; then
3511   # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516   $as_echo_n "(cached) " >&6
3517 else
3518   if test -n "$CC"; then
3519   ac_cv_prog_CC="$CC" # Let the user override the test.
3520 else
3521   ac_prog_rejected=no
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527     for ac_exec_ext in '' $ac_executable_extensions; do
3528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530        ac_prog_rejected=yes
3531        continue
3532      fi
3533     ac_cv_prog_CC="cc"
3534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535     break 2
3536   fi
3537 done
3538   done
3539 IFS=$as_save_IFS
3540
3541 if test $ac_prog_rejected = yes; then
3542   # We found a bogon in the path, so make sure we never use it.
3543   set dummy $ac_cv_prog_CC
3544   shift
3545   if test $# != 0; then
3546     # We chose a different compiler from the bogus one.
3547     # However, it has the same basename, so the bogon will be chosen
3548     # first if we set CC to just the basename; use the full file name.
3549     shift
3550     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3551   fi
3552 fi
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 if test -z "$CC"; then
3567   if test -n "$ac_tool_prefix"; then
3568   for ac_prog in cl.exe
3569   do
3570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if test "${ac_cv_prog_CC+set}" = set; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -n "$CC"; then
3578   ac_cv_prog_CC="$CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585     for ac_exec_ext in '' $ac_executable_extensions; do
3586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592   done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3601 else
3602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607     test -n "$CC" && break
3608   done
3609 fi
3610 if test -z "$CC"; then
3611   ac_ct_CC=$CC
3612   for ac_prog in cl.exe
3613 do
3614   # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy $ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   if test -n "$ac_ct_CC"; then
3622   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629     for ac_exec_ext in '' $ac_executable_extensions; do
3630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631     ac_cv_prog_ac_ct_CC="$ac_prog"
3632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633     break 2
3634   fi
3635 done
3636   done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650
3651   test -n "$ac_ct_CC" && break
3652 done
3653
3654   if test "x$ac_ct_CC" = x; then
3655     CC=""
3656   else
3657     case $cross_compiling:$ac_tool_warned in
3658 yes:)
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned=yes ;;
3662 esac
3663     CC=$ac_ct_CC
3664   fi
3665 fi
3666
3667 fi
3668
3669
3670 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error "no acceptable C compiler found in \$PATH
3673 See \`config.log' for more details." "$LINENO" 5; }
3674
3675 # Provide some information about the compiler.
3676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3677 set X $ac_compile
3678 ac_compiler=$2
3679 for ac_option in --version -v -V -qversion; do
3680   { { ac_try="$ac_compiler $ac_option >&5"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3688   ac_status=$?
3689   if test -s conftest.err; then
3690     sed '10a\
3691 ... rest of stderr output deleted ...
3692          10q' conftest.err >conftest.er1
3693     cat conftest.er1 >&5
3694     rm -f conftest.er1 conftest.err
3695   fi
3696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697   test $ac_status = 0; }
3698 done
3699
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 # FIXME: Cleanup?
3712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3713   (eval $ac_link) 2>&5
3714   ac_status=$?
3715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716   test $ac_status = 0; }; then :
3717   gcc_no_link=no
3718 else
3719   gcc_no_link=yes
3720 fi
3721 if test x$gcc_no_link = xyes; then
3722   # Setting cross_compile will disable run tests; it will
3723   # also disable AC_CHECK_FILE but that's generally
3724   # correct if we can't link.
3725   cross_compiling=yes
3726   EXEEXT=
3727 else
3728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 ac_clean_files_save=$ac_clean_files
3740 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3741 # Try to create an executable without -o first, disregard a.out.
3742 # It will help us diagnose broken compilers, and finding out an intuition
3743 # of exeext.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3745 $as_echo_n "checking for C compiler default output file name... " >&6; }
3746 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3747
3748 # The possible output files:
3749 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3750
3751 ac_rmfiles=
3752 for ac_file in $ac_files
3753 do
3754   case $ac_file in
3755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3756     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3757   esac
3758 done
3759 rm -f $ac_rmfiles
3760
3761 if { { ac_try="$ac_link_default"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_link_default") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; then :
3772   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3774 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3775 # so that the user can short-circuit this test for compilers unknown to
3776 # Autoconf.
3777 for ac_file in $ac_files ''
3778 do
3779   test -f "$ac_file" || continue
3780   case $ac_file in
3781     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3782         ;;
3783     [ab].out )
3784         # We found the default executable, but exeext='' is most
3785         # certainly right.
3786         break;;
3787     *.* )
3788         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3789         then :; else
3790            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791         fi
3792         # We set ac_cv_exeext here because the later test for it is not
3793         # safe: cross compilers may not add the suffix if given an `-o'
3794         # argument, so we may need to know it at that point already.
3795         # Even if this section looks crufty: it has the advantage of
3796         # actually working.
3797         break;;
3798     * )
3799         break;;
3800   esac
3801 done
3802 test "$ac_cv_exeext" = no && ac_cv_exeext=
3803
3804 else
3805   ac_file=''
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3808 $as_echo "$ac_file" >&6; }
3809 if test -z "$ac_file"; then :
3810   $as_echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 { as_fn_set_status 77
3816 as_fn_error "C compiler cannot create executables
3817 See \`config.log' for more details." "$LINENO" 5; }; }
3818 fi
3819 ac_exeext=$ac_cv_exeext
3820
3821 # Check that the compiler produces executables we can run.  If not, either
3822 # the compiler is broken, or we cross compile.
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3824 $as_echo_n "checking whether the C compiler works... " >&6; }
3825 # If not cross compiling, check that we can run a simple program.
3826 if test "$cross_compiling" != yes; then
3827   if { ac_try='./$ac_file'
3828   { { case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834   (eval "$ac_try") 2>&5
3835   ac_status=$?
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }; }; then
3838     cross_compiling=no
3839   else
3840     if test "$cross_compiling" = maybe; then
3841         cross_compiling=yes
3842     else
3843         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error "cannot run C compiled programs.
3846 If you meant to cross compile, use \`--host'.
3847 See \`config.log' for more details." "$LINENO" 5; }
3848     fi
3849   fi
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3852 $as_echo "yes" >&6; }
3853
3854 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3855 ac_clean_files=$ac_clean_files_save
3856 # Check that the compiler produces executables we can run.  If not, either
3857 # the compiler is broken, or we cross compile.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3859 $as_echo_n "checking whether we are cross compiling... " >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861 $as_echo "$cross_compiling" >&6; }
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3864 $as_echo_n "checking for suffix of executables... " >&6; }
3865 if { { ac_try="$ac_link"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872   (eval "$ac_link") 2>&5
3873   ac_status=$?
3874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875   test $ac_status = 0; }; then :
3876   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3877 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3878 # work properly (i.e., refer to `conftest.exe'), while it won't with
3879 # `rm'.
3880 for ac_file in conftest.exe conftest conftest.*; do
3881   test -f "$ac_file" || continue
3882   case $ac_file in
3883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3884     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3885           break;;
3886     * ) break;;
3887   esac
3888 done
3889 else
3890   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error "cannot compute suffix of executables: cannot compile and link
3893 See \`config.log' for more details." "$LINENO" 5; }
3894 fi
3895 rm -f conftest$ac_cv_exeext
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3897 $as_echo "$ac_cv_exeext" >&6; }
3898
3899 rm -f conftest.$ac_ext
3900 EXEEXT=$ac_cv_exeext
3901 ac_exeext=$EXEEXT
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3904 $as_echo_n "checking for suffix of object files... " >&6; }
3905 if test "${ac_cv_objext+set}" = set; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 rm -f conftest.o conftest.obj
3920 if { { ac_try="$ac_compile"
3921 case "(($ac_try" in
3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923   *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927   (eval "$ac_compile") 2>&5
3928   ac_status=$?
3929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930   test $ac_status = 0; }; then :
3931   for ac_file in conftest.o conftest.obj conftest.*; do
3932   test -f "$ac_file" || continue;
3933   case $ac_file in
3934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3935     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3936        break;;
3937   esac
3938 done
3939 else
3940   $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot compute suffix of object files: cannot compile
3946 See \`config.log' for more details." "$LINENO" 5; }
3947 fi
3948 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3951 $as_echo "$ac_cv_objext" >&6; }
3952 OBJEXT=$ac_cv_objext
3953 ac_objext=$OBJEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3955 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3956 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965 #ifndef __GNUC__
3966        choke me
3967 #endif
3968
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974   ac_compiler_gnu=yes
3975 else
3976   ac_compiler_gnu=no
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3980
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3983 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3984 if test $ac_compiler_gnu = yes; then
3985   GCC=yes
3986 else
3987   GCC=
3988 fi
3989 ac_test_CFLAGS=${CFLAGS+set}
3990 ac_save_CFLAGS=$CFLAGS
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3992 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3993 if test "${ac_cv_prog_cc_g+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   ac_save_c_werror_flag=$ac_c_werror_flag
3997    ac_c_werror_flag=yes
3998    ac_cv_prog_cc_g=no
3999    CFLAGS="-g"
4000    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h.  */
4002
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012   ac_cv_prog_cc_g=yes
4013 else
4014   CFLAGS=""
4015       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h.  */
4017
4018 int
4019 main ()
4020 {
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027
4028 else
4029   ac_c_werror_flag=$ac_save_c_werror_flag
4030          CFLAGS="-g"
4031          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h.  */
4033
4034 int
4035 main ()
4036 {
4037
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043   ac_cv_prog_cc_g=yes
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050    ac_c_werror_flag=$ac_save_c_werror_flag
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4053 $as_echo "$ac_cv_prog_cc_g" >&6; }
4054 if test "$ac_test_CFLAGS" = set; then
4055   CFLAGS=$ac_save_CFLAGS
4056 elif test $ac_cv_prog_cc_g = yes; then
4057   if test "$GCC" = yes; then
4058     CFLAGS="-g -O2"
4059   else
4060     CFLAGS="-g"
4061   fi
4062 else
4063   if test "$GCC" = yes; then
4064     CFLAGS="-O2"
4065   else
4066     CFLAGS=
4067   fi
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4071 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   ac_cv_prog_cc_c89=no
4075 ac_save_CC=$CC
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #include <stdarg.h>
4079 #include <stdio.h>
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4086      char **p;
4087      int i;
4088 {
4089   return p[i];
4090 }
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4092 {
4093   char *s;
4094   va_list v;
4095   va_start (v,p);
4096   s = g (p, va_arg (v,int));
4097   va_end (v);
4098   return s;
4099 }
4100
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4102    function prototypes and stuff, but not '\xHH' hex character constants.
4103    These don't provoke an error unfortunately, instead are silently treated
4104    as 'x'.  The following induces an error, until -std is added to get
4105    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4106    array size at least.  It's necessary to write '\x00'==0 to get something
4107    that's true only with -std.  */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4109
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111    inside strings and character constants.  */
4112 #define FOO(x) 'x'
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4114
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 int argc;
4120 char **argv;
4121 int
4122 main ()
4123 {
4124 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4131 do
4132   CC="$ac_save_CC $ac_arg"
4133   if ac_fn_c_try_compile "$LINENO"; then :
4134   ac_cv_prog_cc_c89=$ac_arg
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext
4137   test "x$ac_cv_prog_cc_c89" != "xno" && break
4138 done
4139 rm -f conftest.$ac_ext
4140 CC=$ac_save_CC
4141
4142 fi
4143 # AC_CACHE_VAL
4144 case "x$ac_cv_prog_cc_c89" in
4145   x)
4146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4147 $as_echo "none needed" >&6; } ;;
4148   xno)
4149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4150 $as_echo "unsupported" >&6; } ;;
4151   *)
4152     CC="$CC $ac_cv_prog_cc_c89"
4153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4155 esac
4156 if test "x$ac_cv_prog_cc_c89" != xno; then :
4157
4158 fi
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166 ac_ext=cpp
4167 ac_cpp='$CXXCPP $CPPFLAGS'
4168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4171 if test -z "$CXX"; then
4172   if test -n "$CCC"; then
4173     CXX=$CCC
4174   else
4175     if test -n "$ac_tool_prefix"; then
4176   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4177   do
4178     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if test "${ac_cv_prog_CXX+set}" = set; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   if test -n "$CXX"; then
4186   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193     for ac_exec_ext in '' $ac_executable_extensions; do
4194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197     break 2
4198   fi
4199 done
4200   done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 CXX=$ac_cv_prog_CXX
4206 if test -n "$CXX"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4208 $as_echo "$CXX" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215     test -n "$CXX" && break
4216   done
4217 fi
4218 if test -z "$CXX"; then
4219   ac_ct_CXX=$CXX
4220   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4221 do
4222   # Extract the first word of "$ac_prog", so it can be a program name with args.
4223 set dummy $ac_prog; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if test -n "$ac_ct_CXX"; then
4230   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237     for ac_exec_ext in '' $ac_executable_extensions; do
4238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239     ac_cv_prog_ac_ct_CXX="$ac_prog"
4240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244   done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4250 if test -n "$ac_ct_CXX"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4252 $as_echo "$ac_ct_CXX" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259   test -n "$ac_ct_CXX" && break
4260 done
4261
4262   if test "x$ac_ct_CXX" = x; then
4263     CXX="g++"
4264   else
4265     case $cross_compiling:$ac_tool_warned in
4266 yes:)
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269 ac_tool_warned=yes ;;
4270 esac
4271     CXX=$ac_ct_CXX
4272   fi
4273 fi
4274
4275   fi
4276 fi
4277 # Provide some information about the compiler.
4278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4279 set X $ac_compile
4280 ac_compiler=$2
4281 for ac_option in --version -v -V -qversion; do
4282   { { ac_try="$ac_compiler $ac_option >&5"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4290   ac_status=$?
4291   if test -s conftest.err; then
4292     sed '10a\
4293 ... rest of stderr output deleted ...
4294          10q' conftest.err >conftest.er1
4295     cat conftest.er1 >&5
4296     rm -f conftest.er1 conftest.err
4297   fi
4298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299   test $ac_status = 0; }
4300 done
4301
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4304 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4305   $as_echo_n "(cached) " >&6
4306 else
4307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h.  */
4309
4310 int
4311 main ()
4312 {
4313 #ifndef __GNUC__
4314        choke me
4315 #endif
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_cxx_try_compile "$LINENO"; then :
4322   ac_compiler_gnu=yes
4323 else
4324   ac_compiler_gnu=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4331 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4333   GXX=yes
4334 else
4335   GXX=
4336 fi
4337 ac_test_CXXFLAGS=${CXXFLAGS+set}
4338 ac_save_CXXFLAGS=$CXXFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4340 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4345    ac_cxx_werror_flag=yes
4346    ac_cv_prog_cxx_g=no
4347    CXXFLAGS="-g"
4348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4360   ac_cv_prog_cxx_g=yes
4361 else
4362   CXXFLAGS=""
4363       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365
4366 int
4367 main ()
4368 {
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_cxx_try_compile "$LINENO"; then :
4375
4376 else
4377   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4378          CXXFLAGS="-g"
4379          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381
4382 int
4383 main ()
4384 {
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_cxx_try_compile "$LINENO"; then :
4391   ac_cv_prog_cxx_g=yes
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4401 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4402 if test "$ac_test_CXXFLAGS" = set; then
4403   CXXFLAGS=$ac_save_CXXFLAGS
4404 elif test $ac_cv_prog_cxx_g = yes; then
4405   if test "$GXX" = yes; then
4406     CXXFLAGS="-g -O2"
4407   else
4408     CXXFLAGS="-g"
4409   fi
4410 else
4411   if test "$GXX" = yes; then
4412     CXXFLAGS="-O2"
4413   else
4414     CXXFLAGS=
4415   fi
4416 fi
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
4423 CXXFLAGS="$save_CXXFLAGS"
4424
4425 am__api_version='1.11'
4426
4427 # Find a good install program.  We prefer a C program (faster),
4428 # so one script is as good as another.  But avoid the broken or
4429 # incompatible versions:
4430 # SysV /etc/install, /usr/sbin/install
4431 # SunOS /usr/etc/install
4432 # IRIX /sbin/install
4433 # AIX /bin/install
4434 # AmigaOS /C/install, which installs bootblocks on floppy discs
4435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4438 # OS/2's system install, which has a completely different semantic
4439 # ./install, which can be erroneously created by make from ./install.sh.
4440 # Reject install programs that cannot install multiple files.
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4442 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4443 if test -z "$INSTALL"; then
4444 if test "${ac_cv_path_install+set}" = set; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452     # Account for people who put trailing slashes in PATH elements.
4453 case $as_dir/ in #((
4454   ./ | .// | /[cC]/* | \
4455   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4456   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4457   /usr/ucb/* ) ;;
4458   *)
4459     # OSF1 and SCO ODT 3.0 have their own names for install.
4460     # Don't use installbsd from OSF since it installs stuff as root
4461     # by default.
4462     for ac_prog in ginstall scoinst install; do
4463       for ac_exec_ext in '' $ac_executable_extensions; do
4464         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4465           if test $ac_prog = install &&
4466             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4467             # AIX install.  It has an incompatible calling convention.
4468             :
4469           elif test $ac_prog = install &&
4470             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4471             # program-specific install script used by HP pwplus--don't use.
4472             :
4473           else
4474             rm -rf conftest.one conftest.two conftest.dir
4475             echo one > conftest.one
4476             echo two > conftest.two
4477             mkdir conftest.dir
4478             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4479               test -s conftest.one && test -s conftest.two &&
4480               test -s conftest.dir/conftest.one &&
4481               test -s conftest.dir/conftest.two
4482             then
4483               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4484               break 3
4485             fi
4486           fi
4487         fi
4488       done
4489     done
4490     ;;
4491 esac
4492
4493   done
4494 IFS=$as_save_IFS
4495
4496 rm -rf conftest.one conftest.two conftest.dir
4497
4498 fi
4499   if test "${ac_cv_path_install+set}" = set; then
4500     INSTALL=$ac_cv_path_install
4501   else
4502     # As a last resort, use the slow shell script.  Don't cache a
4503     # value for INSTALL within a source directory, because that will
4504     # break other packages using the cache if that directory is
4505     # removed, or if the value is a relative name.
4506     INSTALL=$ac_install_sh
4507   fi
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4510 $as_echo "$INSTALL" >&6; }
4511
4512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4513 # It thinks the first close brace ends the variable substitution.
4514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4515
4516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4517
4518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4521 $as_echo_n "checking whether build environment is sane... " >&6; }
4522 # Just in case
4523 sleep 1
4524 echo timestamp > conftest.file
4525 # Reject unsafe characters in $srcdir or the absolute working directory
4526 # name.  Accept space and tab only in the latter.
4527 am_lf='
4528 '
4529 case `pwd` in
4530   *[\\\"\#\$\&\'\`$am_lf]*)
4531     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4532 esac
4533 case $srcdir in
4534   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4535     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4536 esac
4537
4538 # Do `set' in a subshell so we don't clobber the current shell's
4539 # arguments.  Must try -L first in case configure is actually a
4540 # symlink; some systems play weird games with the mod time of symlinks
4541 # (eg FreeBSD returns the mod time of the symlink's containing
4542 # directory).
4543 if (
4544    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4545    if test "$*" = "X"; then
4546       # -L didn't work.
4547       set X `ls -t "$srcdir/configure" conftest.file`
4548    fi
4549    rm -f conftest.file
4550    if test "$*" != "X $srcdir/configure conftest.file" \
4551       && test "$*" != "X conftest.file $srcdir/configure"; then
4552
4553       # If neither matched, then we have a broken ls.  This can happen
4554       # if, for instance, CONFIG_SHELL is bash and it inherits a
4555       # broken ls alias from the environment.  This has actually
4556       # happened.  Such a system could not be considered "sane".
4557       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4558 alias in your environment" "$LINENO" 5
4559    fi
4560
4561    test "$2" = conftest.file
4562    )
4563 then
4564    # Ok.
4565    :
4566 else
4567    as_fn_error "newly created file is older than distributed files!
4568 Check your system clock" "$LINENO" 5
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571 $as_echo "yes" >&6; }
4572 test "$program_prefix" != NONE &&
4573   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4574 # Use a double $ so make ignores it.
4575 test "$program_suffix" != NONE &&
4576   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4577 # Double any \ or $.
4578 # By default was `s,x,x', remove it if useless.
4579 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4580 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4581
4582 # expand $ac_aux_dir to an absolute path
4583 am_aux_dir=`cd $ac_aux_dir && pwd`
4584
4585 if test x"${MISSING+set}" != xset; then
4586   case $am_aux_dir in
4587   *\ * | *\     *)
4588     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4589   *)
4590     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4591   esac
4592 fi
4593 # Use eval to expand $SHELL
4594 if eval "$MISSING --run true"; then
4595   am_missing_run="$MISSING --run "
4596 else
4597   am_missing_run=
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4599 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4600 fi
4601
4602 if test x"${install_sh}" != xset; then
4603   case $am_aux_dir in
4604   *\ * | *\     *)
4605     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4606   *)
4607     install_sh="\${SHELL} $am_aux_dir/install-sh"
4608   esac
4609 fi
4610
4611 # Installed binaries are usually stripped using `strip' when the user
4612 # run `make install-strip'.  However `strip' might not be the right
4613 # tool to use in cross-compilation environments, therefore Automake
4614 # will honor the `STRIP' environment variable to overrule this program.
4615 if test "$cross_compiling" != no; then
4616   if test -n "$ac_tool_prefix"; then
4617   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4618 set dummy ${ac_tool_prefix}strip; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if test "${ac_cv_prog_STRIP+set}" = set; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   if test -n "$STRIP"; then
4625   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632     for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639   done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 STRIP=$ac_cv_prog_STRIP
4645 if test -n "$STRIP"; then
4646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4647 $as_echo "$STRIP" >&6; }
4648 else
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652
4653
4654 fi
4655 if test -z "$ac_cv_prog_STRIP"; then
4656   ac_ct_STRIP=$STRIP
4657   # Extract the first word of "strip", so it can be a program name with args.
4658 set dummy strip; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   if test -n "$ac_ct_STRIP"; then
4665   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672     for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_prog_ac_ct_STRIP="strip"
4675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679   done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4685 if test -n "$ac_ct_STRIP"; then
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4687 $as_echo "$ac_ct_STRIP" >&6; }
4688 else
4689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693   if test "x$ac_ct_STRIP" = x; then
4694     STRIP=":"
4695   else
4696     case $cross_compiling:$ac_tool_warned in
4697 yes:)
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700 ac_tool_warned=yes ;;
4701 esac
4702     STRIP=$ac_ct_STRIP
4703   fi
4704 else
4705   STRIP="$ac_cv_prog_STRIP"
4706 fi
4707
4708 fi
4709 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4712 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4713 if test -z "$MKDIR_P"; then
4714   if test "${ac_cv_path_mkdir+set}" = set; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722     for ac_prog in mkdir gmkdir; do
4723          for ac_exec_ext in '' $ac_executable_extensions; do
4724            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4725            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4726              'mkdir (GNU coreutils) '* | \
4727              'mkdir (coreutils) '* | \
4728              'mkdir (fileutils) '4.1*)
4729                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4730                break 3;;
4731            esac
4732          done
4733        done
4734   done
4735 IFS=$as_save_IFS
4736
4737 fi
4738
4739   if test "${ac_cv_path_mkdir+set}" = set; then
4740     MKDIR_P="$ac_cv_path_mkdir -p"
4741   else
4742     # As a last resort, use the slow shell script.  Don't cache a
4743     # value for MKDIR_P within a source directory, because that will
4744     # break other packages using the cache if that directory is
4745     # removed, or if the value is a relative name.
4746     test -d ./--version && rmdir ./--version
4747     MKDIR_P="$ac_install_sh -d"
4748   fi
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4751 $as_echo "$MKDIR_P" >&6; }
4752
4753 mkdir_p="$MKDIR_P"
4754 case $mkdir_p in
4755   [\\/$]* | ?:[\\/]*) ;;
4756   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4757 esac
4758
4759 for ac_prog in gawk mawk nawk awk
4760 do
4761   # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_AWK+set}" = set; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   if test -n "$AWK"; then
4769   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774   IFS=$as_save_IFS
4775   test -z "$as_dir" && as_dir=.
4776     for ac_exec_ext in '' $ac_executable_extensions; do
4777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778     ac_cv_prog_AWK="$ac_prog"
4779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780     break 2
4781   fi
4782 done
4783   done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 AWK=$ac_cv_prog_AWK
4789 if test -n "$AWK"; then
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4791 $as_echo "$AWK" >&6; }
4792 else
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797
4798   test -n "$AWK" && break
4799 done
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4803 set x ${MAKE-make}
4804 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4805 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   cat >conftest.make <<\_ACEOF
4809 SHELL = /bin/sh
4810 all:
4811         @echo '@@@%%%=$(MAKE)=@@@%%%'
4812 _ACEOF
4813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4814 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4815   *@@@%%%=?*=@@@%%%*)
4816     eval ac_cv_prog_make_${ac_make}_set=yes;;
4817   *)
4818     eval ac_cv_prog_make_${ac_make}_set=no;;
4819 esac
4820 rm -f conftest.make
4821 fi
4822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4824 $as_echo "yes" >&6; }
4825   SET_MAKE=
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829   SET_MAKE="MAKE=${MAKE-make}"
4830 fi
4831
4832 rm -rf .tst 2>/dev/null
4833 mkdir .tst 2>/dev/null
4834 if test -d .tst; then
4835   am__leading_dot=.
4836 else
4837   am__leading_dot=_
4838 fi
4839 rmdir .tst 2>/dev/null
4840
4841 DEPDIR="${am__leading_dot}deps"
4842
4843 ac_config_commands="$ac_config_commands depfiles"
4844
4845
4846 am_make=${MAKE-make}
4847 cat > confinc << 'END'
4848 am__doit:
4849         @echo this is the am__doit target
4850 .PHONY: am__doit
4851 END
4852 # If we don't find an include directive, just comment out the code.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4854 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4855 am__include="#"
4856 am__quote=
4857 _am_result=none
4858 # First try GNU make style include.
4859 echo "include confinc" > confmf
4860 # Ignore all kinds of additional output from `make'.
4861 case `$am_make -s -f confmf 2> /dev/null` in #(
4862 *the\ am__doit\ target*)
4863   am__include=include
4864   am__quote=
4865   _am_result=GNU
4866   ;;
4867 esac
4868 # Now try BSD make style include.
4869 if test "$am__include" = "#"; then
4870    echo '.include "confinc"' > confmf
4871    case `$am_make -s -f confmf 2> /dev/null` in #(
4872    *the\ am__doit\ target*)
4873      am__include=.include
4874      am__quote="\""
4875      _am_result=BSD
4876      ;;
4877    esac
4878 fi
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4882 $as_echo "$_am_result" >&6; }
4883 rm -f confinc confmf
4884
4885 # Check whether --enable-dependency-tracking was given.
4886 if test "${enable_dependency_tracking+set}" = set; then :
4887   enableval=$enable_dependency_tracking;
4888 fi
4889
4890 if test "x$enable_dependency_tracking" != xno; then
4891   am_depcomp="$ac_aux_dir/depcomp"
4892   AMDEPBACKSLASH='\'
4893 fi
4894  if test "x$enable_dependency_tracking" != xno; then
4895   AMDEP_TRUE=
4896   AMDEP_FALSE='#'
4897 else
4898   AMDEP_TRUE='#'
4899   AMDEP_FALSE=
4900 fi
4901
4902
4903 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4904   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4905   # is not polluted with repeated "-I."
4906   am__isrc=' -I$(srcdir)'
4907   # test to see if srcdir already configured
4908   if test -f $srcdir/config.status; then
4909     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4910   fi
4911 fi
4912
4913 # test whether we have cygpath
4914 if test -z "$CYGPATH_W"; then
4915   if (cygpath --version) >/dev/null 2>/dev/null; then
4916     CYGPATH_W='cygpath -w'
4917   else
4918     CYGPATH_W=echo
4919   fi
4920 fi
4921
4922
4923 # Define the identity of the package.
4924  PACKAGE='libjava'
4925  VERSION='version-unused'
4926
4927
4928 cat >>confdefs.h <<_ACEOF
4929 #define PACKAGE "$PACKAGE"
4930 _ACEOF
4931
4932
4933 cat >>confdefs.h <<_ACEOF
4934 #define VERSION "$VERSION"
4935 _ACEOF
4936
4937 # Some tools Automake needs.
4938
4939 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4940
4941
4942 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4943
4944
4945 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4946
4947
4948 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4949
4950
4951 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4952
4953 # We need awk for the "check" target.  The system "awk" is bad on
4954 # some platforms.
4955 # Always define AMTAR for backward compatibility.
4956
4957 AMTAR=${AMTAR-"${am_missing_run}tar"}
4958
4959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4960
4961
4962
4963
4964 depcc="$CC"   am_compiler_list=
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4967 $as_echo_n "checking dependency style of $depcc... " >&6; }
4968 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4972   # We make a subdir and do the tests there.  Otherwise we can end up
4973   # making bogus files that we don't know about and never remove.  For
4974   # instance it was reported that on HP-UX the gcc test will end up
4975   # making a dummy file named `D' -- because `-MD' means `put the output
4976   # in D'.
4977   mkdir conftest.dir
4978   # Copy depcomp to subdir because otherwise we won't find it if we're
4979   # using a relative directory.
4980   cp "$am_depcomp" conftest.dir
4981   cd conftest.dir
4982   # We will build objects and dependencies in a subdirectory because
4983   # it helps to detect inapplicable dependency modes.  For instance
4984   # both Tru64's cc and ICC support -MD to output dependencies as a
4985   # side effect of compilation, but ICC will put the dependencies in
4986   # the current directory while Tru64 will put them in the object
4987   # directory.
4988   mkdir sub
4989
4990   am_cv_CC_dependencies_compiler_type=none
4991   if test "$am_compiler_list" = ""; then
4992      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4993   fi
4994   am__universal=false
4995   case " $depcc " in #(
4996      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4997      esac
4998
4999   for depmode in $am_compiler_list; do
5000     # Setup a source with many dependencies, because some compilers
5001     # like to wrap large dependency lists on column 80 (with \), and
5002     # we should not choose a depcomp mode which is confused by this.
5003     #
5004     # We need to recreate these files for each test, as the compiler may
5005     # overwrite some of them when testing with obscure command lines.
5006     # This happens at least with the AIX C compiler.
5007     : > sub/conftest.c
5008     for i in 1 2 3 4 5 6; do
5009       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5010       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5011       # Solaris 8's {/usr,}/bin/sh.
5012       touch sub/conftst$i.h
5013     done
5014     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5015
5016     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5017     # mode.  It turns out that the SunPro C++ compiler does not properly
5018     # handle `-M -o', and we need to detect this.  Also, some Intel
5019     # versions had trouble with output in subdirs
5020     am__obj=sub/conftest.${OBJEXT-o}
5021     am__minus_obj="-o $am__obj"
5022     case $depmode in
5023     gcc)
5024       # This depmode causes a compiler race in universal mode.
5025       test "$am__universal" = false || continue
5026       ;;
5027     nosideeffect)
5028       # after this tag, mechanisms are not by side-effect, so they'll
5029       # only be used when explicitly requested
5030       if test "x$enable_dependency_tracking" = xyes; then
5031         continue
5032       else
5033         break
5034       fi
5035       ;;
5036     msvisualcpp | msvcmsys)
5037       # This compiler won't grok `-c -o', but also, the minuso test has
5038       # not run yet.  These depmodes are late enough in the game, and
5039       # so weak that their functioning should not be impacted.
5040       am__obj=conftest.${OBJEXT-o}
5041       am__minus_obj=
5042       ;;
5043     none) break ;;
5044     esac
5045     if depmode=$depmode \
5046        source=sub/conftest.c object=$am__obj \
5047        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5048        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5049          >/dev/null 2>conftest.err &&
5050        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5051        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5052        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5053        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5054       # icc doesn't choke on unknown options, it will just issue warnings
5055       # or remarks (even with -Werror).  So we grep stderr for any message
5056       # that says an option was ignored or not supported.
5057       # When given -MP, icc 7.0 and 7.1 complain thusly:
5058       #   icc: Command line warning: ignoring option '-M'; no argument required
5059       # The diagnosis changed in icc 8.0:
5060       #   icc: Command line remark: option '-MP' not supported
5061       if (grep 'ignoring option' conftest.err ||
5062           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5063         am_cv_CC_dependencies_compiler_type=$depmode
5064         break
5065       fi
5066     fi
5067   done
5068
5069   cd ..
5070   rm -rf conftest.dir
5071 else
5072   am_cv_CC_dependencies_compiler_type=none
5073 fi
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5077 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5078 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5079
5080  if
5081   test "x$enable_dependency_tracking" != xno \
5082   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5083   am__fastdepCC_TRUE=
5084   am__fastdepCC_FALSE='#'
5085 else
5086   am__fastdepCC_TRUE='#'
5087   am__fastdepCC_FALSE=
5088 fi
5089
5090
5091 depcc="$CXX"  am_compiler_list=
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5094 $as_echo_n "checking dependency style of $depcc... " >&6; }
5095 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5099   # We make a subdir and do the tests there.  Otherwise we can end up
5100   # making bogus files that we don't know about and never remove.  For
5101   # instance it was reported that on HP-UX the gcc test will end up
5102   # making a dummy file named `D' -- because `-MD' means `put the output
5103   # in D'.
5104   mkdir conftest.dir
5105   # Copy depcomp to subdir because otherwise we won't find it if we're
5106   # using a relative directory.
5107   cp "$am_depcomp" conftest.dir
5108   cd conftest.dir
5109   # We will build objects and dependencies in a subdirectory because
5110   # it helps to detect inapplicable dependency modes.  For instance
5111   # both Tru64's cc and ICC support -MD to output dependencies as a
5112   # side effect of compilation, but ICC will put the dependencies in
5113   # the current directory while Tru64 will put them in the object
5114   # directory.
5115   mkdir sub
5116
5117   am_cv_CXX_dependencies_compiler_type=none
5118   if test "$am_compiler_list" = ""; then
5119      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5120   fi
5121   am__universal=false
5122   case " $depcc " in #(
5123      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5124      esac
5125
5126   for depmode in $am_compiler_list; do
5127     # Setup a source with many dependencies, because some compilers
5128     # like to wrap large dependency lists on column 80 (with \), and
5129     # we should not choose a depcomp mode which is confused by this.
5130     #
5131     # We need to recreate these files for each test, as the compiler may
5132     # overwrite some of them when testing with obscure command lines.
5133     # This happens at least with the AIX C compiler.
5134     : > sub/conftest.c
5135     for i in 1 2 3 4 5 6; do
5136       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5137       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5138       # Solaris 8's {/usr,}/bin/sh.
5139       touch sub/conftst$i.h
5140     done
5141     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5142
5143     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5144     # mode.  It turns out that the SunPro C++ compiler does not properly
5145     # handle `-M -o', and we need to detect this.  Also, some Intel
5146     # versions had trouble with output in subdirs
5147     am__obj=sub/conftest.${OBJEXT-o}
5148     am__minus_obj="-o $am__obj"
5149     case $depmode in
5150     gcc)
5151       # This depmode causes a compiler race in universal mode.
5152       test "$am__universal" = false || continue
5153       ;;
5154     nosideeffect)
5155       # after this tag, mechanisms are not by side-effect, so they'll
5156       # only be used when explicitly requested
5157       if test "x$enable_dependency_tracking" = xyes; then
5158         continue
5159       else
5160         break
5161       fi
5162       ;;
5163     msvisualcpp | msvcmsys)
5164       # This compiler won't grok `-c -o', but also, the minuso test has
5165       # not run yet.  These depmodes are late enough in the game, and
5166       # so weak that their functioning should not be impacted.
5167       am__obj=conftest.${OBJEXT-o}
5168       am__minus_obj=
5169       ;;
5170     none) break ;;
5171     esac
5172     if depmode=$depmode \
5173        source=sub/conftest.c object=$am__obj \
5174        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5175        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5176          >/dev/null 2>conftest.err &&
5177        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5178        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5179        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5180        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5181       # icc doesn't choke on unknown options, it will just issue warnings
5182       # or remarks (even with -Werror).  So we grep stderr for any message
5183       # that says an option was ignored or not supported.
5184       # When given -MP, icc 7.0 and 7.1 complain thusly:
5185       #   icc: Command line warning: ignoring option '-M'; no argument required
5186       # The diagnosis changed in icc 8.0:
5187       #   icc: Command line remark: option '-MP' not supported
5188       if (grep 'ignoring option' conftest.err ||
5189           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5190         am_cv_CXX_dependencies_compiler_type=$depmode
5191         break
5192       fi
5193     fi
5194   done
5195
5196   cd ..
5197   rm -rf conftest.dir
5198 else
5199   am_cv_CXX_dependencies_compiler_type=none
5200 fi
5201
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5204 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5205 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5206
5207  if
5208   test "x$enable_dependency_tracking" != xno \
5209   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5210   am__fastdepCXX_TRUE=
5211   am__fastdepCXX_FALSE='#'
5212 else
5213   am__fastdepCXX_TRUE='#'
5214   am__fastdepCXX_FALSE=
5215 fi
5216
5217
5218
5219
5220 if test -n "$ac_tool_prefix"; then
5221   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}as; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_prog_AS+set}" = set; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   if test -n "$AS"; then
5229   ac_cv_prog_AS="$AS" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238     ac_cv_prog_AS="${ac_tool_prefix}as"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 AS=$ac_cv_prog_AS
5249 if test -n "$AS"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5251 $as_echo "$AS" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_AS"; then
5260   ac_ct_AS=$AS
5261   # Extract the first word of "as", so it can be a program name with args.
5262 set dummy as; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   if test -n "$ac_ct_AS"; then
5269   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278     ac_cv_prog_ac_ct_AS="as"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5289 if test -n "$ac_ct_AS"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5291 $as_echo "$ac_ct_AS" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297   if test "x$ac_ct_AS" = x; then
5298     AS=""
5299   else
5300     case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306     AS=$ac_ct_AS
5307   fi
5308 else
5309   AS="$ac_cv_prog_AS"
5310 fi
5311
5312 if test -n "$ac_tool_prefix"; then
5313   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}ld; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_LD+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$LD"; then
5321   ac_cv_prog_LD="$LD" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328     for ac_exec_ext in '' $ac_executable_extensions; do
5329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330     ac_cv_prog_LD="${ac_tool_prefix}ld"
5331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335   done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 LD=$ac_cv_prog_LD
5341 if test -n "$LD"; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5343 $as_echo "$LD" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 fi
5351 if test -z "$ac_cv_prog_LD"; then
5352   ac_ct_LD=$LD
5353   # Extract the first word of "ld", so it can be a program name with args.
5354 set dummy ld; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$ac_ct_LD"; then
5361   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370     ac_cv_prog_ac_ct_LD="ld"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5381 if test -n "$ac_ct_LD"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5383 $as_echo "$ac_ct_LD" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389   if test "x$ac_ct_LD" = x; then
5390     LD=""
5391   else
5392     case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398     LD=$ac_ct_LD
5399   fi
5400 else
5401   LD="$ac_cv_prog_LD"
5402 fi
5403
5404 if test -n "$ac_tool_prefix"; then
5405   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}ar; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_AR+set}" = set; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   if test -n "$AR"; then
5413   ac_cv_prog_AR="$AR" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418   IFS=$as_save_IFS
5419   test -z "$as_dir" && as_dir=.
5420     for ac_exec_ext in '' $ac_executable_extensions; do
5421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422     ac_cv_prog_AR="${ac_tool_prefix}ar"
5423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424     break 2
5425   fi
5426 done
5427   done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 AR=$ac_cv_prog_AR
5433 if test -n "$AR"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5435 $as_echo "$AR" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 fi
5443 if test -z "$ac_cv_prog_AR"; then
5444   ac_ct_AR=$AR
5445   # Extract the first word of "ar", so it can be a program name with args.
5446 set dummy ar; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$ac_ct_AR"; then
5453   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462     ac_cv_prog_ac_ct_AR="ar"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5473 if test -n "$ac_ct_AR"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5475 $as_echo "$ac_ct_AR" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481   if test "x$ac_ct_AR" = x; then
5482     AR=""
5483   else
5484     case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490     AR=$ac_ct_AR
5491   fi
5492 else
5493   AR="$ac_cv_prog_AR"
5494 fi
5495
5496 if test -n "$ac_tool_prefix"; then
5497   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   if test -n "$RANLIB"; then
5505   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519   done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 RANLIB=$ac_cv_prog_RANLIB
5525 if test -n "$RANLIB"; then
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5527 $as_echo "$RANLIB" >&6; }
5528 else
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 fi
5535 if test -z "$ac_cv_prog_RANLIB"; then
5536   ac_ct_RANLIB=$RANLIB
5537   # Extract the first word of "ranlib", so it can be a program name with args.
5538 set dummy ranlib; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -n "$ac_ct_RANLIB"; then
5545   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552     for ac_exec_ext in '' $ac_executable_extensions; do
5553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554     ac_cv_prog_ac_ct_RANLIB="ranlib"
5555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5565 if test -n "$ac_ct_RANLIB"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5567 $as_echo "$ac_ct_RANLIB" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573   if test "x$ac_ct_RANLIB" = x; then
5574     RANLIB=":"
5575   else
5576     case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582     RANLIB=$ac_ct_RANLIB
5583   fi
5584 else
5585   RANLIB="$ac_cv_prog_RANLIB"
5586 fi
5587
5588 if test -n "$ac_tool_prefix"; then
5589   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5590 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if test -n "$DLLTOOL"; then
5597   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604     for ac_exec_ext in '' $ac_executable_extensions; do
5605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611   done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 DLLTOOL=$ac_cv_prog_DLLTOOL
5617 if test -n "$DLLTOOL"; then
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5619 $as_echo "$DLLTOOL" >&6; }
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 fi
5627 if test -z "$ac_cv_prog_DLLTOOL"; then
5628   ac_ct_DLLTOOL=$DLLTOOL
5629   # Extract the first word of "dlltool", so it can be a program name with args.
5630 set dummy dlltool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   if test -n "$ac_ct_DLLTOOL"; then
5637   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644     for ac_exec_ext in '' $ac_executable_extensions; do
5645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651   done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5657 if test -n "$ac_ct_DLLTOOL"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5659 $as_echo "$ac_ct_DLLTOOL" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665   if test "x$ac_ct_DLLTOOL" = x; then
5666     DLLTOOL=":"
5667   else
5668     case $cross_compiling:$ac_tool_warned in
5669 yes:)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672 ac_tool_warned=yes ;;
5673 esac
5674     DLLTOOL=$ac_ct_DLLTOOL
5675   fi
5676 else
5677   DLLTOOL="$ac_cv_prog_DLLTOOL"
5678 fi
5679
5680 for ac_prog in gawk mawk nawk awk
5681 do
5682   # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if test "${ac_cv_prog_AWK+set}" = set; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if test -n "$AWK"; then
5690   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697     for ac_exec_ext in '' $ac_executable_extensions; do
5698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699     ac_cv_prog_AWK="$ac_prog"
5700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704   done
5705 IFS=$as_save_IFS
5706
5707 fi
5708 fi
5709 AWK=$ac_cv_prog_AWK
5710 if test -n "$AWK"; then
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5712 $as_echo "$AWK" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718
5719   test -n "$AWK" && break
5720 done
5721
5722 for ac_prog in jar fastjar gjar
5723 do
5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if test "${ac_cv_prog_JAR+set}" = set; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   if test -n "$JAR"; then
5732   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739     for ac_exec_ext in '' $ac_executable_extensions; do
5740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741     ac_cv_prog_JAR="$ac_prog"
5742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746   done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 JAR=$ac_cv_prog_JAR
5752 if test -n "$JAR"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5754 $as_echo "$JAR" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761   test -n "$JAR" && break
5762 done
5763 test -n "$JAR" || JAR="no"
5764
5765 # Extract the first word of "zip", so it can be a program name with args.
5766 set dummy zip; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if test "${ac_cv_path_ZIP+set}" = set; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   case $ZIP in
5773   [\\/]* | ?:[\\/]*)
5774   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5775   ;;
5776   *)
5777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791
5792   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5793   ;;
5794 esac
5795 fi
5796 ZIP=$ac_cv_path_ZIP
5797 if test -n "$ZIP"; then
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5799 $as_echo "$ZIP" >&6; }
5800 else
5801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5803 fi
5804
5805
5806 # Extract the first word of "unzip", so it can be a program name with args.
5807 set dummy unzip; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_path_UNZIP+set}" = set; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $UNZIP in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5834   ;;
5835 esac
5836 fi
5837 UNZIP=$ac_cv_path_UNZIP
5838 if test -n "$UNZIP"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5840 $as_echo "$UNZIP" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847
5848 # We need a jar that supports -@.  This is a GNU extension.
5849 if test "$JAR" != no; then
5850    rm -f config-test.jar
5851    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5852    if test -f config-test.jar; then
5853      rm -f config-test.jar
5854    else
5855      JAR=no
5856    fi
5857 fi
5858
5859 # Prefer the jar we found, but fall back to our jar script.
5860 if test "$JAR" = no; then
5861   if test "$ZIP" = no; then
5862     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5863   else
5864     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5865     JAR=`pwd`/scripts/jar
5866   fi
5867 fi
5868
5869
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5873 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5874     # Check whether --enable-maintainer-mode was given.
5875 if test "${enable_maintainer_mode+set}" = set; then :
5876   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5877 else
5878   USE_MAINTAINER_MODE=no
5879 fi
5880
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5882 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5883    if test $USE_MAINTAINER_MODE = yes; then
5884   MAINTAINER_MODE_TRUE=
5885   MAINTAINER_MODE_FALSE='#'
5886 else
5887   MAINTAINER_MODE_TRUE='#'
5888   MAINTAINER_MODE_FALSE=
5889 fi
5890
5891   MAINT=$MAINTAINER_MODE_TRUE
5892
5893
5894
5895
5896
5897 # configure.host sets the following important variables
5898 #       libgcj_cflags    - host specific C compiler flags
5899 #       libgcj_cxxflags  - host specific C++ compiler flags
5900 #       libgcj_javaflags - host specific Java compiler flags
5901 #       libgcj_sublib_ltflags - host specific Libtool flags
5902 #       libgcj_sublib_core_extra_deps - host specific extra
5903 #                          dependencies for core sublib
5904 #       (these last two only used when building sublibs)
5905 # and a number of others; see the list at the start of the file.
5906
5907 libgcj_cflags=
5908 libgcj_cxxflags=
5909 libgcj_javaflags=
5910 libgcj_sublib_ltflags=
5911 libgcj_sublib_core_extra_deps=
5912
5913 . ${srcdir}/configure.host
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5917 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5921 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5922   acl_cv_prog_gnu_ld=yes
5923 else
5924   acl_cv_prog_gnu_ld=no
5925 fi
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5928 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5929 with_gnu_ld=$acl_cv_prog_gnu_ld
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5932 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5933 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936
5937 acl_cv_prog_gnu_ld_symbolic=no
5938
5939 if test x"$with_gnu_ld" = x"yes"; then
5940   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5941     acl_cv_prog_gnu_ld_symbolic=yes
5942   fi
5943 fi
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5946 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5947 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5948   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5949 else
5950   SYMBOLIC_LDFLAGS=''
5951 fi
5952
5953 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5954 if test -z "$libgcj_ld_symbolic"; then
5955   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5956 fi
5957
5958 LIBGCJ_CFLAGS="${libgcj_cflags}"
5959 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5960 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5961 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5962 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5963 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5964 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5965
5966
5967
5968
5969
5970
5971
5972
5973 # Only use libltdl for non-newlib builds.
5974 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5976 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5977 library_names_spec=
5978 libname_spec='lib$name'
5979 soname_spec=
5980 shrext=".so"
5981 postinstall_cmds=
5982 postuninstall_cmds=
5983 finish_cmds=
5984 finish_eval=
5985 shlibpath_var=
5986 shlibpath_overrides_runpath=unknown
5987 version_type=none
5988 dynamic_linker="$host_os ld.so"
5989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5990 if test "$GCC" = yes; then
5991   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5992   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5993     # if the path contains ";" then we assume it to be the separator
5994     # otherwise default to the standard path separator (i.e. ":") - it is
5995     # assumed that no part of a normal pathname contains ";" but that should
5996     # okay in the real world where ";" in dirpaths is itself problematic.
5997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5998   else
5999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6000   fi
6001 else
6002   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6003 fi
6004 need_lib_prefix=unknown
6005 hardcode_into_libs=no
6006
6007 # when you set need_version to no, make sure it does not cause -set_version
6008 # flags to be left without arguments
6009 need_version=unknown
6010
6011 case $host_os in
6012 aix3*)
6013   version_type=linux
6014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6015   shlibpath_var=LIBPATH
6016
6017   # AIX 3 has no versioning support, so we append a major version to the name.
6018   soname_spec='${libname}${release}${shared_ext}$major'
6019   ;;
6020
6021 aix[4-9]*)
6022   version_type=linux
6023   need_lib_prefix=no
6024   need_version=no
6025   hardcode_into_libs=yes
6026   if test "$host_cpu" = ia64; then
6027     # AIX 5 supports IA64
6028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6029     shlibpath_var=LD_LIBRARY_PATH
6030   else
6031     # With GCC up to 2.95.x, collect2 would create an import file
6032     # for dependence libraries.  The import file would start with
6033     # the line `#! .'.  This would cause the generated library to
6034     # depend on `.', always an invalid library.  This was fixed in
6035     # development snapshots of GCC prior to 3.0.
6036     case $host_os in
6037       aix4 | aix4.[01] | aix4.[01].*)
6038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6039            echo ' yes '
6040            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6041         :
6042       else
6043         can_build_shared=no
6044       fi
6045       ;;
6046     esac
6047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6048     # soname into executable. Probably we can add versioning support to
6049     # collect2, so additional links can be useful in future.
6050     if test "$aix_use_runtimelinking" = yes; then
6051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6052       # instead of lib<name>.a to let people know that these are not
6053       # typical AIX shared libraries.
6054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6055     else
6056       # We preserve .a as extension for shared libraries through AIX4.2
6057       # and later when we are not doing run time linking.
6058       library_names_spec='${libname}${release}.a $libname.a'
6059       soname_spec='${libname}${release}${shared_ext}$major'
6060     fi
6061     shlibpath_var=LIBPATH
6062   fi
6063   ;;
6064
6065 amigaos*)
6066   library_names_spec='$libname.ixlibrary $libname.a'
6067   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6068   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'
6069   ;;
6070
6071 beos*)
6072   library_names_spec='${libname}${shared_ext}'
6073   dynamic_linker="$host_os ld.so"
6074   shlibpath_var=LIBRARY_PATH
6075   ;;
6076
6077 bsdi4*)
6078   version_type=linux
6079   need_version=no
6080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6081   soname_spec='${libname}${release}${shared_ext}$major'
6082   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6083   shlibpath_var=LD_LIBRARY_PATH
6084   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6085   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6086   # the default ld.so.conf also contains /usr/contrib/lib and
6087   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6088   # libtool to hard-code these into programs
6089   ;;
6090
6091 cygwin* | mingw* | pw32*)
6092   version_type=windows
6093   shrext=".dll"
6094   need_version=no
6095   need_lib_prefix=no
6096
6097   case $GCC,$host_os in
6098   yes,cygwin* | yes,mingw* | yes,pw32*)
6099     library_names_spec='$libname.dll.a'
6100     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6101     postinstall_cmds='base_file=`basename \${file}`~
6102       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6103       dldir=$destdir/`dirname \$dlpath`~
6104       test -d \$dldir || mkdir -p \$dldir~
6105       $install_prog $dir/$dlname \$dldir/$dlname'
6106     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6107       dlpath=$dir/\$dldll~
6108        $rm \$dlpath'
6109     shlibpath_overrides_runpath=yes
6110
6111     case $host_os in
6112     cygwin*)
6113       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6114       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6115       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6116       ;;
6117     mingw*)
6118       # MinGW DLLs use traditional 'lib' prefix
6119       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6120       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6121       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6122         # It is most probably a Windows format PATH printed by
6123         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6124         # path with ; separators, and with drive letters. We can handle the
6125         # drive letters (cygwin fileutils understands them), so leave them,
6126         # especially as we might pass files found there to a mingw objdump,
6127         # which wouldn't understand a cygwinified path. Ahh.
6128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6129       else
6130         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6131       fi
6132       ;;
6133     pw32*)
6134       # pw32 DLLs use 'pw' prefix rather than 'lib'
6135       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6136       ;;
6137     esac
6138     ;;
6139
6140   *)
6141     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6142     ;;
6143   esac
6144   dynamic_linker='Win32 ld.exe'
6145   # FIXME: first we should search . and the directory the executable is in
6146   shlibpath_var=PATH
6147   ;;
6148
6149 darwin* | rhapsody*)
6150   dynamic_linker="$host_os dyld"
6151   version_type=darwin
6152   need_lib_prefix=no
6153   need_version=no
6154   # FIXME: Relying on posixy $() will cause problems for
6155   #        cross-compilation, but unfortunately the echo tests do not
6156   #        yet detect zsh echo's removal of \ escapes.
6157   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6158   soname_spec='${libname}${release}${major}$shared_ext'
6159   shlibpath_overrides_runpath=yes
6160   shlibpath_var=DYLD_LIBRARY_PATH
6161   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6162   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6163   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6164   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6165   fi
6166   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6167   ;;
6168
6169 dgux*)
6170   version_type=linux
6171   need_lib_prefix=no
6172   need_version=no
6173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6174   soname_spec='${libname}${release}${shared_ext}$major'
6175   shlibpath_var=LD_LIBRARY_PATH
6176   ;;
6177
6178 freebsd*)
6179   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6180   version_type=freebsd-$objformat
6181   case $version_type in
6182     freebsd-elf*)
6183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6184       need_version=no
6185       need_lib_prefix=no
6186       ;;
6187     freebsd-*)
6188       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6189       need_version=yes
6190       ;;
6191   esac
6192   shlibpath_var=LD_LIBRARY_PATH
6193   case $host_os in
6194   freebsd2*)
6195     shlibpath_overrides_runpath=yes
6196     ;;
6197   freebsd3.01* | freebsdelf3.01*)
6198     shlibpath_overrides_runpath=yes
6199     hardcode_into_libs=yes
6200     ;;
6201   *) # from 3.2 on
6202     shlibpath_overrides_runpath=no
6203     hardcode_into_libs=yes
6204     ;;
6205   esac
6206   ;;
6207
6208 gnu*)
6209   version_type=linux
6210   need_lib_prefix=no
6211   need_version=no
6212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6213   soname_spec='${libname}${release}${shared_ext}$major'
6214   shlibpath_var=LD_LIBRARY_PATH
6215   hardcode_into_libs=yes
6216   ;;
6217
6218 hpux9* | hpux10* | hpux11*)
6219   # Give a soname corresponding to the major version so that dld.sl refuses to
6220   # link against other versions.
6221   version_type=sunos
6222   need_lib_prefix=no
6223   need_version=no
6224   case "$host_cpu" in
6225   ia64*)
6226     shrext='.so'
6227     hardcode_into_libs=yes
6228     dynamic_linker="$host_os dld.so"
6229     shlibpath_var=LD_LIBRARY_PATH
6230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6232     soname_spec='${libname}${release}${shared_ext}$major'
6233     if test "X$HPUX_IA64_MODE" = X32; then
6234       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6235     else
6236       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6237     fi
6238     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6239     ;;
6240    hppa*64*)
6241      shrext='.sl'
6242      hardcode_into_libs=yes
6243      dynamic_linker="$host_os dld.sl"
6244      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6245      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6247      soname_spec='${libname}${release}${shared_ext}$major'
6248      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6249      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6250      ;;
6251    *)
6252     shrext='.sl'
6253     dynamic_linker="$host_os dld.sl"
6254     shlibpath_var=SHLIB_PATH
6255     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6257     soname_spec='${libname}${release}${shared_ext}$major'
6258     ;;
6259   esac
6260   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6261   postinstall_cmds='chmod 555 $lib'
6262   ;;
6263
6264 irix5* | irix6* | nonstopux*)
6265   case $host_os in
6266     nonstopux*) version_type=nonstopux ;;
6267     *)
6268         if test "$lt_cv_prog_gnu_ld" = yes; then
6269                 version_type=linux
6270         else
6271                 version_type=irix
6272         fi ;;
6273   esac
6274   need_lib_prefix=no
6275   need_version=no
6276   soname_spec='${libname}${release}${shared_ext}$major'
6277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6278   case $host_os in
6279   irix5* | nonstopux*)
6280     libsuff= shlibsuff=
6281     ;;
6282   *)
6283     case $LD in # libtool.m4 will add one of these switches to LD
6284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6285       libsuff= shlibsuff= libmagic=32-bit;;
6286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6287       libsuff=32 shlibsuff=N32 libmagic=N32;;
6288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6290     *) libsuff= shlibsuff= libmagic=never-match;;
6291     esac
6292     ;;
6293   esac
6294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6295   shlibpath_overrides_runpath=no
6296   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6297   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6298   hardcode_into_libs=yes
6299   ;;
6300
6301 # No shared lib support for Linux oldld, aout, or coff.
6302 linux*oldld* | linux*aout* | linux*coff*)
6303   dynamic_linker=no
6304   ;;
6305
6306 # This must be Linux ELF.
6307 linux*|k*bsd*-gnu)
6308   version_type=linux
6309   need_lib_prefix=no
6310   need_version=no
6311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6312   soname_spec='${libname}${release}${shared_ext}$major'
6313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6314   shlibpath_var=LD_LIBRARY_PATH
6315   shlibpath_overrides_runpath=no
6316   # This implies no fast_install, which is unacceptable.
6317   # Some rework will be needed to allow for fast_install
6318   # before this can be enabled.
6319   hardcode_into_libs=yes
6320
6321   # We used to test for /lib/ld.so.1 and disable shared libraries on
6322   # powerpc, because MkLinux only supported shared libraries with the
6323   # GNU dynamic linker.  Since this was broken with cross compilers,
6324   # most powerpc-linux boxes support dynamic linking these days and
6325   # people can always --disable-shared, the test was removed, and we
6326   # assume the GNU/Linux dynamic linker is in use.
6327   dynamic_linker='GNU/Linux ld.so'
6328   ;;
6329
6330 netbsd*)
6331   version_type=sunos
6332   need_lib_prefix=no
6333   need_version=no
6334   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6336     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6337     dynamic_linker='NetBSD (a.out) ld.so'
6338   else
6339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6340     soname_spec='${libname}${release}${shared_ext}$major'
6341     dynamic_linker='NetBSD ld.elf_so'
6342   fi
6343   shlibpath_var=LD_LIBRARY_PATH
6344   shlibpath_overrides_runpath=yes
6345   hardcode_into_libs=yes
6346   ;;
6347
6348 newsos6)
6349   version_type=linux
6350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6351   shlibpath_var=LD_LIBRARY_PATH
6352   shlibpath_overrides_runpath=yes
6353   ;;
6354
6355 nto-qnx)
6356   version_type=linux
6357   need_lib_prefix=no
6358   need_version=no
6359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6360   soname_spec='${libname}${release}${shared_ext}$major'
6361   shlibpath_var=LD_LIBRARY_PATH
6362   shlibpath_overrides_runpath=yes
6363   ;;
6364
6365 openbsd*)
6366   version_type=sunos
6367   need_lib_prefix=no
6368   need_version=no
6369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6370   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6371   shlibpath_var=LD_LIBRARY_PATH
6372   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6373     case $host_os in
6374       openbsd2.[89] | openbsd2.[89].*)
6375         shlibpath_overrides_runpath=no
6376         ;;
6377       *)
6378         shlibpath_overrides_runpath=yes
6379         ;;
6380       esac
6381   else
6382     shlibpath_overrides_runpath=yes
6383   fi
6384   ;;
6385
6386 os2*)
6387   libname_spec='$name'
6388   shrext=".dll"
6389   need_lib_prefix=no
6390   library_names_spec='$libname${shared_ext} $libname.a'
6391   dynamic_linker='OS/2 ld.exe'
6392   shlibpath_var=LIBPATH
6393   ;;
6394
6395 osf3* | osf4* | osf5*)
6396   version_type=osf
6397   need_lib_prefix=no
6398   need_version=no
6399   soname_spec='${libname}${release}${shared_ext}$major'
6400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6401   shlibpath_var=LD_LIBRARY_PATH
6402   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6403   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6404   ;;
6405
6406 sco3.2v5*)
6407   version_type=osf
6408   soname_spec='${libname}${release}${shared_ext}$major'
6409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6410   shlibpath_var=LD_LIBRARY_PATH
6411   ;;
6412
6413 solaris*)
6414   version_type=linux
6415   need_lib_prefix=no
6416   need_version=no
6417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6418   soname_spec='${libname}${release}${shared_ext}$major'
6419   shlibpath_var=LD_LIBRARY_PATH
6420   shlibpath_overrides_runpath=yes
6421   hardcode_into_libs=yes
6422   # ldd complains unless libraries are executable
6423   postinstall_cmds='chmod +x $lib'
6424   ;;
6425
6426 sunos4*)
6427   version_type=sunos
6428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6429   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6430   shlibpath_var=LD_LIBRARY_PATH
6431   shlibpath_overrides_runpath=yes
6432   if test "$with_gnu_ld" = yes; then
6433     need_lib_prefix=no
6434   fi
6435   need_version=yes
6436   ;;
6437
6438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6439   version_type=linux
6440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6441   soname_spec='${libname}${release}${shared_ext}$major'
6442   shlibpath_var=LD_LIBRARY_PATH
6443   case $host_vendor in
6444     sni)
6445       shlibpath_overrides_runpath=no
6446       need_lib_prefix=no
6447       export_dynamic_flag_spec='${wl}-Blargedynsym'
6448       runpath_var=LD_RUN_PATH
6449       ;;
6450     siemens)
6451       need_lib_prefix=no
6452       ;;
6453     motorola)
6454       need_lib_prefix=no
6455       need_version=no
6456       shlibpath_overrides_runpath=no
6457       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6458       ;;
6459   esac
6460   ;;
6461
6462 sysv4*MP*)
6463   if test -d /usr/nec ;then
6464     version_type=linux
6465     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6466     soname_spec='$libname${shared_ext}.$major'
6467     shlibpath_var=LD_LIBRARY_PATH
6468   fi
6469   ;;
6470
6471 uts4*)
6472   version_type=linux
6473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6474   soname_spec='${libname}${release}${shared_ext}$major'
6475   shlibpath_var=LD_LIBRARY_PATH
6476   ;;
6477
6478 *)
6479   dynamic_linker=no
6480   ;;
6481 esac
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6483 $as_echo "$dynamic_linker" >&6; }
6484 test "$dynamic_linker" = no && can_build_shared=no
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6488 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6489 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   libltdl_cv_shlibpath_var="$shlibpath_var"
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6495 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6496 if test -n "$libltdl_cv_shlibpath_var"; then
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6500 _ACEOF
6501
6502 fi
6503
6504 fi
6505
6506 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6507
6508
6509 # Possibly build libgcj as many sub-libraries.
6510 # Check whether --enable-libgcj-sublibs was given.
6511 if test "${enable_libgcj_sublibs+set}" = set; then :
6512   enableval=$enable_libgcj_sublibs;
6513 fi
6514
6515
6516 if test -z "$enable_libgcj_sublibs"; then
6517    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6518 fi
6519  if test "$enable_libgcj_sublibs" = yes; then
6520   BUILD_SUBLIBS_TRUE=
6521   BUILD_SUBLIBS_FALSE='#'
6522 else
6523   BUILD_SUBLIBS_TRUE='#'
6524   BUILD_SUBLIBS_FALSE=
6525 fi
6526
6527 if test "$enable_libgcj_sublibs" = yes ; then
6528   # In theory we could make do with only one override and simply
6529   # tag "_bc" onto the end of it when we use it to generate the
6530   # spec, but that's an ugly thing to do when there are multiple
6531   # words in the string and you're relying on the ordering to
6532   # append the correct one.
6533   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6534   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6535 fi
6536
6537
6538 # See if the user has requested runtime debugging.
6539 LIBGCJDEBUG="disable"
6540
6541 # Check whether --enable-libgcj-debug was given.
6542 if test "${enable_libgcj_debug+set}" = set; then :
6543   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6544
6545 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6546
6547     LIBGCJDEBUG="enable"
6548   fi
6549 fi
6550
6551
6552
6553 # Check whether --with-escher was given.
6554 if test "${with_escher+set}" = set; then :
6555   withval=$with_escher;
6556 fi
6557
6558 case "$with_escher" in
6559 "")
6560         use_escher=false
6561         ;;
6562 "no")
6563         use_escher=false
6564         ;;
6565 "yes")
6566         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6567         ;;
6568 *)
6569         use_escher=true
6570         ;;
6571 esac
6572
6573 # Determine which AWT peer libraries to build
6574 # Check whether --enable-java-awt was given.
6575 if test "${enable_java_awt+set}" = set; then :
6576   enableval=$enable_java_awt;
6577 fi
6578
6579
6580 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6581 use_xlib_awt=""
6582 use_gtk_awt=""
6583 use_qt_awt=""
6584 use_x_awt=""
6585 # The default toolkit to use is the first one specified.
6586 TOOLKIT=
6587
6588
6589 for peer in $peerlibs ; do
6590   case $peer in
6591     xlib)
6592       if test "$no_x" = yes; then
6593         echo "*** xlib peers requested but no X library available" 1>&2
6594         exit 1
6595       else
6596         use_xlib_awt="yes"
6597         if test -z "$TOOLKIT"; then
6598            TOOLKIT=gnu.awt.xlib.XToolkit
6599         fi
6600       fi
6601       ;;
6602     gtk)
6603       if test "$no_x" = yes; then
6604          echo "*** gtk peers requested but no X library available" 1>&2
6605          exit 1
6606       else
6607          use_gtk_awt=yes
6608          if test -z "$TOOLKIT"; then
6609             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6610          fi
6611       fi
6612       ;;
6613     qt)
6614       if test "$no_x" = yes; then
6615          # Perhaps we should admit the possibility of embedded Qt.
6616          echo "*** Qt peers requested but no X library available" 1>&2
6617          exit 1
6618       else
6619          use_qt_awt=yes
6620          if test -z "$TOOLKIT"; then
6621             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6622          fi
6623       fi
6624       ;;
6625     x)
6626       use_x_awt=yes
6627       if test -z "$TOOLKIT"; then
6628          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6629       fi
6630       ;;
6631     no)
6632       use_xlib_awt=
6633       use_gtk_awt=
6634       use_qt_awt=
6635       use_x_awt=
6636       break
6637       ;;
6638     *)
6639       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6640       exit 1
6641   esac
6642 done
6643
6644  if test "$use_xlib_awt" = yes; then
6645   XLIB_AWT_TRUE=
6646   XLIB_AWT_FALSE='#'
6647 else
6648   XLIB_AWT_TRUE='#'
6649   XLIB_AWT_FALSE=
6650 fi
6651
6652  if test "$use_x_awt" = yes; then
6653   X_AWT_TRUE=
6654   X_AWT_FALSE='#'
6655 else
6656   X_AWT_TRUE='#'
6657   X_AWT_FALSE=
6658 fi
6659
6660
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define AWT_TOOLKIT "$TOOLKIT"
6664 _ACEOF
6665
6666
6667 expanded_prefix=$prefix
6668 if test "X$prefix" = XNONE; then
6669   expanded_prefix=${ac_default_prefix}
6670 fi
6671
6672
6673 cat >>confdefs.h <<_ACEOF
6674 #define LIBGCJ_PREFIX "$expanded_prefix"
6675 _ACEOF
6676
6677
6678 # Create standard.omit based on decisions we just made.
6679 cp $srcdir/standard.omit.in standard.omit
6680 if test "$use_xlib_awt" != yes; then
6681    echo gnu/awt/xlib >> standard.omit
6682    echo gnu/gcj/xlib >> standard.omit
6683 fi
6684 if test "$use_x_awt" != yes; then
6685    echo gnu/java/awt/peer/x >> standard.omit
6686 fi
6687
6688 # Tools that need to be compiled against classpath's tools classes
6689 : > vm-tools-packages
6690 for package in gnu/gcj/tools/gc_analyze ; do
6691     echo $package >> standard.omit
6692     echo $package >> vm-tools-packages
6693 done
6694
6695 if test -z "${with_multisubdir}"; then
6696    builddotdot=.
6697 else
6698    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6699 fi
6700
6701 NATIVE=yes
6702
6703 # Which gcj and host gcj (for ecjx) do we use?
6704 which_gcj=default
6705 host_exeext=${ac_exeext}
6706 GCJ_FOR_ECJX='$(GCJ)'
6707 GCC_FOR_ECJX='$(CXX)'
6708 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6709 if test -n "${with_cross_host}"; then
6710   # We are being configured with a cross compiler. We can't
6711   # use ac_exeext, because that is for the target platform.
6712   NATIVE=no
6713   cross_host_exeext=
6714   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6715   GCC_FOR_ECJX="${with_cross_host}-gcc"
6716   case "${with_cross_host}" in
6717      *mingw* | *cygwin*)
6718          cross_host_exeext=.exe
6719      ;;
6720   esac
6721   host_exeext=${cross_host_exeext}
6722   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6723      if test x"$build_noncanonical" = x"$with_cross_host"; then
6724         # Ordinary cross (host!=target and host=build)
6725         which_gcj=built
6726      else
6727         # Canadian cross (host!=target and host!=build)
6728         which_gcj=cross
6729      fi
6730   else
6731      which_gcj=cross
6732   fi
6733 else
6734   # We are being configured with a native or crossed-native compiler
6735   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6736      if test x"$build" = x"$host"; then
6737         # True native build (host=target and host=build)
6738         which_gcj=built
6739      else
6740         # Crossed-native build (host=target and host!=build)
6741         which_gcj=cross
6742      fi
6743   else
6744      which_gcj=path
6745   fi
6746 fi
6747 libgcjdir=`${PWDCMD-pwd}`
6748 case $GCJ in
6749 *" -B"*)
6750   # Just in case there is a comma in the build dir, quote it for the
6751   # sed command below.
6752   case $libgcjdir in
6753   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6754   *) qlibgcjdir=$libgcjdir;;
6755   esac
6756   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6757   ;;
6758 *)
6759   GCJ=$GCJ" -B$libgcjdir/"
6760   ;;
6761 esac
6762 case "${which_gcj}" in
6763    built)
6764       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6765    ;;
6766    cross)
6767       if test "x${with_newlib}" = "xyes"; then
6768          # FIXME (comment): Why is this needed?
6769          GCC_UNWIND_INCLUDE=
6770       fi
6771       GCJH='$(target_noncanonical)-gcjh'
6772    ;;
6773    path)
6774       GCJH=gcjh
6775    ;;
6776 esac
6777 JAVAC="$GCJ -C"
6778 export JAVAC
6779
6780
6781
6782
6783
6784
6785 # Create it, so that compile/link tests don't fail
6786 test -f libgcj.spec || touch libgcj.spec
6787
6788
6789
6790 # Set up to configure Classpath.
6791 # FIXME: no supported way to pass args in autoconf.
6792 # Disable tool wrappers to avoid ltdl.h configure check.
6793 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6794 ac_configure_args="$ac_configure_args --disable-load-library"
6795 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6796 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6797 dir1=`cd $srcdir && pwd`
6798 dir2=`pwd`
6799 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6800 ac_configure_args="$ac_configure_args --disable-core-jni"
6801 ac_configure_args="$ac_configure_args --disable-examples"
6802 ac_configure_args="$ac_configure_args --with-glibj=build"
6803 if test "$browser_plugin_enabled" != yes; then
6804   ac_configure_args="$ac_configure_args --disable-plugin"
6805 else
6806   ac_configure_args="$ac_configure_args --enable-plugin"
6807 fi
6808 if test "$gconf_enabled" != yes; then
6809   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6810   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6811 fi
6812 if test "$use_gtk_awt" != yes; then
6813   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6814 fi
6815 if test "$use_qt_awt" != yes; then
6816   ac_configure_args="$ac_configure_args --disable-qt-peer"
6817 else
6818   # We need this as qt is disabled by default in classpath.
6819   ac_configure_args="$ac_configure_args --enable-qt-peer"
6820 fi
6821 if test "$use_x_awt" != yes; then
6822   ac_configure_args="$ac_configure_args --without-escher"
6823 else
6824   # We need this as escher is disabled by default in classpath.
6825   if test "$use_escher" != true; then
6826     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6827   else
6828     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6829   fi
6830 fi
6831 if test "x$BUILD_GJDOC" = xno; then
6832   ac_configure_args="$ac_configure_args --disable-gjdoc"
6833 fi
6834 # -Werror causes unavoidable problems in code using alsa.
6835 ac_configure_args="$ac_configure_args --disable-regen-headers"
6836 ac_configure_args="$ac_configure_args --disable-Werror"
6837
6838 # Only use libltdl for non-newlib builds.
6839 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6840      case $enable_ltdl_convenience in
6841   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6842   "") enable_ltdl_convenience=yes
6843       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6844   esac
6845   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6846   LTDLINCL='-I${top_srcdir}/''libltdl'
6847   # For backwards non-gettext consistent compatibility...
6848   INCLTDL="$LTDLINCL"
6849
6850    enable_dlopen=yes
6851
6852
6853
6854    DIRLTDL=libltdl
6855
6856 $as_echo "#define USE_LTDL 1" >>confdefs.h
6857
6858    # Sigh.  Libtool's macro doesn't do the right thing.
6859    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6860    # FIXME: this is a hack.
6861    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6862    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6863 fi
6864
6865
6866
6867 case `pwd` in
6868   *\ * | *\     *)
6869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6870 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6871 esac
6872
6873
6874
6875 macro_version='2.2.7a'
6876 macro_revision='1.3134'
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 ltmain="$ac_aux_dir/ltmain.sh"
6891
6892 # Backslashify metacharacters that are still active within
6893 # double-quoted strings.
6894 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6895
6896 # Same as above, but do not quote variable references.
6897 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6898
6899 # Sed substitution to delay expansion of an escaped shell variable in a
6900 # double_quote_subst'ed string.
6901 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6902
6903 # Sed substitution to delay expansion of an escaped single quote.
6904 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6905
6906 # Sed substitution to avoid accidental globbing in evaled expressions
6907 no_glob_subst='s/\*/\\\*/g'
6908
6909 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6912
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6914 $as_echo_n "checking how to print strings... " >&6; }
6915 # Test print first, because it will be a builtin if present.
6916 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6917    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6918   ECHO='print -r --'
6919 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6920   ECHO='printf %s\n'
6921 else
6922   # Use this function as a fallback that always works.
6923   func_fallback_echo ()
6924   {
6925     eval 'cat <<_LTECHO_EOF
6926 $1
6927 _LTECHO_EOF'
6928   }
6929   ECHO='func_fallback_echo'
6930 fi
6931
6932 # func_echo_all arg...
6933 # Invoke $ECHO with all args, space-separated.
6934 func_echo_all ()
6935 {
6936     $ECHO ""
6937 }
6938
6939 case "$ECHO" in
6940   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6941 $as_echo "printf" >&6; } ;;
6942   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6943 $as_echo "print -r" >&6; } ;;
6944   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6945 $as_echo "cat" >&6; } ;;
6946 esac
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6962 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6963 if test "${ac_cv_path_SED+set}" = set; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6967      for ac_i in 1 2 3 4 5 6 7; do
6968        ac_script="$ac_script$as_nl$ac_script"
6969      done
6970      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6971      { ac_script=; unset ac_script;}
6972      if test -z "$SED"; then
6973   ac_path_SED_found=false
6974   # Loop through the user's path and test for each of PROGNAME-LIST
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_prog in sed gsed; do
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6983       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6984 # Check for GNU ac_path_SED and select it if it is found.
6985   # Check for GNU $ac_path_SED
6986 case `"$ac_path_SED" --version 2>&1` in
6987 *GNU*)
6988   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6989 *)
6990   ac_count=0
6991   $as_echo_n 0123456789 >"conftest.in"
6992   while :
6993   do
6994     cat "conftest.in" "conftest.in" >"conftest.tmp"
6995     mv "conftest.tmp" "conftest.in"
6996     cp "conftest.in" "conftest.nl"
6997     $as_echo '' >> "conftest.nl"
6998     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7000     as_fn_arith $ac_count + 1 && ac_count=$as_val
7001     if test $ac_count -gt ${ac_path_SED_max-0}; then
7002       # Best one so far, save it but keep looking for a better one
7003       ac_cv_path_SED="$ac_path_SED"
7004       ac_path_SED_max=$ac_count
7005     fi
7006     # 10*(2^10) chars as input seems more than enough
7007     test $ac_count -gt 10 && break
7008   done
7009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7010 esac
7011
7012       $ac_path_SED_found && break 3
7013     done
7014   done
7015   done
7016 IFS=$as_save_IFS
7017   if test -z "$ac_cv_path_SED"; then
7018     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7019   fi
7020 else
7021   ac_cv_path_SED=$SED
7022 fi
7023
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7026 $as_echo "$ac_cv_path_SED" >&6; }
7027  SED="$ac_cv_path_SED"
7028   rm -f conftest.sed
7029
7030 test -z "$SED" && SED=sed
7031 Xsed="$SED -e 1s/^X//"
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7045 if test "${ac_cv_path_GREP+set}" = set; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   if test -z "$GREP"; then
7049   ac_path_GREP_found=false
7050   # Loop through the user's path and test for each of PROGNAME-LIST
7051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056     for ac_prog in grep ggrep; do
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7059       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7060 # Check for GNU ac_path_GREP and select it if it is found.
7061   # Check for GNU $ac_path_GREP
7062 case `"$ac_path_GREP" --version 2>&1` in
7063 *GNU*)
7064   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7065 *)
7066   ac_count=0
7067   $as_echo_n 0123456789 >"conftest.in"
7068   while :
7069   do
7070     cat "conftest.in" "conftest.in" >"conftest.tmp"
7071     mv "conftest.tmp" "conftest.in"
7072     cp "conftest.in" "conftest.nl"
7073     $as_echo 'GREP' >> "conftest.nl"
7074     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7076     as_fn_arith $ac_count + 1 && ac_count=$as_val
7077     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7078       # Best one so far, save it but keep looking for a better one
7079       ac_cv_path_GREP="$ac_path_GREP"
7080       ac_path_GREP_max=$ac_count
7081     fi
7082     # 10*(2^10) chars as input seems more than enough
7083     test $ac_count -gt 10 && break
7084   done
7085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7086 esac
7087
7088       $ac_path_GREP_found && break 3
7089     done
7090   done
7091   done
7092 IFS=$as_save_IFS
7093   if test -z "$ac_cv_path_GREP"; then
7094     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7095   fi
7096 else
7097   ac_cv_path_GREP=$GREP
7098 fi
7099
7100 fi
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7102 $as_echo "$ac_cv_path_GREP" >&6; }
7103  GREP="$ac_cv_path_GREP"
7104
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7107 $as_echo_n "checking for egrep... " >&6; }
7108 if test "${ac_cv_path_EGREP+set}" = set; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7112    then ac_cv_path_EGREP="$GREP -E"
7113    else
7114      if test -z "$EGREP"; then
7115   ac_path_EGREP_found=false
7116   # Loop through the user's path and test for each of PROGNAME-LIST
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122     for ac_prog in egrep; do
7123     for ac_exec_ext in '' $ac_executable_extensions; do
7124       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7125       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7126 # Check for GNU ac_path_EGREP and select it if it is found.
7127   # Check for GNU $ac_path_EGREP
7128 case `"$ac_path_EGREP" --version 2>&1` in
7129 *GNU*)
7130   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7131 *)
7132   ac_count=0
7133   $as_echo_n 0123456789 >"conftest.in"
7134   while :
7135   do
7136     cat "conftest.in" "conftest.in" >"conftest.tmp"
7137     mv "conftest.tmp" "conftest.in"
7138     cp "conftest.in" "conftest.nl"
7139     $as_echo 'EGREP' >> "conftest.nl"
7140     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7141     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7142     as_fn_arith $ac_count + 1 && ac_count=$as_val
7143     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7144       # Best one so far, save it but keep looking for a better one
7145       ac_cv_path_EGREP="$ac_path_EGREP"
7146       ac_path_EGREP_max=$ac_count
7147     fi
7148     # 10*(2^10) chars as input seems more than enough
7149     test $ac_count -gt 10 && break
7150   done
7151   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7152 esac
7153
7154       $ac_path_EGREP_found && break 3
7155     done
7156   done
7157   done
7158 IFS=$as_save_IFS
7159   if test -z "$ac_cv_path_EGREP"; then
7160     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7161   fi
7162 else
7163   ac_cv_path_EGREP=$EGREP
7164 fi
7165
7166    fi
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7169 $as_echo "$ac_cv_path_EGREP" >&6; }
7170  EGREP="$ac_cv_path_EGREP"
7171
7172
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7174 $as_echo_n "checking for fgrep... " >&6; }
7175 if test "${ac_cv_path_FGREP+set}" = set; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7179    then ac_cv_path_FGREP="$GREP -F"
7180    else
7181      if test -z "$FGREP"; then
7182   ac_path_FGREP_found=false
7183   # Loop through the user's path and test for each of PROGNAME-LIST
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189     for ac_prog in fgrep; do
7190     for ac_exec_ext in '' $ac_executable_extensions; do
7191       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7192       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7193 # Check for GNU ac_path_FGREP and select it if it is found.
7194   # Check for GNU $ac_path_FGREP
7195 case `"$ac_path_FGREP" --version 2>&1` in
7196 *GNU*)
7197   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7198 *)
7199   ac_count=0
7200   $as_echo_n 0123456789 >"conftest.in"
7201   while :
7202   do
7203     cat "conftest.in" "conftest.in" >"conftest.tmp"
7204     mv "conftest.tmp" "conftest.in"
7205     cp "conftest.in" "conftest.nl"
7206     $as_echo 'FGREP' >> "conftest.nl"
7207     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7209     as_fn_arith $ac_count + 1 && ac_count=$as_val
7210     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7211       # Best one so far, save it but keep looking for a better one
7212       ac_cv_path_FGREP="$ac_path_FGREP"
7213       ac_path_FGREP_max=$ac_count
7214     fi
7215     # 10*(2^10) chars as input seems more than enough
7216     test $ac_count -gt 10 && break
7217   done
7218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7219 esac
7220
7221       $ac_path_FGREP_found && break 3
7222     done
7223   done
7224   done
7225 IFS=$as_save_IFS
7226   if test -z "$ac_cv_path_FGREP"; then
7227     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7228   fi
7229 else
7230   ac_cv_path_FGREP=$FGREP
7231 fi
7232
7233    fi
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7236 $as_echo "$ac_cv_path_FGREP" >&6; }
7237  FGREP="$ac_cv_path_FGREP"
7238
7239
7240 test -z "$GREP" && GREP=grep
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260 # Check whether --with-gnu-ld was given.
7261 if test "${with_gnu_ld+set}" = set; then :
7262   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7263 else
7264   with_gnu_ld=no
7265 fi
7266
7267 ac_prog=ld
7268 if test "$GCC" = yes; then
7269   # Check if gcc -print-prog-name=ld gives a path.
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7271 $as_echo_n "checking for ld used by $CC... " >&6; }
7272   case $host in
7273   *-*-mingw*)
7274     # gcc leaves a trailing carriage return which upsets mingw
7275     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7276   *)
7277     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7278   esac
7279   case $ac_prog in
7280     # Accept absolute paths.
7281     [\\/]* | ?:[\\/]*)
7282       re_direlt='/[^/][^/]*/\.\./'
7283       # Canonicalize the pathname of ld
7284       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7285       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7286         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7287       done
7288       test -z "$LD" && LD="$ac_prog"
7289       ;;
7290   "")
7291     # If it fails, then pretend we aren't using GCC.
7292     ac_prog=ld
7293     ;;
7294   *)
7295     # If it is relative, then search for the first ld in PATH.
7296     with_gnu_ld=unknown
7297     ;;
7298   esac
7299 elif test "$with_gnu_ld" = yes; then
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7301 $as_echo_n "checking for GNU ld... " >&6; }
7302 else
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7304 $as_echo_n "checking for non-GNU ld... " >&6; }
7305 fi
7306 if test "${lt_cv_path_LD+set}" = set; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -z "$LD"; then
7310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7311   for ac_dir in $PATH; do
7312     IFS="$lt_save_ifs"
7313     test -z "$ac_dir" && ac_dir=.
7314     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7315       lt_cv_path_LD="$ac_dir/$ac_prog"
7316       # Check to see if the program is GNU ld.  I'd rather use --version,
7317       # but apparently some variants of GNU ld only accept -v.
7318       # Break only if it was the GNU/non-GNU ld that we prefer.
7319       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7320       *GNU* | *'with BFD'*)
7321         test "$with_gnu_ld" != no && break
7322         ;;
7323       *)
7324         test "$with_gnu_ld" != yes && break
7325         ;;
7326       esac
7327     fi
7328   done
7329   IFS="$lt_save_ifs"
7330 else
7331   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7332 fi
7333 fi
7334
7335 LD="$lt_cv_path_LD"
7336 if test -n "$LD"; then
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7338 $as_echo "$LD" >&6; }
7339 else
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7346 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7350 case `$LD -v 2>&1 </dev/null` in
7351 *GNU* | *'with BFD'*)
7352   lt_cv_prog_gnu_ld=yes
7353   ;;
7354 *)
7355   lt_cv_prog_gnu_ld=no
7356   ;;
7357 esac
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7360 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7361 with_gnu_ld=$lt_cv_prog_gnu_ld
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7372 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7373 if test "${lt_cv_path_NM+set}" = set; then :
7374   $as_echo_n "(cached) " >&6
7375 else
7376   if test -n "$NM"; then
7377   # Let the user override the test.
7378   lt_cv_path_NM="$NM"
7379 else
7380   lt_nm_to_check="${ac_tool_prefix}nm"
7381   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7382     lt_nm_to_check="$lt_nm_to_check nm"
7383   fi
7384   for lt_tmp_nm in $lt_nm_to_check; do
7385     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7386     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7387       IFS="$lt_save_ifs"
7388       test -z "$ac_dir" && ac_dir=.
7389       tmp_nm="$ac_dir/$lt_tmp_nm"
7390       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7391         # Check to see if the nm accepts a BSD-compat flag.
7392         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7393         #   nm: unknown option "B" ignored
7394         # Tru64's nm complains that /dev/null is an invalid object file
7395         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7396         */dev/null* | *'Invalid file or object type'*)
7397           lt_cv_path_NM="$tmp_nm -B"
7398           break
7399           ;;
7400         *)
7401           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7402           */dev/null*)
7403             lt_cv_path_NM="$tmp_nm -p"
7404             break
7405             ;;
7406           *)
7407             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7408             continue # so that we can try to find one that supports BSD flags
7409             ;;
7410           esac
7411           ;;
7412         esac
7413       fi
7414     done
7415     IFS="$lt_save_ifs"
7416   done
7417   : ${lt_cv_path_NM=no}
7418 fi
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7421 $as_echo "$lt_cv_path_NM" >&6; }
7422 if test "$lt_cv_path_NM" != "no"; then
7423   NM="$lt_cv_path_NM"
7424 else
7425   # Didn't find any BSD compatible name lister, look for dumpbin.
7426   if test -n "$DUMPBIN"; then :
7427     # Let the user override the test.
7428   else
7429     if test -n "$ac_tool_prefix"; then
7430   for ac_prog in dumpbin "link -dump"
7431   do
7432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$DUMPBIN"; then
7440   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 DUMPBIN=$ac_cv_prog_DUMPBIN
7460 if test -n "$DUMPBIN"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7462 $as_echo "$DUMPBIN" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468
7469     test -n "$DUMPBIN" && break
7470   done
7471 fi
7472 if test -z "$DUMPBIN"; then
7473   ac_ct_DUMPBIN=$DUMPBIN
7474   for ac_prog in dumpbin "link -dump"
7475 do
7476   # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$ac_ct_DUMPBIN"; then
7484   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7504 if test -n "$ac_ct_DUMPBIN"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7506 $as_echo "$ac_ct_DUMPBIN" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513   test -n "$ac_ct_DUMPBIN" && break
7514 done
7515
7516   if test "x$ac_ct_DUMPBIN" = x; then
7517     DUMPBIN=":"
7518   else
7519     case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7524 esac
7525     DUMPBIN=$ac_ct_DUMPBIN
7526   fi
7527 fi
7528
7529     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7530     *COFF*)
7531       DUMPBIN="$DUMPBIN -symbols"
7532       ;;
7533     *)
7534       DUMPBIN=:
7535       ;;
7536     esac
7537   fi
7538
7539   if test "$DUMPBIN" != ":"; then
7540     NM="$DUMPBIN"
7541   fi
7542 fi
7543 test -z "$NM" && NM=nm
7544
7545
7546
7547
7548
7549
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7551 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7552 if test "${lt_cv_nm_interface+set}" = set; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   lt_cv_nm_interface="BSD nm"
7556   echo "int some_variable = 0;" > conftest.$ac_ext
7557   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7558   (eval "$ac_compile" 2>conftest.err)
7559   cat conftest.err >&5
7560   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7561   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7562   cat conftest.err >&5
7563   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7564   cat conftest.out >&5
7565   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7566     lt_cv_nm_interface="MS dumpbin"
7567   fi
7568   rm -f conftest*
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7571 $as_echo "$lt_cv_nm_interface" >&6; }
7572
7573 # find the maximum length of command line arguments
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7575 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7576 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579     i=0
7580   teststring="ABCD"
7581
7582   case $build_os in
7583   msdosdjgpp*)
7584     # On DJGPP, this test can blow up pretty badly due to problems in libc
7585     # (any single argument exceeding 2000 bytes causes a buffer overrun
7586     # during glob expansion).  Even if it were fixed, the result of this
7587     # check would be larger than it should be.
7588     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7589     ;;
7590
7591   gnu*)
7592     # Under GNU Hurd, this test is not required because there is
7593     # no limit to the length of command line arguments.
7594     # Libtool will interpret -1 as no limit whatsoever
7595     lt_cv_sys_max_cmd_len=-1;
7596     ;;
7597
7598   cygwin* | mingw* | cegcc*)
7599     # On Win9x/ME, this test blows up -- it succeeds, but takes
7600     # about 5 minutes as the teststring grows exponentially.
7601     # Worse, since 9x/ME are not pre-emptively multitasking,
7602     # you end up with a "frozen" computer, even though with patience
7603     # the test eventually succeeds (with a max line length of 256k).
7604     # Instead, let's just punt: use the minimum linelength reported by
7605     # all of the supported platforms: 8192 (on NT/2K/XP).
7606     lt_cv_sys_max_cmd_len=8192;
7607     ;;
7608
7609   mint*)
7610     # On MiNT this can take a long time and run out of memory.
7611     lt_cv_sys_max_cmd_len=8192;
7612     ;;
7613
7614   amigaos*)
7615     # On AmigaOS with pdksh, this test takes hours, literally.
7616     # So we just punt and use a minimum line length of 8192.
7617     lt_cv_sys_max_cmd_len=8192;
7618     ;;
7619
7620   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7621     # This has been around since 386BSD, at least.  Likely further.
7622     if test -x /sbin/sysctl; then
7623       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7624     elif test -x /usr/sbin/sysctl; then
7625       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7626     else
7627       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7628     fi
7629     # And add a safety zone
7630     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7631     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7632     ;;
7633
7634   interix*)
7635     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7636     lt_cv_sys_max_cmd_len=196608
7637     ;;
7638
7639   osf*)
7640     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7641     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7642     # nice to cause kernel panics so lets avoid the loop below.
7643     # First set a reasonable default.
7644     lt_cv_sys_max_cmd_len=16384
7645     #
7646     if test -x /sbin/sysconfig; then
7647       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7648         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7649       esac
7650     fi
7651     ;;
7652   sco3.2v5*)
7653     lt_cv_sys_max_cmd_len=102400
7654     ;;
7655   sysv5* | sco5v6* | sysv4.2uw2*)
7656     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7657     if test -n "$kargmax"; then
7658       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7659     else
7660       lt_cv_sys_max_cmd_len=32768
7661     fi
7662     ;;
7663   *)
7664     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7665     if test -n "$lt_cv_sys_max_cmd_len"; then
7666       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7667       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7668     else
7669       # Make teststring a little bigger before we do anything with it.
7670       # a 1K string should be a reasonable start.
7671       for i in 1 2 3 4 5 6 7 8 ; do
7672         teststring=$teststring$teststring
7673       done
7674       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7675       # If test is not a shell built-in, we'll probably end up computing a
7676       # maximum length that is only half of the actual maximum length, but
7677       # we can't tell.
7678       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7679                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7680               test $i != 17 # 1/2 MB should be enough
7681       do
7682         i=`expr $i + 1`
7683         teststring=$teststring$teststring
7684       done
7685       # Only check the string length outside the loop.
7686       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7687       teststring=
7688       # Add a significant safety factor because C++ compilers can tack on
7689       # massive amounts of additional arguments before passing them to the
7690       # linker.  It appears as though 1/2 is a usable value.
7691       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7692     fi
7693     ;;
7694   esac
7695
7696 fi
7697
7698 if test -n $lt_cv_sys_max_cmd_len ; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7700 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7703 $as_echo "none" >&6; }
7704 fi
7705 max_cmd_len=$lt_cv_sys_max_cmd_len
7706
7707
7708
7709
7710
7711
7712 : ${CP="cp -f"}
7713 : ${MV="mv -f"}
7714 : ${RM="rm -f"}
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7717 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7718 # Try some XSI features
7719 xsi_shell=no
7720 ( _lt_dummy="a/b/c"
7721   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7722       = c,a/b,, \
7723     && eval 'test $(( 1 + 1 )) -eq 2 \
7724     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7725   && xsi_shell=yes
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7727 $as_echo "$xsi_shell" >&6; }
7728
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7731 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7732 lt_shell_append=no
7733 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7734     >/dev/null 2>&1 \
7735   && lt_shell_append=yes
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7737 $as_echo "$lt_shell_append" >&6; }
7738
7739
7740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7741   lt_unset=unset
7742 else
7743   lt_unset=false
7744 fi
7745
7746
7747
7748
7749
7750 # test EBCDIC or ASCII
7751 case `echo X|tr X '\101'` in
7752  A) # ASCII based system
7753     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7754   lt_SP2NL='tr \040 \012'
7755   lt_NL2SP='tr \015\012 \040\040'
7756   ;;
7757  *) # EBCDIC based system
7758   lt_SP2NL='tr \100 \n'
7759   lt_NL2SP='tr \r\n \100\100'
7760   ;;
7761 esac
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7772 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7773 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   lt_cv_ld_reload_flag='-r'
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7779 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7780 reload_flag=$lt_cv_ld_reload_flag
7781 case $reload_flag in
7782 "" | " "*) ;;
7783 *) reload_flag=" $reload_flag" ;;
7784 esac
7785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7786 case $host_os in
7787   darwin*)
7788     if test "$GCC" = yes; then
7789       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7790     else
7791       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7792     fi
7793     ;;
7794 esac
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 if test -n "$ac_tool_prefix"; then
7805   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   if test -n "$OBJDUMP"; then
7813   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 OBJDUMP=$ac_cv_prog_OBJDUMP
7833 if test -n "$OBJDUMP"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7835 $as_echo "$OBJDUMP" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_OBJDUMP"; then
7844   ac_ct_OBJDUMP=$OBJDUMP
7845   # Extract the first word of "objdump", so it can be a program name with args.
7846 set dummy objdump; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   if test -n "$ac_ct_OBJDUMP"; then
7853   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860     for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867   done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7873 if test -n "$ac_ct_OBJDUMP"; then
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7875 $as_echo "$ac_ct_OBJDUMP" >&6; }
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881   if test "x$ac_ct_OBJDUMP" = x; then
7882     OBJDUMP="false"
7883   else
7884     case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890     OBJDUMP=$ac_ct_OBJDUMP
7891   fi
7892 else
7893   OBJDUMP="$ac_cv_prog_OBJDUMP"
7894 fi
7895
7896 test -z "$OBJDUMP" && OBJDUMP=objdump
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7907 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7908 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   lt_cv_file_magic_cmd='$MAGIC_CMD'
7912 lt_cv_file_magic_test_file=
7913 lt_cv_deplibs_check_method='unknown'
7914 # Need to set the preceding variable on all platforms that support
7915 # interlibrary dependencies.
7916 # 'none' -- dependencies not supported.
7917 # `unknown' -- same as none, but documents that we really don't know.
7918 # 'pass_all' -- all dependencies passed with no checks.
7919 # 'test_compile' -- check by making test program.
7920 # 'file_magic [[regex]]' -- check by looking for files in library path
7921 # which responds to the $file_magic_cmd with a given extended regex.
7922 # If you have `file' or equivalent on your system and you're not sure
7923 # whether `pass_all' will *always* work, you probably want this one.
7924
7925 case $host_os in
7926 aix[4-9]*)
7927   lt_cv_deplibs_check_method=pass_all
7928   ;;
7929
7930 beos*)
7931   lt_cv_deplibs_check_method=pass_all
7932   ;;
7933
7934 bsdi[45]*)
7935   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7936   lt_cv_file_magic_cmd='/usr/bin/file -L'
7937   lt_cv_file_magic_test_file=/shlib/libc.so
7938   ;;
7939
7940 cygwin*)
7941   # func_win32_libid is a shell function defined in ltmain.sh
7942   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7943   lt_cv_file_magic_cmd='func_win32_libid'
7944   ;;
7945
7946 mingw* | pw32*)
7947   # Base MSYS/MinGW do not provide the 'file' command needed by
7948   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7949   # unless we find 'file', for example because we are cross-compiling.
7950   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7951   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7952     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7953     lt_cv_file_magic_cmd='func_win32_libid'
7954   else
7955     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7956     lt_cv_file_magic_cmd='$OBJDUMP -f'
7957   fi
7958   ;;
7959
7960 cegcc*)
7961   # use the weaker test based on 'objdump'. See mingw*.
7962   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7963   lt_cv_file_magic_cmd='$OBJDUMP -f'
7964   ;;
7965
7966 darwin* | rhapsody*)
7967   lt_cv_deplibs_check_method=pass_all
7968   ;;
7969
7970 freebsd* | dragonfly*)
7971   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7972     case $host_cpu in
7973     i*86 )
7974       # Not sure whether the presence of OpenBSD here was a mistake.
7975       # Let's accept both of them until this is cleared up.
7976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7977       lt_cv_file_magic_cmd=/usr/bin/file
7978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7979       ;;
7980     esac
7981   else
7982     lt_cv_deplibs_check_method=pass_all
7983   fi
7984   ;;
7985
7986 gnu*)
7987   lt_cv_deplibs_check_method=pass_all
7988   ;;
7989
7990 haiku*)
7991   lt_cv_deplibs_check_method=pass_all
7992   ;;
7993
7994 hpux10.20* | hpux11*)
7995   lt_cv_file_magic_cmd=/usr/bin/file
7996   case $host_cpu in
7997   ia64*)
7998     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7999     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8000     ;;
8001   hppa*64*)
8002     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8003     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8004     ;;
8005   *)
8006     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8007     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8008     ;;
8009   esac
8010   ;;
8011
8012 interix[3-9]*)
8013   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8014   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8015   ;;
8016
8017 irix5* | irix6* | nonstopux*)
8018   case $LD in
8019   *-32|*"-32 ") libmagic=32-bit;;
8020   *-n32|*"-n32 ") libmagic=N32;;
8021   *-64|*"-64 ") libmagic=64-bit;;
8022   *) libmagic=never-match;;
8023   esac
8024   lt_cv_deplibs_check_method=pass_all
8025   ;;
8026
8027 # This must be Linux ELF.
8028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8029   lt_cv_deplibs_check_method=pass_all
8030   ;;
8031
8032 netbsd*)
8033   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8034     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8035   else
8036     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8037   fi
8038   ;;
8039
8040 newos6*)
8041   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8042   lt_cv_file_magic_cmd=/usr/bin/file
8043   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8044   ;;
8045
8046 *nto* | *qnx*)
8047   lt_cv_deplibs_check_method=pass_all
8048   ;;
8049
8050 openbsd*)
8051   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8052     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8053   else
8054     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8055   fi
8056   ;;
8057
8058 osf3* | osf4* | osf5*)
8059   lt_cv_deplibs_check_method=pass_all
8060   ;;
8061
8062 rdos*)
8063   lt_cv_deplibs_check_method=pass_all
8064   ;;
8065
8066 solaris*)
8067   lt_cv_deplibs_check_method=pass_all
8068   ;;
8069
8070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8071   lt_cv_deplibs_check_method=pass_all
8072   ;;
8073
8074 sysv4 | sysv4.3*)
8075   case $host_vendor in
8076   motorola)
8077     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]'
8078     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8079     ;;
8080   ncr)
8081     lt_cv_deplibs_check_method=pass_all
8082     ;;
8083   sequent)
8084     lt_cv_file_magic_cmd='/bin/file'
8085     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8086     ;;
8087   sni)
8088     lt_cv_file_magic_cmd='/bin/file'
8089     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8090     lt_cv_file_magic_test_file=/lib/libc.so
8091     ;;
8092   siemens)
8093     lt_cv_deplibs_check_method=pass_all
8094     ;;
8095   pc)
8096     lt_cv_deplibs_check_method=pass_all
8097     ;;
8098   esac
8099   ;;
8100
8101 tpf*)
8102   lt_cv_deplibs_check_method=pass_all
8103   ;;
8104 esac
8105
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8108 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8109 file_magic_cmd=$lt_cv_file_magic_cmd
8110 deplibs_check_method=$lt_cv_deplibs_check_method
8111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 if test -n "$ac_tool_prefix"; then
8125   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}ar; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if test "${ac_cv_prog_AR+set}" = set; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -n "$AR"; then
8133   ac_cv_prog_AR="$AR" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142     ac_cv_prog_AR="${ac_tool_prefix}ar"
8143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 AR=$ac_cv_prog_AR
8153 if test -n "$AR"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8155 $as_echo "$AR" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161
8162 fi
8163 if test -z "$ac_cv_prog_AR"; then
8164   ac_ct_AR=$AR
8165   # Extract the first word of "ar", so it can be a program name with args.
8166 set dummy ar; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   if test -n "$ac_ct_AR"; then
8173   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180     for ac_exec_ext in '' $ac_executable_extensions; do
8181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182     ac_cv_prog_ac_ct_AR="ar"
8183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187   done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8193 if test -n "$ac_ct_AR"; then
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8195 $as_echo "$ac_ct_AR" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201   if test "x$ac_ct_AR" = x; then
8202     AR="false"
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     AR=$ac_ct_AR
8211   fi
8212 else
8213   AR="$ac_cv_prog_AR"
8214 fi
8215
8216 test -z "$AR" && AR=ar
8217 test -z "$AR_FLAGS" && AR_FLAGS=cru
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229 if test -n "$ac_tool_prefix"; then
8230   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}strip; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_STRIP+set}" = set; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   if test -n "$STRIP"; then
8238   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245     for ac_exec_ext in '' $ac_executable_extensions; do
8246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252   done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 STRIP=$ac_cv_prog_STRIP
8258 if test -n "$STRIP"; then
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8260 $as_echo "$STRIP" >&6; }
8261 else
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267 fi
8268 if test -z "$ac_cv_prog_STRIP"; then
8269   ac_ct_STRIP=$STRIP
8270   # Extract the first word of "strip", so it can be a program name with args.
8271 set dummy strip; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   if test -n "$ac_ct_STRIP"; then
8278   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285     for ac_exec_ext in '' $ac_executable_extensions; do
8286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287     ac_cv_prog_ac_ct_STRIP="strip"
8288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292   done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8298 if test -n "$ac_ct_STRIP"; then
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8300 $as_echo "$ac_ct_STRIP" >&6; }
8301 else
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306   if test "x$ac_ct_STRIP" = x; then
8307     STRIP=":"
8308   else
8309     case $cross_compiling:$ac_tool_warned in
8310 yes:)
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8314 esac
8315     STRIP=$ac_ct_STRIP
8316   fi
8317 else
8318   STRIP="$ac_cv_prog_STRIP"
8319 fi
8320
8321 test -z "$STRIP" && STRIP=:
8322
8323
8324
8325
8326
8327
8328 if test -n "$ac_tool_prefix"; then
8329   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8330 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   if test -n "$RANLIB"; then
8337   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342   IFS=$as_save_IFS
8343   test -z "$as_dir" && as_dir=.
8344     for ac_exec_ext in '' $ac_executable_extensions; do
8345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8346     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348     break 2
8349   fi
8350 done
8351   done
8352 IFS=$as_save_IFS
8353
8354 fi
8355 fi
8356 RANLIB=$ac_cv_prog_RANLIB
8357 if test -n "$RANLIB"; then
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8359 $as_echo "$RANLIB" >&6; }
8360 else
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 fi
8364
8365
8366 fi
8367 if test -z "$ac_cv_prog_RANLIB"; then
8368   ac_ct_RANLIB=$RANLIB
8369   # Extract the first word of "ranlib", so it can be a program name with args.
8370 set dummy ranlib; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   if test -n "$ac_ct_RANLIB"; then
8377   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384     for ac_exec_ext in '' $ac_executable_extensions; do
8385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8386     ac_cv_prog_ac_ct_RANLIB="ranlib"
8387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391   done
8392 IFS=$as_save_IFS
8393
8394 fi
8395 fi
8396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8397 if test -n "$ac_ct_RANLIB"; then
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8399 $as_echo "$ac_ct_RANLIB" >&6; }
8400 else
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405   if test "x$ac_ct_RANLIB" = x; then
8406     RANLIB=":"
8407   else
8408     case $cross_compiling:$ac_tool_warned in
8409 yes:)
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8412 ac_tool_warned=yes ;;
8413 esac
8414     RANLIB=$ac_ct_RANLIB
8415   fi
8416 else
8417   RANLIB="$ac_cv_prog_RANLIB"
8418 fi
8419
8420 test -z "$RANLIB" && RANLIB=:
8421
8422
8423
8424
8425
8426
8427 # Determine commands to create old-style static archives.
8428 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8429 old_postinstall_cmds='chmod 644 $oldlib'
8430 old_postuninstall_cmds=
8431
8432 if test -n "$RANLIB"; then
8433   case $host_os in
8434   openbsd*)
8435     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8436     ;;
8437   *)
8438     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8439     ;;
8440   esac
8441   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8442 fi
8443
8444 case $host_os in
8445   darwin*)
8446     lock_old_archive_extraction=yes ;;
8447   *)
8448     lock_old_archive_extraction=no ;;
8449 esac
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 # If no C compiler was specified, use CC.
8490 LTCC=${LTCC-"$CC"}
8491
8492 # If no C compiler flags were specified, use CFLAGS.
8493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8494
8495 # Allow CC to be a program name with arguments.
8496 compiler=$CC
8497
8498
8499 # Check for command to grab the raw symbol name followed by C symbol from nm.
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8501 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8502 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505
8506 # These are sane defaults that work on at least a few old systems.
8507 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8508
8509 # Character class describing NM global symbol codes.
8510 symcode='[BCDEGRST]'
8511
8512 # Regexp to match symbols that can be accessed directly from C.
8513 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8514
8515 # Define system-specific variables.
8516 case $host_os in
8517 aix*)
8518   symcode='[BCDT]'
8519   ;;
8520 cygwin* | mingw* | pw32* | cegcc*)
8521   symcode='[ABCDGISTW]'
8522   ;;
8523 hpux*)
8524   if test "$host_cpu" = ia64; then
8525     symcode='[ABCDEGRST]'
8526   fi
8527   ;;
8528 irix* | nonstopux*)
8529   symcode='[BCDEGRST]'
8530   ;;
8531 osf*)
8532   symcode='[BCDEGQRST]'
8533   ;;
8534 solaris*)
8535   symcode='[BDRT]'
8536   ;;
8537 sco3.2v5*)
8538   symcode='[DT]'
8539   ;;
8540 sysv4.2uw2*)
8541   symcode='[DT]'
8542   ;;
8543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8544   symcode='[ABDT]'
8545   ;;
8546 sysv4)
8547   symcode='[DFNSTU]'
8548   ;;
8549 esac
8550
8551 # If we're using GNU nm, then use its standard symbol codes.
8552 case `$NM -V 2>&1` in
8553 *GNU* | *'with BFD'*)
8554   symcode='[ABCDGIRSTW]' ;;
8555 esac
8556
8557 # Transform an extracted symbol line into a proper C declaration.
8558 # Some systems (esp. on ia64) link data and code symbols differently,
8559 # so use this general approach.
8560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8561
8562 # Transform an extracted symbol line into symbol name and symbol address
8563 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8564 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'"
8565
8566 # Handle CRLF in mingw tool chain
8567 opt_cr=
8568 case $build_os in
8569 mingw*)
8570   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8571   ;;
8572 esac
8573
8574 # Try without a prefix underscore, then with it.
8575 for ac_symprfx in "" "_"; do
8576
8577   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8578   symxfrm="\\1 $ac_symprfx\\2 \\2"
8579
8580   # Write the raw and C identifiers.
8581   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8582     # Fake it for dumpbin and say T for any non-static function
8583     # and D for any global variable.
8584     # Also find C++ and __fastcall symbols from MSVC++,
8585     # which start with @ or ?.
8586     lt_cv_sys_global_symbol_pipe="$AWK '"\
8587 "     {last_section=section; section=\$ 3};"\
8588 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8589 "     \$ 0!~/External *\|/{next};"\
8590 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8591 "     {if(hide[section]) next};"\
8592 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8593 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8594 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8595 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8596 "     ' prfx=^$ac_symprfx"
8597   else
8598     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8599   fi
8600
8601   # Check to see that the pipe works correctly.
8602   pipe_works=no
8603
8604   rm -f conftest*
8605   cat > conftest.$ac_ext <<_LT_EOF
8606 #ifdef __cplusplus
8607 extern "C" {
8608 #endif
8609 char nm_test_var;
8610 void nm_test_func(void);
8611 void nm_test_func(void){}
8612 #ifdef __cplusplus
8613 }
8614 #endif
8615 int main(){nm_test_var='a';nm_test_func();return(0);}
8616 _LT_EOF
8617
8618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8619   (eval $ac_compile) 2>&5
8620   ac_status=$?
8621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622   test $ac_status = 0; }; then
8623     # Now try to grab the symbols.
8624     nlist=conftest.nm
8625     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8626   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8627   ac_status=$?
8628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8629   test $ac_status = 0; } && test -s "$nlist"; then
8630       # Try sorting and uniquifying the output.
8631       if sort "$nlist" | uniq > "$nlist"T; then
8632         mv -f "$nlist"T "$nlist"
8633       else
8634         rm -f "$nlist"T
8635       fi
8636
8637       # Make sure that we snagged all the symbols we need.
8638       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8639         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8640           cat <<_LT_EOF > conftest.$ac_ext
8641 #ifdef __cplusplus
8642 extern "C" {
8643 #endif
8644
8645 _LT_EOF
8646           # Now generate the symbol file.
8647           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8648
8649           cat <<_LT_EOF >> conftest.$ac_ext
8650
8651 /* The mapping between symbol names and symbols.  */
8652 const struct {
8653   const char *name;
8654   void       *address;
8655 }
8656 lt__PROGRAM__LTX_preloaded_symbols[] =
8657 {
8658   { "@PROGRAM@", (void *) 0 },
8659 _LT_EOF
8660           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8661           cat <<\_LT_EOF >> conftest.$ac_ext
8662   {0, (void *) 0}
8663 };
8664
8665 /* This works around a problem in FreeBSD linker */
8666 #ifdef FREEBSD_WORKAROUND
8667 static const void *lt_preloaded_setup() {
8668   return lt__PROGRAM__LTX_preloaded_symbols;
8669 }
8670 #endif
8671
8672 #ifdef __cplusplus
8673 }
8674 #endif
8675 _LT_EOF
8676           # Now try linking the two files.
8677           mv conftest.$ac_objext conftstm.$ac_objext
8678           lt_save_LIBS="$LIBS"
8679           lt_save_CFLAGS="$CFLAGS"
8680           LIBS="conftstm.$ac_objext"
8681           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8682           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8683   (eval $ac_link) 2>&5
8684   ac_status=$?
8685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8686   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8687             pipe_works=yes
8688           fi
8689           LIBS="$lt_save_LIBS"
8690           CFLAGS="$lt_save_CFLAGS"
8691         else
8692           echo "cannot find nm_test_func in $nlist" >&5
8693         fi
8694       else
8695         echo "cannot find nm_test_var in $nlist" >&5
8696       fi
8697     else
8698       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8699     fi
8700   else
8701     echo "$progname: failed program was:" >&5
8702     cat conftest.$ac_ext >&5
8703   fi
8704   rm -rf conftest* conftst*
8705
8706   # Do not use the global_symbol_pipe unless it works.
8707   if test "$pipe_works" = yes; then
8708     break
8709   else
8710     lt_cv_sys_global_symbol_pipe=
8711   fi
8712 done
8713
8714 fi
8715
8716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8717   lt_cv_sys_global_symbol_to_cdecl=
8718 fi
8719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8721 $as_echo "failed" >&6; }
8722 else
8723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8724 $as_echo "ok" >&6; }
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749 # Check whether --enable-libtool-lock was given.
8750 if test "${enable_libtool_lock+set}" = set; then :
8751   enableval=$enable_libtool_lock;
8752 fi
8753
8754 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8755
8756 # Some flags need to be propagated to the compiler or linker for good
8757 # libtool support.
8758 case $host in
8759 ia64-*-hpux*)
8760   # Find out which ABI we are using.
8761   echo 'int i;' > conftest.$ac_ext
8762   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8763   (eval $ac_compile) 2>&5
8764   ac_status=$?
8765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8766   test $ac_status = 0; }; then
8767     case `/usr/bin/file conftest.$ac_objext` in
8768       *ELF-32*)
8769         HPUX_IA64_MODE="32"
8770         ;;
8771       *ELF-64*)
8772         HPUX_IA64_MODE="64"
8773         ;;
8774     esac
8775   fi
8776   rm -rf conftest*
8777   ;;
8778 *-*-irix6*)
8779   # Find out which ABI we are using.
8780   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8782   (eval $ac_compile) 2>&5
8783   ac_status=$?
8784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8785   test $ac_status = 0; }; then
8786     if test "$lt_cv_prog_gnu_ld" = yes; then
8787       case `/usr/bin/file conftest.$ac_objext` in
8788         *32-bit*)
8789           LD="${LD-ld} -melf32bsmip"
8790           ;;
8791         *N32*)
8792           LD="${LD-ld} -melf32bmipn32"
8793           ;;
8794         *64-bit*)
8795           LD="${LD-ld} -melf64bmip"
8796         ;;
8797       esac
8798     else
8799       case `/usr/bin/file conftest.$ac_objext` in
8800         *32-bit*)
8801           LD="${LD-ld} -32"
8802           ;;
8803         *N32*)
8804           LD="${LD-ld} -n32"
8805           ;;
8806         *64-bit*)
8807           LD="${LD-ld} -64"
8808           ;;
8809       esac
8810     fi
8811   fi
8812   rm -rf conftest*
8813   ;;
8814
8815 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8816 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8817   # Find out which ABI we are using.
8818   echo 'int i;' > conftest.$ac_ext
8819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8820   (eval $ac_compile) 2>&5
8821   ac_status=$?
8822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8823   test $ac_status = 0; }; then
8824     case `/usr/bin/file conftest.o` in
8825       *32-bit*)
8826         case $host in
8827           x86_64-*kfreebsd*-gnu)
8828             LD="${LD-ld} -m elf_i386_fbsd"
8829             ;;
8830           x86_64-*linux*)
8831             LD="${LD-ld} -m elf_i386"
8832             ;;
8833           ppc64-*linux*|powerpc64-*linux*)
8834             LD="${LD-ld} -m elf32ppclinux"
8835             ;;
8836           s390x-*linux*)
8837             LD="${LD-ld} -m elf_s390"
8838             ;;
8839           sparc64-*linux*)
8840             LD="${LD-ld} -m elf32_sparc"
8841             ;;
8842         esac
8843         ;;
8844       *64-bit*)
8845         case $host in
8846           x86_64-*kfreebsd*-gnu)
8847             LD="${LD-ld} -m elf_x86_64_fbsd"
8848             ;;
8849           x86_64-*linux*)
8850             LD="${LD-ld} -m elf_x86_64"
8851             ;;
8852           ppc*-*linux*|powerpc*-*linux*)
8853             LD="${LD-ld} -m elf64ppc"
8854             ;;
8855           s390*-*linux*|s390*-*tpf*)
8856             LD="${LD-ld} -m elf64_s390"
8857             ;;
8858           sparc*-*linux*)
8859             LD="${LD-ld} -m elf64_sparc"
8860             ;;
8861         esac
8862         ;;
8863     esac
8864   fi
8865   rm -rf conftest*
8866   ;;
8867
8868 *-*-sco3.2v5*)
8869   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8870   SAVE_CFLAGS="$CFLAGS"
8871   CFLAGS="$CFLAGS -belf"
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8873 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8874 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   ac_ext=c
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883      if test x$gcc_no_link = xyes; then
8884   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8885 fi
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h.  */
8888
8889 int
8890 main ()
8891 {
8892
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898   lt_cv_cc_needs_belf=yes
8899 else
8900   lt_cv_cc_needs_belf=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext \
8903     conftest$ac_exeext conftest.$ac_ext
8904      ac_ext=c
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8912 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8913   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8914     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8915     CFLAGS="$SAVE_CFLAGS"
8916   fi
8917   ;;
8918 sparc*-*solaris*)
8919   # Find out which ABI we are using.
8920   echo 'int i;' > conftest.$ac_ext
8921   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8922   (eval $ac_compile) 2>&5
8923   ac_status=$?
8924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8925   test $ac_status = 0; }; then
8926     case `/usr/bin/file conftest.o` in
8927     *64-bit*)
8928       case $lt_cv_prog_gnu_ld in
8929       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8930       *)
8931         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8932           LD="${LD-ld} -64"
8933         fi
8934         ;;
8935       esac
8936       ;;
8937     esac
8938   fi
8939   rm -rf conftest*
8940   ;;
8941 esac
8942
8943 need_locks="$enable_libtool_lock"
8944
8945
8946   case $host_os in
8947     rhapsody* | darwin*)
8948     if test -n "$ac_tool_prefix"; then
8949   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8950 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   if test -n "$DSYMUTIL"; then
8957   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8958 else
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8961 do
8962   IFS=$as_save_IFS
8963   test -z "$as_dir" && as_dir=.
8964     for ac_exec_ext in '' $ac_executable_extensions; do
8965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968     break 2
8969   fi
8970 done
8971   done
8972 IFS=$as_save_IFS
8973
8974 fi
8975 fi
8976 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8977 if test -n "$DSYMUTIL"; then
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8979 $as_echo "$DSYMUTIL" >&6; }
8980 else
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984
8985
8986 fi
8987 if test -z "$ac_cv_prog_DSYMUTIL"; then
8988   ac_ct_DSYMUTIL=$DSYMUTIL
8989   # Extract the first word of "dsymutil", so it can be a program name with args.
8990 set dummy dsymutil; ac_word=$2
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   if test -n "$ac_ct_DSYMUTIL"; then
8997   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8998 else
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 for as_dir in $PATH
9001 do
9002   IFS=$as_save_IFS
9003   test -z "$as_dir" && as_dir=.
9004     for ac_exec_ext in '' $ac_executable_extensions; do
9005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008     break 2
9009   fi
9010 done
9011   done
9012 IFS=$as_save_IFS
9013
9014 fi
9015 fi
9016 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9017 if test -n "$ac_ct_DSYMUTIL"; then
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9019 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9020 else
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025   if test "x$ac_ct_DSYMUTIL" = x; then
9026     DSYMUTIL=":"
9027   else
9028     case $cross_compiling:$ac_tool_warned in
9029 yes:)
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9032 ac_tool_warned=yes ;;
9033 esac
9034     DSYMUTIL=$ac_ct_DSYMUTIL
9035   fi
9036 else
9037   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9038 fi
9039
9040     if test -n "$ac_tool_prefix"; then
9041   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9042 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   if test -n "$NMEDIT"; then
9049   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054   IFS=$as_save_IFS
9055   test -z "$as_dir" && as_dir=.
9056     for ac_exec_ext in '' $ac_executable_extensions; do
9057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060     break 2
9061   fi
9062 done
9063   done
9064 IFS=$as_save_IFS
9065
9066 fi
9067 fi
9068 NMEDIT=$ac_cv_prog_NMEDIT
9069 if test -n "$NMEDIT"; then
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9071 $as_echo "$NMEDIT" >&6; }
9072 else
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077
9078 fi
9079 if test -z "$ac_cv_prog_NMEDIT"; then
9080   ac_ct_NMEDIT=$NMEDIT
9081   # Extract the first word of "nmedit", so it can be a program name with args.
9082 set dummy nmedit; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   if test -n "$ac_ct_NMEDIT"; then
9089   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9090 else
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9093 do
9094   IFS=$as_save_IFS
9095   test -z "$as_dir" && as_dir=.
9096     for ac_exec_ext in '' $ac_executable_extensions; do
9097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9098     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100     break 2
9101   fi
9102 done
9103   done
9104 IFS=$as_save_IFS
9105
9106 fi
9107 fi
9108 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9109 if test -n "$ac_ct_NMEDIT"; then
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9111 $as_echo "$ac_ct_NMEDIT" >&6; }
9112 else
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 fi
9116
9117   if test "x$ac_ct_NMEDIT" = x; then
9118     NMEDIT=":"
9119   else
9120     case $cross_compiling:$ac_tool_warned in
9121 yes:)
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124 ac_tool_warned=yes ;;
9125 esac
9126     NMEDIT=$ac_ct_NMEDIT
9127   fi
9128 else
9129   NMEDIT="$ac_cv_prog_NMEDIT"
9130 fi
9131
9132     if test -n "$ac_tool_prefix"; then
9133   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9134 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if test "${ac_cv_prog_LIPO+set}" = set; then :
9138   $as_echo_n "(cached) " >&6
9139 else
9140   if test -n "$LIPO"; then
9141   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9142 else
9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 for as_dir in $PATH
9145 do
9146   IFS=$as_save_IFS
9147   test -z "$as_dir" && as_dir=.
9148     for ac_exec_ext in '' $ac_executable_extensions; do
9149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152     break 2
9153   fi
9154 done
9155   done
9156 IFS=$as_save_IFS
9157
9158 fi
9159 fi
9160 LIPO=$ac_cv_prog_LIPO
9161 if test -n "$LIPO"; then
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9163 $as_echo "$LIPO" >&6; }
9164 else
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9167 fi
9168
9169
9170 fi
9171 if test -z "$ac_cv_prog_LIPO"; then
9172   ac_ct_LIPO=$LIPO
9173   # Extract the first word of "lipo", so it can be a program name with args.
9174 set dummy lipo; ac_word=$2
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9178   $as_echo_n "(cached) " >&6
9179 else
9180   if test -n "$ac_ct_LIPO"; then
9181   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9182 else
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in $PATH
9185 do
9186   IFS=$as_save_IFS
9187   test -z "$as_dir" && as_dir=.
9188     for ac_exec_ext in '' $ac_executable_extensions; do
9189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9190     ac_cv_prog_ac_ct_LIPO="lipo"
9191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192     break 2
9193   fi
9194 done
9195   done
9196 IFS=$as_save_IFS
9197
9198 fi
9199 fi
9200 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9201 if test -n "$ac_ct_LIPO"; then
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9203 $as_echo "$ac_ct_LIPO" >&6; }
9204 else
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9207 fi
9208
9209   if test "x$ac_ct_LIPO" = x; then
9210     LIPO=":"
9211   else
9212     case $cross_compiling:$ac_tool_warned in
9213 yes:)
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216 ac_tool_warned=yes ;;
9217 esac
9218     LIPO=$ac_ct_LIPO
9219   fi
9220 else
9221   LIPO="$ac_cv_prog_LIPO"
9222 fi
9223
9224     if test -n "$ac_tool_prefix"; then
9225   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9226 set dummy ${ac_tool_prefix}otool; ac_word=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9230   $as_echo_n "(cached) " >&6
9231 else
9232   if test -n "$OTOOL"; then
9233   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9234 else
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9237 do
9238   IFS=$as_save_IFS
9239   test -z "$as_dir" && as_dir=.
9240     for ac_exec_ext in '' $ac_executable_extensions; do
9241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9242     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244     break 2
9245   fi
9246 done
9247   done
9248 IFS=$as_save_IFS
9249
9250 fi
9251 fi
9252 OTOOL=$ac_cv_prog_OTOOL
9253 if test -n "$OTOOL"; then
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9255 $as_echo "$OTOOL" >&6; }
9256 else
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260
9261
9262 fi
9263 if test -z "$ac_cv_prog_OTOOL"; then
9264   ac_ct_OTOOL=$OTOOL
9265   # Extract the first word of "otool", so it can be a program name with args.
9266 set dummy otool; ac_word=$2
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9270   $as_echo_n "(cached) " >&6
9271 else
9272   if test -n "$ac_ct_OTOOL"; then
9273   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9274 else
9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 for as_dir in $PATH
9277 do
9278   IFS=$as_save_IFS
9279   test -z "$as_dir" && as_dir=.
9280     for ac_exec_ext in '' $ac_executable_extensions; do
9281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282     ac_cv_prog_ac_ct_OTOOL="otool"
9283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284     break 2
9285   fi
9286 done
9287   done
9288 IFS=$as_save_IFS
9289
9290 fi
9291 fi
9292 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9293 if test -n "$ac_ct_OTOOL"; then
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9295 $as_echo "$ac_ct_OTOOL" >&6; }
9296 else
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9299 fi
9300
9301   if test "x$ac_ct_OTOOL" = x; then
9302     OTOOL=":"
9303   else
9304     case $cross_compiling:$ac_tool_warned in
9305 yes:)
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9309 esac
9310     OTOOL=$ac_ct_OTOOL
9311   fi
9312 else
9313   OTOOL="$ac_cv_prog_OTOOL"
9314 fi
9315
9316     if test -n "$ac_tool_prefix"; then
9317   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9318 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9322   $as_echo_n "(cached) " >&6
9323 else
9324   if test -n "$OTOOL64"; then
9325   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330   IFS=$as_save_IFS
9331   test -z "$as_dir" && as_dir=.
9332     for ac_exec_ext in '' $ac_executable_extensions; do
9333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336     break 2
9337   fi
9338 done
9339   done
9340 IFS=$as_save_IFS
9341
9342 fi
9343 fi
9344 OTOOL64=$ac_cv_prog_OTOOL64
9345 if test -n "$OTOOL64"; then
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9347 $as_echo "$OTOOL64" >&6; }
9348 else
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352
9353
9354 fi
9355 if test -z "$ac_cv_prog_OTOOL64"; then
9356   ac_ct_OTOOL64=$OTOOL64
9357   # Extract the first word of "otool64", so it can be a program name with args.
9358 set dummy otool64; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9362   $as_echo_n "(cached) " >&6
9363 else
9364   if test -n "$ac_ct_OTOOL64"; then
9365   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9366 else
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9369 do
9370   IFS=$as_save_IFS
9371   test -z "$as_dir" && as_dir=.
9372     for ac_exec_ext in '' $ac_executable_extensions; do
9373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9374     ac_cv_prog_ac_ct_OTOOL64="otool64"
9375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376     break 2
9377   fi
9378 done
9379   done
9380 IFS=$as_save_IFS
9381
9382 fi
9383 fi
9384 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9385 if test -n "$ac_ct_OTOOL64"; then
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9387 $as_echo "$ac_ct_OTOOL64" >&6; }
9388 else
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9391 fi
9392
9393   if test "x$ac_ct_OTOOL64" = x; then
9394     OTOOL64=":"
9395   else
9396     case $cross_compiling:$ac_tool_warned in
9397 yes:)
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9400 ac_tool_warned=yes ;;
9401 esac
9402     OTOOL64=$ac_ct_OTOOL64
9403   fi
9404 else
9405   OTOOL64="$ac_cv_prog_OTOOL64"
9406 fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9435 $as_echo_n "checking for -single_module linker flag... " >&6; }
9436 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9437   $as_echo_n "(cached) " >&6
9438 else
9439   lt_cv_apple_cc_single_mod=no
9440       if test -z "${LT_MULTI_MODULE}"; then
9441         # By default we will add the -single_module flag. You can override
9442         # by either setting the environment variable LT_MULTI_MODULE
9443         # non-empty at configure time, or by adding -multi_module to the
9444         # link flags.
9445         rm -rf libconftest.dylib*
9446         echo "int foo(void){return 1;}" > conftest.c
9447         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9448 -dynamiclib -Wl,-single_module conftest.c" >&5
9449         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9450           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9451         _lt_result=$?
9452         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9453           lt_cv_apple_cc_single_mod=yes
9454         else
9455           cat conftest.err >&5
9456         fi
9457         rm -rf libconftest.dylib*
9458         rm -f conftest.*
9459       fi
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9462 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9465 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   lt_cv_ld_exported_symbols_list=no
9469       save_LDFLAGS=$LDFLAGS
9470       echo "_main" > conftest.sym
9471       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9472       if test x$gcc_no_link = xyes; then
9473   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9474 fi
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h.  */
9477
9478 int
9479 main ()
9480 {
9481
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487   lt_cv_ld_exported_symbols_list=yes
9488 else
9489   lt_cv_ld_exported_symbols_list=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492     conftest$ac_exeext conftest.$ac_ext
9493         LDFLAGS="$save_LDFLAGS"
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9499 $as_echo_n "checking for -force_load linker flag... " >&6; }
9500 if test "${lt_cv_ld_force_load+set}" = set; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   lt_cv_ld_force_load=no
9504       cat > conftest.c << _LT_EOF
9505 int forced_loaded() { return 2;}
9506 _LT_EOF
9507       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9508       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9509       echo "$AR cru libconftest.a conftest.o" >&5
9510       $AR cru libconftest.a conftest.o 2>&5
9511       cat > conftest.c << _LT_EOF
9512 int main() { return 0;}
9513 _LT_EOF
9514       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9515       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9516       _lt_result=$?
9517       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9518         lt_cv_ld_force_load=yes
9519       else
9520         cat conftest.err >&5
9521       fi
9522         rm -f conftest.err libconftest.a conftest conftest.c
9523         rm -rf conftest.dSYM
9524
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9527 $as_echo "$lt_cv_ld_force_load" >&6; }
9528     case $host_os in
9529     rhapsody* | darwin1.[012])
9530       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9531     darwin1.*)
9532       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9533     darwin*) # darwin 5.x on
9534       # if running on 10.5 or later, the deployment target defaults
9535       # to the OS version, if on x86, and 10.4, the deployment
9536       # target defaults to 10.4. Don't you love it?
9537       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9538         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9539           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9540         10.[012]*)
9541           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9542         10.*)
9543           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9544       esac
9545     ;;
9546   esac
9547     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9548       _lt_dar_single_mod='$single_module'
9549     fi
9550     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9551       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9552     else
9553       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9554     fi
9555     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9556       _lt_dsymutil='~$DSYMUTIL $lib || :'
9557     else
9558       _lt_dsymutil=
9559     fi
9560     ;;
9561   esac
9562
9563 ac_ext=c
9564 ac_cpp='$CPP $CPPFLAGS'
9565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9569 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9570 # On Suns, sometimes $CPP names a directory.
9571 if test -n "$CPP" && test -d "$CPP"; then
9572   CPP=
9573 fi
9574 if test -z "$CPP"; then
9575   if test "${ac_cv_prog_CPP+set}" = set; then :
9576   $as_echo_n "(cached) " >&6
9577 else
9578       # Double quotes because CPP needs to be expanded
9579     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9580     do
9581       ac_preproc_ok=false
9582 for ac_c_preproc_warn_flag in '' yes
9583 do
9584   # Use a header file that comes with gcc, so configuring glibc
9585   # with a fresh cross-compiler works.
9586   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9587   # <limits.h> exists even on freestanding compilers.
9588   # On the NeXT, cc -E runs the code through the compiler's parser,
9589   # not just through cpp. "Syntax error" is here to catch this case.
9590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h.  */
9592 #ifdef __STDC__
9593 # include <limits.h>
9594 #else
9595 # include <assert.h>
9596 #endif
9597                      Syntax error
9598 _ACEOF
9599 if ac_fn_c_try_cpp "$LINENO"; then :
9600
9601 else
9602   # Broken: fails on valid input.
9603 continue
9604 fi
9605 rm -f conftest.err conftest.$ac_ext
9606
9607   # OK, works on sane cases.  Now check whether nonexistent headers
9608   # can be detected and how.
9609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h.  */
9611 #include <ac_nonexistent.h>
9612 _ACEOF
9613 if ac_fn_c_try_cpp "$LINENO"; then :
9614   # Broken: success on invalid input.
9615 continue
9616 else
9617   # Passes both tests.
9618 ac_preproc_ok=:
9619 break
9620 fi
9621 rm -f conftest.err conftest.$ac_ext
9622
9623 done
9624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9625 rm -f conftest.err conftest.$ac_ext
9626 if $ac_preproc_ok; then :
9627   break
9628 fi
9629
9630     done
9631     ac_cv_prog_CPP=$CPP
9632
9633 fi
9634   CPP=$ac_cv_prog_CPP
9635 else
9636   ac_cv_prog_CPP=$CPP
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9639 $as_echo "$CPP" >&6; }
9640 ac_preproc_ok=false
9641 for ac_c_preproc_warn_flag in '' yes
9642 do
9643   # Use a header file that comes with gcc, so configuring glibc
9644   # with a fresh cross-compiler works.
9645   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9646   # <limits.h> exists even on freestanding compilers.
9647   # On the NeXT, cc -E runs the code through the compiler's parser,
9648   # not just through cpp. "Syntax error" is here to catch this case.
9649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h.  */
9651 #ifdef __STDC__
9652 # include <limits.h>
9653 #else
9654 # include <assert.h>
9655 #endif
9656                      Syntax error
9657 _ACEOF
9658 if ac_fn_c_try_cpp "$LINENO"; then :
9659
9660 else
9661   # Broken: fails on valid input.
9662 continue
9663 fi
9664 rm -f conftest.err conftest.$ac_ext
9665
9666   # OK, works on sane cases.  Now check whether nonexistent headers
9667   # can be detected and how.
9668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h.  */
9670 #include <ac_nonexistent.h>
9671 _ACEOF
9672 if ac_fn_c_try_cpp "$LINENO"; then :
9673   # Broken: success on invalid input.
9674 continue
9675 else
9676   # Passes both tests.
9677 ac_preproc_ok=:
9678 break
9679 fi
9680 rm -f conftest.err conftest.$ac_ext
9681
9682 done
9683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9684 rm -f conftest.err conftest.$ac_ext
9685 if $ac_preproc_ok; then :
9686
9687 else
9688   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9690 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9691 See \`config.log' for more details." "$LINENO" 5; }
9692 fi
9693
9694 ac_ext=c
9695 ac_cpp='$CPP $CPPFLAGS'
9696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9699
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9702 $as_echo_n "checking for ANSI C header files... " >&6; }
9703 if test "${ac_cv_header_stdc+set}" = set; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h.  */
9708 #include <stdlib.h>
9709 #include <stdarg.h>
9710 #include <string.h>
9711 #include <float.h>
9712
9713 int
9714 main ()
9715 {
9716
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_compile "$LINENO"; then :
9722   ac_cv_header_stdc=yes
9723 else
9724   ac_cv_header_stdc=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727
9728 if test $ac_cv_header_stdc = yes; then
9729   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h.  */
9732 #include <string.h>
9733
9734 _ACEOF
9735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9736   $EGREP "memchr" >/dev/null 2>&1; then :
9737
9738 else
9739   ac_cv_header_stdc=no
9740 fi
9741 rm -f conftest*
9742
9743 fi
9744
9745 if test $ac_cv_header_stdc = yes; then
9746   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h.  */
9749 #include <stdlib.h>
9750
9751 _ACEOF
9752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9753   $EGREP "free" >/dev/null 2>&1; then :
9754
9755 else
9756   ac_cv_header_stdc=no
9757 fi
9758 rm -f conftest*
9759
9760 fi
9761
9762 if test $ac_cv_header_stdc = yes; then
9763   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9764   if test "$cross_compiling" = yes; then :
9765   :
9766 else
9767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769 #include <ctype.h>
9770 #include <stdlib.h>
9771 #if ((' ' & 0x0FF) == 0x020)
9772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9774 #else
9775 # define ISLOWER(c) \
9776                    (('a' <= (c) && (c) <= 'i') \
9777                      || ('j' <= (c) && (c) <= 'r') \
9778                      || ('s' <= (c) && (c) <= 'z'))
9779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9780 #endif
9781
9782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9783 int
9784 main ()
9785 {
9786   int i;
9787   for (i = 0; i < 256; i++)
9788     if (XOR (islower (i), ISLOWER (i))
9789         || toupper (i) != TOUPPER (i))
9790       return 2;
9791   return 0;
9792 }
9793 _ACEOF
9794 if ac_fn_c_try_run "$LINENO"; then :
9795
9796 else
9797   ac_cv_header_stdc=no
9798 fi
9799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9800   conftest.$ac_objext conftest.beam conftest.$ac_ext
9801 fi
9802
9803 fi
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9806 $as_echo "$ac_cv_header_stdc" >&6; }
9807 if test $ac_cv_header_stdc = yes; then
9808
9809 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9810
9811 fi
9812
9813 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9815                   inttypes.h stdint.h unistd.h
9816 do :
9817   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9818 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9819 "
9820 eval as_val=\$$as_ac_Header
9821    if test "x$as_val" = x""yes; then :
9822   cat >>confdefs.h <<_ACEOF
9823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9824 _ACEOF
9825
9826 fi
9827
9828 done
9829
9830
9831 for ac_header in dlfcn.h
9832 do :
9833   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9834 "
9835 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9836   cat >>confdefs.h <<_ACEOF
9837 #define HAVE_DLFCN_H 1
9838 _ACEOF
9839
9840 fi
9841
9842 done
9843
9844
9845
9846
9847
9848
9849 # Set options
9850
9851
9852
9853
9854   enable_win32_dll=no
9855
9856
9857             # Check whether --enable-shared was given.
9858 if test "${enable_shared+set}" = set; then :
9859   enableval=$enable_shared; p=${PACKAGE-default}
9860     case $enableval in
9861     yes) enable_shared=yes ;;
9862     no) enable_shared=no ;;
9863     *)
9864       enable_shared=no
9865       # Look at the argument we got.  We use all the common list separators.
9866       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9867       for pkg in $enableval; do
9868         IFS="$lt_save_ifs"
9869         if test "X$pkg" = "X$p"; then
9870           enable_shared=yes
9871         fi
9872       done
9873       IFS="$lt_save_ifs"
9874       ;;
9875     esac
9876 else
9877   enable_shared=yes
9878 fi
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888   # Check whether --enable-static was given.
9889 if test "${enable_static+set}" = set; then :
9890   enableval=$enable_static; p=${PACKAGE-default}
9891     case $enableval in
9892     yes) enable_static=yes ;;
9893     no) enable_static=no ;;
9894     *)
9895      enable_static=no
9896       # Look at the argument we got.  We use all the common list separators.
9897       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9898       for pkg in $enableval; do
9899         IFS="$lt_save_ifs"
9900         if test "X$pkg" = "X$p"; then
9901           enable_static=yes
9902         fi
9903       done
9904       IFS="$lt_save_ifs"
9905       ;;
9906     esac
9907 else
9908   enable_static=yes
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920 # Check whether --with-pic was given.
9921 if test "${with_pic+set}" = set; then :
9922   withval=$with_pic; pic_mode="$withval"
9923 else
9924   pic_mode=default
9925 fi
9926
9927
9928 test -z "$pic_mode" && pic_mode=default
9929
9930
9931
9932
9933
9934
9935
9936   # Check whether --enable-fast-install was given.
9937 if test "${enable_fast_install+set}" = set; then :
9938   enableval=$enable_fast_install; p=${PACKAGE-default}
9939     case $enableval in
9940     yes) enable_fast_install=yes ;;
9941     no) enable_fast_install=no ;;
9942     *)
9943       enable_fast_install=no
9944       # Look at the argument we got.  We use all the common list separators.
9945       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9946       for pkg in $enableval; do
9947         IFS="$lt_save_ifs"
9948         if test "X$pkg" = "X$p"; then
9949           enable_fast_install=yes
9950         fi
9951       done
9952       IFS="$lt_save_ifs"
9953       ;;
9954     esac
9955 else
9956   enable_fast_install=yes
9957 fi
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969 # This can be used to rebuild libtool when needed
9970 LIBTOOL_DEPS="$ltmain"
9971
9972 # Always use our own libtool.
9973 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000 test -z "$LN_S" && LN_S="ln -s"
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015 if test -n "${ZSH_VERSION+set}" ; then
10016    setopt NO_GLOB_SUBST
10017 fi
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10020 $as_echo_n "checking for objdir... " >&6; }
10021 if test "${lt_cv_objdir+set}" = set; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   rm -f .libs 2>/dev/null
10025 mkdir .libs 2>/dev/null
10026 if test -d .libs; then
10027   lt_cv_objdir=.libs
10028 else
10029   # MS-DOS does not allow filenames that begin with a dot.
10030   lt_cv_objdir=_libs
10031 fi
10032 rmdir .libs 2>/dev/null
10033 fi
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10035 $as_echo "$lt_cv_objdir" >&6; }
10036 objdir=$lt_cv_objdir
10037
10038
10039
10040
10041
10042 cat >>confdefs.h <<_ACEOF
10043 #define LT_OBJDIR "$lt_cv_objdir/"
10044 _ACEOF
10045
10046
10047
10048
10049 case $host_os in
10050 aix3*)
10051   # AIX sometimes has problems with the GCC collect2 program.  For some
10052   # reason, if we set the COLLECT_NAMES environment variable, the problems
10053   # vanish in a puff of smoke.
10054   if test "X${COLLECT_NAMES+set}" != Xset; then
10055     COLLECT_NAMES=
10056     export COLLECT_NAMES
10057   fi
10058   ;;
10059 esac
10060
10061 # Global variables:
10062 ofile=libtool
10063 can_build_shared=yes
10064
10065 # All known linkers require a `.a' archive for static linking (except MSVC,
10066 # which needs '.lib').
10067 libext=a
10068
10069 with_gnu_ld="$lt_cv_prog_gnu_ld"
10070
10071 old_CC="$CC"
10072 old_CFLAGS="$CFLAGS"
10073
10074 # Set sane defaults for various variables
10075 test -z "$CC" && CC=cc
10076 test -z "$LTCC" && LTCC=$CC
10077 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10078 test -z "$LD" && LD=ld
10079 test -z "$ac_objext" && ac_objext=o
10080
10081 for cc_temp in $compiler""; do
10082   case $cc_temp in
10083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10085     \-*) ;;
10086     *) break;;
10087   esac
10088 done
10089 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10090
10091
10092 # Only perform the check for file, if the check method requires it
10093 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10094 case $deplibs_check_method in
10095 file_magic*)
10096   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10098 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   case $MAGIC_CMD in
10103 [\\/*] |  ?:[\\/]*)
10104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10105   ;;
10106 *)
10107   lt_save_MAGIC_CMD="$MAGIC_CMD"
10108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10109   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10110   for ac_dir in $ac_dummy; do
10111     IFS="$lt_save_ifs"
10112     test -z "$ac_dir" && ac_dir=.
10113     if test -f $ac_dir/${ac_tool_prefix}file; then
10114       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10115       if test -n "$file_magic_test_file"; then
10116         case $deplibs_check_method in
10117         "file_magic "*)
10118           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10119           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10120           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10121             $EGREP "$file_magic_regex" > /dev/null; then
10122             :
10123           else
10124             cat <<_LT_EOF 1>&2
10125
10126 *** Warning: the command libtool uses to detect shared libraries,
10127 *** $file_magic_cmd, produces output that libtool cannot recognize.
10128 *** The result is that libtool may fail to recognize shared libraries
10129 *** as such.  This will affect the creation of libtool libraries that
10130 *** depend on shared libraries, but programs linked with such libtool
10131 *** libraries will work regardless of this problem.  Nevertheless, you
10132 *** may want to report the problem to your system manager and/or to
10133 *** bug-libtool@gnu.org
10134
10135 _LT_EOF
10136           fi ;;
10137         esac
10138       fi
10139       break
10140     fi
10141   done
10142   IFS="$lt_save_ifs"
10143   MAGIC_CMD="$lt_save_MAGIC_CMD"
10144   ;;
10145 esac
10146 fi
10147
10148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10149 if test -n "$MAGIC_CMD"; then
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10151 $as_echo "$MAGIC_CMD" >&6; }
10152 else
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10155 fi
10156
10157
10158
10159
10160
10161 if test -z "$lt_cv_path_MAGIC_CMD"; then
10162   if test -n "$ac_tool_prefix"; then
10163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10164 $as_echo_n "checking for file... " >&6; }
10165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10166   $as_echo_n "(cached) " >&6
10167 else
10168   case $MAGIC_CMD in
10169 [\\/*] |  ?:[\\/]*)
10170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10171   ;;
10172 *)
10173   lt_save_MAGIC_CMD="$MAGIC_CMD"
10174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10175   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10176   for ac_dir in $ac_dummy; do
10177     IFS="$lt_save_ifs"
10178     test -z "$ac_dir" && ac_dir=.
10179     if test -f $ac_dir/file; then
10180       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10181       if test -n "$file_magic_test_file"; then
10182         case $deplibs_check_method in
10183         "file_magic "*)
10184           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10185           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10186           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10187             $EGREP "$file_magic_regex" > /dev/null; then
10188             :
10189           else
10190             cat <<_LT_EOF 1>&2
10191
10192 *** Warning: the command libtool uses to detect shared libraries,
10193 *** $file_magic_cmd, produces output that libtool cannot recognize.
10194 *** The result is that libtool may fail to recognize shared libraries
10195 *** as such.  This will affect the creation of libtool libraries that
10196 *** depend on shared libraries, but programs linked with such libtool
10197 *** libraries will work regardless of this problem.  Nevertheless, you
10198 *** may want to report the problem to your system manager and/or to
10199 *** bug-libtool@gnu.org
10200
10201 _LT_EOF
10202           fi ;;
10203         esac
10204       fi
10205       break
10206     fi
10207   done
10208   IFS="$lt_save_ifs"
10209   MAGIC_CMD="$lt_save_MAGIC_CMD"
10210   ;;
10211 esac
10212 fi
10213
10214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10215 if test -n "$MAGIC_CMD"; then
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10217 $as_echo "$MAGIC_CMD" >&6; }
10218 else
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 fi
10222
10223
10224   else
10225     MAGIC_CMD=:
10226   fi
10227 fi
10228
10229   fi
10230   ;;
10231 esac
10232
10233 # Use C for the default configuration in the libtool script
10234
10235 lt_save_CC="$CC"
10236 ac_ext=c
10237 ac_cpp='$CPP $CPPFLAGS'
10238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10241
10242
10243 # Source file extension for C test sources.
10244 ac_ext=c
10245
10246 # Object file extension for compiled C test sources.
10247 objext=o
10248 objext=$objext
10249
10250 # Code to be used in simple compile tests
10251 lt_simple_compile_test_code="int some_variable = 0;"
10252
10253 # Code to be used in simple link tests
10254 lt_simple_link_test_code='int main(){return(0);}'
10255
10256
10257
10258
10259
10260
10261
10262 # If no C compiler was specified, use CC.
10263 LTCC=${LTCC-"$CC"}
10264
10265 # If no C compiler flags were specified, use CFLAGS.
10266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10267
10268 # Allow CC to be a program name with arguments.
10269 compiler=$CC
10270
10271 # Save the default compiler, since it gets overwritten when the other
10272 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10273 compiler_DEFAULT=$CC
10274
10275 # save warnings/boilerplate of simple test code
10276 ac_outfile=conftest.$ac_objext
10277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10279 _lt_compiler_boilerplate=`cat conftest.err`
10280 $RM conftest*
10281
10282 ac_outfile=conftest.$ac_objext
10283 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10284 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10285 _lt_linker_boilerplate=`cat conftest.err`
10286 $RM -r conftest*
10287
10288
10289 ## CAVEAT EMPTOR:
10290 ## There is no encapsulation within the following macros, do not change
10291 ## the running order or otherwise move them around unless you know exactly
10292 ## what you are doing...
10293 if test -n "$compiler"; then
10294
10295 lt_prog_compiler_no_builtin_flag=
10296
10297 if test "$GCC" = yes; then
10298   case $cc_basename in
10299   nvcc*)
10300     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10301   *)
10302     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10303   esac
10304
10305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10306 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10307 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   lt_cv_prog_compiler_rtti_exceptions=no
10311    ac_outfile=conftest.$ac_objext
10312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10313    lt_compiler_flag="-fno-rtti -fno-exceptions"
10314    # Insert the option either (1) after the last *FLAGS variable, or
10315    # (2) before a word containing "conftest.", or (3) at the end.
10316    # Note that $ac_compile itself does not contain backslashes and begins
10317    # with a dollar sign (not a hyphen), so the echo should work correctly.
10318    # The option is referenced via a variable to avoid confusing sed.
10319    lt_compile=`echo "$ac_compile" | $SED \
10320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10322    -e 's:$: $lt_compiler_flag:'`
10323    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10324    (eval "$lt_compile" 2>conftest.err)
10325    ac_status=$?
10326    cat conftest.err >&5
10327    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328    if (exit $ac_status) && test -s "$ac_outfile"; then
10329      # The compiler can only warn and ignore the option if not recognized
10330      # So say no if there are warnings other than the usual output.
10331      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10332      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10333      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10334        lt_cv_prog_compiler_rtti_exceptions=yes
10335      fi
10336    fi
10337    $RM conftest*
10338
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10341 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10342
10343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10344     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10345 else
10346     :
10347 fi
10348
10349 fi
10350
10351
10352
10353
10354
10355
10356   lt_prog_compiler_wl=
10357 lt_prog_compiler_pic=
10358 lt_prog_compiler_static=
10359
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10361 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10362
10363   if test "$GCC" = yes; then
10364     lt_prog_compiler_wl='-Wl,'
10365     lt_prog_compiler_static='-static'
10366
10367     case $host_os in
10368       aix*)
10369       # All AIX code is PIC.
10370       if test "$host_cpu" = ia64; then
10371         # AIX 5 now supports IA64 processor
10372         lt_prog_compiler_static='-Bstatic'
10373       fi
10374       ;;
10375
10376     amigaos*)
10377       case $host_cpu in
10378       powerpc)
10379             # see comment about AmigaOS4 .so support
10380             lt_prog_compiler_pic='-fPIC'
10381         ;;
10382       m68k)
10383             # FIXME: we need at least 68020 code to build shared libraries, but
10384             # adding the `-m68020' flag to GCC prevents building anything better,
10385             # like `-m68040'.
10386             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10387         ;;
10388       esac
10389       ;;
10390
10391     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10392       # PIC is the default for these OSes.
10393       ;;
10394
10395     mingw* | cygwin* | pw32* | os2* | cegcc*)
10396       # This hack is so that the source file can tell whether it is being
10397       # built for inclusion in a dll (and should export symbols for example).
10398       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10399       # (--disable-auto-import) libraries
10400       lt_prog_compiler_pic='-DDLL_EXPORT'
10401       ;;
10402
10403     darwin* | rhapsody*)
10404       # PIC is the default on this platform
10405       # Common symbols not allowed in MH_DYLIB files
10406       lt_prog_compiler_pic='-fno-common'
10407       ;;
10408
10409     haiku*)
10410       # PIC is the default for Haiku.
10411       # The "-static" flag exists, but is broken.
10412       lt_prog_compiler_static=
10413       ;;
10414
10415     hpux*)
10416       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10417       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10418       # sets the default TLS model and affects inlining.
10419       case $host_cpu in
10420       hppa*64*)
10421         # +Z the default
10422         ;;
10423       *)
10424         lt_prog_compiler_pic='-fPIC'
10425         ;;
10426       esac
10427       ;;
10428
10429     interix[3-9]*)
10430       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10431       # Instead, we relocate shared libraries at runtime.
10432       ;;
10433
10434     msdosdjgpp*)
10435       # Just because we use GCC doesn't mean we suddenly get shared libraries
10436       # on systems that don't support them.
10437       lt_prog_compiler_can_build_shared=no
10438       enable_shared=no
10439       ;;
10440
10441     *nto* | *qnx*)
10442       # QNX uses GNU C++, but need to define -shared option too, otherwise
10443       # it will coredump.
10444       lt_prog_compiler_pic='-fPIC -shared'
10445       ;;
10446
10447     sysv4*MP*)
10448       if test -d /usr/nec; then
10449         lt_prog_compiler_pic=-Kconform_pic
10450       fi
10451       ;;
10452
10453     *)
10454       lt_prog_compiler_pic='-fPIC'
10455       ;;
10456     esac
10457
10458     case $cc_basename in
10459     nvcc*) # Cuda Compiler Driver 2.2
10460       lt_prog_compiler_wl='-Xlinker '
10461       lt_prog_compiler_pic='-Xcompiler -fPIC'
10462       ;;
10463     esac
10464   else
10465     # PORTME Check for flag to pass linker flags through the system compiler.
10466     case $host_os in
10467     aix*)
10468       lt_prog_compiler_wl='-Wl,'
10469       if test "$host_cpu" = ia64; then
10470         # AIX 5 now supports IA64 processor
10471         lt_prog_compiler_static='-Bstatic'
10472       else
10473         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10474       fi
10475       ;;
10476
10477     mingw* | cygwin* | pw32* | os2* | cegcc*)
10478       # This hack is so that the source file can tell whether it is being
10479       # built for inclusion in a dll (and should export symbols for example).
10480       lt_prog_compiler_pic='-DDLL_EXPORT'
10481       ;;
10482
10483     hpux9* | hpux10* | hpux11*)
10484       lt_prog_compiler_wl='-Wl,'
10485       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10486       # not for PA HP-UX.
10487       case $host_cpu in
10488       hppa*64*|ia64*)
10489         # +Z the default
10490         ;;
10491       *)
10492         lt_prog_compiler_pic='+Z'
10493         ;;
10494       esac
10495       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10496       lt_prog_compiler_static='${wl}-a ${wl}archive'
10497       ;;
10498
10499     irix5* | irix6* | nonstopux*)
10500       lt_prog_compiler_wl='-Wl,'
10501       # PIC (with -KPIC) is the default.
10502       lt_prog_compiler_static='-non_shared'
10503       ;;
10504
10505     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10506       case $cc_basename in
10507       # old Intel for x86_64 which still supported -KPIC.
10508       ecc*)
10509         lt_prog_compiler_wl='-Wl,'
10510         lt_prog_compiler_pic='-KPIC'
10511         lt_prog_compiler_static='-static'
10512         ;;
10513       # icc used to be incompatible with GCC.
10514       # ICC 10 doesn't accept -KPIC any more.
10515       icc* | ifort*)
10516         lt_prog_compiler_wl='-Wl,'
10517         lt_prog_compiler_pic='-fPIC'
10518         lt_prog_compiler_static='-static'
10519         ;;
10520       # Lahey Fortran 8.1.
10521       lf95*)
10522         lt_prog_compiler_wl='-Wl,'
10523         lt_prog_compiler_pic='--shared'
10524         lt_prog_compiler_static='--static'
10525         ;;
10526       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10527         # Portland Group compilers (*not* the Pentium gcc compiler,
10528         # which looks to be a dead project)
10529         lt_prog_compiler_wl='-Wl,'
10530         lt_prog_compiler_pic='-fpic'
10531         lt_prog_compiler_static='-Bstatic'
10532         ;;
10533       ccc*)
10534         lt_prog_compiler_wl='-Wl,'
10535         # All Alpha code is PIC.
10536         lt_prog_compiler_static='-non_shared'
10537         ;;
10538       xl* | bgxl* | bgf* | mpixl*)
10539         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10540         lt_prog_compiler_wl='-Wl,'
10541         lt_prog_compiler_pic='-qpic'
10542         lt_prog_compiler_static='-qstaticlink'
10543         ;;
10544       *)
10545         case `$CC -V 2>&1 | sed 5q` in
10546         *Sun\ F* | *Sun*Fortran*)
10547           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10548           lt_prog_compiler_pic='-KPIC'
10549           lt_prog_compiler_static='-Bstatic'
10550           lt_prog_compiler_wl=''
10551           ;;
10552         *Sun\ C*)
10553           # Sun C 5.9
10554           lt_prog_compiler_pic='-KPIC'
10555           lt_prog_compiler_static='-Bstatic'
10556           lt_prog_compiler_wl='-Wl,'
10557           ;;
10558         esac
10559         ;;
10560       esac
10561       ;;
10562
10563     newsos6)
10564       lt_prog_compiler_pic='-KPIC'
10565       lt_prog_compiler_static='-Bstatic'
10566       ;;
10567
10568     *nto* | *qnx*)
10569       # QNX uses GNU C++, but need to define -shared option too, otherwise
10570       # it will coredump.
10571       lt_prog_compiler_pic='-fPIC -shared'
10572       ;;
10573
10574     osf3* | osf4* | osf5*)
10575       lt_prog_compiler_wl='-Wl,'
10576       # All OSF/1 code is PIC.
10577       lt_prog_compiler_static='-non_shared'
10578       ;;
10579
10580     rdos*)
10581       lt_prog_compiler_static='-non_shared'
10582       ;;
10583
10584     solaris*)
10585       lt_prog_compiler_pic='-KPIC'
10586       lt_prog_compiler_static='-Bstatic'
10587       case $cc_basename in
10588       f77* | f90* | f95*)
10589         lt_prog_compiler_wl='-Qoption ld ';;
10590       *)
10591         lt_prog_compiler_wl='-Wl,';;
10592       esac
10593       ;;
10594
10595     sunos4*)
10596       lt_prog_compiler_wl='-Qoption ld '
10597       lt_prog_compiler_pic='-PIC'
10598       lt_prog_compiler_static='-Bstatic'
10599       ;;
10600
10601     sysv4 | sysv4.2uw2* | sysv4.3*)
10602       lt_prog_compiler_wl='-Wl,'
10603       lt_prog_compiler_pic='-KPIC'
10604       lt_prog_compiler_static='-Bstatic'
10605       ;;
10606
10607     sysv4*MP*)
10608       if test -d /usr/nec ;then
10609         lt_prog_compiler_pic='-Kconform_pic'
10610         lt_prog_compiler_static='-Bstatic'
10611       fi
10612       ;;
10613
10614     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10615       lt_prog_compiler_wl='-Wl,'
10616       lt_prog_compiler_pic='-KPIC'
10617       lt_prog_compiler_static='-Bstatic'
10618       ;;
10619
10620     unicos*)
10621       lt_prog_compiler_wl='-Wl,'
10622       lt_prog_compiler_can_build_shared=no
10623       ;;
10624
10625     uts4*)
10626       lt_prog_compiler_pic='-pic'
10627       lt_prog_compiler_static='-Bstatic'
10628       ;;
10629
10630     *)
10631       lt_prog_compiler_can_build_shared=no
10632       ;;
10633     esac
10634   fi
10635
10636 case $host_os in
10637   # For platforms which do not support PIC, -DPIC is meaningless:
10638   *djgpp*)
10639     lt_prog_compiler_pic=
10640     ;;
10641   *)
10642     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10643     ;;
10644 esac
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10646 $as_echo "$lt_prog_compiler_pic" >&6; }
10647
10648
10649
10650
10651
10652
10653 #
10654 # Check to make sure the PIC flag actually works.
10655 #
10656 if test -n "$lt_prog_compiler_pic"; then
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10658 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10659 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   lt_cv_prog_compiler_pic_works=no
10663    ac_outfile=conftest.$ac_objext
10664    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10665    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10666    # Insert the option either (1) after the last *FLAGS variable, or
10667    # (2) before a word containing "conftest.", or (3) at the end.
10668    # Note that $ac_compile itself does not contain backslashes and begins
10669    # with a dollar sign (not a hyphen), so the echo should work correctly.
10670    # The option is referenced via a variable to avoid confusing sed.
10671    lt_compile=`echo "$ac_compile" | $SED \
10672    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10673    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10674    -e 's:$: $lt_compiler_flag:'`
10675    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10676    (eval "$lt_compile" 2>conftest.err)
10677    ac_status=$?
10678    cat conftest.err >&5
10679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680    if (exit $ac_status) && test -s "$ac_outfile"; then
10681      # The compiler can only warn and ignore the option if not recognized
10682      # So say no if there are warnings other than the usual output.
10683      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10684      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10685      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10686        lt_cv_prog_compiler_pic_works=yes
10687      fi
10688    fi
10689    $RM conftest*
10690
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10693 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10694
10695 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10696     case $lt_prog_compiler_pic in
10697      "" | " "*) ;;
10698      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10699      esac
10700 else
10701     lt_prog_compiler_pic=
10702      lt_prog_compiler_can_build_shared=no
10703 fi
10704
10705 fi
10706
10707
10708
10709
10710
10711
10712 #
10713 # Check to make sure the static flag actually works.
10714 #
10715 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10718 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10719   $as_echo_n "(cached) " >&6
10720 else
10721   lt_cv_prog_compiler_static_works=no
10722    save_LDFLAGS="$LDFLAGS"
10723    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10724    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10725    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10726      # The linker can only warn and ignore the option if not recognized
10727      # So say no if there are warnings
10728      if test -s conftest.err; then
10729        # Append any errors to the config.log.
10730        cat conftest.err 1>&5
10731        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10732        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10733        if diff conftest.exp conftest.er2 >/dev/null; then
10734          lt_cv_prog_compiler_static_works=yes
10735        fi
10736      else
10737        lt_cv_prog_compiler_static_works=yes
10738      fi
10739    fi
10740    $RM -r conftest*
10741    LDFLAGS="$save_LDFLAGS"
10742
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10745 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10746
10747 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10748     :
10749 else
10750     lt_prog_compiler_static=
10751 fi
10752
10753
10754
10755
10756
10757
10758
10759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10761 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10762   $as_echo_n "(cached) " >&6
10763 else
10764   lt_cv_prog_compiler_c_o=no
10765    $RM -r conftest 2>/dev/null
10766    mkdir conftest
10767    cd conftest
10768    mkdir out
10769    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10770
10771    lt_compiler_flag="-o out/conftest2.$ac_objext"
10772    # Insert the option either (1) after the last *FLAGS variable, or
10773    # (2) before a word containing "conftest.", or (3) at the end.
10774    # Note that $ac_compile itself does not contain backslashes and begins
10775    # with a dollar sign (not a hyphen), so the echo should work correctly.
10776    lt_compile=`echo "$ac_compile" | $SED \
10777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10779    -e 's:$: $lt_compiler_flag:'`
10780    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10781    (eval "$lt_compile" 2>out/conftest.err)
10782    ac_status=$?
10783    cat out/conftest.err >&5
10784    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10786    then
10787      # The compiler can only warn and ignore the option if not recognized
10788      # So say no if there are warnings
10789      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10790      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10791      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10792        lt_cv_prog_compiler_c_o=yes
10793      fi
10794    fi
10795    chmod u+w . 2>&5
10796    $RM conftest*
10797    # SGI C++ compiler will create directory out/ii_files/ for
10798    # template instantiation
10799    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10800    $RM out/* && rmdir out
10801    cd ..
10802    $RM -r conftest
10803    $RM conftest*
10804
10805 fi
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10807 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10808
10809
10810
10811
10812
10813
10814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   lt_cv_prog_compiler_c_o=no
10820    $RM -r conftest 2>/dev/null
10821    mkdir conftest
10822    cd conftest
10823    mkdir out
10824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10825
10826    lt_compiler_flag="-o out/conftest2.$ac_objext"
10827    # Insert the option either (1) after the last *FLAGS variable, or
10828    # (2) before a word containing "conftest.", or (3) at the end.
10829    # Note that $ac_compile itself does not contain backslashes and begins
10830    # with a dollar sign (not a hyphen), so the echo should work correctly.
10831    lt_compile=`echo "$ac_compile" | $SED \
10832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10834    -e 's:$: $lt_compiler_flag:'`
10835    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10836    (eval "$lt_compile" 2>out/conftest.err)
10837    ac_status=$?
10838    cat out/conftest.err >&5
10839    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10841    then
10842      # The compiler can only warn and ignore the option if not recognized
10843      # So say no if there are warnings
10844      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10847        lt_cv_prog_compiler_c_o=yes
10848      fi
10849    fi
10850    chmod u+w . 2>&5
10851    $RM conftest*
10852    # SGI C++ compiler will create directory out/ii_files/ for
10853    # template instantiation
10854    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10855    $RM out/* && rmdir out
10856    cd ..
10857    $RM -r conftest
10858    $RM conftest*
10859
10860 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10862 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10863
10864
10865
10866
10867 hard_links="nottested"
10868 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10869   # do not overwrite the value of need_locks provided by the user
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10871 $as_echo_n "checking if we can lock with hard links... " >&6; }
10872   hard_links=yes
10873   $RM conftest*
10874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10875   touch conftest.a
10876   ln conftest.a conftest.b 2>&5 || hard_links=no
10877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10879 $as_echo "$hard_links" >&6; }
10880   if test "$hard_links" = no; then
10881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10882 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10883     need_locks=warn
10884   fi
10885 else
10886   need_locks=no
10887 fi
10888
10889
10890
10891
10892
10893
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10896
10897   runpath_var=
10898   allow_undefined_flag=
10899   always_export_symbols=no
10900   archive_cmds=
10901   archive_expsym_cmds=
10902   compiler_needs_object=no
10903   enable_shared_with_static_runtimes=no
10904   export_dynamic_flag_spec=
10905   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10906   hardcode_automatic=no
10907   hardcode_direct=no
10908   hardcode_direct_absolute=no
10909   hardcode_libdir_flag_spec=
10910   hardcode_libdir_flag_spec_ld=
10911   hardcode_libdir_separator=
10912   hardcode_minus_L=no
10913   hardcode_shlibpath_var=unsupported
10914   inherit_rpath=no
10915   link_all_deplibs=unknown
10916   module_cmds=
10917   module_expsym_cmds=
10918   old_archive_from_new_cmds=
10919   old_archive_from_expsyms_cmds=
10920   thread_safe_flag_spec=
10921   whole_archive_flag_spec=
10922   # include_expsyms should be a list of space-separated symbols to be *always*
10923   # included in the symbol list
10924   include_expsyms=
10925   # exclude_expsyms can be an extended regexp of symbols to exclude
10926   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10927   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10928   # as well as any symbol that contains `d'.
10929   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10930   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10931   # platforms (ab)use it in PIC code, but their linkers get confused if
10932   # the symbol is explicitly referenced.  Since portable code cannot
10933   # rely on this symbol name, it's probably fine to never include it in
10934   # preloaded symbol tables.
10935   # Exclude shared library initialization/finalization symbols.
10936   extract_expsyms_cmds=
10937
10938   case $host_os in
10939   cygwin* | mingw* | pw32* | cegcc*)
10940     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10941     # When not using gcc, we currently assume that we are using
10942     # Microsoft Visual C++.
10943     if test "$GCC" != yes; then
10944       with_gnu_ld=no
10945     fi
10946     ;;
10947   interix*)
10948     # we just hope/assume this is gcc and not c89 (= MSVC++)
10949     with_gnu_ld=yes
10950     ;;
10951   openbsd*)
10952     with_gnu_ld=no
10953     ;;
10954   esac
10955
10956   ld_shlibs=yes
10957
10958   # On some targets, GNU ld is compatible enough with the native linker
10959   # that we're better off using the native interface for both.
10960   lt_use_gnu_ld_interface=no
10961   if test "$with_gnu_ld" = yes; then
10962     case $host_os in
10963       aix*)
10964         # The AIX port of GNU ld has always aspired to compatibility
10965         # with the native linker.  However, as the warning in the GNU ld
10966         # block says, versions before 2.19.5* couldn't really create working
10967         # shared libraries, regardless of the interface used.
10968         case `$LD -v 2>&1` in
10969           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10970           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10971           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10972           *)
10973             lt_use_gnu_ld_interface=yes
10974             ;;
10975         esac
10976         ;;
10977       *)
10978         lt_use_gnu_ld_interface=yes
10979         ;;
10980     esac
10981   fi
10982
10983   if test "$lt_use_gnu_ld_interface" = yes; then
10984     # If archive_cmds runs LD, not CC, wlarc should be empty
10985     wlarc='${wl}'
10986
10987     # Set some defaults for GNU ld with shared library support. These
10988     # are reset later if shared libraries are not supported. Putting them
10989     # here allows them to be overridden if necessary.
10990     runpath_var=LD_RUN_PATH
10991     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10992     export_dynamic_flag_spec='${wl}--export-dynamic'
10993     # ancient GNU ld didn't support --whole-archive et. al.
10994     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10995       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10996     else
10997       whole_archive_flag_spec=
10998     fi
10999     supports_anon_versioning=no
11000     case `$LD -v 2>&1` in
11001       *GNU\ gold*) supports_anon_versioning=yes ;;
11002       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11003       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11004       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11005       *\ 2.11.*) ;; # other 2.11 versions
11006       *) supports_anon_versioning=yes ;;
11007     esac
11008
11009     # See if GNU ld supports shared libraries.
11010     case $host_os in
11011     aix[3-9]*)
11012       # On AIX/PPC, the GNU linker is very broken
11013       if test "$host_cpu" != ia64; then
11014         ld_shlibs=no
11015         cat <<_LT_EOF 1>&2
11016
11017 *** Warning: the GNU linker, at least up to release 2.19, is reported
11018 *** to be unable to reliably create shared libraries on AIX.
11019 *** Therefore, libtool is disabling shared libraries support.  If you
11020 *** really care for shared libraries, you may want to install binutils
11021 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11022 *** You will then need to restart the configuration process.
11023
11024 _LT_EOF
11025       fi
11026       ;;
11027
11028     amigaos*)
11029       case $host_cpu in
11030       powerpc)
11031             # see comment about AmigaOS4 .so support
11032             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11033             archive_expsym_cmds=''
11034         ;;
11035       m68k)
11036             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)'
11037             hardcode_libdir_flag_spec='-L$libdir'
11038             hardcode_minus_L=yes
11039         ;;
11040       esac
11041       ;;
11042
11043     beos*)
11044       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11045         allow_undefined_flag=unsupported
11046         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11047         # support --undefined.  This deserves some investigation.  FIXME
11048         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11049       else
11050         ld_shlibs=no
11051       fi
11052       ;;
11053
11054     cygwin* | mingw* | pw32* | cegcc*)
11055       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11056       # as there is no search path for DLLs.
11057       hardcode_libdir_flag_spec='-L$libdir'
11058       export_dynamic_flag_spec='${wl}--export-all-symbols'
11059       allow_undefined_flag=unsupported
11060       always_export_symbols=no
11061       enable_shared_with_static_runtimes=yes
11062       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11063
11064       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11065         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11066         # If the export-symbols file already is a .def file (1st line
11067         # is EXPORTS), use it as is; otherwise, prepend...
11068         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11069           cp $export_symbols $output_objdir/$soname.def;
11070         else
11071           echo EXPORTS > $output_objdir/$soname.def;
11072           cat $export_symbols >> $output_objdir/$soname.def;
11073         fi~
11074         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11075       else
11076         ld_shlibs=no
11077       fi
11078       ;;
11079
11080     haiku*)
11081       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11082       link_all_deplibs=yes
11083       ;;
11084
11085     interix[3-9]*)
11086       hardcode_direct=no
11087       hardcode_shlibpath_var=no
11088       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11089       export_dynamic_flag_spec='${wl}-E'
11090       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11091       # Instead, shared libraries are loaded at an image base (0x10000000 by
11092       # default) and relocated if they conflict, which is a slow very memory
11093       # consuming and fragmenting process.  To avoid this, we pick a random,
11094       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11095       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11096       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11097       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'
11098       ;;
11099
11100     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11101       tmp_diet=no
11102       if test "$host_os" = linux-dietlibc; then
11103         case $cc_basename in
11104           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11105         esac
11106       fi
11107       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11108          && test "$tmp_diet" = no
11109       then
11110         tmp_addflag=
11111         tmp_sharedflag='-shared'
11112         case $cc_basename,$host_cpu in
11113         pgcc*)                          # Portland Group C compiler
11114           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11115           tmp_addflag=' $pic_flag'
11116           ;;
11117         pgf77* | pgf90* | pgf95* | pgfortran*)
11118                                         # Portland Group f77 and f90 compilers
11119           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11120           tmp_addflag=' $pic_flag -Mnomain' ;;
11121         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11122           tmp_addflag=' -i_dynamic' ;;
11123         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11124           tmp_addflag=' -i_dynamic -nofor_main' ;;
11125         ifc* | ifort*)                  # Intel Fortran compiler
11126           tmp_addflag=' -nofor_main' ;;
11127         lf95*)                          # Lahey Fortran 8.1
11128           whole_archive_flag_spec=
11129           tmp_sharedflag='--shared' ;;
11130         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11131           tmp_sharedflag='-qmkshrobj'
11132           tmp_addflag= ;;
11133         nvcc*)  # Cuda Compiler Driver 2.2
11134           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11135           compiler_needs_object=yes
11136           ;;
11137         esac
11138         case `$CC -V 2>&1 | sed 5q` in
11139         *Sun\ C*)                       # Sun C 5.9
11140           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11141           compiler_needs_object=yes
11142           tmp_sharedflag='-G' ;;
11143         *Sun\ F*)                       # Sun Fortran 8.3
11144           tmp_sharedflag='-G' ;;
11145         esac
11146         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11147
11148         if test "x$supports_anon_versioning" = xyes; then
11149           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11150             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11151             echo "local: *; };" >> $output_objdir/$libname.ver~
11152             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11153         fi
11154
11155         case $cc_basename in
11156         xlf* | bgf* | bgxlf* | mpixlf*)
11157           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11158           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11159           hardcode_libdir_flag_spec=
11160           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11161           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11162           if test "x$supports_anon_versioning" = xyes; then
11163             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11164               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11165               echo "local: *; };" >> $output_objdir/$libname.ver~
11166               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11167           fi
11168           ;;
11169         esac
11170       else
11171         ld_shlibs=no
11172       fi
11173       ;;
11174
11175     netbsd*)
11176       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11177         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11178         wlarc=
11179       else
11180         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11181         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11182       fi
11183       ;;
11184
11185     solaris*)
11186       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11187         ld_shlibs=no
11188         cat <<_LT_EOF 1>&2
11189
11190 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11191 *** create shared libraries on Solaris systems.  Therefore, libtool
11192 *** is disabling shared libraries support.  We urge you to upgrade GNU
11193 *** binutils to release 2.9.1 or newer.  Another option is to modify
11194 *** your PATH or compiler configuration so that the native linker is
11195 *** used, and then restart.
11196
11197 _LT_EOF
11198       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11199         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11201       else
11202         ld_shlibs=no
11203       fi
11204       ;;
11205
11206     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11207       case `$LD -v 2>&1` in
11208         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11209         ld_shlibs=no
11210         cat <<_LT_EOF 1>&2
11211
11212 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11213 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11214 *** is disabling shared libraries support.  We urge you to upgrade GNU
11215 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11216 *** your PATH or compiler configuration so that the native linker is
11217 *** used, and then restart.
11218
11219 _LT_EOF
11220         ;;
11221         *)
11222           # For security reasons, it is highly recommended that you always
11223           # use absolute paths for naming shared libraries, and exclude the
11224           # DT_RUNPATH tag from executables and libraries.  But doing so
11225           # requires that you compile everything twice, which is a pain.
11226           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11227             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11228             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11230           else
11231             ld_shlibs=no
11232           fi
11233         ;;
11234       esac
11235       ;;
11236
11237     sunos4*)
11238       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11239       wlarc=
11240       hardcode_direct=yes
11241       hardcode_shlibpath_var=no
11242       ;;
11243
11244     *)
11245       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11247         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11248       else
11249         ld_shlibs=no
11250       fi
11251       ;;
11252     esac
11253
11254     if test "$ld_shlibs" = no; then
11255       runpath_var=
11256       hardcode_libdir_flag_spec=
11257       export_dynamic_flag_spec=
11258       whole_archive_flag_spec=
11259     fi
11260   else
11261     # PORTME fill in a description of your system's linker (not GNU ld)
11262     case $host_os in
11263     aix3*)
11264       allow_undefined_flag=unsupported
11265       always_export_symbols=yes
11266       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'
11267       # Note: this linker hardcodes the directories in LIBPATH if there
11268       # are no directories specified by -L.
11269       hardcode_minus_L=yes
11270       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11271         # Neither direct hardcoding nor static linking is supported with a
11272         # broken collect2.
11273         hardcode_direct=unsupported
11274       fi
11275       ;;
11276
11277     aix[4-9]*)
11278       if test "$host_cpu" = ia64; then
11279         # On IA64, the linker does run time linking by default, so we don't
11280         # have to do anything special.
11281         aix_use_runtimelinking=no
11282         exp_sym_flag='-Bexport'
11283         no_entry_flag=""
11284       else
11285         # If we're using GNU nm, then we don't want the "-C" option.
11286         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11287         # Also, AIX nm treats weak defined symbols like other global
11288         # defined symbols, whereas GNU nm marks them as "W".
11289         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11290           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11291         else
11292           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'
11293         fi
11294         aix_use_runtimelinking=no
11295
11296         # Test if we are trying to use run time linking or normal
11297         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11298         # need to do runtime linking.
11299         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11300           for ld_flag in $LDFLAGS; do
11301           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11302             aix_use_runtimelinking=yes
11303             break
11304           fi
11305           done
11306           ;;
11307         esac
11308
11309         exp_sym_flag='-bexport'
11310         no_entry_flag='-bnoentry'
11311       fi
11312
11313       # When large executables or shared objects are built, AIX ld can
11314       # have problems creating the table of contents.  If linking a library
11315       # or program results in "error TOC overflow" add -mminimal-toc to
11316       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11317       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11318
11319       archive_cmds=''
11320       hardcode_direct=yes
11321       hardcode_direct_absolute=yes
11322       hardcode_libdir_separator=':'
11323       link_all_deplibs=yes
11324       file_list_spec='${wl}-f,'
11325
11326       if test "$GCC" = yes; then
11327         case $host_os in aix4.[012]|aix4.[012].*)
11328         # We only want to do this on AIX 4.2 and lower, the check
11329         # below for broken collect2 doesn't work under 4.3+
11330           collect2name=`${CC} -print-prog-name=collect2`
11331           if test -f "$collect2name" &&
11332            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11333           then
11334           # We have reworked collect2
11335           :
11336           else
11337           # We have old collect2
11338           hardcode_direct=unsupported
11339           # It fails to find uninstalled libraries when the uninstalled
11340           # path is not listed in the libpath.  Setting hardcode_minus_L
11341           # to unsupported forces relinking
11342           hardcode_minus_L=yes
11343           hardcode_libdir_flag_spec='-L$libdir'
11344           hardcode_libdir_separator=
11345           fi
11346           ;;
11347         esac
11348         shared_flag='-shared'
11349         if test "$aix_use_runtimelinking" = yes; then
11350           shared_flag="$shared_flag "'${wl}-G'
11351         fi
11352       else
11353         # not using gcc
11354         if test "$host_cpu" = ia64; then
11355         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11356         # chokes on -Wl,-G. The following line is correct:
11357           shared_flag='-G'
11358         else
11359           if test "$aix_use_runtimelinking" = yes; then
11360             shared_flag='${wl}-G'
11361           else
11362             shared_flag='${wl}-bM:SRE'
11363           fi
11364         fi
11365       fi
11366
11367       export_dynamic_flag_spec='${wl}-bexpall'
11368       # It seems that -bexpall does not export symbols beginning with
11369       # underscore (_), so it is better to generate a list of symbols to export.
11370       always_export_symbols=yes
11371       if test "$aix_use_runtimelinking" = yes; then
11372         # Warning - without using the other runtime loading flags (-brtl),
11373         # -berok will link without error, but may produce a broken library.
11374         allow_undefined_flag='-berok'
11375         # Determine the default libpath from the value encoded in an
11376         # empty executable.
11377         if test x$gcc_no_link = xyes; then
11378   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11379 fi
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h.  */
11382
11383 int
11384 main ()
11385 {
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392
11393 lt_aix_libpath_sed='
11394     /Import File Strings/,/^$/ {
11395         /^0/ {
11396             s/^0  *\(.*\)$/\1/
11397             p
11398         }
11399     }'
11400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401 # Check for a 64-bit object if we didn't find anything.
11402 if test -z "$aix_libpath"; then
11403   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11404 fi
11405 fi
11406 rm -f core conftest.err conftest.$ac_objext \
11407     conftest$ac_exeext conftest.$ac_ext
11408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11409
11410         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11411         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11412       else
11413         if test "$host_cpu" = ia64; then
11414           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11415           allow_undefined_flag="-z nodefs"
11416           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"
11417         else
11418          # Determine the default libpath from the value encoded in an
11419          # empty executable.
11420          if test x$gcc_no_link = xyes; then
11421   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11422 fi
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h.  */
11425
11426 int
11427 main ()
11428 {
11429
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435
11436 lt_aix_libpath_sed='
11437     /Import File Strings/,/^$/ {
11438         /^0/ {
11439             s/^0  *\(.*\)$/\1/
11440             p
11441         }
11442     }'
11443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444 # Check for a 64-bit object if we didn't find anything.
11445 if test -z "$aix_libpath"; then
11446   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11447 fi
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext \
11450     conftest$ac_exeext conftest.$ac_ext
11451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11452
11453          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11454           # Warning - without using the other run time loading flags,
11455           # -berok will link without error, but may produce a broken library.
11456           no_undefined_flag=' ${wl}-bernotok'
11457           allow_undefined_flag=' ${wl}-berok'
11458           if test "$with_gnu_ld" = yes; then
11459             # We only use this code for GNU lds that support --whole-archive.
11460             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11461           else
11462             # Exported symbols can be pulled into shared objects from archives
11463             whole_archive_flag_spec='$convenience'
11464           fi
11465           archive_cmds_need_lc=yes
11466           # This is similar to how AIX traditionally builds its shared libraries.
11467           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'
11468         fi
11469       fi
11470       ;;
11471
11472     amigaos*)
11473       case $host_cpu in
11474       powerpc)
11475             # see comment about AmigaOS4 .so support
11476             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477             archive_expsym_cmds=''
11478         ;;
11479       m68k)
11480             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)'
11481             hardcode_libdir_flag_spec='-L$libdir'
11482             hardcode_minus_L=yes
11483         ;;
11484       esac
11485       ;;
11486
11487     bsdi[45]*)
11488       export_dynamic_flag_spec=-rdynamic
11489       ;;
11490
11491     cygwin* | mingw* | pw32* | cegcc*)
11492       # When not using gcc, we currently assume that we are using
11493       # Microsoft Visual C++.
11494       # hardcode_libdir_flag_spec is actually meaningless, as there is
11495       # no search path for DLLs.
11496       hardcode_libdir_flag_spec=' '
11497       allow_undefined_flag=unsupported
11498       # Tell ltmain to make .lib files, not .a files.
11499       libext=lib
11500       # Tell ltmain to make .dll files, not .so files.
11501       shrext_cmds=".dll"
11502       # FIXME: Setting linknames here is a bad hack.
11503       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11504       # The linker will automatically build a .lib file if we build a DLL.
11505       old_archive_from_new_cmds='true'
11506       # FIXME: Should let the user specify the lib program.
11507       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11508       fix_srcfile_path='`cygpath -w "$srcfile"`'
11509       enable_shared_with_static_runtimes=yes
11510       ;;
11511
11512     darwin* | rhapsody*)
11513
11514
11515   archive_cmds_need_lc=no
11516   hardcode_direct=no
11517   hardcode_automatic=yes
11518   hardcode_shlibpath_var=unsupported
11519   if test "$lt_cv_ld_force_load" = "yes"; then
11520     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11521   else
11522     whole_archive_flag_spec=''
11523   fi
11524   link_all_deplibs=yes
11525   allow_undefined_flag="$_lt_dar_allow_undefined"
11526   case $cc_basename in
11527      ifort*) _lt_dar_can_shared=yes ;;
11528      *) _lt_dar_can_shared=$GCC ;;
11529   esac
11530   if test "$_lt_dar_can_shared" = "yes"; then
11531     output_verbose_link_cmd=func_echo_all
11532     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11533     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11534     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}"
11535     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}"
11536
11537   else
11538   ld_shlibs=no
11539   fi
11540
11541       ;;
11542
11543     dgux*)
11544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11545       hardcode_libdir_flag_spec='-L$libdir'
11546       hardcode_shlibpath_var=no
11547       ;;
11548
11549     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11550     # support.  Future versions do this automatically, but an explicit c++rt0.o
11551     # does not break anything, and helps significantly (at the cost of a little
11552     # extra space).
11553     freebsd2.2*)
11554       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11555       hardcode_libdir_flag_spec='-R$libdir'
11556       hardcode_direct=yes
11557       hardcode_shlibpath_var=no
11558       ;;
11559
11560     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11561     freebsd2*)
11562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11563       hardcode_direct=yes
11564       hardcode_minus_L=yes
11565       hardcode_shlibpath_var=no
11566       ;;
11567
11568     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11569     freebsd* | dragonfly*)
11570       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11571       hardcode_libdir_flag_spec='-R$libdir'
11572       hardcode_direct=yes
11573       hardcode_shlibpath_var=no
11574       ;;
11575
11576     hpux9*)
11577       if test "$GCC" = yes; then
11578         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'
11579       else
11580         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'
11581       fi
11582       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11583       hardcode_libdir_separator=:
11584       hardcode_direct=yes
11585
11586       # hardcode_minus_L: Not really in the search PATH,
11587       # but as the default location of the library.
11588       hardcode_minus_L=yes
11589       export_dynamic_flag_spec='${wl}-E'
11590       ;;
11591
11592     hpux10*)
11593       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11594         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11595       else
11596         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11597       fi
11598       if test "$with_gnu_ld" = no; then
11599         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11600         hardcode_libdir_flag_spec_ld='+b $libdir'
11601         hardcode_libdir_separator=:
11602         hardcode_direct=yes
11603         hardcode_direct_absolute=yes
11604         export_dynamic_flag_spec='${wl}-E'
11605         # hardcode_minus_L: Not really in the search PATH,
11606         # but as the default location of the library.
11607         hardcode_minus_L=yes
11608       fi
11609       ;;
11610
11611     hpux11*)
11612       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11613         case $host_cpu in
11614         hppa*64*)
11615           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11616           ;;
11617         ia64*)
11618           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11619           ;;
11620         *)
11621           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11622           ;;
11623         esac
11624       else
11625         case $host_cpu in
11626         hppa*64*)
11627           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11628           ;;
11629         ia64*)
11630           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11631           ;;
11632         *)
11633
11634           # Older versions of the 11.00 compiler do not understand -b yet
11635           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11636           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11637 $as_echo_n "checking if $CC understands -b... " >&6; }
11638 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641   lt_cv_prog_compiler__b=no
11642    save_LDFLAGS="$LDFLAGS"
11643    LDFLAGS="$LDFLAGS -b"
11644    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11645    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11646      # The linker can only warn and ignore the option if not recognized
11647      # So say no if there are warnings
11648      if test -s conftest.err; then
11649        # Append any errors to the config.log.
11650        cat conftest.err 1>&5
11651        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11652        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11653        if diff conftest.exp conftest.er2 >/dev/null; then
11654          lt_cv_prog_compiler__b=yes
11655        fi
11656      else
11657        lt_cv_prog_compiler__b=yes
11658      fi
11659    fi
11660    $RM -r conftest*
11661    LDFLAGS="$save_LDFLAGS"
11662
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11665 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11666
11667 if test x"$lt_cv_prog_compiler__b" = xyes; then
11668     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11669 else
11670     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11671 fi
11672
11673           ;;
11674         esac
11675       fi
11676       if test "$with_gnu_ld" = no; then
11677         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11678         hardcode_libdir_separator=:
11679
11680         case $host_cpu in
11681         hppa*64*|ia64*)
11682           hardcode_direct=no
11683           hardcode_shlibpath_var=no
11684           ;;
11685         *)
11686           hardcode_direct=yes
11687           hardcode_direct_absolute=yes
11688           export_dynamic_flag_spec='${wl}-E'
11689
11690           # hardcode_minus_L: Not really in the search PATH,
11691           # but as the default location of the library.
11692           hardcode_minus_L=yes
11693           ;;
11694         esac
11695       fi
11696       ;;
11697
11698     irix5* | irix6* | nonstopux*)
11699       if test "$GCC" = yes; then
11700         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11701         # Try to use the -exported_symbol ld option, if it does not
11702         # work, assume that -exports_file does not work either and
11703         # implicitly export all symbols.
11704         save_LDFLAGS="$LDFLAGS"
11705         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11706         if test x$gcc_no_link = xyes; then
11707   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11708 fi
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h.  */
11711 int foo(void) {}
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11715
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext \
11718     conftest$ac_exeext conftest.$ac_ext
11719         LDFLAGS="$save_LDFLAGS"
11720       else
11721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11723       fi
11724       archive_cmds_need_lc='no'
11725       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11726       hardcode_libdir_separator=:
11727       inherit_rpath=yes
11728       link_all_deplibs=yes
11729       ;;
11730
11731     netbsd*)
11732       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11733         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11734       else
11735         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11736       fi
11737       hardcode_libdir_flag_spec='-R$libdir'
11738       hardcode_direct=yes
11739       hardcode_shlibpath_var=no
11740       ;;
11741
11742     newsos6)
11743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11744       hardcode_direct=yes
11745       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11746       hardcode_libdir_separator=:
11747       hardcode_shlibpath_var=no
11748       ;;
11749
11750     *nto* | *qnx*)
11751       ;;
11752
11753     openbsd*)
11754       if test -f /usr/libexec/ld.so; then
11755         hardcode_direct=yes
11756         hardcode_shlibpath_var=no
11757         hardcode_direct_absolute=yes
11758         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11759           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11760           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11761           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11762           export_dynamic_flag_spec='${wl}-E'
11763         else
11764           case $host_os in
11765            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11766              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11767              hardcode_libdir_flag_spec='-R$libdir'
11768              ;;
11769            *)
11770              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11771              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11772              ;;
11773           esac
11774         fi
11775       else
11776         ld_shlibs=no
11777       fi
11778       ;;
11779
11780     os2*)
11781       hardcode_libdir_flag_spec='-L$libdir'
11782       hardcode_minus_L=yes
11783       allow_undefined_flag=unsupported
11784       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'
11785       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11786       ;;
11787
11788     osf3*)
11789       if test "$GCC" = yes; then
11790         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11791         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11792       else
11793         allow_undefined_flag=' -expect_unresolved \*'
11794         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11795       fi
11796       archive_cmds_need_lc='no'
11797       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11798       hardcode_libdir_separator=:
11799       ;;
11800
11801     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11802       if test "$GCC" = yes; then
11803         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11804         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11805         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11806       else
11807         allow_undefined_flag=' -expect_unresolved \*'
11808         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11809         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~
11810         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11811
11812         # Both c and cxx compiler support -rpath directly
11813         hardcode_libdir_flag_spec='-rpath $libdir'
11814       fi
11815       archive_cmds_need_lc='no'
11816       hardcode_libdir_separator=:
11817       ;;
11818
11819     solaris*)
11820       no_undefined_flag=' -z defs'
11821       if test "$GCC" = yes; then
11822         wlarc='${wl}'
11823         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11825           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11826       else
11827         case `$CC -V 2>&1` in
11828         *"Compilers 5.0"*)
11829           wlarc=''
11830           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11831           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11832           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11833           ;;
11834         *)
11835           wlarc='${wl}'
11836           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11837           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11838           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11839           ;;
11840         esac
11841       fi
11842       hardcode_libdir_flag_spec='-R$libdir'
11843       hardcode_shlibpath_var=no
11844       case $host_os in
11845       solaris2.[0-5] | solaris2.[0-5].*) ;;
11846       *)
11847         # The compiler driver will combine and reorder linker options,
11848         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11849         # but is careful enough not to reorder.
11850         # Supported since Solaris 2.6 (maybe 2.5.1?)
11851         if test "$GCC" = yes; then
11852           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11853         else
11854           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11855         fi
11856         ;;
11857       esac
11858       link_all_deplibs=yes
11859       ;;
11860
11861     sunos4*)
11862       if test "x$host_vendor" = xsequent; then
11863         # Use $CC to link under sequent, because it throws in some extra .o
11864         # files that make .init and .fini sections work.
11865         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11866       else
11867         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11868       fi
11869       hardcode_libdir_flag_spec='-L$libdir'
11870       hardcode_direct=yes
11871       hardcode_minus_L=yes
11872       hardcode_shlibpath_var=no
11873       ;;
11874
11875     sysv4)
11876       case $host_vendor in
11877         sni)
11878           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879           hardcode_direct=yes # is this really true???
11880         ;;
11881         siemens)
11882           ## LD is ld it makes a PLAMLIB
11883           ## CC just makes a GrossModule.
11884           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11885           reload_cmds='$CC -r -o $output$reload_objs'
11886           hardcode_direct=no
11887         ;;
11888         motorola)
11889           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11890           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11891         ;;
11892       esac
11893       runpath_var='LD_RUN_PATH'
11894       hardcode_shlibpath_var=no
11895       ;;
11896
11897     sysv4.3*)
11898       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11899       hardcode_shlibpath_var=no
11900       export_dynamic_flag_spec='-Bexport'
11901       ;;
11902
11903     sysv4*MP*)
11904       if test -d /usr/nec; then
11905         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906         hardcode_shlibpath_var=no
11907         runpath_var=LD_RUN_PATH
11908         hardcode_runpath_var=yes
11909         ld_shlibs=yes
11910       fi
11911       ;;
11912
11913     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11914       no_undefined_flag='${wl}-z,text'
11915       archive_cmds_need_lc=no
11916       hardcode_shlibpath_var=no
11917       runpath_var='LD_RUN_PATH'
11918
11919       if test "$GCC" = yes; then
11920         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11921         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922       else
11923         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925       fi
11926       ;;
11927
11928     sysv5* | sco3.2v5* | sco5v6*)
11929       # Note: We can NOT use -z defs as we might desire, because we do not
11930       # link with -lc, and that would cause any symbols used from libc to
11931       # always be unresolved, which means just about no library would
11932       # ever link correctly.  If we're not using GNU ld we use -z text
11933       # though, which does catch some bad symbols but isn't as heavy-handed
11934       # as -z defs.
11935       no_undefined_flag='${wl}-z,text'
11936       allow_undefined_flag='${wl}-z,nodefs'
11937       archive_cmds_need_lc=no
11938       hardcode_shlibpath_var=no
11939       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11940       hardcode_libdir_separator=':'
11941       link_all_deplibs=yes
11942       export_dynamic_flag_spec='${wl}-Bexport'
11943       runpath_var='LD_RUN_PATH'
11944
11945       if test "$GCC" = yes; then
11946         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948       else
11949         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951       fi
11952       ;;
11953
11954     uts4*)
11955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11956       hardcode_libdir_flag_spec='-L$libdir'
11957       hardcode_shlibpath_var=no
11958       ;;
11959
11960     *)
11961       ld_shlibs=no
11962       ;;
11963     esac
11964
11965     if test x$host_vendor = xsni; then
11966       case $host in
11967       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11968         export_dynamic_flag_spec='${wl}-Blargedynsym'
11969         ;;
11970       esac
11971     fi
11972   fi
11973
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11975 $as_echo "$ld_shlibs" >&6; }
11976 test "$ld_shlibs" = no && can_build_shared=no
11977
11978 with_gnu_ld=$with_gnu_ld
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 #
11995 # Do we need to explicitly link libc?
11996 #
11997 case "x$archive_cmds_need_lc" in
11998 x|xyes)
11999   # Assume -lc should be added
12000   archive_cmds_need_lc=yes
12001
12002   if test "$enable_shared" = yes && test "$GCC" = yes; then
12003     case $archive_cmds in
12004     *'~'*)
12005       # FIXME: we may have to deal with multi-command sequences.
12006       ;;
12007     '$CC '*)
12008       # Test whether the compiler implicitly links with -lc since on some
12009       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12010       # to ld, don't add -lc before -lgcc.
12011       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12012 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12013 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   $RM conftest*
12017         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12018
12019         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12020   (eval $ac_compile) 2>&5
12021   ac_status=$?
12022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12023   test $ac_status = 0; } 2>conftest.err; then
12024           soname=conftest
12025           lib=conftest
12026           libobjs=conftest.$ac_objext
12027           deplibs=
12028           wl=$lt_prog_compiler_wl
12029           pic_flag=$lt_prog_compiler_pic
12030           compiler_flags=-v
12031           linker_flags=-v
12032           verstring=
12033           output_objdir=.
12034           libname=conftest
12035           lt_save_allow_undefined_flag=$allow_undefined_flag
12036           allow_undefined_flag=
12037           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12038   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12039   ac_status=$?
12040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12041   test $ac_status = 0; }
12042           then
12043             lt_cv_archive_cmds_need_lc=no
12044           else
12045             lt_cv_archive_cmds_need_lc=yes
12046           fi
12047           allow_undefined_flag=$lt_save_allow_undefined_flag
12048         else
12049           cat conftest.err 1>&5
12050         fi
12051         $RM conftest*
12052
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12055 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12056       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12057       ;;
12058     esac
12059   fi
12060   ;;
12061 esac
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12220 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12221
12222 if test "$GCC" = yes; then
12223   case $host_os in
12224     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12225     *) lt_awk_arg="/^libraries:/" ;;
12226   esac
12227   case $host_os in
12228     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12229     *) lt_sed_strip_eq="s,=/,/,g" ;;
12230   esac
12231   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12232   case $lt_search_path_spec in
12233   *\;*)
12234     # if the path contains ";" then we assume it to be the separator
12235     # otherwise default to the standard path separator (i.e. ":") - it is
12236     # assumed that no part of a normal pathname contains ";" but that should
12237     # okay in the real world where ";" in dirpaths is itself problematic.
12238     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12239     ;;
12240   *)
12241     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12242     ;;
12243   esac
12244   # Ok, now we have the path, separated by spaces, we can step through it
12245   # and add multilib dir if necessary.
12246   lt_tmp_lt_search_path_spec=
12247   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12248   for lt_sys_path in $lt_search_path_spec; do
12249     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12250       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12251     else
12252       test -d "$lt_sys_path" && \
12253         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12254     fi
12255   done
12256   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12257 BEGIN {RS=" "; FS="/|\n";} {
12258   lt_foo="";
12259   lt_count=0;
12260   for (lt_i = NF; lt_i > 0; lt_i--) {
12261     if ($lt_i != "" && $lt_i != ".") {
12262       if ($lt_i == "..") {
12263         lt_count++;
12264       } else {
12265         if (lt_count == 0) {
12266           lt_foo="/" $lt_i lt_foo;
12267         } else {
12268           lt_count--;
12269         }
12270       }
12271     }
12272   }
12273   if (lt_foo != "") { lt_freq[lt_foo]++; }
12274   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12275 }'`
12276   # AWK program above erroneously prepends '/' to C:/dos/paths
12277   # for these hosts.
12278   case $host_os in
12279     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12280       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12281   esac
12282   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12283 else
12284   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12285 fi
12286 library_names_spec=
12287 libname_spec='lib$name'
12288 soname_spec=
12289 shrext_cmds=".so"
12290 postinstall_cmds=
12291 postuninstall_cmds=
12292 finish_cmds=
12293 finish_eval=
12294 shlibpath_var=
12295 shlibpath_overrides_runpath=unknown
12296 version_type=none
12297 dynamic_linker="$host_os ld.so"
12298 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12299 need_lib_prefix=unknown
12300 hardcode_into_libs=no
12301
12302 # when you set need_version to no, make sure it does not cause -set_version
12303 # flags to be left without arguments
12304 need_version=unknown
12305
12306 case $host_os in
12307 aix3*)
12308   version_type=linux
12309   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12310   shlibpath_var=LIBPATH
12311
12312   # AIX 3 has no versioning support, so we append a major version to the name.
12313   soname_spec='${libname}${release}${shared_ext}$major'
12314   ;;
12315
12316 aix[4-9]*)
12317   version_type=linux
12318   need_lib_prefix=no
12319   need_version=no
12320   hardcode_into_libs=yes
12321   if test "$host_cpu" = ia64; then
12322     # AIX 5 supports IA64
12323     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12324     shlibpath_var=LD_LIBRARY_PATH
12325   else
12326     # With GCC up to 2.95.x, collect2 would create an import file
12327     # for dependence libraries.  The import file would start with
12328     # the line `#! .'.  This would cause the generated library to
12329     # depend on `.', always an invalid library.  This was fixed in
12330     # development snapshots of GCC prior to 3.0.
12331     case $host_os in
12332       aix4 | aix4.[01] | aix4.[01].*)
12333       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12334            echo ' yes '
12335            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12336         :
12337       else
12338         can_build_shared=no
12339       fi
12340       ;;
12341     esac
12342     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12343     # soname into executable. Probably we can add versioning support to
12344     # collect2, so additional links can be useful in future.
12345     if test "$aix_use_runtimelinking" = yes; then
12346       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12347       # instead of lib<name>.a to let people know that these are not
12348       # typical AIX shared libraries.
12349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350     else
12351       # We preserve .a as extension for shared libraries through AIX4.2
12352       # and later when we are not doing run time linking.
12353       library_names_spec='${libname}${release}.a $libname.a'
12354       soname_spec='${libname}${release}${shared_ext}$major'
12355     fi
12356     shlibpath_var=LIBPATH
12357   fi
12358   ;;
12359
12360 amigaos*)
12361   case $host_cpu in
12362   powerpc)
12363     # Since July 2007 AmigaOS4 officially supports .so libraries.
12364     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366     ;;
12367   m68k)
12368     library_names_spec='$libname.ixlibrary $libname.a'
12369     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12370     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12371     ;;
12372   esac
12373   ;;
12374
12375 beos*)
12376   library_names_spec='${libname}${shared_ext}'
12377   dynamic_linker="$host_os ld.so"
12378   shlibpath_var=LIBRARY_PATH
12379   ;;
12380
12381 bsdi[45]*)
12382   version_type=linux
12383   need_version=no
12384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385   soname_spec='${libname}${release}${shared_ext}$major'
12386   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12387   shlibpath_var=LD_LIBRARY_PATH
12388   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12389   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12390   # the default ld.so.conf also contains /usr/contrib/lib and
12391   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12392   # libtool to hard-code these into programs
12393   ;;
12394
12395 cygwin* | mingw* | pw32* | cegcc*)
12396   version_type=windows
12397   shrext_cmds=".dll"
12398   need_version=no
12399   need_lib_prefix=no
12400
12401   case $GCC,$host_os in
12402   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12403     library_names_spec='$libname.dll.a'
12404     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12405     postinstall_cmds='base_file=`basename \${file}`~
12406       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12407       dldir=$destdir/`dirname \$dlpath`~
12408       test -d \$dldir || mkdir -p \$dldir~
12409       $install_prog $dir/$dlname \$dldir/$dlname~
12410       chmod a+x \$dldir/$dlname~
12411       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12412         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12413       fi'
12414     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12415       dlpath=$dir/\$dldll~
12416        $RM \$dlpath'
12417     shlibpath_overrides_runpath=yes
12418
12419     case $host_os in
12420     cygwin*)
12421       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12422       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12423
12424       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12425       ;;
12426     mingw* | cegcc*)
12427       # MinGW DLLs use traditional 'lib' prefix
12428       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12429       ;;
12430     pw32*)
12431       # pw32 DLLs use 'pw' prefix rather than 'lib'
12432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12433       ;;
12434     esac
12435     ;;
12436
12437   *)
12438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12439     ;;
12440   esac
12441   dynamic_linker='Win32 ld.exe'
12442   # FIXME: first we should search . and the directory the executable is in
12443   shlibpath_var=PATH
12444   ;;
12445
12446 darwin* | rhapsody*)
12447   dynamic_linker="$host_os dyld"
12448   version_type=darwin
12449   need_lib_prefix=no
12450   need_version=no
12451   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12452   soname_spec='${libname}${release}${major}$shared_ext'
12453   shlibpath_overrides_runpath=yes
12454   shlibpath_var=DYLD_LIBRARY_PATH
12455   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12456
12457   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12458   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12459   ;;
12460
12461 dgux*)
12462   version_type=linux
12463   need_lib_prefix=no
12464   need_version=no
12465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12466   soname_spec='${libname}${release}${shared_ext}$major'
12467   shlibpath_var=LD_LIBRARY_PATH
12468   ;;
12469
12470 freebsd* | dragonfly*)
12471   # DragonFly does not have aout.  When/if they implement a new
12472   # versioning mechanism, adjust this.
12473   if test -x /usr/bin/objformat; then
12474     objformat=`/usr/bin/objformat`
12475   else
12476     case $host_os in
12477     freebsd[123]*) objformat=aout ;;
12478     *) objformat=elf ;;
12479     esac
12480   fi
12481   version_type=freebsd-$objformat
12482   case $version_type in
12483     freebsd-elf*)
12484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12485       need_version=no
12486       need_lib_prefix=no
12487       ;;
12488     freebsd-*)
12489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12490       need_version=yes
12491       ;;
12492   esac
12493   shlibpath_var=LD_LIBRARY_PATH
12494   case $host_os in
12495   freebsd2*)
12496     shlibpath_overrides_runpath=yes
12497     ;;
12498   freebsd3.[01]* | freebsdelf3.[01]*)
12499     shlibpath_overrides_runpath=yes
12500     hardcode_into_libs=yes
12501     ;;
12502   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12503   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12504     shlibpath_overrides_runpath=no
12505     hardcode_into_libs=yes
12506     ;;
12507   *) # from 4.6 on, and DragonFly
12508     shlibpath_overrides_runpath=yes
12509     hardcode_into_libs=yes
12510     ;;
12511   esac
12512   ;;
12513
12514 gnu*)
12515   version_type=linux
12516   need_lib_prefix=no
12517   need_version=no
12518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12519   soname_spec='${libname}${release}${shared_ext}$major'
12520   shlibpath_var=LD_LIBRARY_PATH
12521   hardcode_into_libs=yes
12522   ;;
12523
12524 haiku*)
12525   version_type=linux
12526   need_lib_prefix=no
12527   need_version=no
12528   dynamic_linker="$host_os runtime_loader"
12529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12530   soname_spec='${libname}${release}${shared_ext}$major'
12531   shlibpath_var=LIBRARY_PATH
12532   shlibpath_overrides_runpath=yes
12533   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12534   hardcode_into_libs=yes
12535   ;;
12536
12537 hpux9* | hpux10* | hpux11*)
12538   # Give a soname corresponding to the major version so that dld.sl refuses to
12539   # link against other versions.
12540   version_type=sunos
12541   need_lib_prefix=no
12542   need_version=no
12543   case $host_cpu in
12544   ia64*)
12545     shrext_cmds='.so'
12546     hardcode_into_libs=yes
12547     dynamic_linker="$host_os dld.so"
12548     shlibpath_var=LD_LIBRARY_PATH
12549     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12551     soname_spec='${libname}${release}${shared_ext}$major'
12552     if test "X$HPUX_IA64_MODE" = X32; then
12553       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12554     else
12555       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12556     fi
12557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12558     ;;
12559   hppa*64*)
12560     shrext_cmds='.sl'
12561     hardcode_into_libs=yes
12562     dynamic_linker="$host_os dld.sl"
12563     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566     soname_spec='${libname}${release}${shared_ext}$major'
12567     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12569     ;;
12570   *)
12571     shrext_cmds='.sl'
12572     dynamic_linker="$host_os dld.sl"
12573     shlibpath_var=SHLIB_PATH
12574     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12576     soname_spec='${libname}${release}${shared_ext}$major'
12577     ;;
12578   esac
12579   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12580   postinstall_cmds='chmod 555 $lib'
12581   # or fails outright, so override atomically:
12582   install_override_mode=555
12583   ;;
12584
12585 interix[3-9]*)
12586   version_type=linux
12587   need_lib_prefix=no
12588   need_version=no
12589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12590   soname_spec='${libname}${release}${shared_ext}$major'
12591   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12592   shlibpath_var=LD_LIBRARY_PATH
12593   shlibpath_overrides_runpath=no
12594   hardcode_into_libs=yes
12595   ;;
12596
12597 irix5* | irix6* | nonstopux*)
12598   case $host_os in
12599     nonstopux*) version_type=nonstopux ;;
12600     *)
12601         if test "$lt_cv_prog_gnu_ld" = yes; then
12602                 version_type=linux
12603         else
12604                 version_type=irix
12605         fi ;;
12606   esac
12607   need_lib_prefix=no
12608   need_version=no
12609   soname_spec='${libname}${release}${shared_ext}$major'
12610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12611   case $host_os in
12612   irix5* | nonstopux*)
12613     libsuff= shlibsuff=
12614     ;;
12615   *)
12616     case $LD in # libtool.m4 will add one of these switches to LD
12617     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12618       libsuff= shlibsuff= libmagic=32-bit;;
12619     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12620       libsuff=32 shlibsuff=N32 libmagic=N32;;
12621     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12622       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12623     *) libsuff= shlibsuff= libmagic=never-match;;
12624     esac
12625     ;;
12626   esac
12627   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12628   shlibpath_overrides_runpath=no
12629   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12630   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12631   hardcode_into_libs=yes
12632   ;;
12633
12634 # No shared lib support for Linux oldld, aout, or coff.
12635 linux*oldld* | linux*aout* | linux*coff*)
12636   dynamic_linker=no
12637   ;;
12638
12639 # This must be Linux ELF.
12640 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12641   version_type=linux
12642   need_lib_prefix=no
12643   need_version=no
12644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645   soname_spec='${libname}${release}${shared_ext}$major'
12646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12647   shlibpath_var=LD_LIBRARY_PATH
12648   shlibpath_overrides_runpath=no
12649
12650   # Some binutils ld are patched to set DT_RUNPATH
12651   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   lt_cv_shlibpath_overrides_runpath=no
12655     save_LDFLAGS=$LDFLAGS
12656     save_libdir=$libdir
12657     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12658          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12659     if test x$gcc_no_link = xyes; then
12660   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12661 fi
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h.  */
12664
12665 int
12666 main ()
12667 {
12668
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12675   lt_cv_shlibpath_overrides_runpath=yes
12676 fi
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679     conftest$ac_exeext conftest.$ac_ext
12680     LDFLAGS=$save_LDFLAGS
12681     libdir=$save_libdir
12682
12683 fi
12684
12685   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12686
12687   # This implies no fast_install, which is unacceptable.
12688   # Some rework will be needed to allow for fast_install
12689   # before this can be enabled.
12690   hardcode_into_libs=yes
12691
12692   # Append ld.so.conf contents to the search path
12693   if test -f /etc/ld.so.conf; then
12694     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12695     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12696   fi
12697
12698   # We used to test for /lib/ld.so.1 and disable shared libraries on
12699   # powerpc, because MkLinux only supported shared libraries with the
12700   # GNU dynamic linker.  Since this was broken with cross compilers,
12701   # most powerpc-linux boxes support dynamic linking these days and
12702   # people can always --disable-shared, the test was removed, and we
12703   # assume the GNU/Linux dynamic linker is in use.
12704   dynamic_linker='GNU/Linux ld.so'
12705   ;;
12706
12707 netbsd*)
12708   version_type=sunos
12709   need_lib_prefix=no
12710   need_version=no
12711   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12713     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12714     dynamic_linker='NetBSD (a.out) ld.so'
12715   else
12716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12717     soname_spec='${libname}${release}${shared_ext}$major'
12718     dynamic_linker='NetBSD ld.elf_so'
12719   fi
12720   shlibpath_var=LD_LIBRARY_PATH
12721   shlibpath_overrides_runpath=yes
12722   hardcode_into_libs=yes
12723   ;;
12724
12725 newsos6)
12726   version_type=linux
12727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728   shlibpath_var=LD_LIBRARY_PATH
12729   shlibpath_overrides_runpath=yes
12730   ;;
12731
12732 *nto* | *qnx*)
12733   version_type=qnx
12734   need_lib_prefix=no
12735   need_version=no
12736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737   soname_spec='${libname}${release}${shared_ext}$major'
12738   shlibpath_var=LD_LIBRARY_PATH
12739   shlibpath_overrides_runpath=no
12740   hardcode_into_libs=yes
12741   dynamic_linker='ldqnx.so'
12742   ;;
12743
12744 openbsd*)
12745   version_type=sunos
12746   sys_lib_dlsearch_path_spec="/usr/lib"
12747   need_lib_prefix=no
12748   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12749   case $host_os in
12750     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12751     *)                          need_version=no  ;;
12752   esac
12753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12755   shlibpath_var=LD_LIBRARY_PATH
12756   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12757     case $host_os in
12758       openbsd2.[89] | openbsd2.[89].*)
12759         shlibpath_overrides_runpath=no
12760         ;;
12761       *)
12762         shlibpath_overrides_runpath=yes
12763         ;;
12764       esac
12765   else
12766     shlibpath_overrides_runpath=yes
12767   fi
12768   ;;
12769
12770 os2*)
12771   libname_spec='$name'
12772   shrext_cmds=".dll"
12773   need_lib_prefix=no
12774   library_names_spec='$libname${shared_ext} $libname.a'
12775   dynamic_linker='OS/2 ld.exe'
12776   shlibpath_var=LIBPATH
12777   ;;
12778
12779 osf3* | osf4* | osf5*)
12780   version_type=osf
12781   need_lib_prefix=no
12782   need_version=no
12783   soname_spec='${libname}${release}${shared_ext}$major'
12784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785   shlibpath_var=LD_LIBRARY_PATH
12786   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12787   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12788   ;;
12789
12790 rdos*)
12791   dynamic_linker=no
12792   ;;
12793
12794 solaris*)
12795   version_type=linux
12796   need_lib_prefix=no
12797   need_version=no
12798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   shlibpath_overrides_runpath=yes
12802   hardcode_into_libs=yes
12803   # ldd complains unless libraries are executable
12804   postinstall_cmds='chmod +x $lib'
12805   ;;
12806
12807 sunos4*)
12808   version_type=sunos
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12810   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   shlibpath_overrides_runpath=yes
12813   if test "$with_gnu_ld" = yes; then
12814     need_lib_prefix=no
12815   fi
12816   need_version=yes
12817   ;;
12818
12819 sysv4 | sysv4.3*)
12820   version_type=linux
12821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12822   soname_spec='${libname}${release}${shared_ext}$major'
12823   shlibpath_var=LD_LIBRARY_PATH
12824   case $host_vendor in
12825     sni)
12826       shlibpath_overrides_runpath=no
12827       need_lib_prefix=no
12828       runpath_var=LD_RUN_PATH
12829       ;;
12830     siemens)
12831       need_lib_prefix=no
12832       ;;
12833     motorola)
12834       need_lib_prefix=no
12835       need_version=no
12836       shlibpath_overrides_runpath=no
12837       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12838       ;;
12839   esac
12840   ;;
12841
12842 sysv4*MP*)
12843   if test -d /usr/nec ;then
12844     version_type=linux
12845     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12846     soname_spec='$libname${shared_ext}.$major'
12847     shlibpath_var=LD_LIBRARY_PATH
12848   fi
12849   ;;
12850
12851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12852   version_type=freebsd-elf
12853   need_lib_prefix=no
12854   need_version=no
12855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12856   soname_spec='${libname}${release}${shared_ext}$major'
12857   shlibpath_var=LD_LIBRARY_PATH
12858   shlibpath_overrides_runpath=yes
12859   hardcode_into_libs=yes
12860   if test "$with_gnu_ld" = yes; then
12861     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12862   else
12863     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12864     case $host_os in
12865       sco3.2v5*)
12866         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12867         ;;
12868     esac
12869   fi
12870   sys_lib_dlsearch_path_spec='/usr/lib'
12871   ;;
12872
12873 tpf*)
12874   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12875   version_type=linux
12876   need_lib_prefix=no
12877   need_version=no
12878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879   shlibpath_var=LD_LIBRARY_PATH
12880   shlibpath_overrides_runpath=no
12881   hardcode_into_libs=yes
12882   ;;
12883
12884 uts4*)
12885   version_type=linux
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887   soname_spec='${libname}${release}${shared_ext}$major'
12888   shlibpath_var=LD_LIBRARY_PATH
12889   ;;
12890
12891 *)
12892   dynamic_linker=no
12893   ;;
12894 esac
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12896 $as_echo "$dynamic_linker" >&6; }
12897 test "$dynamic_linker" = no && can_build_shared=no
12898
12899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12900 if test "$GCC" = yes; then
12901   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12902 fi
12903
12904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12905   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12906 fi
12907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12908   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12909 fi
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13003 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13004 hardcode_action=
13005 if test -n "$hardcode_libdir_flag_spec" ||
13006    test -n "$runpath_var" ||
13007    test "X$hardcode_automatic" = "Xyes" ; then
13008
13009   # We can hardcode non-existent directories.
13010   if test "$hardcode_direct" != no &&
13011      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13012      # have to relink, otherwise we might link with an installed library
13013      # when we should be linking with a yet-to-be-installed one
13014      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13015      test "$hardcode_minus_L" != no; then
13016     # Linking always hardcodes the temporary library directory.
13017     hardcode_action=relink
13018   else
13019     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13020     hardcode_action=immediate
13021   fi
13022 else
13023   # We cannot hardcode anything, or else we can only hardcode existing
13024   # directories.
13025   hardcode_action=unsupported
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13028 $as_echo "$hardcode_action" >&6; }
13029
13030 if test "$hardcode_action" = relink ||
13031    test "$inherit_rpath" = yes; then
13032   # Fast installation is not supported
13033   enable_fast_install=no
13034 elif test "$shlibpath_overrides_runpath" = yes ||
13035      test "$enable_shared" = no; then
13036   # Fast installation is not necessary
13037   enable_fast_install=needless
13038 fi
13039
13040
13041
13042
13043
13044
13045   if test "x$enable_dlopen" != xyes; then
13046   enable_dlopen=unknown
13047   enable_dlopen_self=unknown
13048   enable_dlopen_self_static=unknown
13049 else
13050   lt_cv_dlopen=no
13051   lt_cv_dlopen_libs=
13052
13053   case $host_os in
13054   beos*)
13055     lt_cv_dlopen="load_add_on"
13056     lt_cv_dlopen_libs=
13057     lt_cv_dlopen_self=yes
13058     ;;
13059
13060   mingw* | pw32* | cegcc*)
13061     lt_cv_dlopen="LoadLibrary"
13062     lt_cv_dlopen_libs=
13063     ;;
13064
13065   cygwin*)
13066     lt_cv_dlopen="dlopen"
13067     lt_cv_dlopen_libs=
13068     ;;
13069
13070   darwin*)
13071   # if libdl is installed we need to link against it
13072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13074 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13075   $as_echo_n "(cached) " >&6
13076 else
13077   ac_check_lib_save_LIBS=$LIBS
13078 LIBS="-ldl  $LIBS"
13079 if test x$gcc_no_link = xyes; then
13080   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13081 fi
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h.  */
13084
13085 /* Override any GCC internal prototype to avoid an error.
13086    Use char because int might match the return type of a GCC
13087    builtin and then its argument prototype would still apply.  */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 char dlopen ();
13092 int
13093 main ()
13094 {
13095 return dlopen ();
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_link "$LINENO"; then :
13101   ac_cv_lib_dl_dlopen=yes
13102 else
13103   ac_cv_lib_dl_dlopen=no
13104 fi
13105 rm -f core conftest.err conftest.$ac_objext \
13106     conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13111 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13112   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13113 else
13114
13115     lt_cv_dlopen="dyld"
13116     lt_cv_dlopen_libs=
13117     lt_cv_dlopen_self=yes
13118
13119 fi
13120
13121     ;;
13122
13123   *)
13124     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13125 if test "x$ac_cv_func_shl_load" = x""yes; then :
13126   lt_cv_dlopen="shl_load"
13127 else
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13129 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13130 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133   ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-ldld  $LIBS"
13135 if test x$gcc_no_link = xyes; then
13136   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13137 fi
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h.  */
13140
13141 /* Override any GCC internal prototype to avoid an error.
13142    Use char because int might match the return type of a GCC
13143    builtin and then its argument prototype would still apply.  */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char shl_load ();
13148 int
13149 main ()
13150 {
13151 return shl_load ();
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157   ac_cv_lib_dld_shl_load=yes
13158 else
13159   ac_cv_lib_dld_shl_load=no
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext \
13162     conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13166 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13167 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13168   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13169 else
13170   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13171 if test "x$ac_cv_func_dlopen" = x""yes; then :
13172   lt_cv_dlopen="dlopen"
13173 else
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13176 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13177   $as_echo_n "(cached) " >&6
13178 else
13179   ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-ldl  $LIBS"
13181 if test x$gcc_no_link = xyes; then
13182   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13183 fi
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h.  */
13186
13187 /* Override any GCC internal prototype to avoid an error.
13188    Use char because int might match the return type of a GCC
13189    builtin and then its argument prototype would still apply.  */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 char dlopen ();
13194 int
13195 main ()
13196 {
13197 return dlopen ();
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"; then :
13203   ac_cv_lib_dl_dlopen=yes
13204 else
13205   ac_cv_lib_dl_dlopen=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext \
13208     conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13214   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13215 else
13216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13217 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13218 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221   ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-lsvld  $LIBS"
13223 if test x$gcc_no_link = xyes; then
13224   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13225 fi
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h.  */
13228
13229 /* Override any GCC internal prototype to avoid an error.
13230    Use char because int might match the return type of a GCC
13231    builtin and then its argument prototype would still apply.  */
13232 #ifdef __cplusplus
13233 extern "C"
13234 #endif
13235 char dlopen ();
13236 int
13237 main ()
13238 {
13239 return dlopen ();
13240   ;
13241   return 0;
13242 }
13243 _ACEOF
13244 if ac_fn_c_try_link "$LINENO"; then :
13245   ac_cv_lib_svld_dlopen=yes
13246 else
13247   ac_cv_lib_svld_dlopen=no
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext \
13250     conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13254 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13255 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13256   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13257 else
13258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13259 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13260 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13261   $as_echo_n "(cached) " >&6
13262 else
13263   ac_check_lib_save_LIBS=$LIBS
13264 LIBS="-ldld  $LIBS"
13265 if test x$gcc_no_link = xyes; then
13266   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13267 fi
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h.  */
13270
13271 /* Override any GCC internal prototype to avoid an error.
13272    Use char because int might match the return type of a GCC
13273    builtin and then its argument prototype would still apply.  */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 char dld_link ();
13278 int
13279 main ()
13280 {
13281 return dld_link ();
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_link "$LINENO"; then :
13287   ac_cv_lib_dld_dld_link=yes
13288 else
13289   ac_cv_lib_dld_dld_link=no
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext \
13292     conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13296 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13297 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13298   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13299 fi
13300
13301
13302 fi
13303
13304
13305 fi
13306
13307
13308 fi
13309
13310
13311 fi
13312
13313
13314 fi
13315
13316     ;;
13317   esac
13318
13319   if test "x$lt_cv_dlopen" != xno; then
13320     enable_dlopen=yes
13321   else
13322     enable_dlopen=no
13323   fi
13324
13325   case $lt_cv_dlopen in
13326   dlopen)
13327     save_CPPFLAGS="$CPPFLAGS"
13328     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13329
13330     save_LDFLAGS="$LDFLAGS"
13331     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13332
13333     save_LIBS="$LIBS"
13334     LIBS="$lt_cv_dlopen_libs $LIBS"
13335
13336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13337 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13338 if test "${lt_cv_dlopen_self+set}" = set; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341           if test "$cross_compiling" = yes; then :
13342   lt_cv_dlopen_self=cross
13343 else
13344   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13345   lt_status=$lt_dlunknown
13346   cat > conftest.$ac_ext <<_LT_EOF
13347 #line 13347 "configure"
13348 #include "confdefs.h"
13349
13350 #if HAVE_DLFCN_H
13351 #include <dlfcn.h>
13352 #endif
13353
13354 #include <stdio.h>
13355
13356 #ifdef RTLD_GLOBAL
13357 #  define LT_DLGLOBAL           RTLD_GLOBAL
13358 #else
13359 #  ifdef DL_GLOBAL
13360 #    define LT_DLGLOBAL         DL_GLOBAL
13361 #  else
13362 #    define LT_DLGLOBAL         0
13363 #  endif
13364 #endif
13365
13366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13367    find out it does not work in some platform. */
13368 #ifndef LT_DLLAZY_OR_NOW
13369 #  ifdef RTLD_LAZY
13370 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13371 #  else
13372 #    ifdef DL_LAZY
13373 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13374 #    else
13375 #      ifdef RTLD_NOW
13376 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13377 #      else
13378 #        ifdef DL_NOW
13379 #          define LT_DLLAZY_OR_NOW      DL_NOW
13380 #        else
13381 #          define LT_DLLAZY_OR_NOW      0
13382 #        endif
13383 #      endif
13384 #    endif
13385 #  endif
13386 #endif
13387
13388 /* When -fvisbility=hidden is used, assume the code has been annotated
13389    correspondingly for the symbols needed.  */
13390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13391 void fnord () __attribute__((visibility("default")));
13392 #endif
13393
13394 void fnord () { int i=42; }
13395 int main ()
13396 {
13397   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13398   int status = $lt_dlunknown;
13399
13400   if (self)
13401     {
13402       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13403       else
13404         {
13405           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13406           else puts (dlerror ());
13407         }
13408       /* dlclose (self); */
13409     }
13410   else
13411     puts (dlerror ());
13412
13413   return status;
13414 }
13415 _LT_EOF
13416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13417   (eval $ac_link) 2>&5
13418   ac_status=$?
13419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13421     (./conftest; exit; ) >&5 2>/dev/null
13422     lt_status=$?
13423     case x$lt_status in
13424       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13425       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13426       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13427     esac
13428   else :
13429     # compilation failed
13430     lt_cv_dlopen_self=no
13431   fi
13432 fi
13433 rm -fr conftest*
13434
13435
13436 fi
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13438 $as_echo "$lt_cv_dlopen_self" >&6; }
13439
13440     if test "x$lt_cv_dlopen_self" = xyes; then
13441       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13442       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13443 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13444 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13445   $as_echo_n "(cached) " >&6
13446 else
13447           if test "$cross_compiling" = yes; then :
13448   lt_cv_dlopen_self_static=cross
13449 else
13450   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13451   lt_status=$lt_dlunknown
13452   cat > conftest.$ac_ext <<_LT_EOF
13453 #line 13453 "configure"
13454 #include "confdefs.h"
13455
13456 #if HAVE_DLFCN_H
13457 #include <dlfcn.h>
13458 #endif
13459
13460 #include <stdio.h>
13461
13462 #ifdef RTLD_GLOBAL
13463 #  define LT_DLGLOBAL           RTLD_GLOBAL
13464 #else
13465 #  ifdef DL_GLOBAL
13466 #    define LT_DLGLOBAL         DL_GLOBAL
13467 #  else
13468 #    define LT_DLGLOBAL         0
13469 #  endif
13470 #endif
13471
13472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13473    find out it does not work in some platform. */
13474 #ifndef LT_DLLAZY_OR_NOW
13475 #  ifdef RTLD_LAZY
13476 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13477 #  else
13478 #    ifdef DL_LAZY
13479 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13480 #    else
13481 #      ifdef RTLD_NOW
13482 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13483 #      else
13484 #        ifdef DL_NOW
13485 #          define LT_DLLAZY_OR_NOW      DL_NOW
13486 #        else
13487 #          define LT_DLLAZY_OR_NOW      0
13488 #        endif
13489 #      endif
13490 #    endif
13491 #  endif
13492 #endif
13493
13494 /* When -fvisbility=hidden is used, assume the code has been annotated
13495    correspondingly for the symbols needed.  */
13496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13497 void fnord () __attribute__((visibility("default")));
13498 #endif
13499
13500 void fnord () { int i=42; }
13501 int main ()
13502 {
13503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13504   int status = $lt_dlunknown;
13505
13506   if (self)
13507     {
13508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13509       else
13510         {
13511           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13512           else puts (dlerror ());
13513         }
13514       /* dlclose (self); */
13515     }
13516   else
13517     puts (dlerror ());
13518
13519   return status;
13520 }
13521 _LT_EOF
13522   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13523   (eval $ac_link) 2>&5
13524   ac_status=$?
13525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13526   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13527     (./conftest; exit; ) >&5 2>/dev/null
13528     lt_status=$?
13529     case x$lt_status in
13530       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13531       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13532       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13533     esac
13534   else :
13535     # compilation failed
13536     lt_cv_dlopen_self_static=no
13537   fi
13538 fi
13539 rm -fr conftest*
13540
13541
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13544 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13545     fi
13546
13547     CPPFLAGS="$save_CPPFLAGS"
13548     LDFLAGS="$save_LDFLAGS"
13549     LIBS="$save_LIBS"
13550     ;;
13551   esac
13552
13553   case $lt_cv_dlopen_self in
13554   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13555   *) enable_dlopen_self=unknown ;;
13556   esac
13557
13558   case $lt_cv_dlopen_self_static in
13559   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13560   *) enable_dlopen_self_static=unknown ;;
13561   esac
13562 fi
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580 striplib=
13581 old_striplib=
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13583 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13584 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13585   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13586   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13588 $as_echo "yes" >&6; }
13589 else
13590 # FIXME - insert some real tests, host_os isn't really good enough
13591   case $host_os in
13592   darwin*)
13593     if test -n "$STRIP" ; then
13594       striplib="$STRIP -x"
13595       old_striplib="$STRIP -S"
13596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13597 $as_echo "yes" >&6; }
13598     else
13599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601     fi
13602     ;;
13603   *)
13604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13606     ;;
13607   esac
13608 fi
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621   # Report which library types will actually be built
13622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13623 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13625 $as_echo "$can_build_shared" >&6; }
13626
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13628 $as_echo_n "checking whether to build shared libraries... " >&6; }
13629   test "$can_build_shared" = "no" && enable_shared=no
13630
13631   # On AIX, shared libraries and static libraries use the same namespace, and
13632   # are all built from PIC.
13633   case $host_os in
13634   aix3*)
13635     test "$enable_shared" = yes && enable_static=no
13636     if test -n "$RANLIB"; then
13637       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13638       postinstall_cmds='$RANLIB $lib'
13639     fi
13640     ;;
13641
13642   aix[4-9]*)
13643     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13644       test "$enable_shared" = yes && enable_static=no
13645     fi
13646     ;;
13647   esac
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13649 $as_echo "$enable_shared" >&6; }
13650
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13652 $as_echo_n "checking whether to build static libraries... " >&6; }
13653   # Make sure either enable_shared or enable_static is yes.
13654   test "$enable_shared" = yes || enable_static=yes
13655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13656 $as_echo "$enable_static" >&6; }
13657
13658
13659
13660
13661 fi
13662 ac_ext=c
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668 CC="$lt_save_CC"
13669
13670       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13671     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13672     (test "X$CXX" != "Xg++"))) ; then
13673   ac_ext=cpp
13674 ac_cpp='$CXXCPP $CPPFLAGS'
13675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13679 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13680 if test -z "$CXXCPP"; then
13681   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13682   $as_echo_n "(cached) " >&6
13683 else
13684       # Double quotes because CXXCPP needs to be expanded
13685     for CXXCPP in "$CXX -E" "/lib/cpp"
13686     do
13687       ac_preproc_ok=false
13688 for ac_cxx_preproc_warn_flag in '' yes
13689 do
13690   # Use a header file that comes with gcc, so configuring glibc
13691   # with a fresh cross-compiler works.
13692   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13693   # <limits.h> exists even on freestanding compilers.
13694   # On the NeXT, cc -E runs the code through the compiler's parser,
13695   # not just through cpp. "Syntax error" is here to catch this case.
13696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698 #ifdef __STDC__
13699 # include <limits.h>
13700 #else
13701 # include <assert.h>
13702 #endif
13703                      Syntax error
13704 _ACEOF
13705 if ac_fn_cxx_try_cpp "$LINENO"; then :
13706
13707 else
13708   # Broken: fails on valid input.
13709 continue
13710 fi
13711 rm -f conftest.err conftest.$ac_ext
13712
13713   # OK, works on sane cases.  Now check whether nonexistent headers
13714   # can be detected and how.
13715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h.  */
13717 #include <ac_nonexistent.h>
13718 _ACEOF
13719 if ac_fn_cxx_try_cpp "$LINENO"; then :
13720   # Broken: success on invalid input.
13721 continue
13722 else
13723   # Passes both tests.
13724 ac_preproc_ok=:
13725 break
13726 fi
13727 rm -f conftest.err conftest.$ac_ext
13728
13729 done
13730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13731 rm -f conftest.err conftest.$ac_ext
13732 if $ac_preproc_ok; then :
13733   break
13734 fi
13735
13736     done
13737     ac_cv_prog_CXXCPP=$CXXCPP
13738
13739 fi
13740   CXXCPP=$ac_cv_prog_CXXCPP
13741 else
13742   ac_cv_prog_CXXCPP=$CXXCPP
13743 fi
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13745 $as_echo "$CXXCPP" >&6; }
13746 ac_preproc_ok=false
13747 for ac_cxx_preproc_warn_flag in '' yes
13748 do
13749   # Use a header file that comes with gcc, so configuring glibc
13750   # with a fresh cross-compiler works.
13751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13752   # <limits.h> exists even on freestanding compilers.
13753   # On the NeXT, cc -E runs the code through the compiler's parser,
13754   # not just through cpp. "Syntax error" is here to catch this case.
13755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h.  */
13757 #ifdef __STDC__
13758 # include <limits.h>
13759 #else
13760 # include <assert.h>
13761 #endif
13762                      Syntax error
13763 _ACEOF
13764 if ac_fn_cxx_try_cpp "$LINENO"; then :
13765
13766 else
13767   # Broken: fails on valid input.
13768 continue
13769 fi
13770 rm -f conftest.err conftest.$ac_ext
13771
13772   # OK, works on sane cases.  Now check whether nonexistent headers
13773   # can be detected and how.
13774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h.  */
13776 #include <ac_nonexistent.h>
13777 _ACEOF
13778 if ac_fn_cxx_try_cpp "$LINENO"; then :
13779   # Broken: success on invalid input.
13780 continue
13781 else
13782   # Passes both tests.
13783 ac_preproc_ok=:
13784 break
13785 fi
13786 rm -f conftest.err conftest.$ac_ext
13787
13788 done
13789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13790 rm -f conftest.err conftest.$ac_ext
13791 if $ac_preproc_ok; then :
13792
13793 else
13794   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13796 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13797 See \`config.log' for more details." "$LINENO" 5; }
13798 fi
13799
13800 ac_ext=c
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13805
13806 else
13807   _lt_caught_CXX_error=yes
13808 fi
13809
13810 ac_ext=cpp
13811 ac_cpp='$CXXCPP $CPPFLAGS'
13812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13815
13816 archive_cmds_need_lc_CXX=no
13817 allow_undefined_flag_CXX=
13818 always_export_symbols_CXX=no
13819 archive_expsym_cmds_CXX=
13820 compiler_needs_object_CXX=no
13821 export_dynamic_flag_spec_CXX=
13822 hardcode_direct_CXX=no
13823 hardcode_direct_absolute_CXX=no
13824 hardcode_libdir_flag_spec_CXX=
13825 hardcode_libdir_flag_spec_ld_CXX=
13826 hardcode_libdir_separator_CXX=
13827 hardcode_minus_L_CXX=no
13828 hardcode_shlibpath_var_CXX=unsupported
13829 hardcode_automatic_CXX=no
13830 inherit_rpath_CXX=no
13831 module_cmds_CXX=
13832 module_expsym_cmds_CXX=
13833 link_all_deplibs_CXX=unknown
13834 old_archive_cmds_CXX=$old_archive_cmds
13835 reload_flag_CXX=$reload_flag
13836 reload_cmds_CXX=$reload_cmds
13837 no_undefined_flag_CXX=
13838 whole_archive_flag_spec_CXX=
13839 enable_shared_with_static_runtimes_CXX=no
13840
13841 # Source file extension for C++ test sources.
13842 ac_ext=cpp
13843
13844 # Object file extension for compiled C++ test sources.
13845 objext=o
13846 objext_CXX=$objext
13847
13848 # No sense in running all these tests if we already determined that
13849 # the CXX compiler isn't working.  Some variables (like enable_shared)
13850 # are currently assumed to apply to all compilers on this platform,
13851 # and will be corrupted by setting them based on a non-working compiler.
13852 if test "$_lt_caught_CXX_error" != yes; then
13853   # Code to be used in simple compile tests
13854   lt_simple_compile_test_code="int some_variable = 0;"
13855
13856   # Code to be used in simple link tests
13857   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13858
13859   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13860
13861
13862
13863
13864
13865
13866 # If no C compiler was specified, use CC.
13867 LTCC=${LTCC-"$CC"}
13868
13869 # If no C compiler flags were specified, use CFLAGS.
13870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13871
13872 # Allow CC to be a program name with arguments.
13873 compiler=$CC
13874
13875
13876   # save warnings/boilerplate of simple test code
13877   ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_compiler_boilerplate=`cat conftest.err`
13881 $RM conftest*
13882
13883   ac_outfile=conftest.$ac_objext
13884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13886 _lt_linker_boilerplate=`cat conftest.err`
13887 $RM -r conftest*
13888
13889
13890   # Allow CC to be a program name with arguments.
13891   lt_save_CC=$CC
13892   lt_save_LD=$LD
13893   lt_save_GCC=$GCC
13894   GCC=$GXX
13895   lt_save_with_gnu_ld=$with_gnu_ld
13896   lt_save_path_LD=$lt_cv_path_LD
13897   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13898     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13899   else
13900     $as_unset lt_cv_prog_gnu_ld
13901   fi
13902   if test -n "${lt_cv_path_LDCXX+set}"; then
13903     lt_cv_path_LD=$lt_cv_path_LDCXX
13904   else
13905     $as_unset lt_cv_path_LD
13906   fi
13907   test -z "${LDCXX+set}" || LD=$LDCXX
13908   CC=${CXX-"c++"}
13909   compiler=$CC
13910   compiler_CXX=$CC
13911   for cc_temp in $compiler""; do
13912   case $cc_temp in
13913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13915     \-*) ;;
13916     *) break;;
13917   esac
13918 done
13919 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13920
13921
13922   if test -n "$compiler"; then
13923     # We don't want -fno-exception when compiling C++ code, so set the
13924     # no_builtin_flag separately
13925     if test "$GXX" = yes; then
13926       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13927     else
13928       lt_prog_compiler_no_builtin_flag_CXX=
13929     fi
13930
13931     if test "$GXX" = yes; then
13932       # Set up default GNU C++ configuration
13933
13934
13935
13936 # Check whether --with-gnu-ld was given.
13937 if test "${with_gnu_ld+set}" = set; then :
13938   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13939 else
13940   with_gnu_ld=no
13941 fi
13942
13943 ac_prog=ld
13944 if test "$GCC" = yes; then
13945   # Check if gcc -print-prog-name=ld gives a path.
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13947 $as_echo_n "checking for ld used by $CC... " >&6; }
13948   case $host in
13949   *-*-mingw*)
13950     # gcc leaves a trailing carriage return which upsets mingw
13951     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13952   *)
13953     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13954   esac
13955   case $ac_prog in
13956     # Accept absolute paths.
13957     [\\/]* | ?:[\\/]*)
13958       re_direlt='/[^/][^/]*/\.\./'
13959       # Canonicalize the pathname of ld
13960       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13961       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13962         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13963       done
13964       test -z "$LD" && LD="$ac_prog"
13965       ;;
13966   "")
13967     # If it fails, then pretend we aren't using GCC.
13968     ac_prog=ld
13969     ;;
13970   *)
13971     # If it is relative, then search for the first ld in PATH.
13972     with_gnu_ld=unknown
13973     ;;
13974   esac
13975 elif test "$with_gnu_ld" = yes; then
13976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13977 $as_echo_n "checking for GNU ld... " >&6; }
13978 else
13979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13980 $as_echo_n "checking for non-GNU ld... " >&6; }
13981 fi
13982 if test "${lt_cv_path_LD+set}" = set; then :
13983   $as_echo_n "(cached) " >&6
13984 else
13985   if test -z "$LD"; then
13986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13987   for ac_dir in $PATH; do
13988     IFS="$lt_save_ifs"
13989     test -z "$ac_dir" && ac_dir=.
13990     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13991       lt_cv_path_LD="$ac_dir/$ac_prog"
13992       # Check to see if the program is GNU ld.  I'd rather use --version,
13993       # but apparently some variants of GNU ld only accept -v.
13994       # Break only if it was the GNU/non-GNU ld that we prefer.
13995       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13996       *GNU* | *'with BFD'*)
13997         test "$with_gnu_ld" != no && break
13998         ;;
13999       *)
14000         test "$with_gnu_ld" != yes && break
14001         ;;
14002       esac
14003     fi
14004   done
14005   IFS="$lt_save_ifs"
14006 else
14007   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14008 fi
14009 fi
14010
14011 LD="$lt_cv_path_LD"
14012 if test -n "$LD"; then
14013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14014 $as_echo "$LD" >&6; }
14015 else
14016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018 fi
14019 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14022 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14023   $as_echo_n "(cached) " >&6
14024 else
14025   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14026 case `$LD -v 2>&1 </dev/null` in
14027 *GNU* | *'with BFD'*)
14028   lt_cv_prog_gnu_ld=yes
14029   ;;
14030 *)
14031   lt_cv_prog_gnu_ld=no
14032   ;;
14033 esac
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14037 with_gnu_ld=$lt_cv_prog_gnu_ld
14038
14039
14040
14041
14042
14043
14044
14045       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14046       # archiving commands below assume that GNU ld is being used.
14047       if test "$with_gnu_ld" = yes; then
14048         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049         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'
14050
14051         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14052         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14053
14054         # If archive_cmds runs LD, not CC, wlarc should be empty
14055         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14056         #     investigate it a little bit more. (MM)
14057         wlarc='${wl}'
14058
14059         # ancient GNU ld didn't support --whole-archive et. al.
14060         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14061           $GREP 'no-whole-archive' > /dev/null; then
14062           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14063         else
14064           whole_archive_flag_spec_CXX=
14065         fi
14066       else
14067         with_gnu_ld=no
14068         wlarc=
14069
14070         # A generic and very simple default shared library creation
14071         # command for GNU C++ for the case where it uses the native
14072         # linker, instead of GNU ld.  If possible, this setting should
14073         # overridden to take advantage of the native linker features on
14074         # the platform it is being used on.
14075         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14076       fi
14077
14078       # Commands to make compiler produce verbose output that lists
14079       # what "hidden" libraries, object files and flags are used when
14080       # linking a shared library.
14081       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14082
14083     else
14084       GXX=no
14085       with_gnu_ld=no
14086       wlarc=
14087     fi
14088
14089     # PORTME: fill in a description of your system's C++ link characteristics
14090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14092     ld_shlibs_CXX=yes
14093     case $host_os in
14094       aix3*)
14095         # FIXME: insert proper C++ library support
14096         ld_shlibs_CXX=no
14097         ;;
14098       aix[4-9]*)
14099         if test "$host_cpu" = ia64; then
14100           # On IA64, the linker does run time linking by default, so we don't
14101           # have to do anything special.
14102           aix_use_runtimelinking=no
14103           exp_sym_flag='-Bexport'
14104           no_entry_flag=""
14105         else
14106           aix_use_runtimelinking=no
14107
14108           # Test if we are trying to use run time linking or normal
14109           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14110           # need to do runtime linking.
14111           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14112             for ld_flag in $LDFLAGS; do
14113               case $ld_flag in
14114               *-brtl*)
14115                 aix_use_runtimelinking=yes
14116                 break
14117                 ;;
14118               esac
14119             done
14120             ;;
14121           esac
14122
14123           exp_sym_flag='-bexport'
14124           no_entry_flag='-bnoentry'
14125         fi
14126
14127         # When large executables or shared objects are built, AIX ld can
14128         # have problems creating the table of contents.  If linking a library
14129         # or program results in "error TOC overflow" add -mminimal-toc to
14130         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14131         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14132
14133         archive_cmds_CXX=''
14134         hardcode_direct_CXX=yes
14135         hardcode_direct_absolute_CXX=yes
14136         hardcode_libdir_separator_CXX=':'
14137         link_all_deplibs_CXX=yes
14138         file_list_spec_CXX='${wl}-f,'
14139
14140         if test "$GXX" = yes; then
14141           case $host_os in aix4.[012]|aix4.[012].*)
14142           # We only want to do this on AIX 4.2 and lower, the check
14143           # below for broken collect2 doesn't work under 4.3+
14144           collect2name=`${CC} -print-prog-name=collect2`
14145           if test -f "$collect2name" &&
14146              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14147           then
14148             # We have reworked collect2
14149             :
14150           else
14151             # We have old collect2
14152             hardcode_direct_CXX=unsupported
14153             # It fails to find uninstalled libraries when the uninstalled
14154             # path is not listed in the libpath.  Setting hardcode_minus_L
14155             # to unsupported forces relinking
14156             hardcode_minus_L_CXX=yes
14157             hardcode_libdir_flag_spec_CXX='-L$libdir'
14158             hardcode_libdir_separator_CXX=
14159           fi
14160           esac
14161           shared_flag='-shared'
14162           if test "$aix_use_runtimelinking" = yes; then
14163             shared_flag="$shared_flag "'${wl}-G'
14164           fi
14165         else
14166           # not using gcc
14167           if test "$host_cpu" = ia64; then
14168           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14169           # chokes on -Wl,-G. The following line is correct:
14170           shared_flag='-G'
14171           else
14172             if test "$aix_use_runtimelinking" = yes; then
14173               shared_flag='${wl}-G'
14174             else
14175               shared_flag='${wl}-bM:SRE'
14176             fi
14177           fi
14178         fi
14179
14180         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14181         # It seems that -bexpall does not export symbols beginning with
14182         # underscore (_), so it is better to generate a list of symbols to
14183         # export.
14184         always_export_symbols_CXX=yes
14185         if test "$aix_use_runtimelinking" = yes; then
14186           # Warning - without using the other runtime loading flags (-brtl),
14187           # -berok will link without error, but may produce a broken library.
14188           allow_undefined_flag_CXX='-berok'
14189           # Determine the default libpath from the value encoded in an empty
14190           # executable.
14191           if test x$gcc_no_link = xyes; then
14192   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14193 fi
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h.  */
14196
14197 int
14198 main ()
14199 {
14200
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_cxx_try_link "$LINENO"; then :
14206
14207 lt_aix_libpath_sed='
14208     /Import File Strings/,/^$/ {
14209         /^0/ {
14210             s/^0  *\(.*\)$/\1/
14211             p
14212         }
14213     }'
14214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14215 # Check for a 64-bit object if we didn't find anything.
14216 if test -z "$aix_libpath"; then
14217   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14218 fi
14219 fi
14220 rm -f core conftest.err conftest.$ac_objext \
14221     conftest$ac_exeext conftest.$ac_ext
14222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14223
14224           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14225
14226           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14227         else
14228           if test "$host_cpu" = ia64; then
14229             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14230             allow_undefined_flag_CXX="-z nodefs"
14231             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"
14232           else
14233             # Determine the default libpath from the value encoded in an
14234             # empty executable.
14235             if test x$gcc_no_link = xyes; then
14236   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14237 fi
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h.  */
14240
14241 int
14242 main ()
14243 {
14244
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 if ac_fn_cxx_try_link "$LINENO"; then :
14250
14251 lt_aix_libpath_sed='
14252     /Import File Strings/,/^$/ {
14253         /^0/ {
14254             s/^0  *\(.*\)$/\1/
14255             p
14256         }
14257     }'
14258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14259 # Check for a 64-bit object if we didn't find anything.
14260 if test -z "$aix_libpath"; then
14261   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14262 fi
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext \
14265     conftest$ac_exeext conftest.$ac_ext
14266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14267
14268             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14269             # Warning - without using the other run time loading flags,
14270             # -berok will link without error, but may produce a broken library.
14271             no_undefined_flag_CXX=' ${wl}-bernotok'
14272             allow_undefined_flag_CXX=' ${wl}-berok'
14273             if test "$with_gnu_ld" = yes; then
14274               # We only use this code for GNU lds that support --whole-archive.
14275               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14276             else
14277               # Exported symbols can be pulled into shared objects from archives
14278               whole_archive_flag_spec_CXX='$convenience'
14279             fi
14280             archive_cmds_need_lc_CXX=yes
14281             # This is similar to how AIX traditionally builds its shared
14282             # libraries.
14283             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'
14284           fi
14285         fi
14286         ;;
14287
14288       beos*)
14289         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14290           allow_undefined_flag_CXX=unsupported
14291           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14292           # support --undefined.  This deserves some investigation.  FIXME
14293           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14294         else
14295           ld_shlibs_CXX=no
14296         fi
14297         ;;
14298
14299       chorus*)
14300         case $cc_basename in
14301           *)
14302           # FIXME: insert proper C++ library support
14303           ld_shlibs_CXX=no
14304           ;;
14305         esac
14306         ;;
14307
14308       cygwin* | mingw* | pw32* | cegcc*)
14309         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14310         # as there is no search path for DLLs.
14311         hardcode_libdir_flag_spec_CXX='-L$libdir'
14312         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14313         allow_undefined_flag_CXX=unsupported
14314         always_export_symbols_CXX=no
14315         enable_shared_with_static_runtimes_CXX=yes
14316
14317         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14318           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'
14319           # If the export-symbols file already is a .def file (1st line
14320           # is EXPORTS), use it as is; otherwise, prepend...
14321           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14322             cp $export_symbols $output_objdir/$soname.def;
14323           else
14324             echo EXPORTS > $output_objdir/$soname.def;
14325             cat $export_symbols >> $output_objdir/$soname.def;
14326           fi~
14327           $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'
14328         else
14329           ld_shlibs_CXX=no
14330         fi
14331         ;;
14332       darwin* | rhapsody*)
14333
14334
14335   archive_cmds_need_lc_CXX=no
14336   hardcode_direct_CXX=no
14337   hardcode_automatic_CXX=yes
14338   hardcode_shlibpath_var_CXX=unsupported
14339   if test "$lt_cv_ld_force_load" = "yes"; then
14340     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14341   else
14342     whole_archive_flag_spec_CXX=''
14343   fi
14344   link_all_deplibs_CXX=yes
14345   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14346   case $cc_basename in
14347      ifort*) _lt_dar_can_shared=yes ;;
14348      *) _lt_dar_can_shared=$GCC ;;
14349   esac
14350   if test "$_lt_dar_can_shared" = "yes"; then
14351     output_verbose_link_cmd=func_echo_all
14352     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}"
14353     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14354     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}"
14355     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}"
14356        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14357       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}"
14358       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}"
14359     fi
14360
14361   else
14362   ld_shlibs_CXX=no
14363   fi
14364
14365         ;;
14366
14367       dgux*)
14368         case $cc_basename in
14369           ec++*)
14370             # FIXME: insert proper C++ library support
14371             ld_shlibs_CXX=no
14372             ;;
14373           ghcx*)
14374             # Green Hills C++ Compiler
14375             # FIXME: insert proper C++ library support
14376             ld_shlibs_CXX=no
14377             ;;
14378           *)
14379             # FIXME: insert proper C++ library support
14380             ld_shlibs_CXX=no
14381             ;;
14382         esac
14383         ;;
14384
14385       freebsd[12]*)
14386         # C++ shared libraries reported to be fairly broken before
14387         # switch to ELF
14388         ld_shlibs_CXX=no
14389         ;;
14390
14391       freebsd-elf*)
14392         archive_cmds_need_lc_CXX=no
14393         ;;
14394
14395       freebsd* | dragonfly*)
14396         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14397         # conventions
14398         ld_shlibs_CXX=yes
14399         ;;
14400
14401       gnu*)
14402         ;;
14403
14404       haiku*)
14405         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406         link_all_deplibs_CXX=yes
14407         ;;
14408
14409       hpux9*)
14410         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14411         hardcode_libdir_separator_CXX=:
14412         export_dynamic_flag_spec_CXX='${wl}-E'
14413         hardcode_direct_CXX=yes
14414         hardcode_minus_L_CXX=yes # Not in the search PATH,
14415                                              # but as the default
14416                                              # location of the library.
14417
14418         case $cc_basename in
14419           CC*)
14420             # FIXME: insert proper C++ library support
14421             ld_shlibs_CXX=no
14422             ;;
14423           aCC*)
14424             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'
14425             # Commands to make compiler produce verbose output that lists
14426             # what "hidden" libraries, object files and flags are used when
14427             # linking a shared library.
14428             #
14429             # There doesn't appear to be a way to prevent this compiler from
14430             # explicitly linking system object files so we need to strip them
14431             # from the output so that they don't get included in the library
14432             # dependencies.
14433             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14434             ;;
14435           *)
14436             if test "$GXX" = yes; then
14437               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'
14438             else
14439               # FIXME: insert proper C++ library support
14440               ld_shlibs_CXX=no
14441             fi
14442             ;;
14443         esac
14444         ;;
14445
14446       hpux10*|hpux11*)
14447         if test $with_gnu_ld = no; then
14448           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14449           hardcode_libdir_separator_CXX=:
14450
14451           case $host_cpu in
14452             hppa*64*|ia64*)
14453               ;;
14454             *)
14455               export_dynamic_flag_spec_CXX='${wl}-E'
14456               ;;
14457           esac
14458         fi
14459         case $host_cpu in
14460           hppa*64*|ia64*)
14461             hardcode_direct_CXX=no
14462             hardcode_shlibpath_var_CXX=no
14463             ;;
14464           *)
14465             hardcode_direct_CXX=yes
14466             hardcode_direct_absolute_CXX=yes
14467             hardcode_minus_L_CXX=yes # Not in the search PATH,
14468                                                  # but as the default
14469                                                  # location of the library.
14470             ;;
14471         esac
14472
14473         case $cc_basename in
14474           CC*)
14475             # FIXME: insert proper C++ library support
14476             ld_shlibs_CXX=no
14477             ;;
14478           aCC*)
14479             case $host_cpu in
14480               hppa*64*)
14481                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482                 ;;
14483               ia64*)
14484                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14485                 ;;
14486               *)
14487                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14488                 ;;
14489             esac
14490             # Commands to make compiler produce verbose output that lists
14491             # what "hidden" libraries, object files and flags are used when
14492             # linking a shared library.
14493             #
14494             # There doesn't appear to be a way to prevent this compiler from
14495             # explicitly linking system object files so we need to strip them
14496             # from the output so that they don't get included in the library
14497             # dependencies.
14498             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14499             ;;
14500           *)
14501             if test "$GXX" = yes; then
14502               if test $with_gnu_ld = no; then
14503                 case $host_cpu in
14504                   hppa*64*)
14505                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506                     ;;
14507                   ia64*)
14508                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14509                     ;;
14510                   *)
14511                     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'
14512                     ;;
14513                 esac
14514               fi
14515             else
14516               # FIXME: insert proper C++ library support
14517               ld_shlibs_CXX=no
14518             fi
14519             ;;
14520         esac
14521         ;;
14522
14523       interix[3-9]*)
14524         hardcode_direct_CXX=no
14525         hardcode_shlibpath_var_CXX=no
14526         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14527         export_dynamic_flag_spec_CXX='${wl}-E'
14528         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14529         # Instead, shared libraries are loaded at an image base (0x10000000 by
14530         # default) and relocated if they conflict, which is a slow very memory
14531         # consuming and fragmenting process.  To avoid this, we pick a random,
14532         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14533         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14534         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'
14535         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'
14536         ;;
14537       irix5* | irix6*)
14538         case $cc_basename in
14539           CC*)
14540             # SGI C++
14541             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14542
14543             # Archives containing C++ object files must be created using
14544             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14545             # necessary to make sure instantiated templates are included
14546             # in the archive.
14547             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14548             ;;
14549           *)
14550             if test "$GXX" = yes; then
14551               if test "$with_gnu_ld" = no; then
14552                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14553               else
14554                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14555               fi
14556             fi
14557             link_all_deplibs_CXX=yes
14558             ;;
14559         esac
14560         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14561         hardcode_libdir_separator_CXX=:
14562         inherit_rpath_CXX=yes
14563         ;;
14564
14565       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14566         case $cc_basename in
14567           KCC*)
14568             # Kuck and Associates, Inc. (KAI) C++ Compiler
14569
14570             # KCC will only create a shared library if the output file
14571             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14572             # to its proper name (with version) after linking.
14573             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'
14574             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'
14575             # Commands to make compiler produce verbose output that lists
14576             # what "hidden" libraries, object files and flags are used when
14577             # linking a shared library.
14578             #
14579             # There doesn't appear to be a way to prevent this compiler from
14580             # explicitly linking system object files so we need to strip them
14581             # from the output so that they don't get included in the library
14582             # dependencies.
14583             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14584
14585             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14586             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14587
14588             # Archives containing C++ object files must be created using
14589             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14590             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14591             ;;
14592           icpc* | ecpc* )
14593             # Intel C++
14594             with_gnu_ld=yes
14595             # version 8.0 and above of icpc choke on multiply defined symbols
14596             # if we add $predep_objects and $postdep_objects, however 7.1 and
14597             # earlier do not add the objects themselves.
14598             case `$CC -V 2>&1` in
14599               *"Version 7."*)
14600                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14601                 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'
14602                 ;;
14603               *)  # Version 8.0 or newer
14604                 tmp_idyn=
14605                 case $host_cpu in
14606                   ia64*) tmp_idyn=' -i_dynamic';;
14607                 esac
14608                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14609                 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'
14610                 ;;
14611             esac
14612             archive_cmds_need_lc_CXX=no
14613             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14614             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14615             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14616             ;;
14617           pgCC* | pgcpp*)
14618             # Portland Group C++ compiler
14619             case `$CC -V` in
14620             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14621               prelink_cmds_CXX='tpldir=Template.dir~
14622                 rm -rf $tpldir~
14623                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14624                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14625               old_archive_cmds_CXX='tpldir=Template.dir~
14626                 rm -rf $tpldir~
14627                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14628                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14629                 $RANLIB $oldlib'
14630               archive_cmds_CXX='tpldir=Template.dir~
14631                 rm -rf $tpldir~
14632                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14633                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14634               archive_expsym_cmds_CXX='tpldir=Template.dir~
14635                 rm -rf $tpldir~
14636                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14637                 $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'
14638               ;;
14639             *) # Version 6 and above use weak symbols
14640               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14641               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'
14642               ;;
14643             esac
14644
14645             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14646             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14647             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14648             ;;
14649           cxx*)
14650             # Compaq C++
14651             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14652             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'
14653
14654             runpath_var=LD_RUN_PATH
14655             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14656             hardcode_libdir_separator_CXX=:
14657
14658             # Commands to make compiler produce verbose output that lists
14659             # what "hidden" libraries, object files and flags are used when
14660             # linking a shared library.
14661             #
14662             # There doesn't appear to be a way to prevent this compiler from
14663             # explicitly linking system object files so we need to strip them
14664             # from the output so that they don't get included in the library
14665             # dependencies.
14666             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14667             ;;
14668           xl* | mpixl* | bgxl*)
14669             # IBM XL 8.0 on PPC, with GNU ld
14670             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14671             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14672             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673             if test "x$supports_anon_versioning" = xyes; then
14674               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14675                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14676                 echo "local: *; };" >> $output_objdir/$libname.ver~
14677                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14678             fi
14679             ;;
14680           *)
14681             case `$CC -V 2>&1 | sed 5q` in
14682             *Sun\ C*)
14683               # Sun C++ 5.9
14684               no_undefined_flag_CXX=' -zdefs'
14685               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14686               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'
14687               hardcode_libdir_flag_spec_CXX='-R$libdir'
14688               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14689               compiler_needs_object_CXX=yes
14690
14691               # Not sure whether something based on
14692               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14693               # would be better.
14694               output_verbose_link_cmd='func_echo_all'
14695
14696               # Archives containing C++ object files must be created using
14697               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14698               # necessary to make sure instantiated templates are included
14699               # in the archive.
14700               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14701               ;;
14702             esac
14703             ;;
14704         esac
14705         ;;
14706
14707       lynxos*)
14708         # FIXME: insert proper C++ library support
14709         ld_shlibs_CXX=no
14710         ;;
14711
14712       m88k*)
14713         # FIXME: insert proper C++ library support
14714         ld_shlibs_CXX=no
14715         ;;
14716
14717       mvs*)
14718         case $cc_basename in
14719           cxx*)
14720             # FIXME: insert proper C++ library support
14721             ld_shlibs_CXX=no
14722             ;;
14723           *)
14724             # FIXME: insert proper C++ library support
14725             ld_shlibs_CXX=no
14726             ;;
14727         esac
14728         ;;
14729
14730       netbsd*)
14731         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14732           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14733           wlarc=
14734           hardcode_libdir_flag_spec_CXX='-R$libdir'
14735           hardcode_direct_CXX=yes
14736           hardcode_shlibpath_var_CXX=no
14737         fi
14738         # Workaround some broken pre-1.5 toolchains
14739         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14740         ;;
14741
14742       *nto* | *qnx*)
14743         ld_shlibs_CXX=yes
14744         ;;
14745
14746       openbsd2*)
14747         # C++ shared libraries are fairly broken
14748         ld_shlibs_CXX=no
14749         ;;
14750
14751       openbsd*)
14752         if test -f /usr/libexec/ld.so; then
14753           hardcode_direct_CXX=yes
14754           hardcode_shlibpath_var_CXX=no
14755           hardcode_direct_absolute_CXX=yes
14756           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14757           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14758           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14759             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14760             export_dynamic_flag_spec_CXX='${wl}-E'
14761             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14762           fi
14763           output_verbose_link_cmd=func_echo_all
14764         else
14765           ld_shlibs_CXX=no
14766         fi
14767         ;;
14768
14769       osf3* | osf4* | osf5*)
14770         case $cc_basename in
14771           KCC*)
14772             # Kuck and Associates, Inc. (KAI) C++ Compiler
14773
14774             # KCC will only create a shared library if the output file
14775             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14776             # to its proper name (with version) after linking.
14777             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'
14778
14779             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14780             hardcode_libdir_separator_CXX=:
14781
14782             # Archives containing C++ object files must be created using
14783             # the KAI C++ compiler.
14784             case $host in
14785               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14786               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14787             esac
14788             ;;
14789           RCC*)
14790             # Rational C++ 2.4.1
14791             # FIXME: insert proper C++ library support
14792             ld_shlibs_CXX=no
14793             ;;
14794           cxx*)
14795             case $host in
14796               osf3*)
14797                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14798                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14799                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14800                 ;;
14801               *)
14802                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14803                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14804                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14805                   echo "-hidden">> $lib.exp~
14806                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14807                   $RM $lib.exp'
14808                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14809                 ;;
14810             esac
14811
14812             hardcode_libdir_separator_CXX=:
14813
14814             # Commands to make compiler produce verbose output that lists
14815             # what "hidden" libraries, object files and flags are used when
14816             # linking a shared library.
14817             #
14818             # There doesn't appear to be a way to prevent this compiler from
14819             # explicitly linking system object files so we need to strip them
14820             # from the output so that they don't get included in the library
14821             # dependencies.
14822             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14823             ;;
14824           *)
14825             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14826               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14827               case $host in
14828                 osf3*)
14829                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14830                   ;;
14831                 *)
14832                   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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14833                   ;;
14834               esac
14835
14836               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14837               hardcode_libdir_separator_CXX=:
14838
14839               # Commands to make compiler produce verbose output that lists
14840               # what "hidden" libraries, object files and flags are used when
14841               # linking a shared library.
14842               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14843
14844             else
14845               # FIXME: insert proper C++ library support
14846               ld_shlibs_CXX=no
14847             fi
14848             ;;
14849         esac
14850         ;;
14851
14852       psos*)
14853         # FIXME: insert proper C++ library support
14854         ld_shlibs_CXX=no
14855         ;;
14856
14857       sunos4*)
14858         case $cc_basename in
14859           CC*)
14860             # Sun C++ 4.x
14861             # FIXME: insert proper C++ library support
14862             ld_shlibs_CXX=no
14863             ;;
14864           lcc*)
14865             # Lucid
14866             # FIXME: insert proper C++ library support
14867             ld_shlibs_CXX=no
14868             ;;
14869           *)
14870             # FIXME: insert proper C++ library support
14871             ld_shlibs_CXX=no
14872             ;;
14873         esac
14874         ;;
14875
14876       solaris*)
14877         case $cc_basename in
14878           CC*)
14879             # Sun C++ 4.2, 5.x and Centerline C++
14880             archive_cmds_need_lc_CXX=yes
14881             no_undefined_flag_CXX=' -zdefs'
14882             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14883             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14884               $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'
14885
14886             hardcode_libdir_flag_spec_CXX='-R$libdir'
14887             hardcode_shlibpath_var_CXX=no
14888             case $host_os in
14889               solaris2.[0-5] | solaris2.[0-5].*) ;;
14890               *)
14891                 # The compiler driver will combine and reorder linker options,
14892                 # but understands `-z linker_flag'.
14893                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14894                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14895                 ;;
14896             esac
14897             link_all_deplibs_CXX=yes
14898
14899             output_verbose_link_cmd='func_echo_all'
14900
14901             # Archives containing C++ object files must be created using
14902             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14903             # necessary to make sure instantiated templates are included
14904             # in the archive.
14905             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14906             ;;
14907           gcx*)
14908             # Green Hills C++ Compiler
14909             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14910
14911             # The C++ compiler must be used to create the archive.
14912             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14913             ;;
14914           *)
14915             # GNU C++ compiler with Solaris linker
14916             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14917               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14918               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14919                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14920                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14921                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14922
14923                 # Commands to make compiler produce verbose output that lists
14924                 # what "hidden" libraries, object files and flags are used when
14925                 # linking a shared library.
14926                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14927               else
14928                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14929                 # platform.
14930                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14931                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14932                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14933
14934                 # Commands to make compiler produce verbose output that lists
14935                 # what "hidden" libraries, object files and flags are used when
14936                 # linking a shared library.
14937                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14938               fi
14939
14940               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14941               case $host_os in
14942                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14943                 *)
14944                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14945                   ;;
14946               esac
14947             fi
14948             ;;
14949         esac
14950         ;;
14951
14952     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14953       no_undefined_flag_CXX='${wl}-z,text'
14954       archive_cmds_need_lc_CXX=no
14955       hardcode_shlibpath_var_CXX=no
14956       runpath_var='LD_RUN_PATH'
14957
14958       case $cc_basename in
14959         CC*)
14960           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962           ;;
14963         *)
14964           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966           ;;
14967       esac
14968       ;;
14969
14970       sysv5* | sco3.2v5* | sco5v6*)
14971         # Note: We can NOT use -z defs as we might desire, because we do not
14972         # link with -lc, and that would cause any symbols used from libc to
14973         # always be unresolved, which means just about no library would
14974         # ever link correctly.  If we're not using GNU ld we use -z text
14975         # though, which does catch some bad symbols but isn't as heavy-handed
14976         # as -z defs.
14977         no_undefined_flag_CXX='${wl}-z,text'
14978         allow_undefined_flag_CXX='${wl}-z,nodefs'
14979         archive_cmds_need_lc_CXX=no
14980         hardcode_shlibpath_var_CXX=no
14981         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14982         hardcode_libdir_separator_CXX=':'
14983         link_all_deplibs_CXX=yes
14984         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14985         runpath_var='LD_RUN_PATH'
14986
14987         case $cc_basename in
14988           CC*)
14989             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14990             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14992               '"$old_archive_cmds_CXX"
14993             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14994               '"$reload_cmds_CXX"
14995             ;;
14996           *)
14997             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14998             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999             ;;
15000         esac
15001       ;;
15002
15003       tandem*)
15004         case $cc_basename in
15005           NCC*)
15006             # NonStop-UX NCC 3.20
15007             # FIXME: insert proper C++ library support
15008             ld_shlibs_CXX=no
15009             ;;
15010           *)
15011             # FIXME: insert proper C++ library support
15012             ld_shlibs_CXX=no
15013             ;;
15014         esac
15015         ;;
15016
15017       vxworks*)
15018         # FIXME: insert proper C++ library support
15019         ld_shlibs_CXX=no
15020         ;;
15021
15022       *)
15023         # FIXME: insert proper C++ library support
15024         ld_shlibs_CXX=no
15025         ;;
15026     esac
15027
15028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15029 $as_echo "$ld_shlibs_CXX" >&6; }
15030     test "$ld_shlibs_CXX" = no && can_build_shared=no
15031
15032     GCC_CXX="$GXX"
15033     LD_CXX="$LD"
15034
15035     ## CAVEAT EMPTOR:
15036     ## There is no encapsulation within the following macros, do not change
15037     ## the running order or otherwise move them around unless you know exactly
15038     ## what you are doing...
15039     # Dependencies to place before and after the object being linked:
15040 predep_objects_CXX=
15041 postdep_objects_CXX=
15042 predeps_CXX=
15043 postdeps_CXX=
15044 compiler_lib_search_path_CXX=
15045
15046 cat > conftest.$ac_ext <<_LT_EOF
15047 class Foo
15048 {
15049 public:
15050   Foo (void) { a = 0; }
15051 private:
15052   int a;
15053 };
15054 _LT_EOF
15055
15056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15057   (eval $ac_compile) 2>&5
15058   ac_status=$?
15059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060   test $ac_status = 0; }; then
15061   # Parse the compiler output and extract the necessary
15062   # objects, libraries and library flags.
15063
15064   # Sentinel used to keep track of whether or not we are before
15065   # the conftest object file.
15066   pre_test_object_deps_done=no
15067
15068   for p in `eval "$output_verbose_link_cmd"`; do
15069     case $p in
15070
15071     -L* | -R* | -l*)
15072        # Some compilers place space between "-{L,R}" and the path.
15073        # Remove the space.
15074        if test $p = "-L" ||
15075           test $p = "-R"; then
15076          prev=$p
15077          continue
15078        else
15079          prev=
15080        fi
15081
15082        if test "$pre_test_object_deps_done" = no; then
15083          case $p in
15084          -L* | -R*)
15085            # Internal compiler library paths should come after those
15086            # provided the user.  The postdeps already come after the
15087            # user supplied libs so there is no need to process them.
15088            if test -z "$compiler_lib_search_path_CXX"; then
15089              compiler_lib_search_path_CXX="${prev}${p}"
15090            else
15091              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15092            fi
15093            ;;
15094          # The "-l" case would never come before the object being
15095          # linked, so don't bother handling this case.
15096          esac
15097        else
15098          if test -z "$postdeps_CXX"; then
15099            postdeps_CXX="${prev}${p}"
15100          else
15101            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15102          fi
15103        fi
15104        ;;
15105
15106     *.$objext)
15107        # This assumes that the test object file only shows up
15108        # once in the compiler output.
15109        if test "$p" = "conftest.$objext"; then
15110          pre_test_object_deps_done=yes
15111          continue
15112        fi
15113
15114        if test "$pre_test_object_deps_done" = no; then
15115          if test -z "$predep_objects_CXX"; then
15116            predep_objects_CXX="$p"
15117          else
15118            predep_objects_CXX="$predep_objects_CXX $p"
15119          fi
15120        else
15121          if test -z "$postdep_objects_CXX"; then
15122            postdep_objects_CXX="$p"
15123          else
15124            postdep_objects_CXX="$postdep_objects_CXX $p"
15125          fi
15126        fi
15127        ;;
15128
15129     *) ;; # Ignore the rest.
15130
15131     esac
15132   done
15133
15134   # Clean up.
15135   rm -f a.out a.exe
15136 else
15137   echo "libtool.m4: error: problem compiling CXX test program"
15138 fi
15139
15140 $RM -f confest.$objext
15141
15142 # PORTME: override above test on systems where it is broken
15143 case $host_os in
15144 interix[3-9]*)
15145   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15146   # hack all around it, let's just trust "g++" to DTRT.
15147   predep_objects_CXX=
15148   postdep_objects_CXX=
15149   postdeps_CXX=
15150   ;;
15151
15152 linux*)
15153   case `$CC -V 2>&1 | sed 5q` in
15154   *Sun\ C*)
15155     # Sun C++ 5.9
15156
15157     # The more standards-conforming stlport4 library is
15158     # incompatible with the Cstd library. Avoid specifying
15159     # it if it's in CXXFLAGS. Ignore libCrun as
15160     # -library=stlport4 depends on it.
15161     case " $CXX $CXXFLAGS " in
15162     *" -library=stlport4 "*)
15163       solaris_use_stlport4=yes
15164       ;;
15165     esac
15166
15167     if test "$solaris_use_stlport4" != yes; then
15168       postdeps_CXX='-library=Cstd -library=Crun'
15169     fi
15170     ;;
15171   esac
15172   ;;
15173
15174 solaris*)
15175   case $cc_basename in
15176   CC*)
15177     # The more standards-conforming stlport4 library is
15178     # incompatible with the Cstd library. Avoid specifying
15179     # it if it's in CXXFLAGS. Ignore libCrun as
15180     # -library=stlport4 depends on it.
15181     case " $CXX $CXXFLAGS " in
15182     *" -library=stlport4 "*)
15183       solaris_use_stlport4=yes
15184       ;;
15185     esac
15186
15187     # Adding this requires a known-good setup of shared libraries for
15188     # Sun compiler versions before 5.6, else PIC objects from an old
15189     # archive will be linked into the output, leading to subtle bugs.
15190     if test "$solaris_use_stlport4" != yes; then
15191       postdeps_CXX='-library=Cstd -library=Crun'
15192     fi
15193     ;;
15194   esac
15195   ;;
15196 esac
15197
15198
15199 case " $postdeps_CXX " in
15200 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15201 esac
15202  compiler_lib_search_dirs_CXX=
15203 if test -n "${compiler_lib_search_path_CXX}"; then
15204  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15205 fi
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237     lt_prog_compiler_wl_CXX=
15238 lt_prog_compiler_pic_CXX=
15239 lt_prog_compiler_static_CXX=
15240
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15242 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15243
15244   # C++ specific cases for pic, static, wl, etc.
15245   if test "$GXX" = yes; then
15246     lt_prog_compiler_wl_CXX='-Wl,'
15247     lt_prog_compiler_static_CXX='-static'
15248
15249     case $host_os in
15250     aix*)
15251       # All AIX code is PIC.
15252       if test "$host_cpu" = ia64; then
15253         # AIX 5 now supports IA64 processor
15254         lt_prog_compiler_static_CXX='-Bstatic'
15255       fi
15256       ;;
15257
15258     amigaos*)
15259       case $host_cpu in
15260       powerpc)
15261             # see comment about AmigaOS4 .so support
15262             lt_prog_compiler_pic_CXX='-fPIC'
15263         ;;
15264       m68k)
15265             # FIXME: we need at least 68020 code to build shared libraries, but
15266             # adding the `-m68020' flag to GCC prevents building anything better,
15267             # like `-m68040'.
15268             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15269         ;;
15270       esac
15271       ;;
15272
15273     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15274       # PIC is the default for these OSes.
15275       ;;
15276     mingw* | cygwin* | os2* | pw32* | cegcc*)
15277       # This hack is so that the source file can tell whether it is being
15278       # built for inclusion in a dll (and should export symbols for example).
15279       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15280       # (--disable-auto-import) libraries
15281       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15282       ;;
15283     darwin* | rhapsody*)
15284       # PIC is the default on this platform
15285       # Common symbols not allowed in MH_DYLIB files
15286       lt_prog_compiler_pic_CXX='-fno-common'
15287       ;;
15288     *djgpp*)
15289       # DJGPP does not support shared libraries at all
15290       lt_prog_compiler_pic_CXX=
15291       ;;
15292     haiku*)
15293       # PIC is the default for Haiku.
15294       # The "-static" flag exists, but is broken.
15295       lt_prog_compiler_static_CXX=
15296       ;;
15297     interix[3-9]*)
15298       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15299       # Instead, we relocate shared libraries at runtime.
15300       ;;
15301     sysv4*MP*)
15302       if test -d /usr/nec; then
15303         lt_prog_compiler_pic_CXX=-Kconform_pic
15304       fi
15305       ;;
15306     hpux*)
15307       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15308       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15309       # sets the default TLS model and affects inlining.
15310       case $host_cpu in
15311       hppa*64*)
15312         ;;
15313       *)
15314         lt_prog_compiler_pic_CXX='-fPIC'
15315         ;;
15316       esac
15317       ;;
15318     *qnx* | *nto*)
15319       # QNX uses GNU C++, but need to define -shared option too, otherwise
15320       # it will coredump.
15321       lt_prog_compiler_pic_CXX='-fPIC -shared'
15322       ;;
15323     *)
15324       lt_prog_compiler_pic_CXX='-fPIC'
15325       ;;
15326     esac
15327   else
15328     case $host_os in
15329       aix[4-9]*)
15330         # All AIX code is PIC.
15331         if test "$host_cpu" = ia64; then
15332           # AIX 5 now supports IA64 processor
15333           lt_prog_compiler_static_CXX='-Bstatic'
15334         else
15335           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15336         fi
15337         ;;
15338       chorus*)
15339         case $cc_basename in
15340         cxch68*)
15341           # Green Hills C++ Compiler
15342           # _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"
15343           ;;
15344         esac
15345         ;;
15346       dgux*)
15347         case $cc_basename in
15348           ec++*)
15349             lt_prog_compiler_pic_CXX='-KPIC'
15350             ;;
15351           ghcx*)
15352             # Green Hills C++ Compiler
15353             lt_prog_compiler_pic_CXX='-pic'
15354             ;;
15355           *)
15356             ;;
15357         esac
15358         ;;
15359       freebsd* | dragonfly*)
15360         # FreeBSD uses GNU C++
15361         ;;
15362       hpux9* | hpux10* | hpux11*)
15363         case $cc_basename in
15364           CC*)
15365             lt_prog_compiler_wl_CXX='-Wl,'
15366             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15367             if test "$host_cpu" != ia64; then
15368               lt_prog_compiler_pic_CXX='+Z'
15369             fi
15370             ;;
15371           aCC*)
15372             lt_prog_compiler_wl_CXX='-Wl,'
15373             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15374             case $host_cpu in
15375             hppa*64*|ia64*)
15376               # +Z the default
15377               ;;
15378             *)
15379               lt_prog_compiler_pic_CXX='+Z'
15380               ;;
15381             esac
15382             ;;
15383           *)
15384             ;;
15385         esac
15386         ;;
15387       interix*)
15388         # This is c89, which is MS Visual C++ (no shared libs)
15389         # Anyone wants to do a port?
15390         ;;
15391       irix5* | irix6* | nonstopux*)
15392         case $cc_basename in
15393           CC*)
15394             lt_prog_compiler_wl_CXX='-Wl,'
15395             lt_prog_compiler_static_CXX='-non_shared'
15396             # CC pic flag -KPIC is the default.
15397             ;;
15398           *)
15399             ;;
15400         esac
15401         ;;
15402       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15403         case $cc_basename in
15404           KCC*)
15405             # KAI C++ Compiler
15406             lt_prog_compiler_wl_CXX='--backend -Wl,'
15407             lt_prog_compiler_pic_CXX='-fPIC'
15408             ;;
15409           ecpc* )
15410             # old Intel C++ for x86_64 which still supported -KPIC.
15411             lt_prog_compiler_wl_CXX='-Wl,'
15412             lt_prog_compiler_pic_CXX='-KPIC'
15413             lt_prog_compiler_static_CXX='-static'
15414             ;;
15415           icpc* )
15416             # Intel C++, used to be incompatible with GCC.
15417             # ICC 10 doesn't accept -KPIC any more.
15418             lt_prog_compiler_wl_CXX='-Wl,'
15419             lt_prog_compiler_pic_CXX='-fPIC'
15420             lt_prog_compiler_static_CXX='-static'
15421             ;;
15422           pgCC* | pgcpp*)
15423             # Portland Group C++ compiler
15424             lt_prog_compiler_wl_CXX='-Wl,'
15425             lt_prog_compiler_pic_CXX='-fpic'
15426             lt_prog_compiler_static_CXX='-Bstatic'
15427             ;;
15428           cxx*)
15429             # Compaq C++
15430             # Make sure the PIC flag is empty.  It appears that all Alpha
15431             # Linux and Compaq Tru64 Unix objects are PIC.
15432             lt_prog_compiler_pic_CXX=
15433             lt_prog_compiler_static_CXX='-non_shared'
15434             ;;
15435           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15436             # IBM XL 8.0, 9.0 on PPC and BlueGene
15437             lt_prog_compiler_wl_CXX='-Wl,'
15438             lt_prog_compiler_pic_CXX='-qpic'
15439             lt_prog_compiler_static_CXX='-qstaticlink'
15440             ;;
15441           *)
15442             case `$CC -V 2>&1 | sed 5q` in
15443             *Sun\ C*)
15444               # Sun C++ 5.9
15445               lt_prog_compiler_pic_CXX='-KPIC'
15446               lt_prog_compiler_static_CXX='-Bstatic'
15447               lt_prog_compiler_wl_CXX='-Qoption ld '
15448               ;;
15449             esac
15450             ;;
15451         esac
15452         ;;
15453       lynxos*)
15454         ;;
15455       m88k*)
15456         ;;
15457       mvs*)
15458         case $cc_basename in
15459           cxx*)
15460             lt_prog_compiler_pic_CXX='-W c,exportall'
15461             ;;
15462           *)
15463             ;;
15464         esac
15465         ;;
15466       netbsd*)
15467         ;;
15468       *qnx* | *nto*)
15469         # QNX uses GNU C++, but need to define -shared option too, otherwise
15470         # it will coredump.
15471         lt_prog_compiler_pic_CXX='-fPIC -shared'
15472         ;;
15473       osf3* | osf4* | osf5*)
15474         case $cc_basename in
15475           KCC*)
15476             lt_prog_compiler_wl_CXX='--backend -Wl,'
15477             ;;
15478           RCC*)
15479             # Rational C++ 2.4.1
15480             lt_prog_compiler_pic_CXX='-pic'
15481             ;;
15482           cxx*)
15483             # Digital/Compaq C++
15484             lt_prog_compiler_wl_CXX='-Wl,'
15485             # Make sure the PIC flag is empty.  It appears that all Alpha
15486             # Linux and Compaq Tru64 Unix objects are PIC.
15487             lt_prog_compiler_pic_CXX=
15488             lt_prog_compiler_static_CXX='-non_shared'
15489             ;;
15490           *)
15491             ;;
15492         esac
15493         ;;
15494       psos*)
15495         ;;
15496       solaris*)
15497         case $cc_basename in
15498           CC*)
15499             # Sun C++ 4.2, 5.x and Centerline C++
15500             lt_prog_compiler_pic_CXX='-KPIC'
15501             lt_prog_compiler_static_CXX='-Bstatic'
15502             lt_prog_compiler_wl_CXX='-Qoption ld '
15503             ;;
15504           gcx*)
15505             # Green Hills C++ Compiler
15506             lt_prog_compiler_pic_CXX='-PIC'
15507             ;;
15508           *)
15509             ;;
15510         esac
15511         ;;
15512       sunos4*)
15513         case $cc_basename in
15514           CC*)
15515             # Sun C++ 4.x
15516             lt_prog_compiler_pic_CXX='-pic'
15517             lt_prog_compiler_static_CXX='-Bstatic'
15518             ;;
15519           lcc*)
15520             # Lucid
15521             lt_prog_compiler_pic_CXX='-pic'
15522             ;;
15523           *)
15524             ;;
15525         esac
15526         ;;
15527       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15528         case $cc_basename in
15529           CC*)
15530             lt_prog_compiler_wl_CXX='-Wl,'
15531             lt_prog_compiler_pic_CXX='-KPIC'
15532             lt_prog_compiler_static_CXX='-Bstatic'
15533             ;;
15534         esac
15535         ;;
15536       tandem*)
15537         case $cc_basename in
15538           NCC*)
15539             # NonStop-UX NCC 3.20
15540             lt_prog_compiler_pic_CXX='-KPIC'
15541             ;;
15542           *)
15543             ;;
15544         esac
15545         ;;
15546       vxworks*)
15547         ;;
15548       *)
15549         lt_prog_compiler_can_build_shared_CXX=no
15550         ;;
15551     esac
15552   fi
15553
15554 case $host_os in
15555   # For platforms which do not support PIC, -DPIC is meaningless:
15556   *djgpp*)
15557     lt_prog_compiler_pic_CXX=
15558     ;;
15559   *)
15560     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15561     ;;
15562 esac
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15564 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15565
15566
15567
15568 #
15569 # Check to make sure the PIC flag actually works.
15570 #
15571 if test -n "$lt_prog_compiler_pic_CXX"; then
15572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15573 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15574 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15575   $as_echo_n "(cached) " >&6
15576 else
15577   lt_cv_prog_compiler_pic_works_CXX=no
15578    ac_outfile=conftest.$ac_objext
15579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15581    # Insert the option either (1) after the last *FLAGS variable, or
15582    # (2) before a word containing "conftest.", or (3) at the end.
15583    # Note that $ac_compile itself does not contain backslashes and begins
15584    # with a dollar sign (not a hyphen), so the echo should work correctly.
15585    # The option is referenced via a variable to avoid confusing sed.
15586    lt_compile=`echo "$ac_compile" | $SED \
15587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15589    -e 's:$: $lt_compiler_flag:'`
15590    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15591    (eval "$lt_compile" 2>conftest.err)
15592    ac_status=$?
15593    cat conftest.err >&5
15594    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595    if (exit $ac_status) && test -s "$ac_outfile"; then
15596      # The compiler can only warn and ignore the option if not recognized
15597      # So say no if there are warnings other than the usual output.
15598      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15599      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15600      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15601        lt_cv_prog_compiler_pic_works_CXX=yes
15602      fi
15603    fi
15604    $RM conftest*
15605
15606 fi
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15608 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15609
15610 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15611     case $lt_prog_compiler_pic_CXX in
15612      "" | " "*) ;;
15613      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15614      esac
15615 else
15616     lt_prog_compiler_pic_CXX=
15617      lt_prog_compiler_can_build_shared_CXX=no
15618 fi
15619
15620 fi
15621
15622
15623
15624 #
15625 # Check to make sure the static flag actually works.
15626 #
15627 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15629 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15630 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15631   $as_echo_n "(cached) " >&6
15632 else
15633   lt_cv_prog_compiler_static_works_CXX=no
15634    save_LDFLAGS="$LDFLAGS"
15635    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15636    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15637    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15638      # The linker can only warn and ignore the option if not recognized
15639      # So say no if there are warnings
15640      if test -s conftest.err; then
15641        # Append any errors to the config.log.
15642        cat conftest.err 1>&5
15643        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15644        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15645        if diff conftest.exp conftest.er2 >/dev/null; then
15646          lt_cv_prog_compiler_static_works_CXX=yes
15647        fi
15648      else
15649        lt_cv_prog_compiler_static_works_CXX=yes
15650      fi
15651    fi
15652    $RM -r conftest*
15653    LDFLAGS="$save_LDFLAGS"
15654
15655 fi
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15657 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15658
15659 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15660     :
15661 else
15662     lt_prog_compiler_static_CXX=
15663 fi
15664
15665
15666
15667
15668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15670 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15671   $as_echo_n "(cached) " >&6
15672 else
15673   lt_cv_prog_compiler_c_o_CXX=no
15674    $RM -r conftest 2>/dev/null
15675    mkdir conftest
15676    cd conftest
15677    mkdir out
15678    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15679
15680    lt_compiler_flag="-o out/conftest2.$ac_objext"
15681    # Insert the option either (1) after the last *FLAGS variable, or
15682    # (2) before a word containing "conftest.", or (3) at the end.
15683    # Note that $ac_compile itself does not contain backslashes and begins
15684    # with a dollar sign (not a hyphen), so the echo should work correctly.
15685    lt_compile=`echo "$ac_compile" | $SED \
15686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15688    -e 's:$: $lt_compiler_flag:'`
15689    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15690    (eval "$lt_compile" 2>out/conftest.err)
15691    ac_status=$?
15692    cat out/conftest.err >&5
15693    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15695    then
15696      # The compiler can only warn and ignore the option if not recognized
15697      # So say no if there are warnings
15698      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15699      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15700      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15701        lt_cv_prog_compiler_c_o_CXX=yes
15702      fi
15703    fi
15704    chmod u+w . 2>&5
15705    $RM conftest*
15706    # SGI C++ compiler will create directory out/ii_files/ for
15707    # template instantiation
15708    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15709    $RM out/* && rmdir out
15710    cd ..
15711    $RM -r conftest
15712    $RM conftest*
15713
15714 fi
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15716 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15717
15718
15719
15720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15722 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15723   $as_echo_n "(cached) " >&6
15724 else
15725   lt_cv_prog_compiler_c_o_CXX=no
15726    $RM -r conftest 2>/dev/null
15727    mkdir conftest
15728    cd conftest
15729    mkdir out
15730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15731
15732    lt_compiler_flag="-o out/conftest2.$ac_objext"
15733    # Insert the option either (1) after the last *FLAGS variable, or
15734    # (2) before a word containing "conftest.", or (3) at the end.
15735    # Note that $ac_compile itself does not contain backslashes and begins
15736    # with a dollar sign (not a hyphen), so the echo should work correctly.
15737    lt_compile=`echo "$ac_compile" | $SED \
15738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15740    -e 's:$: $lt_compiler_flag:'`
15741    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15742    (eval "$lt_compile" 2>out/conftest.err)
15743    ac_status=$?
15744    cat out/conftest.err >&5
15745    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15747    then
15748      # The compiler can only warn and ignore the option if not recognized
15749      # So say no if there are warnings
15750      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15753        lt_cv_prog_compiler_c_o_CXX=yes
15754      fi
15755    fi
15756    chmod u+w . 2>&5
15757    $RM conftest*
15758    # SGI C++ compiler will create directory out/ii_files/ for
15759    # template instantiation
15760    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15761    $RM out/* && rmdir out
15762    cd ..
15763    $RM -r conftest
15764    $RM conftest*
15765
15766 fi
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15768 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15769
15770
15771
15772
15773 hard_links="nottested"
15774 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15775   # do not overwrite the value of need_locks provided by the user
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15777 $as_echo_n "checking if we can lock with hard links... " >&6; }
15778   hard_links=yes
15779   $RM conftest*
15780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15781   touch conftest.a
15782   ln conftest.a conftest.b 2>&5 || hard_links=no
15783   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15785 $as_echo "$hard_links" >&6; }
15786   if test "$hard_links" = no; then
15787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15788 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15789     need_locks=warn
15790   fi
15791 else
15792   need_locks=no
15793 fi
15794
15795
15796
15797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15799
15800   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15801   case $host_os in
15802   aix[4-9]*)
15803     # If we're using GNU nm, then we don't want the "-C" option.
15804     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15805     # Also, AIX nm treats weak defined symbols like other global defined
15806     # symbols, whereas GNU nm marks them as "W".
15807     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15808       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15809     else
15810       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'
15811     fi
15812     ;;
15813   pw32*)
15814     export_symbols_cmds_CXX="$ltdll_cmds"
15815   ;;
15816   cygwin* | mingw* | cegcc*)
15817     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'
15818   ;;
15819   *)
15820     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15821   ;;
15822   esac
15823   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15824
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15826 $as_echo "$ld_shlibs_CXX" >&6; }
15827 test "$ld_shlibs_CXX" = no && can_build_shared=no
15828
15829 with_gnu_ld_CXX=$with_gnu_ld
15830
15831
15832
15833
15834
15835
15836 #
15837 # Do we need to explicitly link libc?
15838 #
15839 case "x$archive_cmds_need_lc_CXX" in
15840 x|xyes)
15841   # Assume -lc should be added
15842   archive_cmds_need_lc_CXX=yes
15843
15844   if test "$enable_shared" = yes && test "$GCC" = yes; then
15845     case $archive_cmds_CXX in
15846     *'~'*)
15847       # FIXME: we may have to deal with multi-command sequences.
15848       ;;
15849     '$CC '*)
15850       # Test whether the compiler implicitly links with -lc since on some
15851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15852       # to ld, don't add -lc before -lgcc.
15853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15854 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15855 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15856   $as_echo_n "(cached) " >&6
15857 else
15858   $RM conftest*
15859         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15860
15861         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15862   (eval $ac_compile) 2>&5
15863   ac_status=$?
15864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15865   test $ac_status = 0; } 2>conftest.err; then
15866           soname=conftest
15867           lib=conftest
15868           libobjs=conftest.$ac_objext
15869           deplibs=
15870           wl=$lt_prog_compiler_wl_CXX
15871           pic_flag=$lt_prog_compiler_pic_CXX
15872           compiler_flags=-v
15873           linker_flags=-v
15874           verstring=
15875           output_objdir=.
15876           libname=conftest
15877           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15878           allow_undefined_flag_CXX=
15879           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15880   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15881   ac_status=$?
15882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15883   test $ac_status = 0; }
15884           then
15885             lt_cv_archive_cmds_need_lc_CXX=no
15886           else
15887             lt_cv_archive_cmds_need_lc_CXX=yes
15888           fi
15889           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15890         else
15891           cat conftest.err 1>&5
15892         fi
15893         $RM conftest*
15894
15895 fi
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15897 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15898       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15899       ;;
15900     esac
15901   fi
15902   ;;
15903 esac
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15969 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15970
15971 library_names_spec=
15972 libname_spec='lib$name'
15973 soname_spec=
15974 shrext_cmds=".so"
15975 postinstall_cmds=
15976 postuninstall_cmds=
15977 finish_cmds=
15978 finish_eval=
15979 shlibpath_var=
15980 shlibpath_overrides_runpath=unknown
15981 version_type=none
15982 dynamic_linker="$host_os ld.so"
15983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15984 need_lib_prefix=unknown
15985 hardcode_into_libs=no
15986
15987 # when you set need_version to no, make sure it does not cause -set_version
15988 # flags to be left without arguments
15989 need_version=unknown
15990
15991 case $host_os in
15992 aix3*)
15993   version_type=linux
15994   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15995   shlibpath_var=LIBPATH
15996
15997   # AIX 3 has no versioning support, so we append a major version to the name.
15998   soname_spec='${libname}${release}${shared_ext}$major'
15999   ;;
16000
16001 aix[4-9]*)
16002   version_type=linux
16003   need_lib_prefix=no
16004   need_version=no
16005   hardcode_into_libs=yes
16006   if test "$host_cpu" = ia64; then
16007     # AIX 5 supports IA64
16008     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16009     shlibpath_var=LD_LIBRARY_PATH
16010   else
16011     # With GCC up to 2.95.x, collect2 would create an import file
16012     # for dependence libraries.  The import file would start with
16013     # the line `#! .'.  This would cause the generated library to
16014     # depend on `.', always an invalid library.  This was fixed in
16015     # development snapshots of GCC prior to 3.0.
16016     case $host_os in
16017       aix4 | aix4.[01] | aix4.[01].*)
16018       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16019            echo ' yes '
16020            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16021         :
16022       else
16023         can_build_shared=no
16024       fi
16025       ;;
16026     esac
16027     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16028     # soname into executable. Probably we can add versioning support to
16029     # collect2, so additional links can be useful in future.
16030     if test "$aix_use_runtimelinking" = yes; then
16031       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16032       # instead of lib<name>.a to let people know that these are not
16033       # typical AIX shared libraries.
16034       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035     else
16036       # We preserve .a as extension for shared libraries through AIX4.2
16037       # and later when we are not doing run time linking.
16038       library_names_spec='${libname}${release}.a $libname.a'
16039       soname_spec='${libname}${release}${shared_ext}$major'
16040     fi
16041     shlibpath_var=LIBPATH
16042   fi
16043   ;;
16044
16045 amigaos*)
16046   case $host_cpu in
16047   powerpc)
16048     # Since July 2007 AmigaOS4 officially supports .so libraries.
16049     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051     ;;
16052   m68k)
16053     library_names_spec='$libname.ixlibrary $libname.a'
16054     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16055     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16056     ;;
16057   esac
16058   ;;
16059
16060 beos*)
16061   library_names_spec='${libname}${shared_ext}'
16062   dynamic_linker="$host_os ld.so"
16063   shlibpath_var=LIBRARY_PATH
16064   ;;
16065
16066 bsdi[45]*)
16067   version_type=linux
16068   need_version=no
16069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070   soname_spec='${libname}${release}${shared_ext}$major'
16071   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16072   shlibpath_var=LD_LIBRARY_PATH
16073   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16074   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16075   # the default ld.so.conf also contains /usr/contrib/lib and
16076   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16077   # libtool to hard-code these into programs
16078   ;;
16079
16080 cygwin* | mingw* | pw32* | cegcc*)
16081   version_type=windows
16082   shrext_cmds=".dll"
16083   need_version=no
16084   need_lib_prefix=no
16085
16086   case $GCC,$host_os in
16087   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16088     library_names_spec='$libname.dll.a'
16089     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16090     postinstall_cmds='base_file=`basename \${file}`~
16091       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16092       dldir=$destdir/`dirname \$dlpath`~
16093       test -d \$dldir || mkdir -p \$dldir~
16094       $install_prog $dir/$dlname \$dldir/$dlname~
16095       chmod a+x \$dldir/$dlname~
16096       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16097         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16098       fi'
16099     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16100       dlpath=$dir/\$dldll~
16101        $RM \$dlpath'
16102     shlibpath_overrides_runpath=yes
16103
16104     case $host_os in
16105     cygwin*)
16106       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16107       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16108
16109       ;;
16110     mingw* | cegcc*)
16111       # MinGW DLLs use traditional 'lib' prefix
16112       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113       ;;
16114     pw32*)
16115       # pw32 DLLs use 'pw' prefix rather than 'lib'
16116       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117       ;;
16118     esac
16119     ;;
16120
16121   *)
16122     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16123     ;;
16124   esac
16125   dynamic_linker='Win32 ld.exe'
16126   # FIXME: first we should search . and the directory the executable is in
16127   shlibpath_var=PATH
16128   ;;
16129
16130 darwin* | rhapsody*)
16131   dynamic_linker="$host_os dyld"
16132   version_type=darwin
16133   need_lib_prefix=no
16134   need_version=no
16135   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16136   soname_spec='${libname}${release}${major}$shared_ext'
16137   shlibpath_overrides_runpath=yes
16138   shlibpath_var=DYLD_LIBRARY_PATH
16139   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16140
16141   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16142   ;;
16143
16144 dgux*)
16145   version_type=linux
16146   need_lib_prefix=no
16147   need_version=no
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16149   soname_spec='${libname}${release}${shared_ext}$major'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   ;;
16152
16153 freebsd* | dragonfly*)
16154   # DragonFly does not have aout.  When/if they implement a new
16155   # versioning mechanism, adjust this.
16156   if test -x /usr/bin/objformat; then
16157     objformat=`/usr/bin/objformat`
16158   else
16159     case $host_os in
16160     freebsd[123]*) objformat=aout ;;
16161     *) objformat=elf ;;
16162     esac
16163   fi
16164   version_type=freebsd-$objformat
16165   case $version_type in
16166     freebsd-elf*)
16167       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16168       need_version=no
16169       need_lib_prefix=no
16170       ;;
16171     freebsd-*)
16172       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16173       need_version=yes
16174       ;;
16175   esac
16176   shlibpath_var=LD_LIBRARY_PATH
16177   case $host_os in
16178   freebsd2*)
16179     shlibpath_overrides_runpath=yes
16180     ;;
16181   freebsd3.[01]* | freebsdelf3.[01]*)
16182     shlibpath_overrides_runpath=yes
16183     hardcode_into_libs=yes
16184     ;;
16185   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16186   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16187     shlibpath_overrides_runpath=no
16188     hardcode_into_libs=yes
16189     ;;
16190   *) # from 4.6 on, and DragonFly
16191     shlibpath_overrides_runpath=yes
16192     hardcode_into_libs=yes
16193     ;;
16194   esac
16195   ;;
16196
16197 gnu*)
16198   version_type=linux
16199   need_lib_prefix=no
16200   need_version=no
16201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16202   soname_spec='${libname}${release}${shared_ext}$major'
16203   shlibpath_var=LD_LIBRARY_PATH
16204   hardcode_into_libs=yes
16205   ;;
16206
16207 haiku*)
16208   version_type=linux
16209   need_lib_prefix=no
16210   need_version=no
16211   dynamic_linker="$host_os runtime_loader"
16212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16213   soname_spec='${libname}${release}${shared_ext}$major'
16214   shlibpath_var=LIBRARY_PATH
16215   shlibpath_overrides_runpath=yes
16216   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16217   hardcode_into_libs=yes
16218   ;;
16219
16220 hpux9* | hpux10* | hpux11*)
16221   # Give a soname corresponding to the major version so that dld.sl refuses to
16222   # link against other versions.
16223   version_type=sunos
16224   need_lib_prefix=no
16225   need_version=no
16226   case $host_cpu in
16227   ia64*)
16228     shrext_cmds='.so'
16229     hardcode_into_libs=yes
16230     dynamic_linker="$host_os dld.so"
16231     shlibpath_var=LD_LIBRARY_PATH
16232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234     soname_spec='${libname}${release}${shared_ext}$major'
16235     if test "X$HPUX_IA64_MODE" = X32; then
16236       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16237     else
16238       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16239     fi
16240     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16241     ;;
16242   hppa*64*)
16243     shrext_cmds='.sl'
16244     hardcode_into_libs=yes
16245     dynamic_linker="$host_os dld.sl"
16246     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16247     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249     soname_spec='${libname}${release}${shared_ext}$major'
16250     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16251     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252     ;;
16253   *)
16254     shrext_cmds='.sl'
16255     dynamic_linker="$host_os dld.sl"
16256     shlibpath_var=SHLIB_PATH
16257     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259     soname_spec='${libname}${release}${shared_ext}$major'
16260     ;;
16261   esac
16262   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16263   postinstall_cmds='chmod 555 $lib'
16264   # or fails outright, so override atomically:
16265   install_override_mode=555
16266   ;;
16267
16268 interix[3-9]*)
16269   version_type=linux
16270   need_lib_prefix=no
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16275   shlibpath_var=LD_LIBRARY_PATH
16276   shlibpath_overrides_runpath=no
16277   hardcode_into_libs=yes
16278   ;;
16279
16280 irix5* | irix6* | nonstopux*)
16281   case $host_os in
16282     nonstopux*) version_type=nonstopux ;;
16283     *)
16284         if test "$lt_cv_prog_gnu_ld" = yes; then
16285                 version_type=linux
16286         else
16287                 version_type=irix
16288         fi ;;
16289   esac
16290   need_lib_prefix=no
16291   need_version=no
16292   soname_spec='${libname}${release}${shared_ext}$major'
16293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16294   case $host_os in
16295   irix5* | nonstopux*)
16296     libsuff= shlibsuff=
16297     ;;
16298   *)
16299     case $LD in # libtool.m4 will add one of these switches to LD
16300     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16301       libsuff= shlibsuff= libmagic=32-bit;;
16302     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16303       libsuff=32 shlibsuff=N32 libmagic=N32;;
16304     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16305       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16306     *) libsuff= shlibsuff= libmagic=never-match;;
16307     esac
16308     ;;
16309   esac
16310   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16311   shlibpath_overrides_runpath=no
16312   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16313   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16314   hardcode_into_libs=yes
16315   ;;
16316
16317 # No shared lib support for Linux oldld, aout, or coff.
16318 linux*oldld* | linux*aout* | linux*coff*)
16319   dynamic_linker=no
16320   ;;
16321
16322 # This must be Linux ELF.
16323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16324   version_type=linux
16325   need_lib_prefix=no
16326   need_version=no
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328   soname_spec='${libname}${release}${shared_ext}$major'
16329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16330   shlibpath_var=LD_LIBRARY_PATH
16331   shlibpath_overrides_runpath=no
16332
16333   # Some binutils ld are patched to set DT_RUNPATH
16334   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16335   $as_echo_n "(cached) " >&6
16336 else
16337   lt_cv_shlibpath_overrides_runpath=no
16338     save_LDFLAGS=$LDFLAGS
16339     save_libdir=$libdir
16340     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16341          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16342     if test x$gcc_no_link = xyes; then
16343   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16344 fi
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h.  */
16347
16348 int
16349 main ()
16350 {
16351
16352   ;
16353   return 0;
16354 }
16355 _ACEOF
16356 if ac_fn_cxx_try_link "$LINENO"; then :
16357   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16358   lt_cv_shlibpath_overrides_runpath=yes
16359 fi
16360 fi
16361 rm -f core conftest.err conftest.$ac_objext \
16362     conftest$ac_exeext conftest.$ac_ext
16363     LDFLAGS=$save_LDFLAGS
16364     libdir=$save_libdir
16365
16366 fi
16367
16368   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16369
16370   # This implies no fast_install, which is unacceptable.
16371   # Some rework will be needed to allow for fast_install
16372   # before this can be enabled.
16373   hardcode_into_libs=yes
16374
16375   # Append ld.so.conf contents to the search path
16376   if test -f /etc/ld.so.conf; then
16377     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16379   fi
16380
16381   # We used to test for /lib/ld.so.1 and disable shared libraries on
16382   # powerpc, because MkLinux only supported shared libraries with the
16383   # GNU dynamic linker.  Since this was broken with cross compilers,
16384   # most powerpc-linux boxes support dynamic linking these days and
16385   # people can always --disable-shared, the test was removed, and we
16386   # assume the GNU/Linux dynamic linker is in use.
16387   dynamic_linker='GNU/Linux ld.so'
16388   ;;
16389
16390 netbsd*)
16391   version_type=sunos
16392   need_lib_prefix=no
16393   need_version=no
16394   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397     dynamic_linker='NetBSD (a.out) ld.so'
16398   else
16399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400     soname_spec='${libname}${release}${shared_ext}$major'
16401     dynamic_linker='NetBSD ld.elf_so'
16402   fi
16403   shlibpath_var=LD_LIBRARY_PATH
16404   shlibpath_overrides_runpath=yes
16405   hardcode_into_libs=yes
16406   ;;
16407
16408 newsos6)
16409   version_type=linux
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   shlibpath_overrides_runpath=yes
16413   ;;
16414
16415 *nto* | *qnx*)
16416   version_type=qnx
16417   need_lib_prefix=no
16418   need_version=no
16419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420   soname_spec='${libname}${release}${shared_ext}$major'
16421   shlibpath_var=LD_LIBRARY_PATH
16422   shlibpath_overrides_runpath=no
16423   hardcode_into_libs=yes
16424   dynamic_linker='ldqnx.so'
16425   ;;
16426
16427 openbsd*)
16428   version_type=sunos
16429   sys_lib_dlsearch_path_spec="/usr/lib"
16430   need_lib_prefix=no
16431   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16432   case $host_os in
16433     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16434     *)                          need_version=no  ;;
16435   esac
16436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16437   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16438   shlibpath_var=LD_LIBRARY_PATH
16439   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16440     case $host_os in
16441       openbsd2.[89] | openbsd2.[89].*)
16442         shlibpath_overrides_runpath=no
16443         ;;
16444       *)
16445         shlibpath_overrides_runpath=yes
16446         ;;
16447       esac
16448   else
16449     shlibpath_overrides_runpath=yes
16450   fi
16451   ;;
16452
16453 os2*)
16454   libname_spec='$name'
16455   shrext_cmds=".dll"
16456   need_lib_prefix=no
16457   library_names_spec='$libname${shared_ext} $libname.a'
16458   dynamic_linker='OS/2 ld.exe'
16459   shlibpath_var=LIBPATH
16460   ;;
16461
16462 osf3* | osf4* | osf5*)
16463   version_type=osf
16464   need_lib_prefix=no
16465   need_version=no
16466   soname_spec='${libname}${release}${shared_ext}$major'
16467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468   shlibpath_var=LD_LIBRARY_PATH
16469   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16470   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16471   ;;
16472
16473 rdos*)
16474   dynamic_linker=no
16475   ;;
16476
16477 solaris*)
16478   version_type=linux
16479   need_lib_prefix=no
16480   need_version=no
16481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482   soname_spec='${libname}${release}${shared_ext}$major'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   shlibpath_overrides_runpath=yes
16485   hardcode_into_libs=yes
16486   # ldd complains unless libraries are executable
16487   postinstall_cmds='chmod +x $lib'
16488   ;;
16489
16490 sunos4*)
16491   version_type=sunos
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16494   shlibpath_var=LD_LIBRARY_PATH
16495   shlibpath_overrides_runpath=yes
16496   if test "$with_gnu_ld" = yes; then
16497     need_lib_prefix=no
16498   fi
16499   need_version=yes
16500   ;;
16501
16502 sysv4 | sysv4.3*)
16503   version_type=linux
16504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505   soname_spec='${libname}${release}${shared_ext}$major'
16506   shlibpath_var=LD_LIBRARY_PATH
16507   case $host_vendor in
16508     sni)
16509       shlibpath_overrides_runpath=no
16510       need_lib_prefix=no
16511       runpath_var=LD_RUN_PATH
16512       ;;
16513     siemens)
16514       need_lib_prefix=no
16515       ;;
16516     motorola)
16517       need_lib_prefix=no
16518       need_version=no
16519       shlibpath_overrides_runpath=no
16520       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16521       ;;
16522   esac
16523   ;;
16524
16525 sysv4*MP*)
16526   if test -d /usr/nec ;then
16527     version_type=linux
16528     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16529     soname_spec='$libname${shared_ext}.$major'
16530     shlibpath_var=LD_LIBRARY_PATH
16531   fi
16532   ;;
16533
16534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16535   version_type=freebsd-elf
16536   need_lib_prefix=no
16537   need_version=no
16538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16539   soname_spec='${libname}${release}${shared_ext}$major'
16540   shlibpath_var=LD_LIBRARY_PATH
16541   shlibpath_overrides_runpath=yes
16542   hardcode_into_libs=yes
16543   if test "$with_gnu_ld" = yes; then
16544     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16545   else
16546     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16547     case $host_os in
16548       sco3.2v5*)
16549         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16550         ;;
16551     esac
16552   fi
16553   sys_lib_dlsearch_path_spec='/usr/lib'
16554   ;;
16555
16556 tpf*)
16557   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16558   version_type=linux
16559   need_lib_prefix=no
16560   need_version=no
16561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562   shlibpath_var=LD_LIBRARY_PATH
16563   shlibpath_overrides_runpath=no
16564   hardcode_into_libs=yes
16565   ;;
16566
16567 uts4*)
16568   version_type=linux
16569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570   soname_spec='${libname}${release}${shared_ext}$major'
16571   shlibpath_var=LD_LIBRARY_PATH
16572   ;;
16573
16574 *)
16575   dynamic_linker=no
16576   ;;
16577 esac
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16579 $as_echo "$dynamic_linker" >&6; }
16580 test "$dynamic_linker" = no && can_build_shared=no
16581
16582 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16583 if test "$GCC" = yes; then
16584   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16585 fi
16586
16587 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16588   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16589 fi
16590 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16591   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16592 fi
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16632 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16633 hardcode_action_CXX=
16634 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16635    test -n "$runpath_var_CXX" ||
16636    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16637
16638   # We can hardcode non-existent directories.
16639   if test "$hardcode_direct_CXX" != no &&
16640      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16641      # have to relink, otherwise we might link with an installed library
16642      # when we should be linking with a yet-to-be-installed one
16643      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16644      test "$hardcode_minus_L_CXX" != no; then
16645     # Linking always hardcodes the temporary library directory.
16646     hardcode_action_CXX=relink
16647   else
16648     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16649     hardcode_action_CXX=immediate
16650   fi
16651 else
16652   # We cannot hardcode anything, or else we can only hardcode existing
16653   # directories.
16654   hardcode_action_CXX=unsupported
16655 fi
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16657 $as_echo "$hardcode_action_CXX" >&6; }
16658
16659 if test "$hardcode_action_CXX" = relink ||
16660    test "$inherit_rpath_CXX" = yes; then
16661   # Fast installation is not supported
16662   enable_fast_install=no
16663 elif test "$shlibpath_overrides_runpath" = yes ||
16664      test "$enable_shared" = no; then
16665   # Fast installation is not necessary
16666   enable_fast_install=needless
16667 fi
16668
16669
16670
16671
16672
16673
16674
16675   fi # test -n "$compiler"
16676
16677   CC=$lt_save_CC
16678   LDCXX=$LD
16679   LD=$lt_save_LD
16680   GCC=$lt_save_GCC
16681   with_gnu_ld=$lt_save_with_gnu_ld
16682   lt_cv_path_LDCXX=$lt_cv_path_LD
16683   lt_cv_path_LD=$lt_save_path_LD
16684   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16685   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16686 fi # test "$_lt_caught_CXX_error" != yes
16687
16688 ac_ext=c
16689 ac_cpp='$CPP $CPPFLAGS'
16690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706         ac_config_commands="$ac_config_commands libtool"
16707
16708
16709
16710
16711 # Only expand once:
16712
16713
16714
16715
16716
16717 case $host in
16718   *-cygwin* | *-mingw*)
16719     # 'host' will be top-level target in the case of a target lib,
16720     # we must compare to with_cross_host to decide if this is a native
16721     # or cross-compiler and select where to install dlls appropriately.
16722     if test -n "$with_cross_host" &&
16723         test x"$with_cross_host" != x"no"; then
16724       lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16725     else
16726       lt_host_flags='-no-undefined -bindir "$(bindir)"';
16727     fi
16728     ;;
16729   *)
16730     lt_host_flags=
16731     ;;
16732 esac
16733
16734
16735
16736
16737 if test -n "$ac_tool_prefix"; then
16738   for ac_prog in gcj
16739   do
16740     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16743 $as_echo_n "checking for $ac_word... " >&6; }
16744 if test "${ac_cv_prog_GCJ+set}" = set; then :
16745   $as_echo_n "(cached) " >&6
16746 else
16747   if test -n "$GCJ"; then
16748   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16749 else
16750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16751 for as_dir in $PATH
16752 do
16753   IFS=$as_save_IFS
16754   test -z "$as_dir" && as_dir=.
16755     for ac_exec_ext in '' $ac_executable_extensions; do
16756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16757     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16759     break 2
16760   fi
16761 done
16762   done
16763 IFS=$as_save_IFS
16764
16765 fi
16766 fi
16767 GCJ=$ac_cv_prog_GCJ
16768 if test -n "$GCJ"; then
16769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16770 $as_echo "$GCJ" >&6; }
16771 else
16772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773 $as_echo "no" >&6; }
16774 fi
16775
16776
16777     test -n "$GCJ" && break
16778   done
16779 fi
16780 if test -z "$GCJ"; then
16781   ac_ct_GCJ=$GCJ
16782   for ac_prog in gcj
16783 do
16784   # Extract the first word of "$ac_prog", so it can be a program name with args.
16785 set dummy $ac_prog; ac_word=$2
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16787 $as_echo_n "checking for $ac_word... " >&6; }
16788 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16789   $as_echo_n "(cached) " >&6
16790 else
16791   if test -n "$ac_ct_GCJ"; then
16792   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16793 else
16794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16795 for as_dir in $PATH
16796 do
16797   IFS=$as_save_IFS
16798   test -z "$as_dir" && as_dir=.
16799     for ac_exec_ext in '' $ac_executable_extensions; do
16800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16801     ac_cv_prog_ac_ct_GCJ="$ac_prog"
16802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16803     break 2
16804   fi
16805 done
16806   done
16807 IFS=$as_save_IFS
16808
16809 fi
16810 fi
16811 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16812 if test -n "$ac_ct_GCJ"; then
16813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16814 $as_echo "$ac_ct_GCJ" >&6; }
16815 else
16816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16817 $as_echo "no" >&6; }
16818 fi
16819
16820
16821   test -n "$ac_ct_GCJ" && break
16822 done
16823
16824   if test "x$ac_ct_GCJ" = x; then
16825     GCJ="gcj"
16826   else
16827     case $cross_compiling:$ac_tool_warned in
16828 yes:)
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16831 ac_tool_warned=yes ;;
16832 esac
16833     GCJ=$ac_ct_GCJ
16834   fi
16835 fi
16836
16837 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16838 if test "x${GCJFLAGS-unset}" = xunset; then
16839    GCJFLAGS="-g -O2"
16840 fi
16841
16842
16843 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16844
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16846 $as_echo_n "checking dependency style of $depcc... " >&6; }
16847 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16848   $as_echo_n "(cached) " >&6
16849 else
16850   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16851   # We make a subdir and do the tests there.  Otherwise we can end up
16852   # making bogus files that we don't know about and never remove.  For
16853   # instance it was reported that on HP-UX the gcc test will end up
16854   # making a dummy file named `D' -- because `-MD' means `put the output
16855   # in D'.
16856   mkdir conftest.dir
16857   # Copy depcomp to subdir because otherwise we won't find it if we're
16858   # using a relative directory.
16859   cp "$am_depcomp" conftest.dir
16860   cd conftest.dir
16861   # We will build objects and dependencies in a subdirectory because
16862   # it helps to detect inapplicable dependency modes.  For instance
16863   # both Tru64's cc and ICC support -MD to output dependencies as a
16864   # side effect of compilation, but ICC will put the dependencies in
16865   # the current directory while Tru64 will put them in the object
16866   # directory.
16867   mkdir sub
16868
16869   am_cv_GCJ_dependencies_compiler_type=none
16870   if test "$am_compiler_list" = ""; then
16871      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16872   fi
16873   am__universal=false
16874
16875
16876   for depmode in $am_compiler_list; do
16877     # Setup a source with many dependencies, because some compilers
16878     # like to wrap large dependency lists on column 80 (with \), and
16879     # we should not choose a depcomp mode which is confused by this.
16880     #
16881     # We need to recreate these files for each test, as the compiler may
16882     # overwrite some of them when testing with obscure command lines.
16883     # This happens at least with the AIX C compiler.
16884     : > sub/conftest.c
16885     for i in 1 2 3 4 5 6; do
16886       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16887       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16888       # Solaris 8's {/usr,}/bin/sh.
16889       touch sub/conftst$i.h
16890     done
16891     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16892
16893     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16894     # mode.  It turns out that the SunPro C++ compiler does not properly
16895     # handle `-M -o', and we need to detect this.  Also, some Intel
16896     # versions had trouble with output in subdirs
16897     am__obj=sub/conftest.${OBJEXT-o}
16898     am__minus_obj="-o $am__obj"
16899     case $depmode in
16900     gcc)
16901       # This depmode causes a compiler race in universal mode.
16902       test "$am__universal" = false || continue
16903       ;;
16904     nosideeffect)
16905       # after this tag, mechanisms are not by side-effect, so they'll
16906       # only be used when explicitly requested
16907       if test "x$enable_dependency_tracking" = xyes; then
16908         continue
16909       else
16910         break
16911       fi
16912       ;;
16913     msvisualcpp | msvcmsys)
16914       # This compiler won't grok `-c -o', but also, the minuso test has
16915       # not run yet.  These depmodes are late enough in the game, and
16916       # so weak that their functioning should not be impacted.
16917       am__obj=conftest.${OBJEXT-o}
16918       am__minus_obj=
16919       ;;
16920     none) break ;;
16921     esac
16922     if depmode=$depmode \
16923        source=sub/conftest.c object=$am__obj \
16924        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16925        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16926          >/dev/null 2>conftest.err &&
16927        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16928        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16929        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16930        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16931       # icc doesn't choke on unknown options, it will just issue warnings
16932       # or remarks (even with -Werror).  So we grep stderr for any message
16933       # that says an option was ignored or not supported.
16934       # When given -MP, icc 7.0 and 7.1 complain thusly:
16935       #   icc: Command line warning: ignoring option '-M'; no argument required
16936       # The diagnosis changed in icc 8.0:
16937       #   icc: Command line remark: option '-MP' not supported
16938       if (grep 'ignoring option' conftest.err ||
16939           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16940         am_cv_GCJ_dependencies_compiler_type=$depmode
16941         break
16942       fi
16943     fi
16944   done
16945
16946   cd ..
16947   rm -rf conftest.dir
16948 else
16949   am_cv_GCJ_dependencies_compiler_type=none
16950 fi
16951
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16954 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16955 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16956
16957  if
16958   test "x$enable_dependency_tracking" != xno \
16959   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16960   am__fastdepGCJ_TRUE=
16961   am__fastdepGCJ_FALSE='#'
16962 else
16963   am__fastdepGCJ_TRUE='#'
16964   am__fastdepGCJ_FALSE=
16965 fi
16966
16967
16968
16969 if test -n "$ac_tool_prefix"; then
16970   for ac_prog in gcj
16971   do
16972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16975 $as_echo_n "checking for $ac_word... " >&6; }
16976 if test "${ac_cv_prog_GCJ+set}" = set; then :
16977   $as_echo_n "(cached) " >&6
16978 else
16979   if test -n "$GCJ"; then
16980   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16981 else
16982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16983 for as_dir in $PATH
16984 do
16985   IFS=$as_save_IFS
16986   test -z "$as_dir" && as_dir=.
16987     for ac_exec_ext in '' $ac_executable_extensions; do
16988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16989     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16991     break 2
16992   fi
16993 done
16994   done
16995 IFS=$as_save_IFS
16996
16997 fi
16998 fi
16999 GCJ=$ac_cv_prog_GCJ
17000 if test -n "$GCJ"; then
17001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17002 $as_echo "$GCJ" >&6; }
17003 else
17004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17006 fi
17007
17008
17009     test -n "$GCJ" && break
17010   done
17011 fi
17012 if test -z "$GCJ"; then
17013   ac_ct_GCJ=$GCJ
17014   for ac_prog in gcj
17015 do
17016   # Extract the first word of "$ac_prog", so it can be a program name with args.
17017 set dummy $ac_prog; ac_word=$2
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17019 $as_echo_n "checking for $ac_word... " >&6; }
17020 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17021   $as_echo_n "(cached) " >&6
17022 else
17023   if test -n "$ac_ct_GCJ"; then
17024   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17025 else
17026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17027 for as_dir in $PATH
17028 do
17029   IFS=$as_save_IFS
17030   test -z "$as_dir" && as_dir=.
17031     for ac_exec_ext in '' $ac_executable_extensions; do
17032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17033     ac_cv_prog_ac_ct_GCJ="$ac_prog"
17034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17035     break 2
17036   fi
17037 done
17038   done
17039 IFS=$as_save_IFS
17040
17041 fi
17042 fi
17043 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17044 if test -n "$ac_ct_GCJ"; then
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17046 $as_echo "$ac_ct_GCJ" >&6; }
17047 else
17048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17050 fi
17051
17052
17053   test -n "$ac_ct_GCJ" && break
17054 done
17055
17056   if test "x$ac_ct_GCJ" = x; then
17057     GCJ="gcj"
17058   else
17059     case $cross_compiling:$ac_tool_warned in
17060 yes:)
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17063 ac_tool_warned=yes ;;
17064 esac
17065     GCJ=$ac_ct_GCJ
17066   fi
17067 fi
17068
17069 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17070 if test "x${GCJFLAGS-unset}" = xunset; then
17071    GCJFLAGS="-g -O2"
17072 fi
17073
17074
17075 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
17076
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17078 $as_echo_n "checking dependency style of $depcc... " >&6; }
17079 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17080   $as_echo_n "(cached) " >&6
17081 else
17082   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17083   # We make a subdir and do the tests there.  Otherwise we can end up
17084   # making bogus files that we don't know about and never remove.  For
17085   # instance it was reported that on HP-UX the gcc test will end up
17086   # making a dummy file named `D' -- because `-MD' means `put the output
17087   # in D'.
17088   mkdir conftest.dir
17089   # Copy depcomp to subdir because otherwise we won't find it if we're
17090   # using a relative directory.
17091   cp "$am_depcomp" conftest.dir
17092   cd conftest.dir
17093   # We will build objects and dependencies in a subdirectory because
17094   # it helps to detect inapplicable dependency modes.  For instance
17095   # both Tru64's cc and ICC support -MD to output dependencies as a
17096   # side effect of compilation, but ICC will put the dependencies in
17097   # the current directory while Tru64 will put them in the object
17098   # directory.
17099   mkdir sub
17100
17101   am_cv_GCJ_dependencies_compiler_type=none
17102   if test "$am_compiler_list" = ""; then
17103      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17104   fi
17105   am__universal=false
17106
17107
17108   for depmode in $am_compiler_list; do
17109     # Setup a source with many dependencies, because some compilers
17110     # like to wrap large dependency lists on column 80 (with \), and
17111     # we should not choose a depcomp mode which is confused by this.
17112     #
17113     # We need to recreate these files for each test, as the compiler may
17114     # overwrite some of them when testing with obscure command lines.
17115     # This happens at least with the AIX C compiler.
17116     : > sub/conftest.c
17117     for i in 1 2 3 4 5 6; do
17118       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17119       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17120       # Solaris 8's {/usr,}/bin/sh.
17121       touch sub/conftst$i.h
17122     done
17123     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17124
17125     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17126     # mode.  It turns out that the SunPro C++ compiler does not properly
17127     # handle `-M -o', and we need to detect this.  Also, some Intel
17128     # versions had trouble with output in subdirs
17129     am__obj=sub/conftest.${OBJEXT-o}
17130     am__minus_obj="-o $am__obj"
17131     case $depmode in
17132     gcc)
17133       # This depmode causes a compiler race in universal mode.
17134       test "$am__universal" = false || continue
17135       ;;
17136     nosideeffect)
17137       # after this tag, mechanisms are not by side-effect, so they'll
17138       # only be used when explicitly requested
17139       if test "x$enable_dependency_tracking" = xyes; then
17140         continue
17141       else
17142         break
17143       fi
17144       ;;
17145     msvisualcpp | msvcmsys)
17146       # This compiler won't grok `-c -o', but also, the minuso test has
17147       # not run yet.  These depmodes are late enough in the game, and
17148       # so weak that their functioning should not be impacted.
17149       am__obj=conftest.${OBJEXT-o}
17150       am__minus_obj=
17151       ;;
17152     none) break ;;
17153     esac
17154     if depmode=$depmode \
17155        source=sub/conftest.c object=$am__obj \
17156        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17157        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17158          >/dev/null 2>conftest.err &&
17159        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17160        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17161        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17162        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17163       # icc doesn't choke on unknown options, it will just issue warnings
17164       # or remarks (even with -Werror).  So we grep stderr for any message
17165       # that says an option was ignored or not supported.
17166       # When given -MP, icc 7.0 and 7.1 complain thusly:
17167       #   icc: Command line warning: ignoring option '-M'; no argument required
17168       # The diagnosis changed in icc 8.0:
17169       #   icc: Command line remark: option '-MP' not supported
17170       if (grep 'ignoring option' conftest.err ||
17171           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17172         am_cv_GCJ_dependencies_compiler_type=$depmode
17173         break
17174       fi
17175     fi
17176   done
17177
17178   cd ..
17179   rm -rf conftest.dir
17180 else
17181   am_cv_GCJ_dependencies_compiler_type=none
17182 fi
17183
17184 fi
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17186 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17187 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17188
17189  if
17190   test "x$enable_dependency_tracking" != xno \
17191   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17192   am__fastdepGCJ_TRUE=
17193   am__fastdepGCJ_FALSE='#'
17194 else
17195   am__fastdepGCJ_TRUE='#'
17196   am__fastdepGCJ_FALSE=
17197 fi
17198
17199
17200
17201
17202
17203 # Source file extension for Java test sources.
17204 ac_ext=c
17205
17206 # Object file extension for compiled Java test sources.
17207 objext=o
17208 objext_GCJ=$objext
17209
17210 # Code to be used in simple compile tests
17211 lt_simple_compile_test_code="int some_variable = 0;"
17212
17213 # Code to be used in simple link tests
17214 lt_simple_link_test_code='int main(){return(0);}'
17215
17216 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17217
17218
17219
17220
17221
17222
17223 # If no C compiler was specified, use CC.
17224 LTCC=${LTCC-"$CC"}
17225
17226 # If no C compiler flags were specified, use CFLAGS.
17227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17228
17229 # Allow CC to be a program name with arguments.
17230 compiler=$CC
17231
17232
17233 # save warnings/boilerplate of simple test code
17234 ac_outfile=conftest.$ac_objext
17235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17237 _lt_compiler_boilerplate=`cat conftest.err`
17238 $RM conftest*
17239
17240 ac_outfile=conftest.$ac_objext
17241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17243 _lt_linker_boilerplate=`cat conftest.err`
17244 $RM -r conftest*
17245
17246
17247 # Allow CC to be a program name with arguments.
17248 GCC=yes
17249 compiler=$CC
17250 compiler_GCJ=$CC
17251 for cc_temp in $compiler""; do
17252   case $cc_temp in
17253     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17254     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17255     \-*) ;;
17256     *) break;;
17257   esac
17258 done
17259 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17260
17261
17262 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17263 archive_cmds_need_lc_GCJ=no
17264
17265 old_archive_cmds_GCJ=$old_archive_cmds
17266
17267 ## CAVEAT EMPTOR:
17268 ## There is no encapsulation within the following macros, do not change
17269 ## the running order or otherwise move them around unless you know exactly
17270 ## what you are doing...
17271 if test -n "$compiler"; then
17272
17273 lt_prog_compiler_no_builtin_flag_GCJ=
17274
17275 if test "$GCC" = yes; then
17276   case $cc_basename in
17277   nvcc*)
17278     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17279   *)
17280     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17281   esac
17282
17283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17284 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17285 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17286   $as_echo_n "(cached) " >&6
17287 else
17288   lt_cv_prog_compiler_rtti_exceptions=no
17289    ac_outfile=conftest.$ac_objext
17290    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17291    lt_compiler_flag="-fno-rtti -fno-exceptions"
17292    # Insert the option either (1) after the last *FLAGS variable, or
17293    # (2) before a word containing "conftest.", or (3) at the end.
17294    # Note that $ac_compile itself does not contain backslashes and begins
17295    # with a dollar sign (not a hyphen), so the echo should work correctly.
17296    # The option is referenced via a variable to avoid confusing sed.
17297    lt_compile=`echo "$ac_compile" | $SED \
17298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17300    -e 's:$: $lt_compiler_flag:'`
17301    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17302    (eval "$lt_compile" 2>conftest.err)
17303    ac_status=$?
17304    cat conftest.err >&5
17305    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306    if (exit $ac_status) && test -s "$ac_outfile"; then
17307      # The compiler can only warn and ignore the option if not recognized
17308      # So say no if there are warnings other than the usual output.
17309      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17310      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17311      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17312        lt_cv_prog_compiler_rtti_exceptions=yes
17313      fi
17314    fi
17315    $RM conftest*
17316
17317 fi
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17319 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17320
17321 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17322     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17323 else
17324     :
17325 fi
17326
17327 fi
17328
17329
17330
17331   lt_prog_compiler_wl_GCJ=
17332 lt_prog_compiler_pic_GCJ=
17333 lt_prog_compiler_static_GCJ=
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17336 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17337
17338   if test "$GCC" = yes; then
17339     lt_prog_compiler_wl_GCJ='-Wl,'
17340     lt_prog_compiler_static_GCJ='-static'
17341
17342     case $host_os in
17343       aix*)
17344       # All AIX code is PIC.
17345       if test "$host_cpu" = ia64; then
17346         # AIX 5 now supports IA64 processor
17347         lt_prog_compiler_static_GCJ='-Bstatic'
17348       fi
17349       ;;
17350
17351     amigaos*)
17352       case $host_cpu in
17353       powerpc)
17354             # see comment about AmigaOS4 .so support
17355             lt_prog_compiler_pic_GCJ='-fPIC'
17356         ;;
17357       m68k)
17358             # FIXME: we need at least 68020 code to build shared libraries, but
17359             # adding the `-m68020' flag to GCC prevents building anything better,
17360             # like `-m68040'.
17361             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17362         ;;
17363       esac
17364       ;;
17365
17366     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17367       # PIC is the default for these OSes.
17368       ;;
17369
17370     mingw* | cygwin* | pw32* | os2* | cegcc*)
17371       # This hack is so that the source file can tell whether it is being
17372       # built for inclusion in a dll (and should export symbols for example).
17373       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17374       # (--disable-auto-import) libraries
17375
17376       ;;
17377
17378     darwin* | rhapsody*)
17379       # PIC is the default on this platform
17380       # Common symbols not allowed in MH_DYLIB files
17381       lt_prog_compiler_pic_GCJ='-fno-common'
17382       ;;
17383
17384     haiku*)
17385       # PIC is the default for Haiku.
17386       # The "-static" flag exists, but is broken.
17387       lt_prog_compiler_static_GCJ=
17388       ;;
17389
17390     hpux*)
17391       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17392       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17393       # sets the default TLS model and affects inlining.
17394       case $host_cpu in
17395       hppa*64*)
17396         # +Z the default
17397         ;;
17398       *)
17399         lt_prog_compiler_pic_GCJ='-fPIC'
17400         ;;
17401       esac
17402       ;;
17403
17404     interix[3-9]*)
17405       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17406       # Instead, we relocate shared libraries at runtime.
17407       ;;
17408
17409     msdosdjgpp*)
17410       # Just because we use GCC doesn't mean we suddenly get shared libraries
17411       # on systems that don't support them.
17412       lt_prog_compiler_can_build_shared_GCJ=no
17413       enable_shared=no
17414       ;;
17415
17416     *nto* | *qnx*)
17417       # QNX uses GNU C++, but need to define -shared option too, otherwise
17418       # it will coredump.
17419       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17420       ;;
17421
17422     sysv4*MP*)
17423       if test -d /usr/nec; then
17424         lt_prog_compiler_pic_GCJ=-Kconform_pic
17425       fi
17426       ;;
17427
17428     *)
17429       lt_prog_compiler_pic_GCJ='-fPIC'
17430       ;;
17431     esac
17432
17433     case $cc_basename in
17434     nvcc*) # Cuda Compiler Driver 2.2
17435       lt_prog_compiler_wl_GCJ='-Xlinker '
17436       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17437       ;;
17438     esac
17439   else
17440     # PORTME Check for flag to pass linker flags through the system compiler.
17441     case $host_os in
17442     aix*)
17443       lt_prog_compiler_wl_GCJ='-Wl,'
17444       if test "$host_cpu" = ia64; then
17445         # AIX 5 now supports IA64 processor
17446         lt_prog_compiler_static_GCJ='-Bstatic'
17447       else
17448         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17449       fi
17450       ;;
17451
17452     mingw* | cygwin* | pw32* | os2* | cegcc*)
17453       # This hack is so that the source file can tell whether it is being
17454       # built for inclusion in a dll (and should export symbols for example).
17455
17456       ;;
17457
17458     hpux9* | hpux10* | hpux11*)
17459       lt_prog_compiler_wl_GCJ='-Wl,'
17460       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17461       # not for PA HP-UX.
17462       case $host_cpu in
17463       hppa*64*|ia64*)
17464         # +Z the default
17465         ;;
17466       *)
17467         lt_prog_compiler_pic_GCJ='+Z'
17468         ;;
17469       esac
17470       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17471       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17472       ;;
17473
17474     irix5* | irix6* | nonstopux*)
17475       lt_prog_compiler_wl_GCJ='-Wl,'
17476       # PIC (with -KPIC) is the default.
17477       lt_prog_compiler_static_GCJ='-non_shared'
17478       ;;
17479
17480     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17481       case $cc_basename in
17482       # old Intel for x86_64 which still supported -KPIC.
17483       ecc*)
17484         lt_prog_compiler_wl_GCJ='-Wl,'
17485         lt_prog_compiler_pic_GCJ='-KPIC'
17486         lt_prog_compiler_static_GCJ='-static'
17487         ;;
17488       # icc used to be incompatible with GCC.
17489       # ICC 10 doesn't accept -KPIC any more.
17490       icc* | ifort*)
17491         lt_prog_compiler_wl_GCJ='-Wl,'
17492         lt_prog_compiler_pic_GCJ='-fPIC'
17493         lt_prog_compiler_static_GCJ='-static'
17494         ;;
17495       # Lahey Fortran 8.1.
17496       lf95*)
17497         lt_prog_compiler_wl_GCJ='-Wl,'
17498         lt_prog_compiler_pic_GCJ='--shared'
17499         lt_prog_compiler_static_GCJ='--static'
17500         ;;
17501       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17502         # Portland Group compilers (*not* the Pentium gcc compiler,
17503         # which looks to be a dead project)
17504         lt_prog_compiler_wl_GCJ='-Wl,'
17505         lt_prog_compiler_pic_GCJ='-fpic'
17506         lt_prog_compiler_static_GCJ='-Bstatic'
17507         ;;
17508       ccc*)
17509         lt_prog_compiler_wl_GCJ='-Wl,'
17510         # All Alpha code is PIC.
17511         lt_prog_compiler_static_GCJ='-non_shared'
17512         ;;
17513       xl* | bgxl* | bgf* | mpixl*)
17514         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17515         lt_prog_compiler_wl_GCJ='-Wl,'
17516         lt_prog_compiler_pic_GCJ='-qpic'
17517         lt_prog_compiler_static_GCJ='-qstaticlink'
17518         ;;
17519       *)
17520         case `$CC -V 2>&1 | sed 5q` in
17521         *Sun\ F* | *Sun*Fortran*)
17522           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17523           lt_prog_compiler_pic_GCJ='-KPIC'
17524           lt_prog_compiler_static_GCJ='-Bstatic'
17525           lt_prog_compiler_wl_GCJ=''
17526           ;;
17527         *Sun\ C*)
17528           # Sun C 5.9
17529           lt_prog_compiler_pic_GCJ='-KPIC'
17530           lt_prog_compiler_static_GCJ='-Bstatic'
17531           lt_prog_compiler_wl_GCJ='-Wl,'
17532           ;;
17533         esac
17534         ;;
17535       esac
17536       ;;
17537
17538     newsos6)
17539       lt_prog_compiler_pic_GCJ='-KPIC'
17540       lt_prog_compiler_static_GCJ='-Bstatic'
17541       ;;
17542
17543     *nto* | *qnx*)
17544       # QNX uses GNU C++, but need to define -shared option too, otherwise
17545       # it will coredump.
17546       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17547       ;;
17548
17549     osf3* | osf4* | osf5*)
17550       lt_prog_compiler_wl_GCJ='-Wl,'
17551       # All OSF/1 code is PIC.
17552       lt_prog_compiler_static_GCJ='-non_shared'
17553       ;;
17554
17555     rdos*)
17556       lt_prog_compiler_static_GCJ='-non_shared'
17557       ;;
17558
17559     solaris*)
17560       lt_prog_compiler_pic_GCJ='-KPIC'
17561       lt_prog_compiler_static_GCJ='-Bstatic'
17562       case $cc_basename in
17563       f77* | f90* | f95*)
17564         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17565       *)
17566         lt_prog_compiler_wl_GCJ='-Wl,';;
17567       esac
17568       ;;
17569
17570     sunos4*)
17571       lt_prog_compiler_wl_GCJ='-Qoption ld '
17572       lt_prog_compiler_pic_GCJ='-PIC'
17573       lt_prog_compiler_static_GCJ='-Bstatic'
17574       ;;
17575
17576     sysv4 | sysv4.2uw2* | sysv4.3*)
17577       lt_prog_compiler_wl_GCJ='-Wl,'
17578       lt_prog_compiler_pic_GCJ='-KPIC'
17579       lt_prog_compiler_static_GCJ='-Bstatic'
17580       ;;
17581
17582     sysv4*MP*)
17583       if test -d /usr/nec ;then
17584         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17585         lt_prog_compiler_static_GCJ='-Bstatic'
17586       fi
17587       ;;
17588
17589     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17590       lt_prog_compiler_wl_GCJ='-Wl,'
17591       lt_prog_compiler_pic_GCJ='-KPIC'
17592       lt_prog_compiler_static_GCJ='-Bstatic'
17593       ;;
17594
17595     unicos*)
17596       lt_prog_compiler_wl_GCJ='-Wl,'
17597       lt_prog_compiler_can_build_shared_GCJ=no
17598       ;;
17599
17600     uts4*)
17601       lt_prog_compiler_pic_GCJ='-pic'
17602       lt_prog_compiler_static_GCJ='-Bstatic'
17603       ;;
17604
17605     *)
17606       lt_prog_compiler_can_build_shared_GCJ=no
17607       ;;
17608     esac
17609   fi
17610
17611 case $host_os in
17612   # For platforms which do not support PIC, -DPIC is meaningless:
17613   *djgpp*)
17614     lt_prog_compiler_pic_GCJ=
17615     ;;
17616   *)
17617     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17618     ;;
17619 esac
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17621 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17622
17623
17624
17625 #
17626 # Check to make sure the PIC flag actually works.
17627 #
17628 if test -n "$lt_prog_compiler_pic_GCJ"; then
17629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17630 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17631 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17632   $as_echo_n "(cached) " >&6
17633 else
17634   lt_cv_prog_compiler_pic_works_GCJ=no
17635    ac_outfile=conftest.$ac_objext
17636    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17637    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17638    # Insert the option either (1) after the last *FLAGS variable, or
17639    # (2) before a word containing "conftest.", or (3) at the end.
17640    # Note that $ac_compile itself does not contain backslashes and begins
17641    # with a dollar sign (not a hyphen), so the echo should work correctly.
17642    # The option is referenced via a variable to avoid confusing sed.
17643    lt_compile=`echo "$ac_compile" | $SED \
17644    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17646    -e 's:$: $lt_compiler_flag:'`
17647    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17648    (eval "$lt_compile" 2>conftest.err)
17649    ac_status=$?
17650    cat conftest.err >&5
17651    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652    if (exit $ac_status) && test -s "$ac_outfile"; then
17653      # The compiler can only warn and ignore the option if not recognized
17654      # So say no if there are warnings other than the usual output.
17655      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17656      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17657      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17658        lt_cv_prog_compiler_pic_works_GCJ=yes
17659      fi
17660    fi
17661    $RM conftest*
17662
17663 fi
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17665 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17666
17667 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17668     case $lt_prog_compiler_pic_GCJ in
17669      "" | " "*) ;;
17670      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17671      esac
17672 else
17673     lt_prog_compiler_pic_GCJ=
17674      lt_prog_compiler_can_build_shared_GCJ=no
17675 fi
17676
17677 fi
17678
17679
17680
17681 #
17682 # Check to make sure the static flag actually works.
17683 #
17684 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17686 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17687 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17688   $as_echo_n "(cached) " >&6
17689 else
17690   lt_cv_prog_compiler_static_works_GCJ=no
17691    save_LDFLAGS="$LDFLAGS"
17692    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17693    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17694    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17695      # The linker can only warn and ignore the option if not recognized
17696      # So say no if there are warnings
17697      if test -s conftest.err; then
17698        # Append any errors to the config.log.
17699        cat conftest.err 1>&5
17700        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17701        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17702        if diff conftest.exp conftest.er2 >/dev/null; then
17703          lt_cv_prog_compiler_static_works_GCJ=yes
17704        fi
17705      else
17706        lt_cv_prog_compiler_static_works_GCJ=yes
17707      fi
17708    fi
17709    $RM -r conftest*
17710    LDFLAGS="$save_LDFLAGS"
17711
17712 fi
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17714 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17715
17716 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17717     :
17718 else
17719     lt_prog_compiler_static_GCJ=
17720 fi
17721
17722
17723
17724
17725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17727 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17728   $as_echo_n "(cached) " >&6
17729 else
17730   lt_cv_prog_compiler_c_o_GCJ=no
17731    $RM -r conftest 2>/dev/null
17732    mkdir conftest
17733    cd conftest
17734    mkdir out
17735    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17736
17737    lt_compiler_flag="-o out/conftest2.$ac_objext"
17738    # Insert the option either (1) after the last *FLAGS variable, or
17739    # (2) before a word containing "conftest.", or (3) at the end.
17740    # Note that $ac_compile itself does not contain backslashes and begins
17741    # with a dollar sign (not a hyphen), so the echo should work correctly.
17742    lt_compile=`echo "$ac_compile" | $SED \
17743    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17744    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17745    -e 's:$: $lt_compiler_flag:'`
17746    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17747    (eval "$lt_compile" 2>out/conftest.err)
17748    ac_status=$?
17749    cat out/conftest.err >&5
17750    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17752    then
17753      # The compiler can only warn and ignore the option if not recognized
17754      # So say no if there are warnings
17755      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17756      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17757      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17758        lt_cv_prog_compiler_c_o_GCJ=yes
17759      fi
17760    fi
17761    chmod u+w . 2>&5
17762    $RM conftest*
17763    # SGI C++ compiler will create directory out/ii_files/ for
17764    # template instantiation
17765    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17766    $RM out/* && rmdir out
17767    cd ..
17768    $RM -r conftest
17769    $RM conftest*
17770
17771 fi
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17773 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17774
17775
17776
17777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17780   $as_echo_n "(cached) " >&6
17781 else
17782   lt_cv_prog_compiler_c_o_GCJ=no
17783    $RM -r conftest 2>/dev/null
17784    mkdir conftest
17785    cd conftest
17786    mkdir out
17787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17788
17789    lt_compiler_flag="-o out/conftest2.$ac_objext"
17790    # Insert the option either (1) after the last *FLAGS variable, or
17791    # (2) before a word containing "conftest.", or (3) at the end.
17792    # Note that $ac_compile itself does not contain backslashes and begins
17793    # with a dollar sign (not a hyphen), so the echo should work correctly.
17794    lt_compile=`echo "$ac_compile" | $SED \
17795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17797    -e 's:$: $lt_compiler_flag:'`
17798    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17799    (eval "$lt_compile" 2>out/conftest.err)
17800    ac_status=$?
17801    cat out/conftest.err >&5
17802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17804    then
17805      # The compiler can only warn and ignore the option if not recognized
17806      # So say no if there are warnings
17807      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17810        lt_cv_prog_compiler_c_o_GCJ=yes
17811      fi
17812    fi
17813    chmod u+w . 2>&5
17814    $RM conftest*
17815    # SGI C++ compiler will create directory out/ii_files/ for
17816    # template instantiation
17817    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17818    $RM out/* && rmdir out
17819    cd ..
17820    $RM -r conftest
17821    $RM conftest*
17822
17823 fi
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17825 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17826
17827
17828
17829
17830 hard_links="nottested"
17831 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17832   # do not overwrite the value of need_locks provided by the user
17833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17834 $as_echo_n "checking if we can lock with hard links... " >&6; }
17835   hard_links=yes
17836   $RM conftest*
17837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17838   touch conftest.a
17839   ln conftest.a conftest.b 2>&5 || hard_links=no
17840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17842 $as_echo "$hard_links" >&6; }
17843   if test "$hard_links" = no; then
17844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17845 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17846     need_locks=warn
17847   fi
17848 else
17849   need_locks=no
17850 fi
17851
17852
17853
17854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17856
17857   runpath_var=
17858   allow_undefined_flag_GCJ=
17859   always_export_symbols_GCJ=no
17860   archive_cmds_GCJ=
17861   archive_expsym_cmds_GCJ=
17862   compiler_needs_object_GCJ=no
17863   enable_shared_with_static_runtimes_GCJ=no
17864   export_dynamic_flag_spec_GCJ=
17865   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17866   hardcode_automatic_GCJ=no
17867   hardcode_direct_GCJ=no
17868   hardcode_direct_absolute_GCJ=no
17869   hardcode_libdir_flag_spec_GCJ=
17870   hardcode_libdir_flag_spec_ld_GCJ=
17871   hardcode_libdir_separator_GCJ=
17872   hardcode_minus_L_GCJ=no
17873   hardcode_shlibpath_var_GCJ=unsupported
17874   inherit_rpath_GCJ=no
17875   link_all_deplibs_GCJ=unknown
17876   module_cmds_GCJ=
17877   module_expsym_cmds_GCJ=
17878   old_archive_from_new_cmds_GCJ=
17879   old_archive_from_expsyms_cmds_GCJ=
17880   thread_safe_flag_spec_GCJ=
17881   whole_archive_flag_spec_GCJ=
17882   # include_expsyms should be a list of space-separated symbols to be *always*
17883   # included in the symbol list
17884   include_expsyms_GCJ=
17885   # exclude_expsyms can be an extended regexp of symbols to exclude
17886   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17887   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17888   # as well as any symbol that contains `d'.
17889   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17890   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17891   # platforms (ab)use it in PIC code, but their linkers get confused if
17892   # the symbol is explicitly referenced.  Since portable code cannot
17893   # rely on this symbol name, it's probably fine to never include it in
17894   # preloaded symbol tables.
17895   # Exclude shared library initialization/finalization symbols.
17896   extract_expsyms_cmds=
17897
17898   case $host_os in
17899   cygwin* | mingw* | pw32* | cegcc*)
17900     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17901     # When not using gcc, we currently assume that we are using
17902     # Microsoft Visual C++.
17903     if test "$GCC" != yes; then
17904       with_gnu_ld=no
17905     fi
17906     ;;
17907   interix*)
17908     # we just hope/assume this is gcc and not c89 (= MSVC++)
17909     with_gnu_ld=yes
17910     ;;
17911   openbsd*)
17912     with_gnu_ld=no
17913     ;;
17914   esac
17915
17916   ld_shlibs_GCJ=yes
17917
17918   # On some targets, GNU ld is compatible enough with the native linker
17919   # that we're better off using the native interface for both.
17920   lt_use_gnu_ld_interface=no
17921   if test "$with_gnu_ld" = yes; then
17922     case $host_os in
17923       aix*)
17924         # The AIX port of GNU ld has always aspired to compatibility
17925         # with the native linker.  However, as the warning in the GNU ld
17926         # block says, versions before 2.19.5* couldn't really create working
17927         # shared libraries, regardless of the interface used.
17928         case `$LD -v 2>&1` in
17929           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17930           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17931           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17932           *)
17933             lt_use_gnu_ld_interface=yes
17934             ;;
17935         esac
17936         ;;
17937       *)
17938         lt_use_gnu_ld_interface=yes
17939         ;;
17940     esac
17941   fi
17942
17943   if test "$lt_use_gnu_ld_interface" = yes; then
17944     # If archive_cmds runs LD, not CC, wlarc should be empty
17945     wlarc='${wl}'
17946
17947     # Set some defaults for GNU ld with shared library support. These
17948     # are reset later if shared libraries are not supported. Putting them
17949     # here allows them to be overridden if necessary.
17950     runpath_var=LD_RUN_PATH
17951     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17952     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17953     # ancient GNU ld didn't support --whole-archive et. al.
17954     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17955       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17956     else
17957       whole_archive_flag_spec_GCJ=
17958     fi
17959     supports_anon_versioning=no
17960     case `$LD -v 2>&1` in
17961       *GNU\ gold*) supports_anon_versioning=yes ;;
17962       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17963       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17964       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17965       *\ 2.11.*) ;; # other 2.11 versions
17966       *) supports_anon_versioning=yes ;;
17967     esac
17968
17969     # See if GNU ld supports shared libraries.
17970     case $host_os in
17971     aix[3-9]*)
17972       # On AIX/PPC, the GNU linker is very broken
17973       if test "$host_cpu" != ia64; then
17974         ld_shlibs_GCJ=no
17975         cat <<_LT_EOF 1>&2
17976
17977 *** Warning: the GNU linker, at least up to release 2.19, is reported
17978 *** to be unable to reliably create shared libraries on AIX.
17979 *** Therefore, libtool is disabling shared libraries support.  If you
17980 *** really care for shared libraries, you may want to install binutils
17981 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17982 *** You will then need to restart the configuration process.
17983
17984 _LT_EOF
17985       fi
17986       ;;
17987
17988     amigaos*)
17989       case $host_cpu in
17990       powerpc)
17991             # see comment about AmigaOS4 .so support
17992             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993             archive_expsym_cmds_GCJ=''
17994         ;;
17995       m68k)
17996             archive_cmds_GCJ='$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)'
17997             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17998             hardcode_minus_L_GCJ=yes
17999         ;;
18000       esac
18001       ;;
18002
18003     beos*)
18004       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18005         allow_undefined_flag_GCJ=unsupported
18006         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18007         # support --undefined.  This deserves some investigation.  FIXME
18008         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009       else
18010         ld_shlibs_GCJ=no
18011       fi
18012       ;;
18013
18014     cygwin* | mingw* | pw32* | cegcc*)
18015       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18016       # as there is no search path for DLLs.
18017       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18018       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18019       allow_undefined_flag_GCJ=unsupported
18020       always_export_symbols_GCJ=no
18021       enable_shared_with_static_runtimes_GCJ=yes
18022       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18023
18024       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18025         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18026         # If the export-symbols file already is a .def file (1st line
18027         # is EXPORTS), use it as is; otherwise, prepend...
18028         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18029           cp $export_symbols $output_objdir/$soname.def;
18030         else
18031           echo EXPORTS > $output_objdir/$soname.def;
18032           cat $export_symbols >> $output_objdir/$soname.def;
18033         fi~
18034         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18035       else
18036         ld_shlibs_GCJ=no
18037       fi
18038       ;;
18039
18040     haiku*)
18041       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18042       link_all_deplibs_GCJ=yes
18043       ;;
18044
18045     interix[3-9]*)
18046       hardcode_direct_GCJ=no
18047       hardcode_shlibpath_var_GCJ=no
18048       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18049       export_dynamic_flag_spec_GCJ='${wl}-E'
18050       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18051       # Instead, shared libraries are loaded at an image base (0x10000000 by
18052       # default) and relocated if they conflict, which is a slow very memory
18053       # consuming and fragmenting process.  To avoid this, we pick a random,
18054       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18055       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18056       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18057       archive_expsym_cmds_GCJ='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'
18058       ;;
18059
18060     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18061       tmp_diet=no
18062       if test "$host_os" = linux-dietlibc; then
18063         case $cc_basename in
18064           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18065         esac
18066       fi
18067       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18068          && test "$tmp_diet" = no
18069       then
18070         tmp_addflag=
18071         tmp_sharedflag='-shared'
18072         case $cc_basename,$host_cpu in
18073         pgcc*)                          # Portland Group C compiler
18074           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18075           tmp_addflag=' $pic_flag'
18076           ;;
18077         pgf77* | pgf90* | pgf95* | pgfortran*)
18078                                         # Portland Group f77 and f90 compilers
18079           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18080           tmp_addflag=' $pic_flag -Mnomain' ;;
18081         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18082           tmp_addflag=' -i_dynamic' ;;
18083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18084           tmp_addflag=' -i_dynamic -nofor_main' ;;
18085         ifc* | ifort*)                  # Intel Fortran compiler
18086           tmp_addflag=' -nofor_main' ;;
18087         lf95*)                          # Lahey Fortran 8.1
18088           whole_archive_flag_spec_GCJ=
18089           tmp_sharedflag='--shared' ;;
18090         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18091           tmp_sharedflag='-qmkshrobj'
18092           tmp_addflag= ;;
18093         nvcc*)  # Cuda Compiler Driver 2.2
18094           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18095           compiler_needs_object_GCJ=yes
18096           ;;
18097         esac
18098         case `$CC -V 2>&1 | sed 5q` in
18099         *Sun\ C*)                       # Sun C 5.9
18100           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18101           compiler_needs_object_GCJ=yes
18102           tmp_sharedflag='-G' ;;
18103         *Sun\ F*)                       # Sun Fortran 8.3
18104           tmp_sharedflag='-G' ;;
18105         esac
18106         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18107
18108         if test "x$supports_anon_versioning" = xyes; then
18109           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18110             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18111             echo "local: *; };" >> $output_objdir/$libname.ver~
18112             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18113         fi
18114
18115         case $cc_basename in
18116         xlf* | bgf* | bgxlf* | mpixlf*)
18117           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18118           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18119           hardcode_libdir_flag_spec_GCJ=
18120           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18121           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18122           if test "x$supports_anon_versioning" = xyes; then
18123             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18124               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18125               echo "local: *; };" >> $output_objdir/$libname.ver~
18126               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18127           fi
18128           ;;
18129         esac
18130       else
18131         ld_shlibs_GCJ=no
18132       fi
18133       ;;
18134
18135     netbsd*)
18136       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18137         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18138         wlarc=
18139       else
18140         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18141         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18142       fi
18143       ;;
18144
18145     solaris*)
18146       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18147         ld_shlibs_GCJ=no
18148         cat <<_LT_EOF 1>&2
18149
18150 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18151 *** create shared libraries on Solaris systems.  Therefore, libtool
18152 *** is disabling shared libraries support.  We urge you to upgrade GNU
18153 *** binutils to release 2.9.1 or newer.  Another option is to modify
18154 *** your PATH or compiler configuration so that the native linker is
18155 *** used, and then restart.
18156
18157 _LT_EOF
18158       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18159         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18160         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18161       else
18162         ld_shlibs_GCJ=no
18163       fi
18164       ;;
18165
18166     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18167       case `$LD -v 2>&1` in
18168         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18169         ld_shlibs_GCJ=no
18170         cat <<_LT_EOF 1>&2
18171
18172 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18173 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18174 *** is disabling shared libraries support.  We urge you to upgrade GNU
18175 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18176 *** your PATH or compiler configuration so that the native linker is
18177 *** used, and then restart.
18178
18179 _LT_EOF
18180         ;;
18181         *)
18182           # For security reasons, it is highly recommended that you always
18183           # use absolute paths for naming shared libraries, and exclude the
18184           # DT_RUNPATH tag from executables and libraries.  But doing so
18185           # requires that you compile everything twice, which is a pain.
18186           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18187             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18188             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18189             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18190           else
18191             ld_shlibs_GCJ=no
18192           fi
18193         ;;
18194       esac
18195       ;;
18196
18197     sunos4*)
18198       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18199       wlarc=
18200       hardcode_direct_GCJ=yes
18201       hardcode_shlibpath_var_GCJ=no
18202       ;;
18203
18204     *)
18205       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18206         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18207         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18208       else
18209         ld_shlibs_GCJ=no
18210       fi
18211       ;;
18212     esac
18213
18214     if test "$ld_shlibs_GCJ" = no; then
18215       runpath_var=
18216       hardcode_libdir_flag_spec_GCJ=
18217       export_dynamic_flag_spec_GCJ=
18218       whole_archive_flag_spec_GCJ=
18219     fi
18220   else
18221     # PORTME fill in a description of your system's linker (not GNU ld)
18222     case $host_os in
18223     aix3*)
18224       allow_undefined_flag_GCJ=unsupported
18225       always_export_symbols_GCJ=yes
18226       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18227       # Note: this linker hardcodes the directories in LIBPATH if there
18228       # are no directories specified by -L.
18229       hardcode_minus_L_GCJ=yes
18230       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18231         # Neither direct hardcoding nor static linking is supported with a
18232         # broken collect2.
18233         hardcode_direct_GCJ=unsupported
18234       fi
18235       ;;
18236
18237     aix[4-9]*)
18238       if test "$host_cpu" = ia64; then
18239         # On IA64, the linker does run time linking by default, so we don't
18240         # have to do anything special.
18241         aix_use_runtimelinking=no
18242         exp_sym_flag='-Bexport'
18243         no_entry_flag=""
18244       else
18245         # If we're using GNU nm, then we don't want the "-C" option.
18246         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18247         # Also, AIX nm treats weak defined symbols like other global
18248         # defined symbols, whereas GNU nm marks them as "W".
18249         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18250           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18251         else
18252           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18253         fi
18254         aix_use_runtimelinking=no
18255
18256         # Test if we are trying to use run time linking or normal
18257         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18258         # need to do runtime linking.
18259         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18260           for ld_flag in $LDFLAGS; do
18261           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18262             aix_use_runtimelinking=yes
18263             break
18264           fi
18265           done
18266           ;;
18267         esac
18268
18269         exp_sym_flag='-bexport'
18270         no_entry_flag='-bnoentry'
18271       fi
18272
18273       # When large executables or shared objects are built, AIX ld can
18274       # have problems creating the table of contents.  If linking a library
18275       # or program results in "error TOC overflow" add -mminimal-toc to
18276       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18277       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18278
18279       archive_cmds_GCJ=''
18280       hardcode_direct_GCJ=yes
18281       hardcode_direct_absolute_GCJ=yes
18282       hardcode_libdir_separator_GCJ=':'
18283       link_all_deplibs_GCJ=yes
18284       file_list_spec_GCJ='${wl}-f,'
18285
18286       if test "$GCC" = yes; then
18287         case $host_os in aix4.[012]|aix4.[012].*)
18288         # We only want to do this on AIX 4.2 and lower, the check
18289         # below for broken collect2 doesn't work under 4.3+
18290           collect2name=`${CC} -print-prog-name=collect2`
18291           if test -f "$collect2name" &&
18292            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18293           then
18294           # We have reworked collect2
18295           :
18296           else
18297           # We have old collect2
18298           hardcode_direct_GCJ=unsupported
18299           # It fails to find uninstalled libraries when the uninstalled
18300           # path is not listed in the libpath.  Setting hardcode_minus_L
18301           # to unsupported forces relinking
18302           hardcode_minus_L_GCJ=yes
18303           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18304           hardcode_libdir_separator_GCJ=
18305           fi
18306           ;;
18307         esac
18308         shared_flag='-shared'
18309         if test "$aix_use_runtimelinking" = yes; then
18310           shared_flag="$shared_flag "'${wl}-G'
18311         fi
18312       else
18313         # not using gcc
18314         if test "$host_cpu" = ia64; then
18315         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18316         # chokes on -Wl,-G. The following line is correct:
18317           shared_flag='-G'
18318         else
18319           if test "$aix_use_runtimelinking" = yes; then
18320             shared_flag='${wl}-G'
18321           else
18322             shared_flag='${wl}-bM:SRE'
18323           fi
18324         fi
18325       fi
18326
18327       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18328       # It seems that -bexpall does not export symbols beginning with
18329       # underscore (_), so it is better to generate a list of symbols to export.
18330       always_export_symbols_GCJ=yes
18331       if test "$aix_use_runtimelinking" = yes; then
18332         # Warning - without using the other runtime loading flags (-brtl),
18333         # -berok will link without error, but may produce a broken library.
18334         allow_undefined_flag_GCJ='-berok'
18335         # Determine the default libpath from the value encoded in an
18336         # empty executable.
18337         if test x$gcc_no_link = xyes; then
18338   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18339 fi
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h.  */
18342
18343 int
18344 main ()
18345 {
18346
18347   ;
18348   return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"; then :
18352
18353 lt_aix_libpath_sed='
18354     /Import File Strings/,/^$/ {
18355         /^0/ {
18356             s/^0  *\(.*\)$/\1/
18357             p
18358         }
18359     }'
18360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18361 # Check for a 64-bit object if we didn't find anything.
18362 if test -z "$aix_libpath"; then
18363   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18364 fi
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext \
18367     conftest$ac_exeext conftest.$ac_ext
18368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18369
18370         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18371         archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18372       else
18373         if test "$host_cpu" = ia64; then
18374           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18375           allow_undefined_flag_GCJ="-z nodefs"
18376           archive_expsym_cmds_GCJ="\$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"
18377         else
18378          # Determine the default libpath from the value encoded in an
18379          # empty executable.
18380          if test x$gcc_no_link = xyes; then
18381   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18382 fi
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h.  */
18385
18386 int
18387 main ()
18388 {
18389
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 if ac_fn_c_try_link "$LINENO"; then :
18395
18396 lt_aix_libpath_sed='
18397     /Import File Strings/,/^$/ {
18398         /^0/ {
18399             s/^0  *\(.*\)$/\1/
18400             p
18401         }
18402     }'
18403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18404 # Check for a 64-bit object if we didn't find anything.
18405 if test -z "$aix_libpath"; then
18406   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18407 fi
18408 fi
18409 rm -f core conftest.err conftest.$ac_objext \
18410     conftest$ac_exeext conftest.$ac_ext
18411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18412
18413          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18414           # Warning - without using the other run time loading flags,
18415           # -berok will link without error, but may produce a broken library.
18416           no_undefined_flag_GCJ=' ${wl}-bernotok'
18417           allow_undefined_flag_GCJ=' ${wl}-berok'
18418           if test "$with_gnu_ld" = yes; then
18419             # We only use this code for GNU lds that support --whole-archive.
18420             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18421           else
18422             # Exported symbols can be pulled into shared objects from archives
18423             whole_archive_flag_spec_GCJ='$convenience'
18424           fi
18425           archive_cmds_need_lc_GCJ=yes
18426           # This is similar to how AIX traditionally builds its shared libraries.
18427           archive_expsym_cmds_GCJ="\$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'
18428         fi
18429       fi
18430       ;;
18431
18432     amigaos*)
18433       case $host_cpu in
18434       powerpc)
18435             # see comment about AmigaOS4 .so support
18436             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18437             archive_expsym_cmds_GCJ=''
18438         ;;
18439       m68k)
18440             archive_cmds_GCJ='$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)'
18441             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18442             hardcode_minus_L_GCJ=yes
18443         ;;
18444       esac
18445       ;;
18446
18447     bsdi[45]*)
18448       export_dynamic_flag_spec_GCJ=-rdynamic
18449       ;;
18450
18451     cygwin* | mingw* | pw32* | cegcc*)
18452       # When not using gcc, we currently assume that we are using
18453       # Microsoft Visual C++.
18454       # hardcode_libdir_flag_spec is actually meaningless, as there is
18455       # no search path for DLLs.
18456       hardcode_libdir_flag_spec_GCJ=' '
18457       allow_undefined_flag_GCJ=unsupported
18458       # Tell ltmain to make .lib files, not .a files.
18459       libext=lib
18460       # Tell ltmain to make .dll files, not .so files.
18461       shrext_cmds=".dll"
18462       # FIXME: Setting linknames here is a bad hack.
18463       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18464       # The linker will automatically build a .lib file if we build a DLL.
18465       old_archive_from_new_cmds_GCJ='true'
18466       # FIXME: Should let the user specify the lib program.
18467       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18468       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18469       enable_shared_with_static_runtimes_GCJ=yes
18470       ;;
18471
18472     darwin* | rhapsody*)
18473
18474
18475   archive_cmds_need_lc_GCJ=no
18476   hardcode_direct_GCJ=no
18477   hardcode_automatic_GCJ=yes
18478   hardcode_shlibpath_var_GCJ=unsupported
18479   if test "$lt_cv_ld_force_load" = "yes"; then
18480     whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18481   else
18482     whole_archive_flag_spec_GCJ=''
18483   fi
18484   link_all_deplibs_GCJ=yes
18485   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18486   case $cc_basename in
18487      ifort*) _lt_dar_can_shared=yes ;;
18488      *) _lt_dar_can_shared=$GCC ;;
18489   esac
18490   if test "$_lt_dar_can_shared" = "yes"; then
18491     output_verbose_link_cmd=func_echo_all
18492     archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18493     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18494     archive_expsym_cmds_GCJ="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}"
18495     module_expsym_cmds_GCJ="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}"
18496
18497   else
18498   ld_shlibs_GCJ=no
18499   fi
18500
18501       ;;
18502
18503     dgux*)
18504       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18505       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506       hardcode_shlibpath_var_GCJ=no
18507       ;;
18508
18509     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18510     # support.  Future versions do this automatically, but an explicit c++rt0.o
18511     # does not break anything, and helps significantly (at the cost of a little
18512     # extra space).
18513     freebsd2.2*)
18514       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18515       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18516       hardcode_direct_GCJ=yes
18517       hardcode_shlibpath_var_GCJ=no
18518       ;;
18519
18520     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18521     freebsd2*)
18522       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18523       hardcode_direct_GCJ=yes
18524       hardcode_minus_L_GCJ=yes
18525       hardcode_shlibpath_var_GCJ=no
18526       ;;
18527
18528     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18529     freebsd* | dragonfly*)
18530       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18531       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18532       hardcode_direct_GCJ=yes
18533       hardcode_shlibpath_var_GCJ=no
18534       ;;
18535
18536     hpux9*)
18537       if test "$GCC" = yes; then
18538         archive_cmds_GCJ='$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'
18539       else
18540         archive_cmds_GCJ='$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'
18541       fi
18542       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18543       hardcode_libdir_separator_GCJ=:
18544       hardcode_direct_GCJ=yes
18545
18546       # hardcode_minus_L: Not really in the search PATH,
18547       # but as the default location of the library.
18548       hardcode_minus_L_GCJ=yes
18549       export_dynamic_flag_spec_GCJ='${wl}-E'
18550       ;;
18551
18552     hpux10*)
18553       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18554         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18555       else
18556         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18557       fi
18558       if test "$with_gnu_ld" = no; then
18559         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18560         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18561         hardcode_libdir_separator_GCJ=:
18562         hardcode_direct_GCJ=yes
18563         hardcode_direct_absolute_GCJ=yes
18564         export_dynamic_flag_spec_GCJ='${wl}-E'
18565         # hardcode_minus_L: Not really in the search PATH,
18566         # but as the default location of the library.
18567         hardcode_minus_L_GCJ=yes
18568       fi
18569       ;;
18570
18571     hpux11*)
18572       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18573         case $host_cpu in
18574         hppa*64*)
18575           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18576           ;;
18577         ia64*)
18578           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18579           ;;
18580         *)
18581           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18582           ;;
18583         esac
18584       else
18585         case $host_cpu in
18586         hppa*64*)
18587           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18588           ;;
18589         ia64*)
18590           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18591           ;;
18592         *)
18593         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18594           ;;
18595         esac
18596       fi
18597       if test "$with_gnu_ld" = no; then
18598         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18599         hardcode_libdir_separator_GCJ=:
18600
18601         case $host_cpu in
18602         hppa*64*|ia64*)
18603           hardcode_direct_GCJ=no
18604           hardcode_shlibpath_var_GCJ=no
18605           ;;
18606         *)
18607           hardcode_direct_GCJ=yes
18608           hardcode_direct_absolute_GCJ=yes
18609           export_dynamic_flag_spec_GCJ='${wl}-E'
18610
18611           # hardcode_minus_L: Not really in the search PATH,
18612           # but as the default location of the library.
18613           hardcode_minus_L_GCJ=yes
18614           ;;
18615         esac
18616       fi
18617       ;;
18618
18619     irix5* | irix6* | nonstopux*)
18620       if test "$GCC" = yes; then
18621         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18622         # Try to use the -exported_symbol ld option, if it does not
18623         # work, assume that -exports_file does not work either and
18624         # implicitly export all symbols.
18625         save_LDFLAGS="$LDFLAGS"
18626         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18627         if test x$gcc_no_link = xyes; then
18628   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18629 fi
18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h.  */
18632 int foo(void) {}
18633 _ACEOF
18634 if ac_fn_c_try_link "$LINENO"; then :
18635   archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18636
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext \
18639     conftest$ac_exeext conftest.$ac_ext
18640         LDFLAGS="$save_LDFLAGS"
18641       else
18642         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18643         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18644       fi
18645       archive_cmds_need_lc_GCJ='no'
18646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18647       hardcode_libdir_separator_GCJ=:
18648       inherit_rpath_GCJ=yes
18649       link_all_deplibs_GCJ=yes
18650       ;;
18651
18652     netbsd*)
18653       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18654         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18655       else
18656         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18657       fi
18658       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18659       hardcode_direct_GCJ=yes
18660       hardcode_shlibpath_var_GCJ=no
18661       ;;
18662
18663     newsos6)
18664       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18665       hardcode_direct_GCJ=yes
18666       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18667       hardcode_libdir_separator_GCJ=:
18668       hardcode_shlibpath_var_GCJ=no
18669       ;;
18670
18671     *nto* | *qnx*)
18672       ;;
18673
18674     openbsd*)
18675       if test -f /usr/libexec/ld.so; then
18676         hardcode_direct_GCJ=yes
18677         hardcode_shlibpath_var_GCJ=no
18678         hardcode_direct_absolute_GCJ=yes
18679         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18680           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18681           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18682           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18683           export_dynamic_flag_spec_GCJ='${wl}-E'
18684         else
18685           case $host_os in
18686            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18687              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18688              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18689              ;;
18690            *)
18691              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18692              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18693              ;;
18694           esac
18695         fi
18696       else
18697         ld_shlibs_GCJ=no
18698       fi
18699       ;;
18700
18701     os2*)
18702       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18703       hardcode_minus_L_GCJ=yes
18704       allow_undefined_flag_GCJ=unsupported
18705       archive_cmds_GCJ='$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'
18706       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18707       ;;
18708
18709     osf3*)
18710       if test "$GCC" = yes; then
18711         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18712         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18713       else
18714         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18715         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18716       fi
18717       archive_cmds_need_lc_GCJ='no'
18718       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18719       hardcode_libdir_separator_GCJ=:
18720       ;;
18721
18722     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18723       if test "$GCC" = yes; then
18724         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18725         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18726         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18727       else
18728         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18729         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18730         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
18731         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18732
18733         # Both c and cxx compiler support -rpath directly
18734         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18735       fi
18736       archive_cmds_need_lc_GCJ='no'
18737       hardcode_libdir_separator_GCJ=:
18738       ;;
18739
18740     solaris*)
18741       no_undefined_flag_GCJ=' -z defs'
18742       if test "$GCC" = yes; then
18743         wlarc='${wl}'
18744         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18745         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18746           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18747       else
18748         case `$CC -V 2>&1` in
18749         *"Compilers 5.0"*)
18750           wlarc=''
18751           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18752           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18753           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18754           ;;
18755         *)
18756           wlarc='${wl}'
18757           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18758           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18759           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18760           ;;
18761         esac
18762       fi
18763       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18764       hardcode_shlibpath_var_GCJ=no
18765       case $host_os in
18766       solaris2.[0-5] | solaris2.[0-5].*) ;;
18767       *)
18768         # The compiler driver will combine and reorder linker options,
18769         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18770         # but is careful enough not to reorder.
18771         # Supported since Solaris 2.6 (maybe 2.5.1?)
18772         if test "$GCC" = yes; then
18773           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18774         else
18775           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18776         fi
18777         ;;
18778       esac
18779       link_all_deplibs_GCJ=yes
18780       ;;
18781
18782     sunos4*)
18783       if test "x$host_vendor" = xsequent; then
18784         # Use $CC to link under sequent, because it throws in some extra .o
18785         # files that make .init and .fini sections work.
18786         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18787       else
18788         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18789       fi
18790       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18791       hardcode_direct_GCJ=yes
18792       hardcode_minus_L_GCJ=yes
18793       hardcode_shlibpath_var_GCJ=no
18794       ;;
18795
18796     sysv4)
18797       case $host_vendor in
18798         sni)
18799           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18800           hardcode_direct_GCJ=yes # is this really true???
18801         ;;
18802         siemens)
18803           ## LD is ld it makes a PLAMLIB
18804           ## CC just makes a GrossModule.
18805           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18806           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18807           hardcode_direct_GCJ=no
18808         ;;
18809         motorola)
18810           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18811           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18812         ;;
18813       esac
18814       runpath_var='LD_RUN_PATH'
18815       hardcode_shlibpath_var_GCJ=no
18816       ;;
18817
18818     sysv4.3*)
18819       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18820       hardcode_shlibpath_var_GCJ=no
18821       export_dynamic_flag_spec_GCJ='-Bexport'
18822       ;;
18823
18824     sysv4*MP*)
18825       if test -d /usr/nec; then
18826         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18827         hardcode_shlibpath_var_GCJ=no
18828         runpath_var=LD_RUN_PATH
18829         hardcode_runpath_var=yes
18830         ld_shlibs_GCJ=yes
18831       fi
18832       ;;
18833
18834     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18835       no_undefined_flag_GCJ='${wl}-z,text'
18836       archive_cmds_need_lc_GCJ=no
18837       hardcode_shlibpath_var_GCJ=no
18838       runpath_var='LD_RUN_PATH'
18839
18840       if test "$GCC" = yes; then
18841         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18842         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18843       else
18844         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18845         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18846       fi
18847       ;;
18848
18849     sysv5* | sco3.2v5* | sco5v6*)
18850       # Note: We can NOT use -z defs as we might desire, because we do not
18851       # link with -lc, and that would cause any symbols used from libc to
18852       # always be unresolved, which means just about no library would
18853       # ever link correctly.  If we're not using GNU ld we use -z text
18854       # though, which does catch some bad symbols but isn't as heavy-handed
18855       # as -z defs.
18856       no_undefined_flag_GCJ='${wl}-z,text'
18857       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18858       archive_cmds_need_lc_GCJ=no
18859       hardcode_shlibpath_var_GCJ=no
18860       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18861       hardcode_libdir_separator_GCJ=':'
18862       link_all_deplibs_GCJ=yes
18863       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18864       runpath_var='LD_RUN_PATH'
18865
18866       if test "$GCC" = yes; then
18867         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18868         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18869       else
18870         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18872       fi
18873       ;;
18874
18875     uts4*)
18876       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18877       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18878       hardcode_shlibpath_var_GCJ=no
18879       ;;
18880
18881     *)
18882       ld_shlibs_GCJ=no
18883       ;;
18884     esac
18885
18886     if test x$host_vendor = xsni; then
18887       case $host in
18888       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18889         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18890         ;;
18891       esac
18892     fi
18893   fi
18894
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18896 $as_echo "$ld_shlibs_GCJ" >&6; }
18897 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18898
18899 with_gnu_ld_GCJ=$with_gnu_ld
18900
18901
18902
18903
18904
18905
18906 #
18907 # Do we need to explicitly link libc?
18908 #
18909 case "x$archive_cmds_need_lc_GCJ" in
18910 x|xyes)
18911   # Assume -lc should be added
18912   archive_cmds_need_lc_GCJ=yes
18913
18914   if test "$enable_shared" = yes && test "$GCC" = yes; then
18915     case $archive_cmds_GCJ in
18916     *'~'*)
18917       # FIXME: we may have to deal with multi-command sequences.
18918       ;;
18919     '$CC '*)
18920       # Test whether the compiler implicitly links with -lc since on some
18921       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18922       # to ld, don't add -lc before -lgcc.
18923       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18924 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18925 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18926   $as_echo_n "(cached) " >&6
18927 else
18928   $RM conftest*
18929         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18930
18931         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18932   (eval $ac_compile) 2>&5
18933   ac_status=$?
18934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18935   test $ac_status = 0; } 2>conftest.err; then
18936           soname=conftest
18937           lib=conftest
18938           libobjs=conftest.$ac_objext
18939           deplibs=
18940           wl=$lt_prog_compiler_wl_GCJ
18941           pic_flag=$lt_prog_compiler_pic_GCJ
18942           compiler_flags=-v
18943           linker_flags=-v
18944           verstring=
18945           output_objdir=.
18946           libname=conftest
18947           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18948           allow_undefined_flag_GCJ=
18949           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18950   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18951   ac_status=$?
18952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18953   test $ac_status = 0; }
18954           then
18955             lt_cv_archive_cmds_need_lc_GCJ=no
18956           else
18957             lt_cv_archive_cmds_need_lc_GCJ=yes
18958           fi
18959           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18960         else
18961           cat conftest.err 1>&5
18962         fi
18963         $RM conftest*
18964
18965 fi
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18967 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18968       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18969       ;;
18970     esac
18971   fi
18972   ;;
18973 esac
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19039 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19040 hardcode_action_GCJ=
19041 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19042    test -n "$runpath_var_GCJ" ||
19043    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19044
19045   # We can hardcode non-existent directories.
19046   if test "$hardcode_direct_GCJ" != no &&
19047      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19048      # have to relink, otherwise we might link with an installed library
19049      # when we should be linking with a yet-to-be-installed one
19050      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19051      test "$hardcode_minus_L_GCJ" != no; then
19052     # Linking always hardcodes the temporary library directory.
19053     hardcode_action_GCJ=relink
19054   else
19055     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19056     hardcode_action_GCJ=immediate
19057   fi
19058 else
19059   # We cannot hardcode anything, or else we can only hardcode existing
19060   # directories.
19061   hardcode_action_GCJ=unsupported
19062 fi
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19064 $as_echo "$hardcode_action_GCJ" >&6; }
19065
19066 if test "$hardcode_action_GCJ" = relink ||
19067    test "$inherit_rpath_GCJ" = yes; then
19068   # Fast installation is not supported
19069   enable_fast_install=no
19070 elif test "$shlibpath_overrides_runpath" = yes ||
19071      test "$enable_shared" = no; then
19072   # Fast installation is not necessary
19073   enable_fast_install=needless
19074 fi
19075
19076
19077
19078
19079
19080
19081
19082 fi
19083
19084 compiler_GCJ=${GCJ-gcj}
19085 ac_ext=c
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091
19092 if test "x$CC" != xcc; then
19093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19094 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19095 else
19096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19097 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19098 fi
19099 set dummy $CC; ac_cc=`$as_echo "$2" |
19100                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19101 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19102   $as_echo_n "(cached) " >&6
19103 else
19104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h.  */
19106
19107 int
19108 main ()
19109 {
19110
19111   ;
19112   return 0;
19113 }
19114 _ACEOF
19115 # Make sure it works both with $CC and with simple cc.
19116 # We do the test twice because some compilers refuse to overwrite an
19117 # existing .o file with -o, though they will create one.
19118 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19119 rm -f conftest2.*
19120 if { { case "(($ac_try" in
19121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122   *) ac_try_echo=$ac_try;;
19123 esac
19124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19125 $as_echo "$ac_try_echo"; } >&5
19126   (eval "$ac_try") 2>&5
19127   ac_status=$?
19128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129   test $ac_status = 0; } &&
19130    test -f conftest2.$ac_objext && { { case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19135 $as_echo "$ac_try_echo"; } >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19139   test $ac_status = 0; };
19140 then
19141   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19142   if test "x$CC" != xcc; then
19143     # Test first that cc exists at all.
19144     if { ac_try='cc -c conftest.$ac_ext >&5'
19145   { { case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19150 $as_echo "$ac_try_echo"; } >&5
19151   (eval "$ac_try") 2>&5
19152   ac_status=$?
19153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19154   test $ac_status = 0; }; }; then
19155       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19156       rm -f conftest2.*
19157       if { { case "(($ac_try" in
19158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159   *) ac_try_echo=$ac_try;;
19160 esac
19161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19162 $as_echo "$ac_try_echo"; } >&5
19163   (eval "$ac_try") 2>&5
19164   ac_status=$?
19165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19166   test $ac_status = 0; } &&
19167          test -f conftest2.$ac_objext && { { case "(($ac_try" in
19168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169   *) ac_try_echo=$ac_try;;
19170 esac
19171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19172 $as_echo "$ac_try_echo"; } >&5
19173   (eval "$ac_try") 2>&5
19174   ac_status=$?
19175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19176   test $ac_status = 0; };
19177       then
19178         # cc works too.
19179         :
19180       else
19181         # cc exists but doesn't like -o.
19182         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19183       fi
19184     fi
19185   fi
19186 else
19187   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19188 fi
19189 rm -f core conftest*
19190
19191 fi
19192 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19194 $as_echo "yes" >&6; }
19195 else
19196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19197 $as_echo "no" >&6; }
19198
19199 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19200
19201 fi
19202
19203 # FIXME: we rely on the cache variable name because
19204 # there is no other way.
19205 set dummy $CC
19206 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19207 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19208 if test "$am_t" != yes; then
19209    # Losing compiler, so override with the script.
19210    # FIXME: It is wrong to rewrite CC.
19211    # But if we don't then we get into trouble of one sort or another.
19212    # A longer-term fix would be to have automake use am__CC in this case,
19213    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19214    CC="$am_aux_dir/compile $CC"
19215 fi
19216
19217
19218
19219
19220
19221 subdirs="$subdirs classpath libltdl"
19222
19223
19224 # The -no-testsuite modules omit the test subdir.
19225  if test -d $srcdir/testsuite; then
19226   TESTSUBDIR_TRUE=
19227   TESTSUBDIR_FALSE='#'
19228 else
19229   TESTSUBDIR_TRUE='#'
19230   TESTSUBDIR_FALSE=
19231 fi
19232
19233
19234 # Should the runtime set system properties by examining the
19235 # environment variable GCJ_PROPERTIES?
19236 # Check whether --enable-getenv-properties was given.
19237 if test "${enable_getenv_properties+set}" = set; then :
19238   enableval=$enable_getenv_properties;
19239 fi
19240
19241
19242 # Whether GCJ_PROPERTIES is used depends on the target.
19243 if test -z "$enable_getenv_properties"; then
19244    enable_getenv_properties=${enable_getenv_properties_default-yes}
19245 fi
19246 if test "$enable_getenv_properties" = no; then
19247
19248 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19249
19250 fi
19251
19252 # Whether we should use arguments to main()
19253 if test -z "$enable_main_args"; then
19254    enable_main_args=${enable_main_args_default-yes}
19255 fi
19256 if test "$enable_main_args" = no; then
19257
19258 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19259
19260 fi
19261
19262
19263 # Should we use hashtable-based synchronization?
19264 # Currently works only for Linux X86/ia64
19265 # Typically faster and more space-efficient
19266 # Check whether --enable-hash-synchronization was given.
19267 if test "${enable_hash_synchronization+set}" = set; then :
19268   enableval=$enable_hash_synchronization;
19269 fi
19270
19271
19272 if test -z "$enable_hash_synchronization"; then
19273    enable_hash_synchronization=$enable_hash_synchronization_default
19274 fi
19275
19276
19277 install_ecj_jar=no
19278 ECJ_BUILD_JAR=
19279 ECJ_JAR=
19280
19281 # Check whether --with-ecj-jar was given.
19282 if test "${with_ecj_jar+set}" = set; then :
19283   withval=$with_ecj_jar; ECJ_JAR=$withval
19284 else
19285   if test -f $multi_basedir/ecj.jar; then
19286            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19287            ECJ_JAR='$(jardir)/ecj.jar'
19288            install_ecj_jar=yes
19289          fi
19290 fi
19291
19292
19293
19294  if test "$ECJ_JAR" != ""; then
19295   BUILD_ECJ1_TRUE=
19296   BUILD_ECJ1_FALSE='#'
19297 else
19298   BUILD_ECJ1_TRUE='#'
19299   BUILD_ECJ1_FALSE=
19300 fi
19301
19302  if test $install_ecj_jar = yes; then
19303   INSTALL_ECJ_JAR_TRUE=
19304   INSTALL_ECJ_JAR_FALSE='#'
19305 else
19306   INSTALL_ECJ_JAR_TRUE='#'
19307   INSTALL_ECJ_JAR_FALSE=
19308 fi
19309
19310
19311
19312 # Check whether --with-java-home was given.
19313 if test "${with_java_home+set}" = set; then :
19314   withval=$with_java_home; JAVA_HOME="${withval}"
19315 else
19316   JAVA_HOME=""
19317 fi
19318
19319  if test ! -z "$JAVA_HOME"; then
19320   JAVA_HOME_SET_TRUE=
19321   JAVA_HOME_SET_FALSE='#'
19322 else
19323   JAVA_HOME_SET_TRUE='#'
19324   JAVA_HOME_SET_FALSE=
19325 fi
19326
19327
19328
19329 suppress_libgcj_bc=no
19330 # Check whether --enable-libgcj-bc was given.
19331 if test "${enable_libgcj_bc+set}" = set; then :
19332   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19333      suppress_libgcj_bc=yes
19334    fi
19335 fi
19336
19337  if test "$suppress_libgcj_bc" = "yes"; then
19338   SUPPRESS_LIBGCJ_BC_TRUE=
19339   SUPPRESS_LIBGCJ_BC_FALSE='#'
19340 else
19341   SUPPRESS_LIBGCJ_BC_TRUE='#'
19342   SUPPRESS_LIBGCJ_BC_FALSE=
19343 fi
19344
19345
19346 build_libgcj_reduced_reflection=no
19347 # Check whether --enable-reduced-reflection was given.
19348 if test "${enable_reduced_reflection+set}" = set; then :
19349   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19350      build_libgcj_reduced_reflection=yes
19351    fi
19352 fi
19353
19354  if test "$build_libgcj_reduced_reflection" = "yes"; then
19355   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19356   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19357 else
19358   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19359   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19360 fi
19361
19362
19363 # What is the native OS API for MinGW?
19364
19365 # Check whether --with-win32-nlsapi was given.
19366 if test "${with_win32_nlsapi+set}" = set; then :
19367   withval=$with_win32_nlsapi; case "${withval}" in
19368   ansi) with_win32_nlsapi=ansi ;;
19369   unicows) with_win32_nlsapi=unicows ;;
19370   unicode) with_win32_nlsapi=unicode ;;
19371   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19372 esac
19373 else
19374   with_win32_nlsapi=ansi
19375 fi
19376
19377
19378 case "${with_win32_nlsapi}" in
19379   unicows | unicode)
19380
19381 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19382
19383     ;;
19384 esac
19385
19386 # configure.host sets slow_pthread_self if the synchronization code should
19387 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19388 if test "${slow_pthread_self}" = "yes"; then
19389
19390 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19391
19392 fi
19393
19394 # Check for gc debugging.  This option is handled both here and in the GC.
19395 # Check whether --enable-gc-debug was given.
19396 if test "${enable_gc_debug+set}" = set; then :
19397   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19398
19399 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19400
19401   fi
19402 fi
19403
19404
19405 # See if the user has the interpreter included.
19406 # Check whether --enable-interpreter was given.
19407 if test "${enable_interpreter+set}" = set; then :
19408   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19409     # This can also be set in configure.host.
19410     libgcj_interpreter=yes
19411   elif test "$enable_interpreter" = no; then
19412     libgcj_interpreter=no
19413   fi
19414 fi
19415
19416
19417 if test "$libgcj_interpreter" = yes; then
19418
19419 $as_echo "#define INTERPRETER 1" >>confdefs.h
19420
19421 fi
19422 INTERPRETER="$libgcj_interpreter"
19423
19424  if test "$libgcj_interpreter" = yes; then
19425   INTERPRETER_TRUE=
19426   INTERPRETER_FALSE='#'
19427 else
19428   INTERPRETER_TRUE='#'
19429   INTERPRETER_FALSE=
19430 fi
19431
19432
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19434 $as_echo_n "checking for exception model to use... " >&6; }
19435 ac_ext=cpp
19436 ac_cpp='$CXXCPP $CPPFLAGS'
19437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19440
19441 # Check whether --enable-sjlj-exceptions was given.
19442 if test "${enable_sjlj_exceptions+set}" = set; then :
19443   enableval=$enable_sjlj_exceptions; :
19444 else
19445   cat > conftest.$ac_ext << EOF
19446 #line 19446 "configure"
19447 struct S { ~S(); };
19448 void bar();
19449 void foo()
19450 {
19451   S s;
19452   bar();
19453 }
19454 EOF
19455 old_CXXFLAGS="$CXXFLAGS"
19456 CXXFLAGS=-S
19457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19458   (eval $ac_compile) 2>&5
19459   ac_status=$?
19460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19461   test $ac_status = 0; }; then
19462   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19463     enable_sjlj_exceptions=yes
19464   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19465     enable_sjlj_exceptions=no
19466   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19467     # ARM EH ABI.
19468     enable_sjlj_exceptions=no
19469   fi
19470 fi
19471 CXXFLAGS="$old_CXXFLAGS"
19472 rm -f conftest*
19473 fi
19474
19475 if test x$enable_sjlj_exceptions = xyes; then
19476
19477 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19478
19479   ac_exception_model_name=sjlj
19480 elif test x$enable_sjlj_exceptions = xno; then
19481   ac_exception_model_name="call frame"
19482 else
19483   as_fn_error "unable to detect exception model" "$LINENO" 5
19484 fi
19485 ac_ext=c
19486 ac_cpp='$CPP $CPPFLAGS'
19487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19490
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19492 $as_echo "$ac_exception_model_name" >&6; }
19493
19494 # If we are non using SJLJ exceptions, and this host does not have support
19495 # for unwinding from a signal handler, enable checked dereferences and divides.
19496 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19497   CHECKREFSPEC=-fcheck-references
19498   DIVIDESPEC=-fuse-divide-subroutine
19499   EXCEPTIONSPEC=
19500 fi
19501
19502 # See if the user wants to disable java.net.  This is the mildly
19503 # ugly way that we admit that target-side configuration sucks.
19504 # Check whether --enable-java-net was given.
19505 if test "${enable_java_net+set}" = set; then :
19506   enableval=$enable_java_net;
19507 fi
19508
19509
19510 # Whether java.net is built by default can depend on the target.
19511 if test -z "$enable_java_net"; then
19512    enable_java_net=${enable_java_net_default-yes}
19513 fi
19514 if test "$enable_java_net" = no; then
19515
19516 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19517
19518 fi
19519
19520 # See if the user wants to configure without libffi.  Some
19521 # architectures don't support it, and default values are set in
19522 # configure.host.
19523
19524 # Check whether --with-libffi was given.
19525 if test "${with_libffi+set}" = set; then :
19526   withval=$with_libffi; :
19527 else
19528   with_libffi=${with_libffi_default-yes}
19529 fi
19530
19531
19532 LIBFFI=
19533 LIBFFIINCS=
19534 if test "$with_libffi" != no; then
19535
19536 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19537
19538    LIBFFI=../libffi/libffi_convenience.la
19539    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19540 fi
19541
19542
19543
19544 # See if the user wants to disable JVMPI support.
19545 # Check whether --enable-jvmpi was given.
19546 if test "${enable_jvmpi+set}" = set; then :
19547   enableval=$enable_jvmpi;
19548 fi
19549
19550
19551 if test "$enable_jvmpi" != no; then
19552
19553 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19554
19555 fi
19556
19557 # If the target is an eCos system, use the appropriate eCos
19558 # I/O routines.
19559 # FIXME: this should not be a local option but a global target
19560 # system; at present there is no eCos target.
19561 TARGET_ECOS=${PROCESS-"no"}
19562
19563 # Check whether --with-ecos was given.
19564 if test "${with_ecos+set}" = set; then :
19565   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19566
19567 fi
19568
19569
19570 case "$TARGET_ECOS" in
19571    no) case "$host" in
19572       *mingw*)
19573             PLATFORM=Win32
19574             PLATFORMNET=Win32
19575             PLATFORMH=win32.h
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19578 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19579 LD_PROG=`$CC --print-prog-name=ld`
19580 LD_VERSION=`$LD_PROG --version`
19581 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19582 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19583 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19584   LD_OK="ok"
19585 else
19586   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19587     LD_OK="ok"
19588   fi
19589 fi
19590 if test "x$LD_OK" != x; then
19591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19592 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19593 else
19594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19595 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19596   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19597 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19598
19599 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19600
19601 fi
19602       ;;
19603       *)
19604             PLATFORM=Posix
19605             PLATFORMNET=Posix
19606             PLATFORMH=posix.h
19607       ;;
19608       esac
19609       ;;
19610    *)
19611       PLATFORM=Ecos
19612       PLATFORMNET=NoNet
19613
19614 $as_echo "#define ECOS 1" >>confdefs.h
19615
19616       PLATFORMH=posix.h
19617       ;;
19618 esac
19619
19620 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19621
19622
19623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h.  */
19625 #include <stdint.h>
19626
19627 _ACEOF
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629   $EGREP "uint32_t" >/dev/null 2>&1; then :
19630
19631 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19632
19633 fi
19634 rm -f conftest*
19635
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h.  */
19638 #include <inttypes.h>
19639
19640 _ACEOF
19641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19642   $EGREP "uint32_t" >/dev/null 2>&1; then :
19643
19644 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19645
19646 fi
19647 rm -f conftest*
19648
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h.  */
19651 #include <sys/types.h>
19652
19653 _ACEOF
19654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19655   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19656
19657 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19658
19659 fi
19660 rm -f conftest*
19661
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h.  */
19664 #include <sys/config.h>
19665
19666 _ACEOF
19667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19668   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19669
19670 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19671
19672 fi
19673 rm -f conftest*
19674
19675
19676  if test "$PLATFORM" = Win32; then
19677   USING_WIN32_PLATFORM_TRUE=
19678   USING_WIN32_PLATFORM_FALSE='#'
19679 else
19680   USING_WIN32_PLATFORM_TRUE='#'
19681   USING_WIN32_PLATFORM_FALSE=
19682 fi
19683
19684  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19685   USING_POSIX_PLATFORM_TRUE=
19686   USING_POSIX_PLATFORM_FALSE='#'
19687 else
19688   USING_POSIX_PLATFORM_TRUE='#'
19689   USING_POSIX_PLATFORM_FALSE=
19690 fi
19691
19692
19693 case "$host" in
19694   *-darwin*) DARWIN_CRT=true ;;
19695   *) DARWIN_CRT=false ;;
19696 esac
19697  if $DARWIN_CRT; then
19698   USING_DARWIN_CRT_TRUE=
19699   USING_DARWIN_CRT_FALSE='#'
19700 else
19701   USING_DARWIN_CRT_TRUE='#'
19702   USING_DARWIN_CRT_FALSE=
19703 fi
19704
19705
19706 # This may not be defined in a non-ANS conformant embedded system.
19707 # FIXME: Should these case a runtime exception in that case?
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h.  */
19710 #include <time.h>
19711
19712 _ACEOF
19713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19714   $EGREP "localtime" >/dev/null 2>&1; then :
19715
19716 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19717
19718 fi
19719 rm -f conftest*
19720
19721
19722 # Create the subdirectory for natFile.cc, or the attempt
19723 # to create the link will fail.
19724 test -d java || mkdir java
19725 test -d java/io || mkdir java/io
19726 test -d gnu || mkdir gnu
19727 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19728
19729
19730 # Likewise for natConcreteProcess.cc.
19731 test -d java/lang || mkdir java/lang
19732 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19733
19734
19735 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19736 test -d java/net || mkdir java/net
19737 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19738
19739 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19740
19741
19742 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19743 test -d gnu/java || mkdir gnu/java
19744 test -d gnu/java/net || mkdir gnu/java/net
19745 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19746
19747 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19748
19749
19750 # Likewise for natVMPipe.cc and natVMSelector.cc.
19751 test -d gnu/java/nio || mkdir gnu/java/nio
19752 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19753
19754 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19755
19756
19757 # Likewise for natFileChannelImpl.cc
19758 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19759 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19760
19761
19762 # Likewise for natVMSecureRandom.cc
19763 test -d gnu/java/security || mkdir gnu/java/security
19764 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19765 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19766 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19767
19768
19769 case "${host}" in
19770     *mingw*)
19771       SYSTEMSPEC="-lgdi32 -lws2_32"
19772       if test "${with_win32_nlsapi}" = "unicows"; then
19773         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19774       fi
19775     ;;
19776     *-*-darwin[912]*)
19777       SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19778     ;;
19779     *)
19780       SYSTEMSPEC=
19781     ;;
19782 esac
19783
19784
19785
19786 # Check whether --with-system-zlib was given.
19787 if test "${with_system_zlib+set}" = set; then :
19788   withval=$with_system_zlib;
19789 fi
19790
19791 ZLIBSPEC=
19792
19793 ZLIBTESTSPEC=
19794
19795
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19797 $as_echo_n "checking for X... " >&6; }
19798
19799
19800 # Check whether --with-x was given.
19801 if test "${with_x+set}" = set; then :
19802   withval=$with_x;
19803 fi
19804
19805 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19806 if test "x$with_x" = xno; then
19807   # The user explicitly disabled X.
19808   have_x=disabled
19809 else
19810   case $x_includes,$x_libraries in #(
19811     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19812     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19813   $as_echo_n "(cached) " >&6
19814 else
19815   # One or both of the vars are not set, and there is no cached value.
19816 ac_x_includes=no ac_x_libraries=no
19817 rm -f -r conftest.dir
19818 if mkdir conftest.dir; then
19819   cd conftest.dir
19820   cat >Imakefile <<'_ACEOF'
19821 incroot:
19822         @echo incroot='${INCROOT}'
19823 usrlibdir:
19824         @echo usrlibdir='${USRLIBDIR}'
19825 libdir:
19826         @echo libdir='${LIBDIR}'
19827 _ACEOF
19828   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19829     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19830     for ac_var in incroot usrlibdir libdir; do
19831       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19832     done
19833     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19834     for ac_extension in a so sl dylib la dll; do
19835       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19836          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19837         ac_im_usrlibdir=$ac_im_libdir; break
19838       fi
19839     done
19840     # Screen out bogus values from the imake configuration.  They are
19841     # bogus both because they are the default anyway, and because
19842     # using them would break gcc on systems where it needs fixed includes.
19843     case $ac_im_incroot in
19844         /usr/include) ac_x_includes= ;;
19845         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19846     esac
19847     case $ac_im_usrlibdir in
19848         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19849         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19850     esac
19851   fi
19852   cd ..
19853   rm -f -r conftest.dir
19854 fi
19855
19856 # Standard set of common directories for X headers.
19857 # Check X11 before X11Rn because it is often a symlink to the current release.
19858 ac_x_header_dirs='
19859 /usr/X11/include
19860 /usr/X11R7/include
19861 /usr/X11R6/include
19862 /usr/X11R5/include
19863 /usr/X11R4/include
19864
19865 /usr/include/X11
19866 /usr/include/X11R7
19867 /usr/include/X11R6
19868 /usr/include/X11R5
19869 /usr/include/X11R4
19870
19871 /usr/local/X11/include
19872 /usr/local/X11R7/include
19873 /usr/local/X11R6/include
19874 /usr/local/X11R5/include
19875 /usr/local/X11R4/include
19876
19877 /usr/local/include/X11
19878 /usr/local/include/X11R7
19879 /usr/local/include/X11R6
19880 /usr/local/include/X11R5
19881 /usr/local/include/X11R4
19882
19883 /usr/X386/include
19884 /usr/x386/include
19885 /usr/XFree86/include/X11
19886
19887 /usr/include
19888 /usr/local/include
19889 /usr/unsupported/include
19890 /usr/athena/include
19891 /usr/local/x11r5/include
19892 /usr/lpp/Xamples/include
19893
19894 /usr/openwin/include
19895 /usr/openwin/share/include'
19896
19897 if test "$ac_x_includes" = no; then
19898   # Guess where to find include files, by looking for Xlib.h.
19899   # First, try using that file with no special directory specified.
19900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901 /* end confdefs.h.  */
19902 #include <X11/Xlib.h>
19903 _ACEOF
19904 if ac_fn_c_try_cpp "$LINENO"; then :
19905   # We can compile using X headers with no special include directory.
19906 ac_x_includes=
19907 else
19908   for ac_dir in $ac_x_header_dirs; do
19909   if test -r "$ac_dir/X11/Xlib.h"; then
19910     ac_x_includes=$ac_dir
19911     break
19912   fi
19913 done
19914 fi
19915 rm -f conftest.err conftest.$ac_ext
19916 fi # $ac_x_includes = no
19917
19918 if test "$ac_x_libraries" = no; then
19919   # Check for the libraries.
19920   # See if we find them without any special options.
19921   # Don't add to $LIBS permanently.
19922   ac_save_LIBS=$LIBS
19923   LIBS="-lX11 $LIBS"
19924   if test x$gcc_no_link = xyes; then
19925   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19926 fi
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h.  */
19929 #include <X11/Xlib.h>
19930 int
19931 main ()
19932 {
19933 XrmInitialize ()
19934   ;
19935   return 0;
19936 }
19937 _ACEOF
19938 if ac_fn_c_try_link "$LINENO"; then :
19939   LIBS=$ac_save_LIBS
19940 # We can link X programs with no special library path.
19941 ac_x_libraries=
19942 else
19943   LIBS=$ac_save_LIBS
19944 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19945 do
19946   # Don't even attempt the hair of trying to link an X program!
19947   for ac_extension in a so sl dylib la dll; do
19948     if test -r "$ac_dir/libX11.$ac_extension"; then
19949       ac_x_libraries=$ac_dir
19950       break 2
19951     fi
19952   done
19953 done
19954 fi
19955 rm -f core conftest.err conftest.$ac_objext \
19956     conftest$ac_exeext conftest.$ac_ext
19957 fi # $ac_x_libraries = no
19958
19959 case $ac_x_includes,$ac_x_libraries in #(
19960   no,* | *,no | *\'*)
19961     # Didn't find X, or a directory has "'" in its name.
19962     ac_cv_have_x="have_x=no";; #(
19963   *)
19964     # Record where we found X for the cache.
19965     ac_cv_have_x="have_x=yes\
19966         ac_x_includes='$ac_x_includes'\
19967         ac_x_libraries='$ac_x_libraries'"
19968 esac
19969 fi
19970 ;; #(
19971     *) have_x=yes;;
19972   esac
19973   eval "$ac_cv_have_x"
19974 fi # $with_x != no
19975
19976 if test "$have_x" != yes; then
19977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19978 $as_echo "$have_x" >&6; }
19979   no_x=yes
19980 else
19981   # If each of the values was on the command line, it overrides each guess.
19982   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19983   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19984   # Update the cache value to reflect the command line values.
19985   ac_cv_have_x="have_x=yes\
19986         ac_x_includes='$x_includes'\
19987         ac_x_libraries='$x_libraries'"
19988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19989 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19990 fi
19991
19992 if test "$no_x" = yes; then
19993   # Not all programs may use this symbol, but it does not hurt to define it.
19994
19995 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19996
19997   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19998 else
19999   if test -n "$x_includes"; then
20000     X_CFLAGS="$X_CFLAGS -I$x_includes"
20001   fi
20002
20003   # It would also be nice to do this for all -L options, not just this one.
20004   if test -n "$x_libraries"; then
20005     X_LIBS="$X_LIBS -L$x_libraries"
20006     # For Solaris; some versions of Sun CC require a space after -R and
20007     # others require no space.  Words are not sufficient . . . .
20008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20009 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20010     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20011     ac_xsave_c_werror_flag=$ac_c_werror_flag
20012     ac_c_werror_flag=yes
20013     if test x$gcc_no_link = xyes; then
20014   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20015 fi
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h.  */
20018
20019 int
20020 main ()
20021 {
20022
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 if ac_fn_c_try_link "$LINENO"; then :
20028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20030        X_LIBS="$X_LIBS -R$x_libraries"
20031 else
20032   LIBS="$ac_xsave_LIBS -R $x_libraries"
20033        if test x$gcc_no_link = xyes; then
20034   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20035 fi
20036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20037 /* end confdefs.h.  */
20038
20039 int
20040 main ()
20041 {
20042
20043   ;
20044   return 0;
20045 }
20046 _ACEOF
20047 if ac_fn_c_try_link "$LINENO"; then :
20048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20049 $as_echo "yes" >&6; }
20050           X_LIBS="$X_LIBS -R $x_libraries"
20051 else
20052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20053 $as_echo "neither works" >&6; }
20054 fi
20055 rm -f core conftest.err conftest.$ac_objext \
20056     conftest$ac_exeext conftest.$ac_ext
20057 fi
20058 rm -f core conftest.err conftest.$ac_objext \
20059     conftest$ac_exeext conftest.$ac_ext
20060     ac_c_werror_flag=$ac_xsave_c_werror_flag
20061     LIBS=$ac_xsave_LIBS
20062   fi
20063
20064   # Check for system-dependent libraries X programs must link with.
20065   # Do this before checking for the system-independent R6 libraries
20066   # (-lICE), since we may need -lsocket or whatever for X linking.
20067
20068   if test "$ISC" = yes; then
20069     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20070   else
20071     # Martyn Johnson says this is needed for Ultrix, if the X
20072     # libraries were built with DECnet support.  And Karl Berry says
20073     # the Alpha needs dnet_stub (dnet does not exist).
20074     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20075     if test x$gcc_no_link = xyes; then
20076   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20077 fi
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079 /* end confdefs.h.  */
20080
20081 /* Override any GCC internal prototype to avoid an error.
20082    Use char because int might match the return type of a GCC
20083    builtin and then its argument prototype would still apply.  */
20084 #ifdef __cplusplus
20085 extern "C"
20086 #endif
20087 char XOpenDisplay ();
20088 int
20089 main ()
20090 {
20091 return XOpenDisplay ();
20092   ;
20093   return 0;
20094 }
20095 _ACEOF
20096 if ac_fn_c_try_link "$LINENO"; then :
20097
20098 else
20099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20100 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20101 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20102   $as_echo_n "(cached) " >&6
20103 else
20104   ac_check_lib_save_LIBS=$LIBS
20105 LIBS="-ldnet  $LIBS"
20106 if test x$gcc_no_link = xyes; then
20107   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20108 fi
20109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110 /* end confdefs.h.  */
20111
20112 /* Override any GCC internal prototype to avoid an error.
20113    Use char because int might match the return type of a GCC
20114    builtin and then its argument prototype would still apply.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char dnet_ntoa ();
20119 int
20120 main ()
20121 {
20122 return dnet_ntoa ();
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 if ac_fn_c_try_link "$LINENO"; then :
20128   ac_cv_lib_dnet_dnet_ntoa=yes
20129 else
20130   ac_cv_lib_dnet_dnet_ntoa=no
20131 fi
20132 rm -f core conftest.err conftest.$ac_objext \
20133     conftest$ac_exeext conftest.$ac_ext
20134 LIBS=$ac_check_lib_save_LIBS
20135 fi
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20137 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20138 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20139   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20140 fi
20141
20142     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20143       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20144 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20145 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20146   $as_echo_n "(cached) " >&6
20147 else
20148   ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-ldnet_stub  $LIBS"
20150 if test x$gcc_no_link = xyes; then
20151   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20152 fi
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h.  */
20155
20156 /* Override any GCC internal prototype to avoid an error.
20157    Use char because int might match the return type of a GCC
20158    builtin and then its argument prototype would still apply.  */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char dnet_ntoa ();
20163 int
20164 main ()
20165 {
20166 return dnet_ntoa ();
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 if ac_fn_c_try_link "$LINENO"; then :
20172   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20173 else
20174   ac_cv_lib_dnet_stub_dnet_ntoa=no
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext \
20177     conftest$ac_exeext conftest.$ac_ext
20178 LIBS=$ac_check_lib_save_LIBS
20179 fi
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20181 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20182 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20183   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20184 fi
20185
20186     fi
20187 fi
20188 rm -f core conftest.err conftest.$ac_objext \
20189     conftest$ac_exeext conftest.$ac_ext
20190     LIBS="$ac_xsave_LIBS"
20191
20192     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20193     # to get the SysV transport functions.
20194     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20195     # needs -lnsl.
20196     # The nsl library prevents programs from opening the X display
20197     # on Irix 5.2, according to T.E. Dickey.
20198     # The functions gethostbyname, getservbyname, and inet_addr are
20199     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20200     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20201 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20202
20203 fi
20204
20205     if test $ac_cv_func_gethostbyname = no; then
20206       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20207 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20209   $as_echo_n "(cached) " >&6
20210 else
20211   ac_check_lib_save_LIBS=$LIBS
20212 LIBS="-lnsl  $LIBS"
20213 if test x$gcc_no_link = xyes; then
20214   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20215 fi
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h.  */
20218
20219 /* Override any GCC internal prototype to avoid an error.
20220    Use char because int might match the return type of a GCC
20221    builtin and then its argument prototype would still apply.  */
20222 #ifdef __cplusplus
20223 extern "C"
20224 #endif
20225 char gethostbyname ();
20226 int
20227 main ()
20228 {
20229 return gethostbyname ();
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 if ac_fn_c_try_link "$LINENO"; then :
20235   ac_cv_lib_nsl_gethostbyname=yes
20236 else
20237   ac_cv_lib_nsl_gethostbyname=no
20238 fi
20239 rm -f core conftest.err conftest.$ac_objext \
20240     conftest$ac_exeext conftest.$ac_ext
20241 LIBS=$ac_check_lib_save_LIBS
20242 fi
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20244 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20245 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20246   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20247 fi
20248
20249       if test $ac_cv_lib_nsl_gethostbyname = no; then
20250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20251 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20252 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20253   $as_echo_n "(cached) " >&6
20254 else
20255   ac_check_lib_save_LIBS=$LIBS
20256 LIBS="-lbsd  $LIBS"
20257 if test x$gcc_no_link = xyes; then
20258   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20259 fi
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h.  */
20262
20263 /* Override any GCC internal prototype to avoid an error.
20264    Use char because int might match the return type of a GCC
20265    builtin and then its argument prototype would still apply.  */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 char gethostbyname ();
20270 int
20271 main ()
20272 {
20273 return gethostbyname ();
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 if ac_fn_c_try_link "$LINENO"; then :
20279   ac_cv_lib_bsd_gethostbyname=yes
20280 else
20281   ac_cv_lib_bsd_gethostbyname=no
20282 fi
20283 rm -f core conftest.err conftest.$ac_objext \
20284     conftest$ac_exeext conftest.$ac_ext
20285 LIBS=$ac_check_lib_save_LIBS
20286 fi
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20288 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20289 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20290   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20291 fi
20292
20293       fi
20294     fi
20295
20296     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20297     # socket/setsockopt and other routines are undefined under SCO ODT
20298     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20299     # on later versions), says Simon Leinen: it contains gethostby*
20300     # variants that don't use the name server (or something).  -lsocket
20301     # must be given before -lnsl if both are needed.  We assume that
20302     # if connect needs -lnsl, so does gethostbyname.
20303     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20304 if test "x$ac_cv_func_connect" = x""yes; then :
20305
20306 fi
20307
20308     if test $ac_cv_func_connect = no; then
20309       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20310 $as_echo_n "checking for connect in -lsocket... " >&6; }
20311 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20312   $as_echo_n "(cached) " >&6
20313 else
20314   ac_check_lib_save_LIBS=$LIBS
20315 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20316 if test x$gcc_no_link = xyes; then
20317   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20318 fi
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h.  */
20321
20322 /* Override any GCC internal prototype to avoid an error.
20323    Use char because int might match the return type of a GCC
20324    builtin and then its argument prototype would still apply.  */
20325 #ifdef __cplusplus
20326 extern "C"
20327 #endif
20328 char connect ();
20329 int
20330 main ()
20331 {
20332 return connect ();
20333   ;
20334   return 0;
20335 }
20336 _ACEOF
20337 if ac_fn_c_try_link "$LINENO"; then :
20338   ac_cv_lib_socket_connect=yes
20339 else
20340   ac_cv_lib_socket_connect=no
20341 fi
20342 rm -f core conftest.err conftest.$ac_objext \
20343     conftest$ac_exeext conftest.$ac_ext
20344 LIBS=$ac_check_lib_save_LIBS
20345 fi
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20347 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20348 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20349   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20350 fi
20351
20352     fi
20353
20354     # Guillermo Gomez says -lposix is necessary on A/UX.
20355     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20356 if test "x$ac_cv_func_remove" = x""yes; then :
20357
20358 fi
20359
20360     if test $ac_cv_func_remove = no; then
20361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20362 $as_echo_n "checking for remove in -lposix... " >&6; }
20363 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20364   $as_echo_n "(cached) " >&6
20365 else
20366   ac_check_lib_save_LIBS=$LIBS
20367 LIBS="-lposix  $LIBS"
20368 if test x$gcc_no_link = xyes; then
20369   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20370 fi
20371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20372 /* end confdefs.h.  */
20373
20374 /* Override any GCC internal prototype to avoid an error.
20375    Use char because int might match the return type of a GCC
20376    builtin and then its argument prototype would still apply.  */
20377 #ifdef __cplusplus
20378 extern "C"
20379 #endif
20380 char remove ();
20381 int
20382 main ()
20383 {
20384 return remove ();
20385   ;
20386   return 0;
20387 }
20388 _ACEOF
20389 if ac_fn_c_try_link "$LINENO"; then :
20390   ac_cv_lib_posix_remove=yes
20391 else
20392   ac_cv_lib_posix_remove=no
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext \
20395     conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20397 fi
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20399 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20400 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20401   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20402 fi
20403
20404     fi
20405
20406     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20407     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20408 if test "x$ac_cv_func_shmat" = x""yes; then :
20409
20410 fi
20411
20412     if test $ac_cv_func_shmat = no; then
20413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20414 $as_echo_n "checking for shmat in -lipc... " >&6; }
20415 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20416   $as_echo_n "(cached) " >&6
20417 else
20418   ac_check_lib_save_LIBS=$LIBS
20419 LIBS="-lipc  $LIBS"
20420 if test x$gcc_no_link = xyes; then
20421   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20422 fi
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h.  */
20425
20426 /* Override any GCC internal prototype to avoid an error.
20427    Use char because int might match the return type of a GCC
20428    builtin and then its argument prototype would still apply.  */
20429 #ifdef __cplusplus
20430 extern "C"
20431 #endif
20432 char shmat ();
20433 int
20434 main ()
20435 {
20436 return shmat ();
20437   ;
20438   return 0;
20439 }
20440 _ACEOF
20441 if ac_fn_c_try_link "$LINENO"; then :
20442   ac_cv_lib_ipc_shmat=yes
20443 else
20444   ac_cv_lib_ipc_shmat=no
20445 fi
20446 rm -f core conftest.err conftest.$ac_objext \
20447     conftest$ac_exeext conftest.$ac_ext
20448 LIBS=$ac_check_lib_save_LIBS
20449 fi
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20451 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20452 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20453   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20454 fi
20455
20456     fi
20457   fi
20458
20459   # Check for libraries that X11R6 Xt/Xaw programs need.
20460   ac_save_LDFLAGS=$LDFLAGS
20461   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20462   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20463   # check for ICE first), but we must link in the order -lSM -lICE or
20464   # we get undefined symbols.  So assume we have SM if we have ICE.
20465   # These have to be linked with before -lX11, unlike the other
20466   # libraries we check for below, so use a different variable.
20467   # John Interrante, Karl Berry
20468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20469 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20470 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20471   $as_echo_n "(cached) " >&6
20472 else
20473   ac_check_lib_save_LIBS=$LIBS
20474 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20475 if test x$gcc_no_link = xyes; then
20476   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20477 fi
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h.  */
20480
20481 /* Override any GCC internal prototype to avoid an error.
20482    Use char because int might match the return type of a GCC
20483    builtin and then its argument prototype would still apply.  */
20484 #ifdef __cplusplus
20485 extern "C"
20486 #endif
20487 char IceConnectionNumber ();
20488 int
20489 main ()
20490 {
20491 return IceConnectionNumber ();
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_link "$LINENO"; then :
20497   ac_cv_lib_ICE_IceConnectionNumber=yes
20498 else
20499   ac_cv_lib_ICE_IceConnectionNumber=no
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext \
20502     conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20504 fi
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20506 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20507 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20508   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20509 fi
20510
20511   LDFLAGS=$ac_save_LDFLAGS
20512
20513 fi
20514
20515
20516 # FIXME: this should be _libs on some hosts.
20517 libsubdir=.libs
20518
20519 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20520
20521 LIBSTDCXXSPEC=
20522 # extra LD Flags which are required for targets
20523 case "${host}" in
20524 *-*-darwin[0-7].*)
20525     # For now we have to disable it on darwin[8-9] because it slows down
20526     # the linking phase. A possible bug in ld?
20527     # on Darwin -single_module speeds up loading of the dynamic libraries.
20528     extra_ldflags_libjava=-Wl,-single_module
20529     ;;
20530 arm*linux*eabi)
20531     # Some of the ARM unwinder code is actually in libstdc++.  We
20532     # could in principle replicate it in libgcj, but it's better to
20533     # have a dependency on libstdc++.
20534     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20535     LIBSTDCXXSPEC=-lstdc++
20536     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20537     ;;
20538 *-*-cygwin)
20539     extra_ldflags_libjava=-liconv
20540     ;;
20541 esac
20542
20543 LIBMATHSPEC=
20544 # extra LD Flags which are required for targets
20545 case "${host}" in
20546 *-*-darwin*)
20547      ;;
20548 *)
20549      LIBMATHSPEC=-lm
20550      ;;
20551 esac
20552
20553 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20555 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20556 if test "${libgcj_cv_exidx+set}" = set; then :
20557   $as_echo_n "(cached) " >&6
20558 else
20559   saved_ldflags="$LDFLAGS"
20560    LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20561    # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20562    # warns about unknown options, which breaks the testsuite.  So enable
20563    # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20564    # it off again.  As a workaround, save and restore werror flag like
20565    # AC_PATH_XTRA.
20566    ac_xsave_c_werror_flag=$ac_c_werror_flag
20567
20568 ac_c_werror_flag=yes
20569    if test x$gcc_no_link = xyes; then
20570   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20571 fi
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h.  */
20574 int main(void){ return 0;}
20575 _ACEOF
20576 if ac_fn_c_try_link "$LINENO"; then :
20577   eval "libgcj_cv_exidx=yes"
20578 else
20579   eval "libgcj_cv_exidx=no"
20580 fi
20581 rm -f core conftest.err conftest.$ac_objext \
20582     conftest$ac_exeext conftest.$ac_ext
20583    ac_c_werror_flag=$ac_xsave_c_werror_flag
20584    LDFLAGS="${saved_ldflags}"
20585
20586 fi
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20588 $as_echo "$libgcj_cv_exidx" >&6; }
20589 if test "${libgcj_cv_exidx}" = "yes"; then
20590   SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20591   extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20592 fi
20593
20594
20595
20596
20597
20598
20599
20600
20601 # Allow the GC to be disabled.  Can be useful when debugging.
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20603 $as_echo_n "checking for garbage collector to use... " >&6; }
20604 # Check whether --enable-java-gc was given.
20605 if test "${enable_java_gc+set}" = set; then :
20606   enableval=$enable_java_gc; GC=$enableval
20607 else
20608   GC=boehm
20609 fi
20610
20611 GCLIBS=
20612 GCINCS=
20613 GCDEPS=
20614 GCSPEC=
20615 JC1GCSPEC=
20616 GCTESTSPEC=
20617 case "$GC" in
20618  boehm)
20619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20620 $as_echo "boehm" >&6; }
20621     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20622     JC1GCSPEC='-fuse-boehm-gc'
20623     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20624     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20625     GCOBJS=boehm.lo
20626     GCHDR=boehm-gc.h
20627     # The POSIX thread support needs to know this.
20628
20629 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20630
20631     ;;
20632  no)
20633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20634 $as_echo "none" >&6; }
20635     GCHDR=no-gc.h
20636     ;;
20637  *)
20638     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20639     ;;
20640 esac
20641
20642
20643
20644
20645
20646
20647 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20648
20649  if test "$GC" = boehm; then
20650   USING_BOEHMGC_TRUE=
20651   USING_BOEHMGC_FALSE='#'
20652 else
20653   USING_BOEHMGC_TRUE='#'
20654   USING_BOEHMGC_FALSE=
20655 fi
20656
20657  if test "$GC" = no; then
20658   USING_NOGC_TRUE=
20659   USING_NOGC_FALSE='#'
20660 else
20661   USING_NOGC_TRUE='#'
20662   USING_NOGC_FALSE=
20663 fi
20664
20665
20666
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20668 $as_echo_n "checking for thread model used by GCC... " >&6; }
20669 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20671 $as_echo "$THREADS" >&6; }
20672
20673 case "$THREADS" in
20674  no | none | single)
20675     THREADS=none
20676     ;;
20677  aix | posix | posix95 | pthreads)
20678     THREADS=posix
20679     case "$host" in
20680      *-*-linux*)
20681
20682 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20683
20684         ;;
20685     esac
20686     ;;
20687  win32)
20688     ;;
20689  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20690     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20691     ;;
20692  *)
20693     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20694     ;;
20695 esac
20696
20697 THREADCXXFLAGS=
20698 THREADLDFLAGS=
20699 THREADLIBS=
20700 THREADINCS=
20701 THREADDEPS=
20702 THREADH=
20703 THREADSPEC=
20704 THREADSTARTFILESPEC=
20705 case "$THREADS" in
20706  posix)
20707     case "$host" in
20708      *-*-cygwin*)
20709         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20710         ;;
20711      *-*-freebsd[1234]*)
20712         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20713         # merely adds pthread_* functions) but it does have a -pthread switch
20714         # which is required at link-time to select -lc_r *instead* of -lc.
20715         THREADLDFLAGS=-pthread
20716         # Don't set THREADSPEC here as might be expected since -pthread is
20717         # not processed when found within a spec file, it must come from
20718         # the command line.  For now, the user must provide the -pthread
20719         # switch to link code compiled with gcj.  In future, consider adding
20720         # support for weak references to pthread_* functions ala gthr.h API.
20721         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20722         ;;
20723      *-*-freebsd*)
20724         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20725         # systems which support threads and -lpthread.
20726         THREADLDFLAGS=-pthread
20727         THREADSPEC=-lpthread
20728         ;;
20729      alpha*-dec-osf* | hppa*-hp-hpux*)
20730         THREADCXXFLAGS=-pthread
20731         # boehm-gc needs some functions from librt, so link that too.
20732         THREADLIBS='-lpthread -lrt'
20733         THREADSPEC='-lpthread -lrt'
20734         ;;
20735      *-*-solaris2.8)
20736         # Always use alternate thread library on Solaris 8.  Need libthread
20737         # for TLS support.
20738         # Need -Wl,-R to get it through libtool ...
20739         THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20740         # ... while ld only accepts -R.
20741         THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20742         ;;
20743      *-*-solaris2.9)
20744         # As on Solaris 8, need libthread for TLS support.
20745         THREADLIBS='-lpthread -lthread'
20746         THREADSPEC='-lpthread -lthread'
20747         ;;
20748      *-*-darwin*)
20749         # Don't set THREADLIBS or THREADSPEC as Darwin already
20750         # provides pthread via libSystem.
20751         ;;
20752      *)
20753         THREADLIBS=-lpthread
20754         THREADSPEC=-lpthread
20755         ;;
20756     esac
20757     THREADH=posix-threads.h
20758     # MIT pthreads doesn't seem to have the mutexattr functions.
20759     # But for now we don't check for it.  We just assume you aren't
20760     # using MIT pthreads.
20761
20762 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20763
20764
20765     # If we're using the Boehm GC, then we happen to know that it
20766     # defines _REENTRANT, so we don't bother.  Eww.
20767     if test "$GC" != boehm; then
20768
20769 $as_echo "#define _REENTRANT 1" >>confdefs.h
20770
20771     fi
20772
20773 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20774
20775     ;;
20776
20777  win32)
20778     THREADH=win32-threads.h
20779     THREADCXXFLAGS=-mthreads
20780     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20781     # But we do not want the executables created to be dependent on
20782     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20783     # exception handling contexts.  The following kludge achieves this effect
20784     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20785     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20786     # A workaround is to explicitly use -mthreads while linking Java programs.
20787     # See PR libgcj/28263.
20788     #
20789     # FIXME: In Java we are able to detect thread death at the end of
20790     # Thread.run() so we should be able to clean up the exception handling
20791     # contexts ourselves.
20792     THREADSTARTFILESPEC='crtmt%O%s'
20793     ;;
20794
20795  none)
20796     THREADH=no-threads.h
20797     ;;
20798 esac
20799 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20800
20801
20802
20803
20804
20805
20806
20807
20808  if test "$THREADS" = posix; then
20809   USING_POSIX_THREADS_TRUE=
20810   USING_POSIX_THREADS_FALSE='#'
20811 else
20812   USING_POSIX_THREADS_TRUE='#'
20813   USING_POSIX_THREADS_FALSE=
20814 fi
20815
20816  if test "$THREADS" = win32; then
20817   USING_WIN32_THREADS_TRUE=
20818   USING_WIN32_THREADS_FALSE='#'
20819 else
20820   USING_WIN32_THREADS_TRUE='#'
20821   USING_WIN32_THREADS_FALSE=
20822 fi
20823
20824  if test "$THREADS" = none; then
20825   USING_NO_THREADS_TRUE=
20826   USING_NO_THREADS_FALSE='#'
20827 else
20828   USING_NO_THREADS_TRUE='#'
20829   USING_NO_THREADS_FALSE=
20830 fi
20831
20832 if test "$enable_shared" != yes; then
20833   use_libgcj_bc=no
20834 fi
20835  if test "$use_libgcj_bc" = yes; then
20836   USE_LIBGCJ_BC_TRUE=
20837   USE_LIBGCJ_BC_FALSE='#'
20838 else
20839   USE_LIBGCJ_BC_TRUE='#'
20840   USE_LIBGCJ_BC_FALSE=
20841 fi
20842
20843
20844 if test -d sysdep; then true; else mkdir sysdep; fi
20845 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20846
20847 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20848
20849 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20850
20851
20852 LIBGCJ_SPEC_LGCJ=-lgcj
20853 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20854 if test x"$libgcj_spec_lgcj_override" != x ; then
20855   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20856 fi
20857 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20858   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20859 fi
20860 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20861 if test "$use_libgcj_bc" = yes; then
20862   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20863   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20864 fi
20865
20866
20867
20868 HASH_SYNC_SPEC=
20869 # Hash synchronization is only useful with posix threads right now.
20870 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20871    HASH_SYNC_SPEC=-fhash-synchronization
20872
20873 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20874
20875 fi
20876
20877
20878  if test "$GCC" = yes; then
20879   USING_GCC_TRUE=
20880   USING_GCC_FALSE='#'
20881 else
20882   USING_GCC_TRUE='#'
20883   USING_GCC_FALSE=
20884 fi
20885
20886
20887 # We're in the tree with gcc, and need to include some of its headers.
20888 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20889
20890 if test "x${with_newlib}" = "xyes"; then
20891    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20892    # may not work correctly, because the compiler may not be able to
20893    # link executables.
20894
20895    # We assume newlib.  This lets us hard-code the functions we know
20896    # we'll have.
20897
20898 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20899
20900
20901 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20902
20903
20904 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20905
20906
20907 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20908
20909
20910 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20911
20912
20913 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20914
20915    # This is only for POSIX threads.
20916
20917 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20918
20919
20920    # Assume we do not have getuid and friends.
20921
20922 $as_echo "#define NO_GETUID 1" >>confdefs.h
20923
20924    PLATFORMNET=NoNet
20925 else
20926    for ac_func in strerror_r select fstat open fsync sleep opendir \
20927                    localtime_r getpwuid_r getcwd \
20928                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20929                    nl_langinfo setlocale \
20930                    inet_pton uname inet_ntoa \
20931                    getrlimit sigaction ftruncate mmap \
20932                    getifaddrs
20933 do :
20934   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20936 eval as_val=\$$as_ac_var
20937    if test "x$as_val" = x""yes; then :
20938   cat >>confdefs.h <<_ACEOF
20939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20940 _ACEOF
20941
20942 fi
20943 done
20944
20945    for ac_func in inet_aton inet_addr
20946 do :
20947   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20948 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20949 eval as_val=\$$as_ac_var
20950    if test "x$as_val" = x""yes; then :
20951   cat >>confdefs.h <<_ACEOF
20952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20953 _ACEOF
20954  break
20955 fi
20956 done
20957
20958    for ac_header in unistd.h dlfcn.h sys/resource.h
20959 do :
20960   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20962 eval as_val=\$$as_ac_Header
20963    if test "x$as_val" = x""yes; then :
20964   cat >>confdefs.h <<_ACEOF
20965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20966 _ACEOF
20967
20968 fi
20969
20970 done
20971
20972    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20974 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20975 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20976   $as_echo_n "(cached) " >&6
20977 else
20978   ac_check_lib_save_LIBS=$LIBS
20979 LIBS="-ldl  $LIBS"
20980 if test x$gcc_no_link = xyes; then
20981   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20982 fi
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h.  */
20985
20986 /* Override any GCC internal prototype to avoid an error.
20987    Use char because int might match the return type of a GCC
20988    builtin and then its argument prototype would still apply.  */
20989 #ifdef __cplusplus
20990 extern "C"
20991 #endif
20992 char dladdr ();
20993 int
20994 main ()
20995 {
20996 return dladdr ();
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 if ac_fn_c_try_link "$LINENO"; then :
21002   ac_cv_lib_dl_dladdr=yes
21003 else
21004   ac_cv_lib_dl_dladdr=no
21005 fi
21006 rm -f core conftest.err conftest.$ac_objext \
21007     conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21009 fi
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21011 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21012 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21013
21014
21015 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21016
21017 else
21018
21019        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21020 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21021 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21022   $as_echo_n "(cached) " >&6
21023 else
21024   ac_check_lib_save_LIBS=$LIBS
21025 LIBS="-ldld  $LIBS"
21026 if test x$gcc_no_link = xyes; then
21027   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21028 fi
21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h.  */
21031
21032 /* Override any GCC internal prototype to avoid an error.
21033    Use char because int might match the return type of a GCC
21034    builtin and then its argument prototype would still apply.  */
21035 #ifdef __cplusplus
21036 extern "C"
21037 #endif
21038 char dladdr ();
21039 int
21040 main ()
21041 {
21042 return dladdr ();
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 if ac_fn_c_try_link "$LINENO"; then :
21048   ac_cv_lib_dld_dladdr=yes
21049 else
21050   ac_cv_lib_dld_dladdr=no
21051 fi
21052 rm -f core conftest.err conftest.$ac_objext \
21053     conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21055 fi
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21057 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21058 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21059
21060
21061 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21062
21063 fi
21064
21065 fi
21066
21067
21068    if test x"$cross_compiling" = x"no"; then
21069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21070 $as_echo_n "checking for /proc/self/exe... " >&6; }
21071 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21072   $as_echo_n "(cached) " >&6
21073 else
21074   test "$cross_compiling" = yes &&
21075   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21076 if test -r "/proc/self/exe"; then
21077   ac_cv_file__proc_self_exe=yes
21078 else
21079   ac_cv_file__proc_self_exe=no
21080 fi
21081 fi
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21083 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21084 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21085
21086 cat >>confdefs.h <<_ACEOF
21087 #define HAVE__PROC_SELF_EXE 1
21088 _ACEOF
21089
21090
21091 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21092
21093 fi
21094
21095      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21096 $as_echo_n "checking for /proc/self/maps... " >&6; }
21097 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21098   $as_echo_n "(cached) " >&6
21099 else
21100   test "$cross_compiling" = yes &&
21101   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21102 if test -r "/proc/self/maps"; then
21103   ac_cv_file__proc_self_maps=yes
21104 else
21105   ac_cv_file__proc_self_maps=no
21106 fi
21107 fi
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21109 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21110 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21111
21112 cat >>confdefs.h <<_ACEOF
21113 #define HAVE__PROC_SELF_MAPS 1
21114 _ACEOF
21115
21116
21117 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21118
21119 fi
21120
21121    else
21122      case $host in
21123      *-linux*)
21124
21125 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21126
21127
21128 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21129
21130        ;;
21131      esac
21132    fi
21133
21134
21135       if test "X$prefix" = "XNONE"; then
21136     acl_final_prefix="$ac_default_prefix"
21137   else
21138     acl_final_prefix="$prefix"
21139   fi
21140   if test "X$exec_prefix" = "XNONE"; then
21141     acl_final_exec_prefix='${prefix}'
21142   else
21143     acl_final_exec_prefix="$exec_prefix"
21144   fi
21145   acl_save_prefix="$prefix"
21146   prefix="$acl_final_prefix"
21147   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21148   prefix="$acl_save_prefix"
21149
21150
21151 # Check whether --with-gnu-ld was given.
21152 if test "${with_gnu_ld+set}" = set; then :
21153   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21154 else
21155   with_gnu_ld=no
21156 fi
21157
21158 # Prepare PATH_SEPARATOR.
21159 # The user is always right.
21160 if test "${PATH_SEPARATOR+set}" != set; then
21161   echo "#! /bin/sh" >conf$$.sh
21162   echo  "exit 0"   >>conf$$.sh
21163   chmod +x conf$$.sh
21164   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21165     PATH_SEPARATOR=';'
21166   else
21167     PATH_SEPARATOR=:
21168   fi
21169   rm -f conf$$.sh
21170 fi
21171 ac_prog=ld
21172 if test "$GCC" = yes; then
21173   # Check if gcc -print-prog-name=ld gives a path.
21174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21175 $as_echo_n "checking for ld used by GCC... " >&6; }
21176   case $host in
21177   *-*-mingw*)
21178     # gcc leaves a trailing carriage return which upsets mingw
21179     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21180   *)
21181     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21182   esac
21183   case $ac_prog in
21184     # Accept absolute paths.
21185     [\\/]* | [A-Za-z]:[\\/]*)
21186       re_direlt='/[^/][^/]*/\.\./'
21187       # Canonicalize the path of ld
21188       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21189       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21190         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21191       done
21192       test -z "$LD" && LD="$ac_prog"
21193       ;;
21194   "")
21195     # If it fails, then pretend we aren't using GCC.
21196     ac_prog=ld
21197     ;;
21198   *)
21199     # If it is relative, then search for the first ld in PATH.
21200     with_gnu_ld=unknown
21201     ;;
21202   esac
21203 elif test "$with_gnu_ld" = yes; then
21204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21205 $as_echo_n "checking for GNU ld... " >&6; }
21206 else
21207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21208 $as_echo_n "checking for non-GNU ld... " >&6; }
21209 fi
21210 if test "${acl_cv_path_LD+set}" = set; then :
21211   $as_echo_n "(cached) " >&6
21212 else
21213   if test -z "$LD"; then
21214   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21215   for ac_dir in $PATH; do
21216     test -z "$ac_dir" && ac_dir=.
21217     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21218       acl_cv_path_LD="$ac_dir/$ac_prog"
21219       # Check to see if the program is GNU ld.  I'd rather use --version,
21220       # but apparently some GNU ld's only accept -v.
21221       # Break only if it was the GNU/non-GNU ld that we prefer.
21222       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21223         test "$with_gnu_ld" != no && break
21224       else
21225         test "$with_gnu_ld" != yes && break
21226       fi
21227     fi
21228   done
21229   IFS="$ac_save_ifs"
21230 else
21231   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21232 fi
21233 fi
21234
21235 LD="$acl_cv_path_LD"
21236 if test -n "$LD"; then
21237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21238 $as_echo "$LD" >&6; }
21239 else
21240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21241 $as_echo "no" >&6; }
21242 fi
21243 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21246 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21247   $as_echo_n "(cached) " >&6
21248 else
21249   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21250 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21251   acl_cv_prog_gnu_ld=yes
21252 else
21253   acl_cv_prog_gnu_ld=no
21254 fi
21255 fi
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21257 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21258 with_gnu_ld=$acl_cv_prog_gnu_ld
21259
21260
21261
21262                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21263 $as_echo_n "checking for shared library run path origin... " >&6; }
21264 if test "${acl_cv_rpath+set}" = set; then :
21265   $as_echo_n "(cached) " >&6
21266 else
21267
21268     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21269     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21270     . ./conftest.sh
21271     rm -f ./conftest.sh
21272     acl_cv_rpath=done
21273
21274 fi
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21276 $as_echo "$acl_cv_rpath" >&6; }
21277   wl="$acl_cv_wl"
21278   libext="$acl_cv_libext"
21279   shlibext="$acl_cv_shlibext"
21280   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21281   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21282   hardcode_direct="$acl_cv_hardcode_direct"
21283   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21284     # Check whether --enable-rpath was given.
21285 if test "${enable_rpath+set}" = set; then :
21286   enableval=$enable_rpath; :
21287 else
21288   enable_rpath=yes
21289 fi
21290
21291
21292
21293
21294
21295
21296
21297
21298     use_additional=yes
21299
21300   acl_save_prefix="$prefix"
21301   prefix="$acl_final_prefix"
21302   acl_save_exec_prefix="$exec_prefix"
21303   exec_prefix="$acl_final_exec_prefix"
21304
21305     eval additional_includedir=\"$includedir\"
21306     eval additional_libdir=\"$libdir\"
21307
21308   exec_prefix="$acl_save_exec_prefix"
21309   prefix="$acl_save_prefix"
21310
21311
21312 # Check whether --with-libiconv-prefix was given.
21313 if test "${with_libiconv_prefix+set}" = set; then :
21314   withval=$with_libiconv_prefix;
21315     if test "X$withval" = "Xno"; then
21316       use_additional=no
21317     else
21318       if test "X$withval" = "X"; then
21319
21320   acl_save_prefix="$prefix"
21321   prefix="$acl_final_prefix"
21322   acl_save_exec_prefix="$exec_prefix"
21323   exec_prefix="$acl_final_exec_prefix"
21324
21325           eval additional_includedir=\"$includedir\"
21326           eval additional_libdir=\"$libdir\"
21327
21328   exec_prefix="$acl_save_exec_prefix"
21329   prefix="$acl_save_prefix"
21330
21331       else
21332         additional_includedir="$withval/include"
21333         additional_libdir="$withval/lib"
21334       fi
21335     fi
21336
21337 fi
21338
21339       LIBICONV=
21340   LTLIBICONV=
21341   INCICONV=
21342   rpathdirs=
21343   ltrpathdirs=
21344   names_already_handled=
21345   names_next_round='iconv '
21346   while test -n "$names_next_round"; do
21347     names_this_round="$names_next_round"
21348     names_next_round=
21349     for name in $names_this_round; do
21350       already_handled=
21351       for n in $names_already_handled; do
21352         if test "$n" = "$name"; then
21353           already_handled=yes
21354           break
21355         fi
21356       done
21357       if test -z "$already_handled"; then
21358         names_already_handled="$names_already_handled $name"
21359                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21360         eval value=\"\$HAVE_LIB$uppername\"
21361         if test -n "$value"; then
21362           if test "$value" = yes; then
21363             eval value=\"\$LIB$uppername\"
21364             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21365             eval value=\"\$LTLIB$uppername\"
21366             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21367           else
21368                                     :
21369           fi
21370         else
21371                               found_dir=
21372           found_la=
21373           found_so=
21374           found_a=
21375           if test $use_additional = yes; then
21376             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21377               found_dir="$additional_libdir"
21378               found_so="$additional_libdir/lib$name.$shlibext"
21379               if test -f "$additional_libdir/lib$name.la"; then
21380                 found_la="$additional_libdir/lib$name.la"
21381               fi
21382             else
21383               if test -f "$additional_libdir/lib$name.$libext"; then
21384                 found_dir="$additional_libdir"
21385                 found_a="$additional_libdir/lib$name.$libext"
21386                 if test -f "$additional_libdir/lib$name.la"; then
21387                   found_la="$additional_libdir/lib$name.la"
21388                 fi
21389               fi
21390             fi
21391           fi
21392           if test "X$found_dir" = "X"; then
21393             for x in $LDFLAGS $LTLIBICONV; do
21394
21395   acl_save_prefix="$prefix"
21396   prefix="$acl_final_prefix"
21397   acl_save_exec_prefix="$exec_prefix"
21398   exec_prefix="$acl_final_exec_prefix"
21399   eval x=\"$x\"
21400   exec_prefix="$acl_save_exec_prefix"
21401   prefix="$acl_save_prefix"
21402
21403               case "$x" in
21404                 -L*)
21405                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21406                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21407                     found_dir="$dir"
21408                     found_so="$dir/lib$name.$shlibext"
21409                     if test -f "$dir/lib$name.la"; then
21410                       found_la="$dir/lib$name.la"
21411                     fi
21412                   else
21413                     if test -f "$dir/lib$name.$libext"; then
21414                       found_dir="$dir"
21415                       found_a="$dir/lib$name.$libext"
21416                       if test -f "$dir/lib$name.la"; then
21417                         found_la="$dir/lib$name.la"
21418                       fi
21419                     fi
21420                   fi
21421                   ;;
21422               esac
21423               if test "X$found_dir" != "X"; then
21424                 break
21425               fi
21426             done
21427           fi
21428           if test "X$found_dir" != "X"; then
21429                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21430             if test "X$found_so" != "X"; then
21431                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21432                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21433               else
21434                                                                                 haveit=
21435                 for x in $ltrpathdirs; do
21436                   if test "X$x" = "X$found_dir"; then
21437                     haveit=yes
21438                     break
21439                   fi
21440                 done
21441                 if test -z "$haveit"; then
21442                   ltrpathdirs="$ltrpathdirs $found_dir"
21443                 fi
21444                                 if test "$hardcode_direct" = yes; then
21445                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21446                 else
21447                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21448                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21449                                                             haveit=
21450                     for x in $rpathdirs; do
21451                       if test "X$x" = "X$found_dir"; then
21452                         haveit=yes
21453                         break
21454                       fi
21455                     done
21456                     if test -z "$haveit"; then
21457                       rpathdirs="$rpathdirs $found_dir"
21458                     fi
21459                   else
21460                                                                                 haveit=
21461                     for x in $LDFLAGS $LIBICONV; do
21462
21463   acl_save_prefix="$prefix"
21464   prefix="$acl_final_prefix"
21465   acl_save_exec_prefix="$exec_prefix"
21466   exec_prefix="$acl_final_exec_prefix"
21467   eval x=\"$x\"
21468   exec_prefix="$acl_save_exec_prefix"
21469   prefix="$acl_save_prefix"
21470
21471                       if test "X$x" = "X-L$found_dir"; then
21472                         haveit=yes
21473                         break
21474                       fi
21475                     done
21476                     if test -z "$haveit"; then
21477                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21478                     fi
21479                     if test "$hardcode_minus_L" != no; then
21480                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21481                     else
21482                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21483                     fi
21484                   fi
21485                 fi
21486               fi
21487             else
21488               if test "X$found_a" != "X"; then
21489                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21490               else
21491                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21492               fi
21493             fi
21494                         additional_includedir=
21495             case "$found_dir" in
21496               */lib | */lib/)
21497                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21498                 additional_includedir="$basedir/include"
21499                 ;;
21500             esac
21501             if test "X$additional_includedir" != "X"; then
21502                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21503                 haveit=
21504                 if test "X$additional_includedir" = "X/usr/local/include"; then
21505                   if test -n "$GCC"; then
21506                     case $host_os in
21507                       linux*) haveit=yes;;
21508                     esac
21509                   fi
21510                 fi
21511                 if test -z "$haveit"; then
21512                   for x in $CPPFLAGS $INCICONV; do
21513
21514   acl_save_prefix="$prefix"
21515   prefix="$acl_final_prefix"
21516   acl_save_exec_prefix="$exec_prefix"
21517   exec_prefix="$acl_final_exec_prefix"
21518   eval x=\"$x\"
21519   exec_prefix="$acl_save_exec_prefix"
21520   prefix="$acl_save_prefix"
21521
21522                     if test "X$x" = "X-I$additional_includedir"; then
21523                       haveit=yes
21524                       break
21525                     fi
21526                   done
21527                   if test -z "$haveit"; then
21528                     if test -d "$additional_includedir"; then
21529                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21530                     fi
21531                   fi
21532                 fi
21533               fi
21534             fi
21535                         if test -n "$found_la"; then
21536                                                         save_libdir="$libdir"
21537               case "$found_la" in
21538                 */* | *\\*) . "$found_la" ;;
21539                 *) . "./$found_la" ;;
21540               esac
21541               libdir="$save_libdir"
21542                             for dep in $dependency_libs; do
21543                 case "$dep" in
21544                   -L*)
21545                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21546                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21547                       haveit=
21548                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21549                         if test -n "$GCC"; then
21550                           case $host_os in
21551                             linux*) haveit=yes;;
21552                           esac
21553                         fi
21554                       fi
21555                       if test -z "$haveit"; then
21556                         haveit=
21557                         for x in $LDFLAGS $LIBICONV; do
21558
21559   acl_save_prefix="$prefix"
21560   prefix="$acl_final_prefix"
21561   acl_save_exec_prefix="$exec_prefix"
21562   exec_prefix="$acl_final_exec_prefix"
21563   eval x=\"$x\"
21564   exec_prefix="$acl_save_exec_prefix"
21565   prefix="$acl_save_prefix"
21566
21567                           if test "X$x" = "X-L$additional_libdir"; then
21568                             haveit=yes
21569                             break
21570                           fi
21571                         done
21572                         if test -z "$haveit"; then
21573                           if test -d "$additional_libdir"; then
21574                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21575                           fi
21576                         fi
21577                         haveit=
21578                         for x in $LDFLAGS $LTLIBICONV; do
21579
21580   acl_save_prefix="$prefix"
21581   prefix="$acl_final_prefix"
21582   acl_save_exec_prefix="$exec_prefix"
21583   exec_prefix="$acl_final_exec_prefix"
21584   eval x=\"$x\"
21585   exec_prefix="$acl_save_exec_prefix"
21586   prefix="$acl_save_prefix"
21587
21588                           if test "X$x" = "X-L$additional_libdir"; then
21589                             haveit=yes
21590                             break
21591                           fi
21592                         done
21593                         if test -z "$haveit"; then
21594                           if test -d "$additional_libdir"; then
21595                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21596                           fi
21597                         fi
21598                       fi
21599                     fi
21600                     ;;
21601                   -R*)
21602                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21603                     if test "$enable_rpath" != no; then
21604                                                                   haveit=
21605                       for x in $rpathdirs; do
21606                         if test "X$x" = "X$dir"; then
21607                           haveit=yes
21608                           break
21609                         fi
21610                       done
21611                       if test -z "$haveit"; then
21612                         rpathdirs="$rpathdirs $dir"
21613                       fi
21614                                                                   haveit=
21615                       for x in $ltrpathdirs; do
21616                         if test "X$x" = "X$dir"; then
21617                           haveit=yes
21618                           break
21619                         fi
21620                       done
21621                       if test -z "$haveit"; then
21622                         ltrpathdirs="$ltrpathdirs $dir"
21623                       fi
21624                     fi
21625                     ;;
21626                   -l*)
21627                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21628                     ;;
21629                   *.la)
21630                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21631                     ;;
21632                   *)
21633                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21634                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21635                     ;;
21636                 esac
21637               done
21638             fi
21639           else
21640                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21641             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21642           fi
21643         fi
21644       fi
21645     done
21646   done
21647   if test "X$rpathdirs" != "X"; then
21648     if test -n "$hardcode_libdir_separator"; then
21649                         alldirs=
21650       for found_dir in $rpathdirs; do
21651         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21652       done
21653             acl_save_libdir="$libdir"
21654       libdir="$alldirs"
21655       eval flag=\"$hardcode_libdir_flag_spec\"
21656       libdir="$acl_save_libdir"
21657       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21658     else
21659             for found_dir in $rpathdirs; do
21660         acl_save_libdir="$libdir"
21661         libdir="$found_dir"
21662         eval flag=\"$hardcode_libdir_flag_spec\"
21663         libdir="$acl_save_libdir"
21664         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21665       done
21666     fi
21667   fi
21668   if test "X$ltrpathdirs" != "X"; then
21669             for found_dir in $ltrpathdirs; do
21670       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21671     done
21672   fi
21673
21674
21675
21676
21677
21678
21679
21680           am_save_CPPFLAGS="$CPPFLAGS"
21681
21682   for element in $INCICONV; do
21683     haveit=
21684     for x in $CPPFLAGS; do
21685
21686   acl_save_prefix="$prefix"
21687   prefix="$acl_final_prefix"
21688   acl_save_exec_prefix="$exec_prefix"
21689   exec_prefix="$acl_final_exec_prefix"
21690   eval x=\"$x\"
21691   exec_prefix="$acl_save_exec_prefix"
21692   prefix="$acl_save_prefix"
21693
21694       if test "X$x" = "X$element"; then
21695         haveit=yes
21696         break
21697       fi
21698     done
21699     if test -z "$haveit"; then
21700       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21701     fi
21702   done
21703
21704
21705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21706 $as_echo_n "checking for iconv... " >&6; }
21707 if test "${am_cv_func_iconv+set}" = set; then :
21708   $as_echo_n "(cached) " >&6
21709 else
21710
21711     am_cv_func_iconv="no, consider installing GNU libiconv"
21712     am_cv_lib_iconv=no
21713     if test x$gcc_no_link = xyes; then
21714   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21715 fi
21716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717 /* end confdefs.h.  */
21718 #include <stdlib.h>
21719 #include <iconv.h>
21720 int
21721 main ()
21722 {
21723 iconv_t cd = iconv_open("","");
21724        iconv(cd,NULL,NULL,NULL,NULL);
21725        iconv_close(cd);
21726   ;
21727   return 0;
21728 }
21729 _ACEOF
21730 if ac_fn_c_try_link "$LINENO"; then :
21731   am_cv_func_iconv=yes
21732 fi
21733 rm -f core conftest.err conftest.$ac_objext \
21734     conftest$ac_exeext conftest.$ac_ext
21735     if test "$am_cv_func_iconv" != yes; then
21736       am_save_LIBS="$LIBS"
21737       LIBS="$LIBS $LIBICONV"
21738       if test x$gcc_no_link = xyes; then
21739   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21740 fi
21741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h.  */
21743 #include <stdlib.h>
21744 #include <iconv.h>
21745 int
21746 main ()
21747 {
21748 iconv_t cd = iconv_open("","");
21749          iconv(cd,NULL,NULL,NULL,NULL);
21750          iconv_close(cd);
21751   ;
21752   return 0;
21753 }
21754 _ACEOF
21755 if ac_fn_c_try_link "$LINENO"; then :
21756   am_cv_lib_iconv=yes
21757         am_cv_func_iconv=yes
21758 fi
21759 rm -f core conftest.err conftest.$ac_objext \
21760     conftest$ac_exeext conftest.$ac_ext
21761       LIBS="$am_save_LIBS"
21762     fi
21763
21764 fi
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21766 $as_echo "$am_cv_func_iconv" >&6; }
21767   if test "$am_cv_func_iconv" = yes; then
21768
21769 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21770
21771   fi
21772   if test "$am_cv_lib_iconv" = yes; then
21773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21774 $as_echo_n "checking how to link with libiconv... " >&6; }
21775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21776 $as_echo "$LIBICONV" >&6; }
21777   else
21778             CPPFLAGS="$am_save_CPPFLAGS"
21779     LIBICONV=
21780     LTLIBICONV=
21781   fi
21782
21783
21784
21785   if test "$am_cv_func_iconv" = yes; then
21786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21787 $as_echo_n "checking for iconv declaration... " >&6; }
21788     if test "${am_cv_proto_iconv+set}" = set; then :
21789   $as_echo_n "(cached) " >&6
21790 else
21791
21792       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h.  */
21794
21795 #include <stdlib.h>
21796 #include <iconv.h>
21797 extern
21798 #ifdef __cplusplus
21799 "C"
21800 #endif
21801 #if defined(__STDC__) || defined(__cplusplus)
21802 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21803 #else
21804 size_t iconv();
21805 #endif
21806
21807 int
21808 main ()
21809 {
21810
21811   ;
21812   return 0;
21813 }
21814 _ACEOF
21815 if ac_fn_c_try_compile "$LINENO"; then :
21816   am_cv_proto_iconv_arg1=""
21817 else
21818   am_cv_proto_iconv_arg1="const"
21819 fi
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21822 fi
21823
21824     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21826          }$am_cv_proto_iconv" >&5
21827 $as_echo "${ac_t:-
21828          }$am_cv_proto_iconv" >&6; }
21829
21830 cat >>confdefs.h <<_ACEOF
21831 #define ICONV_CONST $am_cv_proto_iconv_arg1
21832 _ACEOF
21833
21834   fi
21835
21836
21837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21838 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21839 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21840   $as_echo_n "(cached) " >&6
21841 else
21842   if test x$gcc_no_link = xyes; then
21843   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21844 fi
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h.  */
21847 #include <locale.h>
21848 int
21849 main ()
21850 {
21851 return LC_MESSAGES
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 if ac_fn_c_try_link "$LINENO"; then :
21857   am_cv_val_LC_MESSAGES=yes
21858 else
21859   am_cv_val_LC_MESSAGES=no
21860 fi
21861 rm -f core conftest.err conftest.$ac_objext \
21862     conftest$ac_exeext conftest.$ac_ext
21863 fi
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21865 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21866   if test $am_cv_val_LC_MESSAGES = yes; then
21867
21868 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21869
21870   fi
21871
21872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21873 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21874 if test "${ac_cv_struct_tm+set}" = set; then :
21875   $as_echo_n "(cached) " >&6
21876 else
21877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h.  */
21879 #include <sys/types.h>
21880 #include <time.h>
21881
21882 int
21883 main ()
21884 {
21885 struct tm tm;
21886                                      int *p = &tm.tm_sec;
21887                                      return !p;
21888   ;
21889   return 0;
21890 }
21891 _ACEOF
21892 if ac_fn_c_try_compile "$LINENO"; then :
21893   ac_cv_struct_tm=time.h
21894 else
21895   ac_cv_struct_tm=sys/time.h
21896 fi
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 fi
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21900 $as_echo "$ac_cv_struct_tm" >&6; }
21901 if test $ac_cv_struct_tm = sys/time.h; then
21902
21903 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21904
21905 fi
21906
21907 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21908 #include <$ac_cv_struct_tm>
21909
21910 "
21911 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21912
21913 cat >>confdefs.h <<_ACEOF
21914 #define HAVE_STRUCT_TM_TM_ZONE 1
21915 _ACEOF
21916
21917
21918 fi
21919
21920 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21921
21922 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21923
21924 else
21925   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21926 "
21927 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21928   ac_have_decl=1
21929 else
21930   ac_have_decl=0
21931 fi
21932
21933 cat >>confdefs.h <<_ACEOF
21934 #define HAVE_DECL_TZNAME $ac_have_decl
21935 _ACEOF
21936
21937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21938 $as_echo_n "checking for tzname... " >&6; }
21939 if test "${ac_cv_var_tzname+set}" = set; then :
21940   $as_echo_n "(cached) " >&6
21941 else
21942   if test x$gcc_no_link = xyes; then
21943   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21944 fi
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h.  */
21947 #include <time.h>
21948 #if !HAVE_DECL_TZNAME
21949 extern char *tzname[];
21950 #endif
21951
21952 int
21953 main ()
21954 {
21955 return tzname[0][0];
21956   ;
21957   return 0;
21958 }
21959 _ACEOF
21960 if ac_fn_c_try_link "$LINENO"; then :
21961   ac_cv_var_tzname=yes
21962 else
21963   ac_cv_var_tzname=no
21964 fi
21965 rm -f core conftest.err conftest.$ac_objext \
21966     conftest$ac_exeext conftest.$ac_ext
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21969 $as_echo "$ac_cv_var_tzname" >&6; }
21970   if test $ac_cv_var_tzname = yes; then
21971
21972 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21973
21974   fi
21975 fi
21976
21977    LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
21978
21979
21980    for ac_func in gethostbyname_r
21981 do :
21982   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21983 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21984   cat >>confdefs.h <<_ACEOF
21985 #define HAVE_GETHOSTBYNAME_R 1
21986 _ACEOF
21987
21988
21989 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21990
21991      # There are two different kinds of gethostbyname_r.
21992      # We look for the one that returns `int'.
21993      # Hopefully this check is robust enough.
21994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h.  */
21996 #include <netdb.h>
21997
21998 _ACEOF
21999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22000   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22001
22002
22003 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22004
22005 fi
22006 rm -f conftest*
22007
22008
22009      case " $GCINCS " in
22010      *" -D_REENTRANT "*) ;;
22011      *)
22012                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22013 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22014 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22015   $as_echo_n "(cached) " >&6
22016 else
22017    ac_ext=cpp
22018 ac_cpp='$CXXCPP $CPPFLAGS'
22019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22022
22023           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h.  */
22025 #include <netdb.h>
22026 int
22027 main ()
22028 {
22029 gethostbyname_r("", 0, 0);
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 if ac_fn_cxx_try_compile "$LINENO"; then :
22035   libjava_cv_gethostbyname_r_needs_reentrant=no
22036 else
22037                 CPPFLAGS_SAVE="$CPPFLAGS"
22038                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22039                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h.  */
22041 #include <netdb.h>
22042 int
22043 main ()
22044 {
22045 gethostbyname_r("", 0, 0);
22046   ;
22047   return 0;
22048 }
22049 _ACEOF
22050 if ac_fn_cxx_try_compile "$LINENO"; then :
22051   libjava_cv_gethostbyname_r_needs_reentrant=yes
22052 else
22053   libjava_cv_gethostbyname_r_needs_reentrant=fail
22054 fi
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056                 CPPFLAGS="$CPPFLAGS_SAVE"
22057
22058 fi
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060           ac_ext=c
22061 ac_cpp='$CPP $CPPFLAGS'
22062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22065
22066
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22069 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22070         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22071
22072 $as_echo "#define _REENTRANT 1" >>confdefs.h
22073
22074         fi
22075      ;;
22076      esac
22077
22078      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22079 $as_echo_n "checking for struct hostent_data... " >&6; }
22080 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22081   $as_echo_n "(cached) " >&6
22082 else
22083         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h.  */
22085
22086 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22087 # define _REENTRANT 1
22088 #endif
22089 #include <netdb.h>
22090 int
22091 main ()
22092 {
22093 struct hostent_data data;
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 if ac_fn_c_try_compile "$LINENO"; then :
22099   libjava_cv_struct_hostent_data=yes
22100 else
22101   libjava_cv_struct_hostent_data=no
22102 fi
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 fi
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22106 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22107      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22108
22109 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22110
22111      fi
22112
22113 fi
22114 done
22115
22116
22117    # FIXME: libjava source code expects to find a prototype for
22118    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22119    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22120    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22121    # linkage check is enough, yet C++ code requires proper prototypes.)
22122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h.  */
22124 #include <netdb.h>
22125
22126 _ACEOF
22127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22128   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22129
22130    for ac_func in gethostbyaddr_r
22131 do :
22132   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22133 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22134   cat >>confdefs.h <<_ACEOF
22135 #define HAVE_GETHOSTBYADDR_R 1
22136 _ACEOF
22137
22138
22139 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22140
22141      # There are two different kinds of gethostbyaddr_r.
22142      # We look for the one that returns `int'.
22143      # Hopefully this check is robust enough.
22144      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22145 /* end confdefs.h.  */
22146 #include <netdb.h>
22147
22148 _ACEOF
22149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22150   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22151
22152
22153 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22154
22155 fi
22156 rm -f conftest*
22157
22158 fi
22159 done
22160
22161 fi
22162 rm -f conftest*
22163
22164
22165    for ac_func in gethostname
22166 do :
22167   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22168 if test "x$ac_cv_func_gethostname" = x""yes; then :
22169   cat >>confdefs.h <<_ACEOF
22170 #define HAVE_GETHOSTNAME 1
22171 _ACEOF
22172
22173
22174 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22175
22176      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h.  */
22178 #include <unistd.h>
22179
22180 _ACEOF
22181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22182   $EGREP "gethostname" >/dev/null 2>&1; then :
22183
22184
22185 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22186
22187 fi
22188 rm -f conftest*
22189
22190 fi
22191 done
22192
22193
22194    for ac_func in usleep
22195 do :
22196   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22197 if test "x$ac_cv_func_usleep" = x""yes; then :
22198   cat >>confdefs.h <<_ACEOF
22199 #define HAVE_USLEEP 1
22200 _ACEOF
22201
22202      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h.  */
22204 #include <unistd.h>
22205
22206 _ACEOF
22207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22208   $EGREP "usleep" >/dev/null 2>&1; then :
22209
22210
22211 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22212
22213 fi
22214 rm -f conftest*
22215
22216 fi
22217 done
22218
22219
22220    # Look for these functions in the thread library, but only bother
22221    # if using POSIX threads.
22222    if test "$THREADS" = posix; then
22223       save_LIBS="$LIBS"
22224       LIBS="$LIBS $THREADLIBS"
22225
22226       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
22227       # Solaris 7 the name librt is preferred.
22228       for ac_func in sched_yield
22229 do :
22230   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22231 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22232   cat >>confdefs.h <<_ACEOF
22233 #define HAVE_SCHED_YIELD 1
22234 _ACEOF
22235
22236 else
22237
22238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22239 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22240 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22241   $as_echo_n "(cached) " >&6
22242 else
22243   ac_check_lib_save_LIBS=$LIBS
22244 LIBS="-lrt  $LIBS"
22245 if test x$gcc_no_link = xyes; then
22246   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22247 fi
22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h.  */
22250
22251 /* Override any GCC internal prototype to avoid an error.
22252    Use char because int might match the return type of a GCC
22253    builtin and then its argument prototype would still apply.  */
22254 #ifdef __cplusplus
22255 extern "C"
22256 #endif
22257 char sched_yield ();
22258 int
22259 main ()
22260 {
22261 return sched_yield ();
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 if ac_fn_c_try_link "$LINENO"; then :
22267   ac_cv_lib_rt_sched_yield=yes
22268 else
22269   ac_cv_lib_rt_sched_yield=no
22270 fi
22271 rm -f core conftest.err conftest.$ac_objext \
22272     conftest$ac_exeext conftest.$ac_ext
22273 LIBS=$ac_check_lib_save_LIBS
22274 fi
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22276 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22277 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22278
22279           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22280
22281           THREADLIBS="$THREADLIBS -lrt"
22282           THREADSPEC="$THREADSPEC -lrt"
22283 else
22284
22285           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22286 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22287 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22288   $as_echo_n "(cached) " >&6
22289 else
22290   ac_check_lib_save_LIBS=$LIBS
22291 LIBS="-lposix4  $LIBS"
22292 if test x$gcc_no_link = xyes; then
22293   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22294 fi
22295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22296 /* end confdefs.h.  */
22297
22298 /* Override any GCC internal prototype to avoid an error.
22299    Use char because int might match the return type of a GCC
22300    builtin and then its argument prototype would still apply.  */
22301 #ifdef __cplusplus
22302 extern "C"
22303 #endif
22304 char sched_yield ();
22305 int
22306 main ()
22307 {
22308 return sched_yield ();
22309   ;
22310   return 0;
22311 }
22312 _ACEOF
22313 if ac_fn_c_try_link "$LINENO"; then :
22314   ac_cv_lib_posix4_sched_yield=yes
22315 else
22316   ac_cv_lib_posix4_sched_yield=no
22317 fi
22318 rm -f core conftest.err conftest.$ac_objext \
22319     conftest$ac_exeext conftest.$ac_ext
22320 LIBS=$ac_check_lib_save_LIBS
22321 fi
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22323 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22324 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22325
22326             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22327
22328             THREADLIBS="$THREADLIBS -lposix4"
22329             THREADSPEC="$THREADSPEC -lposix4"
22330 fi
22331
22332 fi
22333
22334 fi
22335 done
22336
22337
22338       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22339 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22340 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22341   $as_echo_n "(cached) " >&6
22342 else
22343   ac_check_lib_save_LIBS=$LIBS
22344 LIBS="-lrt  $LIBS"
22345 if test x$gcc_no_link = xyes; then
22346   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22347 fi
22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h.  */
22350
22351 /* Override any GCC internal prototype to avoid an error.
22352    Use char because int might match the return type of a GCC
22353    builtin and then its argument prototype would still apply.  */
22354 #ifdef __cplusplus
22355 extern "C"
22356 #endif
22357 char clock_gettime ();
22358 int
22359 main ()
22360 {
22361 return clock_gettime ();
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 if ac_fn_c_try_link "$LINENO"; then :
22367   ac_cv_lib_rt_clock_gettime=yes
22368 else
22369   ac_cv_lib_rt_clock_gettime=no
22370 fi
22371 rm -f core conftest.err conftest.$ac_objext \
22372     conftest$ac_exeext conftest.$ac_ext
22373 LIBS=$ac_check_lib_save_LIBS
22374 fi
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22376 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22377 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22378
22379
22380 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22381
22382          case "$THREADSPEC" in
22383            *-lrt*) ;;
22384            *)
22385              THREADSPEC="$THREADSPEC -lrt"
22386              THREADLIBS="$THREADLIBS -lrt"
22387              ;;
22388          esac
22389 fi
22390
22391
22392       LIBS="$save_LIBS"
22393
22394       # We can save a little space at runtime if the mutex has m_count
22395       # or __m_count.  This is a nice hack for Linux.
22396       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h.  */
22398 #include <pthread.h>
22399 int
22400 main ()
22401 {
22402
22403           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22404
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 if ac_fn_c_try_compile "$LINENO"; then :
22410
22411 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22412
22413 else
22414
22415         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h.  */
22417 #include <pthread.h>
22418 int
22419 main ()
22420 {
22421
22422             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22423
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 if ac_fn_c_try_compile "$LINENO"; then :
22429
22430 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22431
22432 fi
22433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 fi
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436    fi
22437
22438    # We require a way to get the time.
22439    time_found=no
22440    for ac_func in gettimeofday time ftime
22441 do :
22442   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22443 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22444 eval as_val=\$$as_ac_var
22445    if test "x$as_val" = x""yes; then :
22446   cat >>confdefs.h <<_ACEOF
22447 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22448 _ACEOF
22449  time_found=yes
22450 fi
22451 done
22452
22453    if test "$time_found" = no; then
22454       as_fn_error "no function found to get the time" "$LINENO" 5
22455    fi
22456
22457    for ac_func in memmove
22458 do :
22459   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22460 if test "x$ac_cv_func_memmove" = x""yes; then :
22461   cat >>confdefs.h <<_ACEOF
22462 #define HAVE_MEMMOVE 1
22463 _ACEOF
22464
22465 fi
22466 done
22467
22468
22469    # We require memcpy.
22470    memcpy_found=no
22471    for ac_func in memcpy
22472 do :
22473   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22474 if test "x$ac_cv_func_memcpy" = x""yes; then :
22475   cat >>confdefs.h <<_ACEOF
22476 #define HAVE_MEMCPY 1
22477 _ACEOF
22478  memcpy_found=yes
22479 fi
22480 done
22481
22482    if test "$memcpy_found" = no; then
22483       as_fn_error "memcpy is required" "$LINENO" 5
22484    fi
22485    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22487 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22488 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22489   $as_echo_n "(cached) " >&6
22490 else
22491   ac_check_lib_save_LIBS=$LIBS
22492 LIBS="-ldl  $LIBS"
22493 if test x$gcc_no_link = xyes; then
22494   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22495 fi
22496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22497 /* end confdefs.h.  */
22498
22499 /* Override any GCC internal prototype to avoid an error.
22500    Use char because int might match the return type of a GCC
22501    builtin and then its argument prototype would still apply.  */
22502 #ifdef __cplusplus
22503 extern "C"
22504 #endif
22505 char dlopen ();
22506 int
22507 main ()
22508 {
22509 return dlopen ();
22510   ;
22511   return 0;
22512 }
22513 _ACEOF
22514 if ac_fn_c_try_link "$LINENO"; then :
22515   ac_cv_lib_dl_dlopen=yes
22516 else
22517   ac_cv_lib_dl_dlopen=no
22518 fi
22519 rm -f core conftest.err conftest.$ac_objext \
22520     conftest$ac_exeext conftest.$ac_ext
22521 LIBS=$ac_check_lib_save_LIBS
22522 fi
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22525 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22526
22527
22528 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22529
22530 else
22531
22532        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22533 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22534 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22535   $as_echo_n "(cached) " >&6
22536 else
22537   ac_check_lib_save_LIBS=$LIBS
22538 LIBS="-ldld  $LIBS"
22539 if test x$gcc_no_link = xyes; then
22540   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22541 fi
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h.  */
22544
22545 /* Override any GCC internal prototype to avoid an error.
22546    Use char because int might match the return type of a GCC
22547    builtin and then its argument prototype would still apply.  */
22548 #ifdef __cplusplus
22549 extern "C"
22550 #endif
22551 char dlopen ();
22552 int
22553 main ()
22554 {
22555 return dlopen ();
22556   ;
22557   return 0;
22558 }
22559 _ACEOF
22560 if ac_fn_c_try_link "$LINENO"; then :
22561   ac_cv_lib_dld_dlopen=yes
22562 else
22563   ac_cv_lib_dld_dlopen=no
22564 fi
22565 rm -f core conftest.err conftest.$ac_objext \
22566     conftest$ac_exeext conftest.$ac_ext
22567 LIBS=$ac_check_lib_save_LIBS
22568 fi
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22570 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22571 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22572
22573
22574 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22575
22576 fi
22577
22578 fi
22579
22580
22581    # Some library-finding code we stole from Tcl.
22582    #--------------------------------------------------------------------
22583    #    Check for the existence of the -lsocket and -lnsl libraries.
22584    #    The order here is important, so that they end up in the right
22585    #    order in the command line generated by make.  Here are some
22586    #    special considerations:
22587    #    1. Use "connect" and "accept" to check for -lsocket, and
22588    #       "gethostbyname" to check for -lnsl.
22589    #    2. Use each function name only once:  can't redo a check because
22590    #       autoconf caches the results of the last check and won't redo it.
22591    #    3. Use -lnsl and -lsocket only if they supply procedures that
22592    #       aren't already present in the normal libraries.  This is because
22593    #       IRIX 5.2 has libraries, but they aren't needed and they're
22594    #       bogus:  they goof up name resolution if used.
22595    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22596    #       To get around this problem, check for both libraries together
22597    #       if -lsocket doesn't work by itself.
22598    #--------------------------------------------------------------------
22599
22600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22601 $as_echo_n "checking for socket libraries... " >&6; }
22602 if test "${gcj_cv_lib_sockets+set}" = set; then :
22603   $as_echo_n "(cached) " >&6
22604 else
22605   gcj_cv_lib_sockets=
22606      gcj_checkBoth=0
22607      unset ac_cv_func_connect
22608      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22609 if test "x$ac_cv_func_connect" = x""yes; then :
22610   gcj_checkSocket=0
22611 else
22612   gcj_checkSocket=1
22613 fi
22614
22615      if test "$gcj_checkSocket" = 1; then
22616          unset ac_cv_func_connect
22617          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22618 $as_echo_n "checking for main in -lsocket... " >&6; }
22619 if test "${ac_cv_lib_socket_main+set}" = set; then :
22620   $as_echo_n "(cached) " >&6
22621 else
22622   ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-lsocket  $LIBS"
22624 if test x$gcc_no_link = xyes; then
22625   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22626 fi
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h.  */
22629
22630
22631 int
22632 main ()
22633 {
22634 return main ();
22635   ;
22636   return 0;
22637 }
22638 _ACEOF
22639 if ac_fn_c_try_link "$LINENO"; then :
22640   ac_cv_lib_socket_main=yes
22641 else
22642   ac_cv_lib_socket_main=no
22643 fi
22644 rm -f core conftest.err conftest.$ac_objext \
22645     conftest$ac_exeext conftest.$ac_ext
22646 LIBS=$ac_check_lib_save_LIBS
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22649 $as_echo "$ac_cv_lib_socket_main" >&6; }
22650 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22651   gcj_cv_lib_sockets="-lsocket"
22652 else
22653   gcj_checkBoth=1
22654 fi
22655
22656      fi
22657      if test "$gcj_checkBoth" = 1; then
22658          gcj_oldLibs=$LIBS
22659          LIBS="$LIBS -lsocket -lnsl"
22660          unset ac_cv_func_accept
22661          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22662 if test "x$ac_cv_func_accept" = x""yes; then :
22663   gcj_checkNsl=0
22664                         gcj_cv_lib_sockets="-lsocket -lnsl"
22665 fi
22666
22667          unset ac_cv_func_accept
22668          LIBS=$gcj_oldLibs
22669      fi
22670      unset ac_cv_func_gethostbyname
22671      gcj_oldLibs=$LIBS
22672      LIBS="$LIBS $gcj_cv_lib_sockets"
22673      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22674 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22675
22676 else
22677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22678 $as_echo_n "checking for main in -lnsl... " >&6; }
22679 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22680   $as_echo_n "(cached) " >&6
22681 else
22682   ac_check_lib_save_LIBS=$LIBS
22683 LIBS="-lnsl  $LIBS"
22684 if test x$gcc_no_link = xyes; then
22685   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22686 fi
22687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688 /* end confdefs.h.  */
22689
22690
22691 int
22692 main ()
22693 {
22694 return main ();
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 if ac_fn_c_try_link "$LINENO"; then :
22700   ac_cv_lib_nsl_main=yes
22701 else
22702   ac_cv_lib_nsl_main=no
22703 fi
22704 rm -f core conftest.err conftest.$ac_objext \
22705     conftest$ac_exeext conftest.$ac_ext
22706 LIBS=$ac_check_lib_save_LIBS
22707 fi
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22709 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22710 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22711   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22712 fi
22713
22714 fi
22715
22716      unset ac_cv_func_gethostbyname
22717      LIBS=$gcj_oldLIBS
22718
22719 fi
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22721 $as_echo "$gcj_cv_lib_sockets" >&6; }
22722    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22723
22724    if test "$with_system_zlib" = yes; then
22725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22726 $as_echo_n "checking for deflate in -lz... " >&6; }
22727 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22728   $as_echo_n "(cached) " >&6
22729 else
22730   ac_check_lib_save_LIBS=$LIBS
22731 LIBS="-lz  $LIBS"
22732 if test x$gcc_no_link = xyes; then
22733   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22734 fi
22735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h.  */
22737
22738 /* Override any GCC internal prototype to avoid an error.
22739    Use char because int might match the return type of a GCC
22740    builtin and then its argument prototype would still apply.  */
22741 #ifdef __cplusplus
22742 extern "C"
22743 #endif
22744 char deflate ();
22745 int
22746 main ()
22747 {
22748 return deflate ();
22749   ;
22750   return 0;
22751 }
22752 _ACEOF
22753 if ac_fn_c_try_link "$LINENO"; then :
22754   ac_cv_lib_z_deflate=yes
22755 else
22756   ac_cv_lib_z_deflate=no
22757 fi
22758 rm -f core conftest.err conftest.$ac_objext \
22759     conftest$ac_exeext conftest.$ac_ext
22760 LIBS=$ac_check_lib_save_LIBS
22761 fi
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22763 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22764 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22765   ZLIBSPEC=-lz
22766 else
22767   ZLIBSPEC=
22768 fi
22769
22770    fi
22771
22772    # Test for Gtk stuff, if asked for.
22773    if test "$use_gtk_awt" = yes; then
22774
22775   succeeded=no
22776
22777   if test -z "$PKG_CONFIG"; then
22778     # Extract the first word of "pkg-config", so it can be a program name with args.
22779 set dummy pkg-config; ac_word=$2
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22781 $as_echo_n "checking for $ac_word... " >&6; }
22782 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22783   $as_echo_n "(cached) " >&6
22784 else
22785   case $PKG_CONFIG in
22786   [\\/]* | ?:[\\/]*)
22787   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22788   ;;
22789   *)
22790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22791 for as_dir in $PATH
22792 do
22793   IFS=$as_save_IFS
22794   test -z "$as_dir" && as_dir=.
22795     for ac_exec_ext in '' $ac_executable_extensions; do
22796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22797     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22799     break 2
22800   fi
22801 done
22802   done
22803 IFS=$as_save_IFS
22804
22805   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22806   ;;
22807 esac
22808 fi
22809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22810 if test -n "$PKG_CONFIG"; then
22811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22812 $as_echo "$PKG_CONFIG" >&6; }
22813 else
22814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22815 $as_echo "no" >&6; }
22816 fi
22817
22818
22819   fi
22820
22821   if test "$PKG_CONFIG" = "no" ; then
22822      echo "*** The pkg-config script could not be found. Make sure it is"
22823      echo "*** in your path, or set the PKG_CONFIG environment variable"
22824      echo "*** to the full path to pkg-config."
22825      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22826   else
22827      PKG_CONFIG_MIN_VERSION=0.9.0
22828      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22830 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22831
22832         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22834 $as_echo "yes" >&6; }
22835             succeeded=yes
22836
22837             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22838 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22839             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22840             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22841 $as_echo "$GTK_CFLAGS" >&6; }
22842
22843             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22844 $as_echo_n "checking GTK_LIBS... " >&6; }
22845             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22846             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22847 $as_echo "$GTK_LIBS" >&6; }
22848         else
22849             GTK_CFLAGS=""
22850             GTK_LIBS=""
22851             ## If we have a custom action on failure, don't print errors, but
22852             ## do set a variable so people can do so.
22853             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22854             echo $GTK_PKG_ERRORS
22855         fi
22856
22857
22858
22859      else
22860         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22861         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22862      fi
22863   fi
22864
22865   if test $succeeded = yes; then
22866      :
22867   else
22868      as_fn_error "Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22869   fi
22870
22871
22872
22873
22874
22875   succeeded=no
22876
22877   if test -z "$PKG_CONFIG"; then
22878     # Extract the first word of "pkg-config", so it can be a program name with args.
22879 set dummy pkg-config; ac_word=$2
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22881 $as_echo_n "checking for $ac_word... " >&6; }
22882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22883   $as_echo_n "(cached) " >&6
22884 else
22885   case $PKG_CONFIG in
22886   [\\/]* | ?:[\\/]*)
22887   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22888   ;;
22889   *)
22890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22891 for as_dir in $PATH
22892 do
22893   IFS=$as_save_IFS
22894   test -z "$as_dir" && as_dir=.
22895     for ac_exec_ext in '' $ac_executable_extensions; do
22896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22897     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22899     break 2
22900   fi
22901 done
22902   done
22903 IFS=$as_save_IFS
22904
22905   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22906   ;;
22907 esac
22908 fi
22909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22910 if test -n "$PKG_CONFIG"; then
22911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22912 $as_echo "$PKG_CONFIG" >&6; }
22913 else
22914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22915 $as_echo "no" >&6; }
22916 fi
22917
22918
22919   fi
22920
22921   if test "$PKG_CONFIG" = "no" ; then
22922      echo "*** The pkg-config script could not be found. Make sure it is"
22923      echo "*** in your path, or set the PKG_CONFIG environment variable"
22924      echo "*** to the full path to pkg-config."
22925      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22926   else
22927      PKG_CONFIG_MIN_VERSION=0.9.0
22928      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22930 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22931
22932         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22933             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22934 $as_echo "yes" >&6; }
22935             succeeded=yes
22936
22937             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22938 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22939             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22940             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22941 $as_echo "$GLIB_CFLAGS" >&6; }
22942
22943             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22944 $as_echo_n "checking GLIB_LIBS... " >&6; }
22945             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22946             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22947 $as_echo "$GLIB_LIBS" >&6; }
22948         else
22949             GLIB_CFLAGS=""
22950             GLIB_LIBS=""
22951             ## If we have a custom action on failure, don't print errors, but
22952             ## do set a variable so people can do so.
22953             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22954             echo $GLIB_PKG_ERRORS
22955         fi
22956
22957
22958
22959      else
22960         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22961         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22962      fi
22963   fi
22964
22965   if test $succeeded = yes; then
22966      :
22967   else
22968      as_fn_error "Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22969   fi
22970
22971
22972
22973
22974
22975   succeeded=no
22976
22977   if test -z "$PKG_CONFIG"; then
22978     # Extract the first word of "pkg-config", so it can be a program name with args.
22979 set dummy pkg-config; ac_word=$2
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22981 $as_echo_n "checking for $ac_word... " >&6; }
22982 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22983   $as_echo_n "(cached) " >&6
22984 else
22985   case $PKG_CONFIG in
22986   [\\/]* | ?:[\\/]*)
22987   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22988   ;;
22989   *)
22990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22991 for as_dir in $PATH
22992 do
22993   IFS=$as_save_IFS
22994   test -z "$as_dir" && as_dir=.
22995     for ac_exec_ext in '' $ac_executable_extensions; do
22996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22997     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22999     break 2
23000   fi
23001 done
23002   done
23003 IFS=$as_save_IFS
23004
23005   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23006   ;;
23007 esac
23008 fi
23009 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23010 if test -n "$PKG_CONFIG"; then
23011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23012 $as_echo "$PKG_CONFIG" >&6; }
23013 else
23014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015 $as_echo "no" >&6; }
23016 fi
23017
23018
23019   fi
23020
23021   if test "$PKG_CONFIG" = "no" ; then
23022      echo "*** The pkg-config script could not be found. Make sure it is"
23023      echo "*** in your path, or set the PKG_CONFIG environment variable"
23024      echo "*** to the full path to pkg-config."
23025      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23026   else
23027      PKG_CONFIG_MIN_VERSION=0.9.0
23028      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23030 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23031
23032         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23033             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23034 $as_echo "yes" >&6; }
23035             succeeded=yes
23036
23037             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23038 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23039             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23040             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23041 $as_echo "$LIBART_CFLAGS" >&6; }
23042
23043             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23044 $as_echo_n "checking LIBART_LIBS... " >&6; }
23045             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23046             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23047 $as_echo "$LIBART_LIBS" >&6; }
23048         else
23049             LIBART_CFLAGS=""
23050             LIBART_LIBS=""
23051             ## If we have a custom action on failure, don't print errors, but
23052             ## do set a variable so people can do so.
23053             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23054             echo $LIBART_PKG_ERRORS
23055         fi
23056
23057
23058
23059      else
23060         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23061         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23062      fi
23063   fi
23064
23065   if test $succeeded = yes; then
23066      :
23067   else
23068      as_fn_error "Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
23069   fi
23070
23071
23072
23073
23074       # We require the XTest Extension to support java.awt.Robot.
23075       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23076 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23077 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23078   $as_echo_n "(cached) " >&6
23079 else
23080   ac_check_lib_save_LIBS=$LIBS
23081 LIBS="-lXtst ${X_LIBS} $LIBS"
23082 if test x$gcc_no_link = xyes; then
23083   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23084 fi
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h.  */
23087
23088 /* Override any GCC internal prototype to avoid an error.
23089    Use char because int might match the return type of a GCC
23090    builtin and then its argument prototype would still apply.  */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 char XTestQueryExtension ();
23095 int
23096 main ()
23097 {
23098 return XTestQueryExtension ();
23099   ;
23100   return 0;
23101 }
23102 _ACEOF
23103 if ac_fn_c_try_link "$LINENO"; then :
23104   ac_cv_lib_Xtst_XTestQueryExtension=yes
23105 else
23106   ac_cv_lib_Xtst_XTestQueryExtension=no
23107 fi
23108 rm -f core conftest.err conftest.$ac_objext \
23109     conftest$ac_exeext conftest.$ac_ext
23110 LIBS=$ac_check_lib_save_LIBS
23111 fi
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23113 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23114 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23115   true
23116 else
23117   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23118 fi
23119
23120    fi
23121
23122    # On Solaris, and maybe other architectures, the Boehm collector
23123    # requires -ldl.
23124    if test "$GC" = boehm; then
23125       case "${host}" in
23126           mips-sgi-irix6*)
23127             # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is
23128             # missing.  It's unnecessary anyway since dlopen lives in libc.
23129             ;;
23130           *-*-darwin*)
23131             ;;
23132           *)
23133             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23134 $as_echo_n "checking for main in -ldl... " >&6; }
23135 if test "${ac_cv_lib_dl_main+set}" = set; then :
23136   $as_echo_n "(cached) " >&6
23137 else
23138   ac_check_lib_save_LIBS=$LIBS
23139 LIBS="-ldl  $LIBS"
23140 if test x$gcc_no_link = xyes; then
23141   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23142 fi
23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h.  */
23145
23146
23147 int
23148 main ()
23149 {
23150 return main ();
23151   ;
23152   return 0;
23153 }
23154 _ACEOF
23155 if ac_fn_c_try_link "$LINENO"; then :
23156   ac_cv_lib_dl_main=yes
23157 else
23158   ac_cv_lib_dl_main=no
23159 fi
23160 rm -f core conftest.err conftest.$ac_objext \
23161     conftest$ac_exeext conftest.$ac_ext
23162 LIBS=$ac_check_lib_save_LIBS
23163 fi
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23165 $as_echo "$ac_cv_lib_dl_main" >&6; }
23166 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23167   SYSTEMSPEC="$SYSTEMSPEC -ldl"
23168 fi
23169
23170             ;;
23171       esac
23172    fi
23173 fi
23174
23175 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23176 case $build in
23177     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23178     *)         CLASSPATH_SEPARATOR=':' ;;
23179 esac
23180
23181
23182 # We must search the source tree for java.lang, since we still don't
23183 # have libgcj.jar nor java/lang/*.class
23184 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23185 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23186
23187 # Since some classes depend on this one, we need its source available
23188 # before we can do any GCJ compilation test :-(
23189 if test ! -f gnu/classpath/Configuration.java; then
23190   test -d gnu || mkdir gnu
23191   test -d gnu/classpath || mkdir gnu/classpath
23192   # Note that it is not crucial that all the values here be correct.
23193   sed -e "s,@prefix@,$expanded_prefix," \
23194       -e "s,@VERSION@,$VERSION," \
23195       -e "s,@LIBDEBUG@,false," \
23196       -e "s,@INIT_LOAD_LIBRARY@,false," \
23197       -e "s,@@,$LIBGCJDEBUG," \
23198       -e "s,@default_toolkit@,$TOOLKIT," \
23199       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23200       -e "s,@GTK_CAIRO_ENABLED@,false," \
23201       -e "s,@ECJ_JAR@,," \
23202       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23203         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23204         > gnu/classpath/Configuration.java
23205   # We do not want to redirect the output of the grep below to /dev/null,
23206   # but we add /dev/null to the input list so that grep will print the
23207   # filename of Configuration.java in case it finds any matches.
23208   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23209     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23210   fi
23211 fi
23212
23213
23214 if test -n "$ac_tool_prefix"; then
23215   for ac_prog in gcj
23216   do
23217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23220 $as_echo_n "checking for $ac_word... " >&6; }
23221 if test "${ac_cv_prog_GCJ+set}" = set; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224   if test -n "$GCJ"; then
23225   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23226 else
23227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23228 for as_dir in $PATH
23229 do
23230   IFS=$as_save_IFS
23231   test -z "$as_dir" && as_dir=.
23232     for ac_exec_ext in '' $ac_executable_extensions; do
23233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23234     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23236     break 2
23237   fi
23238 done
23239   done
23240 IFS=$as_save_IFS
23241
23242 fi
23243 fi
23244 GCJ=$ac_cv_prog_GCJ
23245 if test -n "$GCJ"; then
23246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23247 $as_echo "$GCJ" >&6; }
23248 else
23249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23250 $as_echo "no" >&6; }
23251 fi
23252
23253
23254     test -n "$GCJ" && break
23255   done
23256 fi
23257 if test -z "$GCJ"; then
23258   ac_ct_GCJ=$GCJ
23259   for ac_prog in gcj
23260 do
23261   # Extract the first word of "$ac_prog", so it can be a program name with args.
23262 set dummy $ac_prog; ac_word=$2
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23264 $as_echo_n "checking for $ac_word... " >&6; }
23265 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23266   $as_echo_n "(cached) " >&6
23267 else
23268   if test -n "$ac_ct_GCJ"; then
23269   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23270 else
23271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23272 for as_dir in $PATH
23273 do
23274   IFS=$as_save_IFS
23275   test -z "$as_dir" && as_dir=.
23276     for ac_exec_ext in '' $ac_executable_extensions; do
23277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23278     ac_cv_prog_ac_ct_GCJ="$ac_prog"
23279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23280     break 2
23281   fi
23282 done
23283   done
23284 IFS=$as_save_IFS
23285
23286 fi
23287 fi
23288 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23289 if test -n "$ac_ct_GCJ"; then
23290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23291 $as_echo "$ac_ct_GCJ" >&6; }
23292 else
23293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23294 $as_echo "no" >&6; }
23295 fi
23296
23297
23298   test -n "$ac_ct_GCJ" && break
23299 done
23300
23301   if test "x$ac_ct_GCJ" = x; then
23302     GCJ="gcj"
23303   else
23304     case $cross_compiling:$ac_tool_warned in
23305 yes:)
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23308 ac_tool_warned=yes ;;
23309 esac
23310     GCJ=$ac_ct_GCJ
23311   fi
23312 fi
23313
23314 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23315 if test "x${GCJFLAGS-unset}" = xunset; then
23316    GCJFLAGS="-g -O2"
23317 fi
23318
23319
23320 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23321
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23323 $as_echo_n "checking dependency style of $depcc... " >&6; }
23324 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23325   $as_echo_n "(cached) " >&6
23326 else
23327   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23328   # We make a subdir and do the tests there.  Otherwise we can end up
23329   # making bogus files that we don't know about and never remove.  For
23330   # instance it was reported that on HP-UX the gcc test will end up
23331   # making a dummy file named `D' -- because `-MD' means `put the output
23332   # in D'.
23333   mkdir conftest.dir
23334   # Copy depcomp to subdir because otherwise we won't find it if we're
23335   # using a relative directory.
23336   cp "$am_depcomp" conftest.dir
23337   cd conftest.dir
23338   # We will build objects and dependencies in a subdirectory because
23339   # it helps to detect inapplicable dependency modes.  For instance
23340   # both Tru64's cc and ICC support -MD to output dependencies as a
23341   # side effect of compilation, but ICC will put the dependencies in
23342   # the current directory while Tru64 will put them in the object
23343   # directory.
23344   mkdir sub
23345
23346   am_cv_GCJ_dependencies_compiler_type=none
23347   if test "$am_compiler_list" = ""; then
23348      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23349   fi
23350   am__universal=false
23351
23352
23353   for depmode in $am_compiler_list; do
23354     # Setup a source with many dependencies, because some compilers
23355     # like to wrap large dependency lists on column 80 (with \), and
23356     # we should not choose a depcomp mode which is confused by this.
23357     #
23358     # We need to recreate these files for each test, as the compiler may
23359     # overwrite some of them when testing with obscure command lines.
23360     # This happens at least with the AIX C compiler.
23361     : > sub/conftest.c
23362     for i in 1 2 3 4 5 6; do
23363       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23364       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23365       # Solaris 8's {/usr,}/bin/sh.
23366       touch sub/conftst$i.h
23367     done
23368     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23369
23370     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23371     # mode.  It turns out that the SunPro C++ compiler does not properly
23372     # handle `-M -o', and we need to detect this.  Also, some Intel
23373     # versions had trouble with output in subdirs
23374     am__obj=sub/conftest.${OBJEXT-o}
23375     am__minus_obj="-o $am__obj"
23376     case $depmode in
23377     gcc)
23378       # This depmode causes a compiler race in universal mode.
23379       test "$am__universal" = false || continue
23380       ;;
23381     nosideeffect)
23382       # after this tag, mechanisms are not by side-effect, so they'll
23383       # only be used when explicitly requested
23384       if test "x$enable_dependency_tracking" = xyes; then
23385         continue
23386       else
23387         break
23388       fi
23389       ;;
23390     msvisualcpp | msvcmsys)
23391       # This compiler won't grok `-c -o', but also, the minuso test has
23392       # not run yet.  These depmodes are late enough in the game, and
23393       # so weak that their functioning should not be impacted.
23394       am__obj=conftest.${OBJEXT-o}
23395       am__minus_obj=
23396       ;;
23397     none) break ;;
23398     esac
23399     if depmode=$depmode \
23400        source=sub/conftest.c object=$am__obj \
23401        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23402        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23403          >/dev/null 2>conftest.err &&
23404        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23405        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23406        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23407        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23408       # icc doesn't choke on unknown options, it will just issue warnings
23409       # or remarks (even with -Werror).  So we grep stderr for any message
23410       # that says an option was ignored or not supported.
23411       # When given -MP, icc 7.0 and 7.1 complain thusly:
23412       #   icc: Command line warning: ignoring option '-M'; no argument required
23413       # The diagnosis changed in icc 8.0:
23414       #   icc: Command line remark: option '-MP' not supported
23415       if (grep 'ignoring option' conftest.err ||
23416           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23417         am_cv_GCJ_dependencies_compiler_type=$depmode
23418         break
23419       fi
23420     fi
23421   done
23422
23423   cd ..
23424   rm -rf conftest.dir
23425 else
23426   am_cv_GCJ_dependencies_compiler_type=none
23427 fi
23428
23429 fi
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23431 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23432 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23433
23434  if
23435   test "x$enable_dependency_tracking" != xno \
23436   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23437   am__fastdepGCJ_TRUE=
23438   am__fastdepGCJ_FALSE='#'
23439 else
23440   am__fastdepGCJ_TRUE='#'
23441   am__fastdepGCJ_FALSE=
23442 fi
23443
23444
23445
23446
23447 # Now remove it.
23448 rm -f gnu/classpath/Configuration.java
23449
23450 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23451
23452 # The cast to long int works around a bug in the HP C Compiler
23453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23455 # This bug is HP SR number 8606223364.
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23457 $as_echo_n "checking size of void *... " >&6; }
23458 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23459   $as_echo_n "(cached) " >&6
23460 else
23461   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23462
23463 else
23464   if test "$ac_cv_type_void_p" = yes; then
23465      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23467 { as_fn_set_status 77
23468 as_fn_error "cannot compute sizeof (void *)
23469 See \`config.log' for more details." "$LINENO" 5; }; }
23470    else
23471      ac_cv_sizeof_void_p=0
23472    fi
23473 fi
23474
23475 fi
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23477 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23478
23479
23480
23481 cat >>confdefs.h <<_ACEOF
23482 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23483 _ACEOF
23484
23485
23486
23487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23488 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23489 if test "${ac_cv_c_bigendian+set}" = set; then :
23490   $as_echo_n "(cached) " >&6
23491 else
23492   ac_cv_c_bigendian=unknown
23493     # See if we're dealing with a universal compiler.
23494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23495 /* end confdefs.h.  */
23496 #ifndef __APPLE_CC__
23497                not a universal capable compiler
23498              #endif
23499              typedef int dummy;
23500
23501 _ACEOF
23502 if ac_fn_c_try_compile "$LINENO"; then :
23503
23504         # Check for potential -arch flags.  It is not universal unless
23505         # there are at least two -arch flags with different values.
23506         ac_arch=
23507         ac_prev=
23508         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23509          if test -n "$ac_prev"; then
23510            case $ac_word in
23511              i?86 | x86_64 | ppc | ppc64)
23512                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23513                  ac_arch=$ac_word
23514                else
23515                  ac_cv_c_bigendian=universal
23516                  break
23517                fi
23518                ;;
23519            esac
23520            ac_prev=
23521          elif test "x$ac_word" = "x-arch"; then
23522            ac_prev=arch
23523          fi
23524        done
23525 fi
23526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23527     if test $ac_cv_c_bigendian = unknown; then
23528       # See if sys/param.h defines the BYTE_ORDER macro.
23529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23530 /* end confdefs.h.  */
23531 #include <sys/types.h>
23532              #include <sys/param.h>
23533
23534 int
23535 main ()
23536 {
23537 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23538                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23539                      && LITTLE_ENDIAN)
23540               bogus endian macros
23541              #endif
23542
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 if ac_fn_c_try_compile "$LINENO"; then :
23548   # It does; now see whether it defined to BIG_ENDIAN or not.
23549          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h.  */
23551 #include <sys/types.h>
23552                 #include <sys/param.h>
23553
23554 int
23555 main ()
23556 {
23557 #if BYTE_ORDER != BIG_ENDIAN
23558                  not big endian
23559                 #endif
23560
23561   ;
23562   return 0;
23563 }
23564 _ACEOF
23565 if ac_fn_c_try_compile "$LINENO"; then :
23566   ac_cv_c_bigendian=yes
23567 else
23568   ac_cv_c_bigendian=no
23569 fi
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 fi
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573     fi
23574     if test $ac_cv_c_bigendian = unknown; then
23575       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23576       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h.  */
23578 #include <limits.h>
23579
23580 int
23581 main ()
23582 {
23583 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23584               bogus endian macros
23585              #endif
23586
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 if ac_fn_c_try_compile "$LINENO"; then :
23592   # It does; now see whether it defined to _BIG_ENDIAN or not.
23593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h.  */
23595 #include <limits.h>
23596
23597 int
23598 main ()
23599 {
23600 #ifndef _BIG_ENDIAN
23601                  not big endian
23602                 #endif
23603
23604   ;
23605   return 0;
23606 }
23607 _ACEOF
23608 if ac_fn_c_try_compile "$LINENO"; then :
23609   ac_cv_c_bigendian=yes
23610 else
23611   ac_cv_c_bigendian=no
23612 fi
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 fi
23615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23616     fi
23617     if test $ac_cv_c_bigendian = unknown; then
23618       # Compile a test program.
23619       if test "$cross_compiling" = yes; then :
23620   # Try to guess by grepping values from an object file.
23621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h.  */
23623 short int ascii_mm[] =
23624                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23625                 short int ascii_ii[] =
23626                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23627                 int use_ascii (int i) {
23628                   return ascii_mm[i] + ascii_ii[i];
23629                 }
23630                 short int ebcdic_ii[] =
23631                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23632                 short int ebcdic_mm[] =
23633                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23634                 int use_ebcdic (int i) {
23635                   return ebcdic_mm[i] + ebcdic_ii[i];
23636                 }
23637                 extern int foo;
23638
23639 int
23640 main ()
23641 {
23642 return use_ascii (foo) == use_ebcdic (foo);
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 if ac_fn_c_try_compile "$LINENO"; then :
23648   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23649               ac_cv_c_bigendian=yes
23650             fi
23651             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23652               if test "$ac_cv_c_bigendian" = unknown; then
23653                 ac_cv_c_bigendian=no
23654               else
23655                 # finding both strings is unlikely to happen, but who knows?
23656                 ac_cv_c_bigendian=unknown
23657               fi
23658             fi
23659 fi
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 else
23662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663 /* end confdefs.h.  */
23664 $ac_includes_default
23665 int
23666 main ()
23667 {
23668
23669              /* Are we little or big endian?  From Harbison&Steele.  */
23670              union
23671              {
23672                long int l;
23673                char c[sizeof (long int)];
23674              } u;
23675              u.l = 1;
23676              return u.c[sizeof (long int) - 1] == 1;
23677
23678   ;
23679   return 0;
23680 }
23681 _ACEOF
23682 if ac_fn_c_try_run "$LINENO"; then :
23683   ac_cv_c_bigendian=no
23684 else
23685   ac_cv_c_bigendian=yes
23686 fi
23687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23688   conftest.$ac_objext conftest.beam conftest.$ac_ext
23689 fi
23690
23691     fi
23692 fi
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23694 $as_echo "$ac_cv_c_bigendian" >&6; }
23695  case $ac_cv_c_bigendian in #(
23696    yes)
23697      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23698 ;; #(
23699    no)
23700       ;; #(
23701    universal)
23702
23703 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23704
23705      ;; #(
23706    *)
23707      as_fn_error "unknown endianness
23708  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23709  esac
23710
23711
23712 ZLIBS=
23713 SYS_ZLIBS=
23714 ZINCS=
23715
23716 if test -z "$ZLIBSPEC"; then
23717    # Use zlib from the GCC tree.
23718    ZINCS='-I$(top_srcdir)/../zlib'
23719    ZLIBS=../zlib/libzgcj_convenience.la
23720 else
23721    # System's zlib.
23722    SYS_ZLIBS="$ZLIBSPEC"
23723 fi
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734  if test "$NATIVE" = yes; then
23735   NATIVE_TRUE=
23736   NATIVE_FALSE='#'
23737 else
23738   NATIVE_TRUE='#'
23739   NATIVE_FALSE=
23740 fi
23741
23742  if test "$enable_shared" = yes; then
23743   ENABLE_SHARED_TRUE=
23744   ENABLE_SHARED_FALSE='#'
23745 else
23746   ENABLE_SHARED_TRUE='#'
23747   ENABLE_SHARED_FALSE=
23748 fi
23749
23750  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23751   NEEDS_DATA_START_TRUE=
23752   NEEDS_DATA_START_FALSE='#'
23753 else
23754   NEEDS_DATA_START_TRUE='#'
23755   NEEDS_DATA_START_FALSE=
23756 fi
23757
23758  if test -z "${with_multisubdir}"; then
23759   INSTALL_BINARIES_TRUE=
23760   INSTALL_BINARIES_FALSE='#'
23761 else
23762   INSTALL_BINARIES_TRUE='#'
23763   INSTALL_BINARIES_FALSE=
23764 fi
23765
23766
23767
23768 # Process the option "--enable-version-specific-runtime-libs"
23769 # Calculate toolexeclibdir
23770 case ${version_specific_libs} in
23771   yes)
23772     # Need the gcc compiler version to know where to install libraries
23773     # and header files if --enable-version-specific-runtime-libs option
23774     # is selected.
23775     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23776     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23777     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23778     toolexeclibdir=$toolexecmainlibdir
23779     ;;
23780   no)
23781     if test -n "$with_cross_host" &&
23782        test x"$with_cross_host" != x"no"; then
23783       # Install a library built with a cross compiler in tooldir, not libdir.
23784       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23785       toolexecmainlibdir='$(toolexecdir)/lib'
23786     else
23787       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23788       toolexecmainlibdir='$(libdir)'
23789     fi
23790     multi_os_directory=`$CC -print-multi-os-directory`
23791     case $multi_os_directory in
23792       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23793       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23794     esac
23795     ;;
23796 esac
23797
23798
23799
23800
23801 # Determine gcj and libgcj version number.
23802 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23803 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23804 GCJVERSION=$gcjversion
23805
23806
23807 cat >>confdefs.h <<_ACEOF
23808 #define GCJVERSION "$GCJVERSION"
23809 _ACEOF
23810
23811
23812 # Determine where the standard .db file and GNU Classpath JNI
23813 # libraries are found.
23814 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23815 multi_os_directory=`$CC -print-multi-os-directory`
23816 case $multi_os_directory in
23817   .)
23818    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23819    ;;
23820   *)
23821    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23822    ;;
23823 esac
23824
23825
23826
23827
23828 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23829
23830
23831 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23832
23833
23834
23835 case "${with_gxx_include_dir}" in
23836   yes)
23837     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23838     ;;
23839   no | "")
23840     case "${enable_version_specific_runtime_libs}" in
23841       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23842       *)
23843         libstdcxx_incdir='c++/$(gcc_version)'
23844         gxx_include_dir='include/$(libstdcxx_incdir)'
23845         if test -n "$with_cross_host" &&
23846            test x"$with_cross_host" != x"no"; then
23847           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23848         else
23849           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23850         fi;;
23851     esac ;;
23852   *) gxx_include_dir=${with_gxx_include_dir} ;;
23853 esac
23854
23855
23856
23857
23858 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23859 # On that system, sys/ioctl.h will not include sys/filio.h unless
23860 # BSD_COMP is defined; just including sys/filio.h is simpler.
23861 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23862 # for now.  If you change this, you also must update natFile.cc.
23863 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23864                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23865                   sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23866                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23867                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23868 do :
23869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23871 eval as_val=\$$as_ac_Header
23872    if test "x$as_val" = x""yes; then :
23873   cat >>confdefs.h <<_ACEOF
23874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23875 _ACEOF
23876
23877 fi
23878
23879 done
23880
23881
23882 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23883 for ac_header in net/if.h
23884 do :
23885   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23886 #ifdef HAVE_SYS_SOCKET_H
23887 #include <sys/socket.h>
23888 #endif
23889
23890 "
23891 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23892   cat >>confdefs.h <<_ACEOF
23893 #define HAVE_NET_IF_H 1
23894 _ACEOF
23895
23896 fi
23897
23898 done
23899
23900
23901 for ac_header in inttypes.h
23902 do :
23903   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23904 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23905   cat >>confdefs.h <<_ACEOF
23906 #define HAVE_INTTYPES_H 1
23907 _ACEOF
23908
23909
23910 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23911
23912
23913 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23914
23915
23916 fi
23917
23918 done
23919
23920
23921 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23922 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23923
23924 else
23925
23926 cat >>confdefs.h <<_ACEOF
23927 #define ssize_t int
23928 _ACEOF
23929
23930 fi
23931
23932 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23933 #ifdef HAVE_MAGIC_H
23934 #include <magic.h>
23935 #endif
23936 "
23937 if test "x$ac_cv_type_magic_t" = x""yes; then :
23938
23939
23940 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23941
23942 fi
23943
23944
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23946 $as_echo_n "checking for in_addr_t... " >&6; }
23947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h.  */
23949 #include <sys/types.h>
23950 #if STDC_HEADERS
23951 #include <stdlib.h>
23952 #include <stddef.h>
23953 #endif
23954 #if HAVE_NETINET_IN_H
23955 #include <netinet/in.h>
23956 #endif
23957 int
23958 main ()
23959 {
23960 in_addr_t foo;
23961   ;
23962   return 0;
23963 }
23964 _ACEOF
23965 if ac_fn_c_try_compile "$LINENO"; then :
23966
23967 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23968
23969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23970 $as_echo "yes" >&6; }
23971 else
23972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23973 $as_echo "no" >&6; }
23974 fi
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23976
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23978 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23980 /* end confdefs.h.  */
23981 #include <netinet/in.h>
23982 int
23983 main ()
23984 {
23985 struct ip_mreq mreq;
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 if ac_fn_c_try_compile "$LINENO"; then :
23991
23992 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23993
23994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23995 $as_echo "yes" >&6; }
23996 else
23997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23998 $as_echo "no" >&6; }
23999 fi
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24003 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24005 /* end confdefs.h.  */
24006 #include <netinet/in.h>
24007 int
24008 main ()
24009 {
24010 struct ipv6_mreq mreq6;
24011   ;
24012   return 0;
24013 }
24014 _ACEOF
24015 if ac_fn_c_try_compile "$LINENO"; then :
24016
24017 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24018
24019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24020 $as_echo "yes" >&6; }
24021 else
24022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24023 $as_echo "no" >&6; }
24024 fi
24025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24026
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24028 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24030 /* end confdefs.h.  */
24031 #include <netinet/in.h>
24032 int
24033 main ()
24034 {
24035 struct sockaddr_in6 addr6;
24036   ;
24037   return 0;
24038 }
24039 _ACEOF
24040 if ac_fn_c_try_compile "$LINENO"; then :
24041
24042 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24043
24044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24045 $as_echo "yes" >&6; }
24046 else
24047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24048 $as_echo "no" >&6; }
24049 fi
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24053 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h.  */
24056 #define _POSIX_PII_SOCKET
24057 #include <sys/types.h>
24058 #include <sys/socket.h>
24059 int
24060 main ()
24061 {
24062 socklen_t x = 5;
24063   ;
24064   return 0;
24065 }
24066 _ACEOF
24067 if ac_fn_c_try_compile "$LINENO"; then :
24068
24069 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24070
24071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24072 $as_echo "yes" >&6; }
24073 else
24074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24075 $as_echo "no" >&6; }
24076 fi
24077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24080 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h.  */
24083 #include <time.h>
24084 int
24085 main ()
24086 {
24087 struct tm tim; tim.tm_gmtoff = 0;
24088   ;
24089   return 0;
24090 }
24091 _ACEOF
24092 if ac_fn_c_try_compile "$LINENO"; then :
24093
24094 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24095
24096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24097 $as_echo "yes" >&6; }
24098 else
24099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24100 $as_echo "no" >&6; }
24101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24102 $as_echo_n "checking for global timezone variable... " >&6; }
24103                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24104 /* end confdefs.h.  */
24105 #include <time.h>
24106 int
24107 main ()
24108 {
24109 void i(){long z2 = 2*timezone;}
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 if ac_fn_c_try_compile "$LINENO"; then :
24115
24116 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24117
24118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24119 $as_echo "yes" >&6; }
24120 else
24121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24122 $as_echo "no" >&6; }
24123        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24124 $as_echo_n "checking for global _timezone variable... " >&6; }
24125               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24126 /* end confdefs.h.  */
24127 #include <time.h>
24128 int
24129 main ()
24130 {
24131 long z2 = _timezone;
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 if ac_fn_c_try_compile "$LINENO"; then :
24137
24138 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24139
24140           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24141 $as_echo "yes" >&6; }
24142 else
24143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24144 $as_echo "no" >&6; }
24145 fi
24146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24147 fi
24148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 fi
24150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24151
24152 for ac_prog in perl
24153 do
24154   # Extract the first word of "$ac_prog", so it can be a program name with args.
24155 set dummy $ac_prog; ac_word=$2
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24157 $as_echo_n "checking for $ac_word... " >&6; }
24158 if test "${ac_cv_prog_PERL+set}" = set; then :
24159   $as_echo_n "(cached) " >&6
24160 else
24161   if test -n "$PERL"; then
24162   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24163 else
24164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24165 for as_dir in $PATH
24166 do
24167   IFS=$as_save_IFS
24168   test -z "$as_dir" && as_dir=.
24169     for ac_exec_ext in '' $ac_executable_extensions; do
24170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24171     ac_cv_prog_PERL="$ac_prog"
24172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24173     break 2
24174   fi
24175 done
24176   done
24177 IFS=$as_save_IFS
24178
24179 fi
24180 fi
24181 PERL=$ac_cv_prog_PERL
24182 if test -n "$PERL"; then
24183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24184 $as_echo "$PERL" >&6; }
24185 else
24186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24187 $as_echo "no" >&6; }
24188 fi
24189
24190
24191   test -n "$PERL" && break
24192 done
24193 test -n "$PERL" || PERL="false"
24194
24195
24196 SYSDEP_SOURCES=
24197 SIGNAL_HANDLER_AUX=
24198
24199 case "${host}" in
24200  i?86-*-linux*)
24201     SIGNAL_HANDLER=include/i386-signal.h
24202     ;;
24203  *-*-solaris2*)
24204     SIGNAL_HANDLER=include/solaris-signal.h
24205     ;;
24206 # ia64-*)
24207 #    SYSDEP_SOURCES=sysdep/ia64.c
24208 #    test -d sysdep || mkdir sysdep
24209 #    ;;
24210  hppa*-*-linux*)
24211     SIGNAL_HANDLER=include/pa-signal.h
24212     ;;
24213  hppa*-hp-hpux*)
24214     SIGNAL_HANDLER=include/hppa-signal.h
24215     ;;
24216  ia64-*-linux*)
24217     SIGNAL_HANDLER=include/dwarf2-signal.h
24218     ;;
24219  powerpc*-*-linux*)
24220     SIGNAL_HANDLER=include/powerpc-signal.h
24221     ;;
24222  alpha*-*-linux*)
24223     SIGNAL_HANDLER=include/dwarf2-signal.h
24224     ;;
24225  s390*-*-linux*)
24226     SIGNAL_HANDLER=include/s390-signal.h
24227     ;;
24228  x86_64*-*-linux*)
24229     SIGNAL_HANDLER=include/x86_64-signal.h
24230     SIGNAL_HANDLER_AUX=include/i386-signal.h
24231     ;;
24232  sparc*-*-linux*)
24233     SIGNAL_HANDLER=include/dwarf2-signal.h
24234     ;;
24235  sh*-*-linux*)
24236     SIGNAL_HANDLER=include/sh-signal.h
24237     ;;
24238  *mingw*)
24239     SIGNAL_HANDLER=include/win32-signal.h
24240     ;;
24241  mips*-*-linux*)
24242     SIGNAL_HANDLER=include/mips-signal.h
24243     ;;
24244  m68*-*-linux*)
24245     SIGNAL_HANDLER=include/dwarf2-signal.h
24246     ;;
24247  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24248     SIGNAL_HANDLER=include/darwin-signal.h
24249     ;;
24250  powerpc*-*-aix*)
24251     SIGNAL_HANDLER=include/aix-signal.h
24252     ;;
24253  *)
24254     SIGNAL_HANDLER=include/default-signal.h
24255     ;;
24256 esac
24257
24258 # If we're using sjlj exceptions, forget what we just learned.
24259 if test "$enable_sjlj_exceptions" = yes; then
24260    SIGNAL_HANDLER=include/default-signal.h
24261    SIGNAL_HANDLER_AUX=
24262 fi
24263
24264
24265
24266 if test -z "$SIGNAL_HANDLER_AUX"; then
24267   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24268 fi
24269
24270 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24271
24272
24273 if test "${multilib}" = "yes"; then
24274   multilib_arg="--enable-multilib"
24275 else
24276   multilib_arg=
24277 fi
24278
24279 # See if we support thread-local storage.
24280
24281
24282    # Check whether --enable-tls was given.
24283 if test "${enable_tls+set}" = set; then :
24284   enableval=$enable_tls;
24285       case "$enableval" in
24286        yes|no) ;;
24287        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24288       esac
24289
24290 else
24291   enable_tls=yes
24292 fi
24293
24294
24295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24296 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24297 if test "${gcc_cv_have_tls+set}" = set; then :
24298   $as_echo_n "(cached) " >&6
24299 else
24300
24301     if test "$cross_compiling" = yes; then :
24302                 if test x$gcc_no_link = xyes; then
24303   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24304 fi
24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306 /* end confdefs.h.  */
24307 __thread int a; int b; int main() { return a = b; }
24308 _ACEOF
24309 if ac_fn_c_try_link "$LINENO"; then :
24310   chktls_save_LDFLAGS="$LDFLAGS"
24311                           case $host in
24312             *-*-linux*)
24313               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24314               ;;
24315           esac
24316           chktls_save_CFLAGS="$CFLAGS"
24317           CFLAGS="-fPIC $CFLAGS"
24318                   if test x$gcc_no_link = xyes; then
24319   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24320 fi
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h.  */
24323 int f() { return 0; }
24324 _ACEOF
24325 if ac_fn_c_try_link "$LINENO"; then :
24326   if test x$gcc_no_link = xyes; then
24327   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24328 fi
24329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h.  */
24331 __thread int a; int b; int f() { return a = b; }
24332 _ACEOF
24333 if ac_fn_c_try_link "$LINENO"; then :
24334   gcc_cv_have_tls=yes
24335 else
24336   gcc_cv_have_tls=no
24337 fi
24338 rm -f core conftest.err conftest.$ac_objext \
24339     conftest$ac_exeext conftest.$ac_ext
24340 else
24341   gcc_cv_have_tls=yes
24342 fi
24343 rm -f core conftest.err conftest.$ac_objext \
24344     conftest$ac_exeext conftest.$ac_ext
24345           CFLAGS="$chktls_save_CFLAGS"
24346           LDFLAGS="$chktls_save_LDFLAGS"
24347 else
24348   gcc_cv_have_tls=no
24349 fi
24350 rm -f core conftest.err conftest.$ac_objext \
24351     conftest$ac_exeext conftest.$ac_ext
24352
24353
24354 else
24355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h.  */
24357 __thread int a; int b; int main() { return a = b; }
24358 _ACEOF
24359 if ac_fn_c_try_run "$LINENO"; then :
24360                       chktls_save_LDFLAGS="$LDFLAGS"
24361       LDFLAGS="-static $LDFLAGS"
24362       if test x$gcc_no_link = xyes; then
24363   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24364 fi
24365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24366 /* end confdefs.h.  */
24367 int main() { return 0; }
24368 _ACEOF
24369 if ac_fn_c_try_link "$LINENO"; then :
24370   if test "$cross_compiling" = yes; then :
24371   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24373 as_fn_error "cannot run test program while cross compiling
24374 See \`config.log' for more details." "$LINENO" 5; }
24375 else
24376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h.  */
24378 __thread int a; int b; int main() { return a = b; }
24379 _ACEOF
24380 if ac_fn_c_try_run "$LINENO"; then :
24381   gcc_cv_have_tls=yes
24382 else
24383   gcc_cv_have_tls=no
24384 fi
24385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24386   conftest.$ac_objext conftest.beam conftest.$ac_ext
24387 fi
24388
24389 else
24390   gcc_cv_have_tls=yes
24391 fi
24392 rm -f core conftest.err conftest.$ac_objext \
24393     conftest$ac_exeext conftest.$ac_ext
24394       LDFLAGS="$chktls_save_LDFLAGS"
24395       if test $gcc_cv_have_tls = yes; then
24396                                                 chktls_save_CFLAGS="$CFLAGS"
24397         thread_CFLAGS=failed
24398         for flag in '' '-pthread' '-lpthread'; do
24399           CFLAGS="$flag $chktls_save_CFLAGS"
24400           if test x$gcc_no_link = xyes; then
24401   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24402 fi
24403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24404 /* end confdefs.h.  */
24405 #include <pthread.h>
24406                 void *g(void *d) { return NULL; }
24407 int
24408 main ()
24409 {
24410 pthread_t t; pthread_create(&t,NULL,g,NULL);
24411   ;
24412   return 0;
24413 }
24414 _ACEOF
24415 if ac_fn_c_try_link "$LINENO"; then :
24416   thread_CFLAGS="$flag"
24417 fi
24418 rm -f core conftest.err conftest.$ac_objext \
24419     conftest$ac_exeext conftest.$ac_ext
24420           if test "X$thread_CFLAGS" != Xfailed; then
24421             break
24422           fi
24423         done
24424         CFLAGS="$chktls_save_CFLAGS"
24425         if test "X$thread_CFLAGS" != Xfailed; then
24426           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24427                                                   if test "$cross_compiling" = yes; then :
24428   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24430 as_fn_error "cannot run test program while cross compiling
24431 See \`config.log' for more details." "$LINENO" 5; }
24432 else
24433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434 /* end confdefs.h.  */
24435 #include <pthread.h>
24436                 __thread int a;
24437                 static int *volatile a_in_other_thread;
24438                 static void *
24439                 thread_func (void *arg)
24440                 {
24441                   a_in_other_thread = &a;
24442                   return (void *)0;
24443                 }
24444 int
24445 main ()
24446 {
24447 pthread_t thread;
24448                 void *thread_retval;
24449                 int *volatile a_in_main_thread;
24450                 a_in_main_thread = &a;
24451                 if (pthread_create (&thread, (pthread_attr_t *)0,
24452                                     thread_func, (void *)0))
24453                   return 0;
24454                 if (pthread_join (thread, &thread_retval))
24455                   return 0;
24456                 return (a_in_other_thread == a_in_main_thread);
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 if ac_fn_c_try_run "$LINENO"; then :
24462   gcc_cv_have_tls=yes
24463 else
24464   gcc_cv_have_tls=no
24465 fi
24466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24467   conftest.$ac_objext conftest.beam conftest.$ac_ext
24468 fi
24469
24470           CFLAGS="$chktls_save_CFLAGS"
24471         fi
24472       fi
24473 else
24474   gcc_cv_have_tls=no
24475 fi
24476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24477   conftest.$ac_objext conftest.beam conftest.$ac_ext
24478 fi
24479
24480 fi
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24482 $as_echo "$gcc_cv_have_tls" >&6; }
24483   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24484
24485 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24486
24487   fi
24488
24489 # For _Unwind_GetIPInfo.
24490
24491
24492 # Check whether --with-system-libunwind was given.
24493 if test "${with_system_libunwind+set}" = set; then :
24494   withval=$with_system_libunwind;
24495 fi
24496
24497   # If system-libunwind was not specifically set, pick a default setting.
24498   if test x$with_system_libunwind = x; then
24499     case ${target} in
24500       ia64-*-hpux*) with_system_libunwind=yes ;;
24501       *) with_system_libunwind=no ;;
24502     esac
24503   fi
24504   # Based on system-libunwind and target, do we have ipinfo?
24505   if  test x$with_system_libunwind = xyes; then
24506     case ${target} in
24507       ia64-*-*) have_unwind_getipinfo=no ;;
24508       *) have_unwind_getipinfo=yes ;;
24509     esac
24510   else
24511     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24512
24513     case ${target} in
24514       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24515       *) have_unwind_getipinfo=yes ;;
24516     esac
24517
24518   fi
24519
24520   if test x$have_unwind_getipinfo = xyes; then
24521
24522 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24523
24524   fi
24525
24526
24527 # See if linker supports anonymous version scripts.
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24529 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24530 if test "${libjava_cv_anon_version_script+set}" = set; then :
24531   $as_echo_n "(cached) " >&6
24532 else
24533   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24534    libjava_cv_anon_version_script=no
24535    CFLAGS="$CFLAGS -fPIC";
24536    LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24537    echo '{ global: globalsymb*; local: *; };' > conftest.map
24538    if test x$gcc_no_link = xyes; then
24539   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24540 fi
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h.  */
24543 void globalsymbol (void) {} void localsymbol (void) {}
24544 int
24545 main ()
24546 {
24547
24548   ;
24549   return 0;
24550 }
24551 _ACEOF
24552 if ac_fn_c_try_link "$LINENO"; then :
24553   libjava_cv_anon_version_script=gnu
24554 fi
24555 rm -f core conftest.err conftest.$ac_objext \
24556     conftest$ac_exeext conftest.$ac_ext
24557    if test x$libjava_cv_anon_version_script = xno; then
24558      case "$target_os" in
24559        solaris2*)
24560          LDFLAGS="$save_LDFLAGS"
24561          LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24562          # Sun ld doesn't understand wildcards here.
24563          echo '{ global: globalsymbol; local: *; };' > conftest.map
24564          if test x$gcc_no_link = xyes; then
24565   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24566 fi
24567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568 /* end confdefs.h.  */
24569 void globalsymbol (void) {} void localsymbol (void) {}
24570 int
24571 main ()
24572 {
24573
24574   ;
24575   return 0;
24576 }
24577 _ACEOF
24578 if ac_fn_c_try_link "$LINENO"; then :
24579   libjava_cv_anon_version_script=sun
24580 fi
24581 rm -f core conftest.err conftest.$ac_objext \
24582     conftest$ac_exeext conftest.$ac_ext
24583          ;;
24584      esac
24585    fi
24586    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24587
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24590 $as_echo "$libjava_cv_anon_version_script" >&6; }
24591  if test "$libjava_cv_anon_version_script" != no; then
24592   ANONVERSCRIPT_TRUE=
24593   ANONVERSCRIPT_FALSE='#'
24594 else
24595   ANONVERSCRIPT_TRUE='#'
24596   ANONVERSCRIPT_FALSE=
24597 fi
24598
24599  if test "$libjava_cv_anon_version_script" = gnu; then
24600   ANONVERSCRIPT_GNU_TRUE=
24601   ANONVERSCRIPT_GNU_FALSE='#'
24602 else
24603   ANONVERSCRIPT_GNU_TRUE='#'
24604   ANONVERSCRIPT_GNU_FALSE=
24605 fi
24606
24607  if test "$libjava_cv_anon_version_script" = sun; then
24608   ANONVERSCRIPT_SUN_TRUE=
24609   ANONVERSCRIPT_SUN_FALSE='#'
24610 else
24611   ANONVERSCRIPT_SUN_TRUE='#'
24612   ANONVERSCRIPT_SUN_FALSE=
24613 fi
24614
24615
24616 # Check if linker supports static linking on a per library basis
24617 LD_START_STATIC_SPEC=
24618 LD_FINISH_STATIC_SPEC=
24619 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24620   if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24621     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24622     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24623   fi
24624 fi
24625
24626
24627
24628 here=`${PWDCMD-pwd}`
24629
24630
24631 # We get this from the environment.
24632
24633
24634 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24635
24636 # Check whether --with-python-dir was given.
24637 if test "${with_python_dir+set}" = set; then :
24638   withval=$with_python_dir; with_python_dir=$withval
24639 else
24640   with_python_dir="${default_python_dir}"
24641 fi
24642
24643
24644 # Needed for installing Python modules during make install.
24645 python_mod_dir="\${prefix}${with_python_dir}"
24646
24647 # Needed for substituting into aot-compile*
24648 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24649
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24651 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24652
24653
24654
24655 # needed for aot-compile-rpm
24656 MAKE=`which make`
24657
24658
24659 # Check whether --enable-aot-compile-rpm was given.
24660 if test "${enable_aot_compile_rpm+set}" = set; then :
24661   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24662     yes) AOT_RPM_ENABLED=yes ;;
24663     no)  AOT_RPM_ENABLED=no ;;
24664     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24665   esac
24666 else
24667   AOT_RPM_ENABLED=no
24668
24669 fi
24670
24671  if test "x${AOT_RPM_ENABLED}" = xyes; then
24672   INSTALL_AOT_RPM_TRUE=
24673   INSTALL_AOT_RPM_FALSE='#'
24674 else
24675   INSTALL_AOT_RPM_TRUE='#'
24676   INSTALL_AOT_RPM_FALSE=
24677 fi
24678
24679
24680 # Check whether --enable-java-home was given.
24681 if test "${enable_java_home+set}" = set; then :
24682   enableval=$enable_java_home; case "${enableval}" in
24683     yes) JAVA_HOME_ENABLED=yes ;;
24684     no)  JAVA_HOME_ENABLED=no ;;
24685     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24686   esac
24687 else
24688   JAVA_HOME_ENABLED=no
24689
24690 fi
24691
24692  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24693   CREATE_JAVA_HOME_TRUE=
24694   CREATE_JAVA_HOME_FALSE='#'
24695 else
24696   CREATE_JAVA_HOME_TRUE='#'
24697   CREATE_JAVA_HOME_FALSE=
24698 fi
24699
24700
24701 # Only do these checks if java-home above is enabled.
24702 if test "x${JAVA_HOME_ENABLED}" = xyes
24703 then
24704
24705
24706 # Check whether --with-gcc-suffix was given.
24707 if test "${with_gcc_suffix+set}" = set; then :
24708   withval=$with_gcc_suffix; gcc_suffix=$withval
24709 else
24710   gcc_suffix=""
24711 fi
24712
24713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24714 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24715
24716
24717
24718 # Check whether --with-arch-directory was given.
24719 if test "${with_arch_directory+set}" = set; then :
24720   withval=$with_arch_directory; host_cpu=$withval
24721 else
24722   host_cpu=""
24723 fi
24724
24725
24726
24727 # Check whether --with-os-directory was given.
24728 if test "${with_os_directory+set}" = set; then :
24729   withval=$with_os_directory; host_os=$withval
24730 else
24731   host_os=""
24732 fi
24733
24734
24735
24736 # Check whether --with-origin-name was given.
24737 if test "${with_origin_name+set}" = set; then :
24738   withval=$with_origin_name; origin_name=$withval
24739 else
24740   origin_name=gcj${gcc_suffix}
24741 fi
24742
24743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24744 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24745
24746
24747 # Check whether --with-arch-suffix was given.
24748 if test "${with_arch_suffix+set}" = set; then :
24749   withval=$with_arch_suffix; arch_suffix=$withval
24750 else
24751   arch_suffix=""
24752 fi
24753
24754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24755 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24756
24757
24758 # Check whether --with-jvm-root-dir was given.
24759 if test "${with_jvm_root_dir+set}" = set; then :
24760   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24761 else
24762   jvm_root_dir="\${prefix}/lib/jvm"
24763 fi
24764
24765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24766 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24767
24768
24769 # Check whether --with-jvm-jar-dir was given.
24770 if test "${with_jvm_jar_dir+set}" = set; then :
24771   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24772 else
24773   jvm_jar_dir=\${prefix}/lib/jvm-exports
24774 fi
24775
24776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24777 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24778
24779   JAVA_VERSION=1.5.0
24780   BUILD_VERSION=0
24781
24782
24783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24784 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24785
24786   jre_dir=jre
24787   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24788   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24789
24790   JVM_ROOT_DIR=${jvm_root_dir}
24791
24792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24793 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24794
24795   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24796
24797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24798 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24799
24800   JVM_JAR_DIR=${jvm_jar_dir}
24801
24802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24803 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24804
24805   JRE_DIR=${jre_dir}
24806
24807
24808   JRE_LNK=${jre_lnk}
24809
24810
24811   SDK_LNK=${sdk_lnk}
24812
24813
24814   SDK_BIN_DIR=${jvm_root_dir}/bin
24815
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24817 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24818
24819   SDK_LIB_DIR=${jvm_root_dir}/lib
24820
24821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24822 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24823
24824   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24825
24826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24827 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24828
24829   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24830
24831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24832 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24833
24834   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24835
24836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24837 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24838
24839   # Find gcj prefix using gcj found in PATH.
24840   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24841
24842   # Where do the gcj binaries live?
24843   # For jhbuild based builds, they all live in a sibling of bin called
24844   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24845   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24846
24847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24848 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24849
24850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24851 $as_echo "host is ${host}" >&6; }
24852   if test "x${host_cpu}" = "x"
24853   then
24854     case ${host} in
24855       *-mingw* | *-cygwin*)
24856         host_cpu=x86;;
24857       i486-* | i586-* | i686-*)
24858         host_cpu=i386;;
24859       x86_64-*)
24860         host_cpu=amd64;;
24861       *)
24862         host_cpu=${host_cpu};;
24863     esac
24864   fi
24865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24866 $as_echo "arch directory: ${host_cpu}" >&6; }
24867   CPU=${host_cpu}
24868
24869
24870   if test "x${host_os}" = "x"
24871   then
24872     case ${host} in
24873       *-mingw* | *-cygwin*)
24874         host_os=win32;;
24875       *-linux*)
24876         host_os=linux;;
24877       *)
24878         host_os=${host_os};;
24879     esac
24880   fi
24881   echo os directory: ${host_os}
24882   OS=${host_os}
24883
24884
24885   # make an expanded $libdir, for substituting into
24886   # scripts (and other non-Makefile things).
24887   LIBDIR=$libdir
24888   if test "x${exec_prefix}" = "xNONE"
24889   then
24890       lib_exec_prefix=$expanded_prefix
24891   else
24892       lib_exec_prefix=$exec_prefix
24893   fi
24894   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24895
24896 fi
24897
24898 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db"
24899
24900
24901 if test ${multilib} = yes; then
24902   multilib_arg="--enable-multilib"
24903 else
24904   multilib_arg=
24905 fi
24906
24907 ac_config_files="$ac_config_files scripts/jar"
24908
24909 cat >confcache <<\_ACEOF
24910 # This file is a shell script that caches the results of configure
24911 # tests run on this system so they can be shared between configure
24912 # scripts and configure runs, see configure's option --config-cache.
24913 # It is not useful on other systems.  If it contains results you don't
24914 # want to keep, you may remove or edit it.
24915 #
24916 # config.status only pays attention to the cache file if you give it
24917 # the --recheck option to rerun configure.
24918 #
24919 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24920 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24921 # following values.
24922
24923 _ACEOF
24924
24925 # The following way of writing the cache mishandles newlines in values,
24926 # but we know of no workaround that is simple, portable, and efficient.
24927 # So, we kill variables containing newlines.
24928 # Ultrix sh set writes to stderr and can't be redirected directly,
24929 # and sets the high bit in the cache file unless we assign to the vars.
24930 (
24931   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24932     eval ac_val=\$$ac_var
24933     case $ac_val in #(
24934     *${as_nl}*)
24935       case $ac_var in #(
24936       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24938       esac
24939       case $ac_var in #(
24940       _ | IFS | as_nl) ;; #(
24941       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24942       *) { eval $ac_var=; unset $ac_var;} ;;
24943       esac ;;
24944     esac
24945   done
24946
24947   (set) 2>&1 |
24948     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24949     *${as_nl}ac_space=\ *)
24950       # `set' does not quote correctly, so add quotes: double-quote
24951       # substitution turns \\\\ into \\, and sed turns \\ into \.
24952       sed -n \
24953         "s/'/'\\\\''/g;
24954           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24955       ;; #(
24956     *)
24957       # `set' quotes correctly as required by POSIX, so do not add quotes.
24958       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24959       ;;
24960     esac |
24961     sort
24962 ) |
24963   sed '
24964      /^ac_cv_env_/b end
24965      t clear
24966      :clear
24967      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24968      t end
24969      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24970      :end' >>confcache
24971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24972   if test -w "$cache_file"; then
24973     test "x$cache_file" != "x/dev/null" &&
24974       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24975 $as_echo "$as_me: updating cache $cache_file" >&6;}
24976     cat confcache >$cache_file
24977   else
24978     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24979 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24980   fi
24981 fi
24982 rm -f confcache
24983
24984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24985 # Let make expand exec_prefix.
24986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24987
24988 DEFS=-DHAVE_CONFIG_H
24989
24990 ac_libobjs=
24991 ac_ltlibobjs=
24992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24993   # 1. Remove the extension, and $U if already installed.
24994   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24995   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24996   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24997   #    will be set to the directory where LIBOBJS objects are built.
24998   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24999   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25000 done
25001 LIBOBJS=$ac_libobjs
25002
25003 LTLIBOBJS=$ac_ltlibobjs
25004
25005
25006 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25007   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25009 fi
25010 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25011   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25013 fi
25014 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25015   as_fn_error "conditional \"AMDEP\" was never defined.
25016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25017 fi
25018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25019   as_fn_error "conditional \"am__fastdepCC\" was never defined.
25020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25021 fi
25022 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25023   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25025 fi
25026  if test -n "$EXEEXT"; then
25027   am__EXEEXT_TRUE=
25028   am__EXEEXT_FALSE='#'
25029 else
25030   am__EXEEXT_TRUE='#'
25031   am__EXEEXT_FALSE=
25032 fi
25033
25034 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25035   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25037 fi
25038 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25039   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25041 fi
25042 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25043   as_fn_error "conditional \"XLIB_AWT\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25045 fi
25046 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25047   as_fn_error "conditional \"X_AWT\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25049 fi
25050 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25051   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25053 fi
25054 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25055   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25057 fi
25058 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25059   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25061 fi
25062 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25063   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25065 fi
25066 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25067   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25069 fi
25070 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25071   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25073 fi
25074 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25075   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25077 fi
25078 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25079   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25081 fi
25082 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25083   as_fn_error "conditional \"INTERPRETER\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25085 fi
25086 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25087   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25089 fi
25090 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25091   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25093 fi
25094 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25095   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25097 fi
25098 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25099   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25101 fi
25102 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25103   as_fn_error "conditional \"USING_NOGC\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25105 fi
25106 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25107   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25109 fi
25110 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25111   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113 fi
25114 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25115   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117 fi
25118 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25119   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121 fi
25122 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25123   as_fn_error "conditional \"USING_GCC\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125 fi
25126 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25127   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 fi
25130
25131 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25132   as_fn_error "conditional \"NATIVE\" was never defined.
25133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25134 fi
25135 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25136   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25138 fi
25139 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25140   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25142 fi
25143 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25144   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25146 fi
25147 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25148   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25150 fi
25151 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25152   as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25154 fi
25155 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25156   as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25158 fi
25159 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25160   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25162 fi
25163 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25164   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 fi
25167
25168 : ${CONFIG_STATUS=./config.status}
25169 ac_write_fail=0
25170 ac_clean_files_save=$ac_clean_files
25171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25174 as_write_fail=0
25175 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25176 #! $SHELL
25177 # Generated by $as_me.
25178 # Run this file to recreate the current configuration.
25179 # Compiler output produced by configure, useful for debugging
25180 # configure, is in config.log if it exists.
25181
25182 debug=false
25183 ac_cs_recheck=false
25184 ac_cs_silent=false
25185
25186 SHELL=\${CONFIG_SHELL-$SHELL}
25187 export SHELL
25188 _ASEOF
25189 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25190 ## -------------------- ##
25191 ## M4sh Initialization. ##
25192 ## -------------------- ##
25193
25194 # Be more Bourne compatible
25195 DUALCASE=1; export DUALCASE # for MKS sh
25196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25197   emulate sh
25198   NULLCMD=:
25199   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25200   # is contrary to our usage.  Disable this feature.
25201   alias -g '${1+"$@"}'='"$@"'
25202   setopt NO_GLOB_SUBST
25203 else
25204   case `(set -o) 2>/dev/null` in #(
25205   *posix*) :
25206     set -o posix ;; #(
25207   *) :
25208      ;;
25209 esac
25210 fi
25211
25212
25213 as_nl='
25214 '
25215 export as_nl
25216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25220 # Prefer a ksh shell builtin over an external printf program on Solaris,
25221 # but without wasting forks for bash or zsh.
25222 if test -z "$BASH_VERSION$ZSH_VERSION" \
25223     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25224   as_echo='print -r --'
25225   as_echo_n='print -rn --'
25226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25227   as_echo='printf %s\n'
25228   as_echo_n='printf %s'
25229 else
25230   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25231     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25232     as_echo_n='/usr/ucb/echo -n'
25233   else
25234     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25235     as_echo_n_body='eval
25236       arg=$1;
25237       case $arg in #(
25238       *"$as_nl"*)
25239         expr "X$arg" : "X\\(.*\\)$as_nl";
25240         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25241       esac;
25242       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25243     '
25244     export as_echo_n_body
25245     as_echo_n='sh -c $as_echo_n_body as_echo'
25246   fi
25247   export as_echo_body
25248   as_echo='sh -c $as_echo_body as_echo'
25249 fi
25250
25251 # The user is always right.
25252 if test "${PATH_SEPARATOR+set}" != set; then
25253   PATH_SEPARATOR=:
25254   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25255     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25256       PATH_SEPARATOR=';'
25257   }
25258 fi
25259
25260
25261 # IFS
25262 # We need space, tab and new line, in precisely that order.  Quoting is
25263 # there to prevent editors from complaining about space-tab.
25264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25265 # splitting by setting IFS to empty value.)
25266 IFS=" ""        $as_nl"
25267
25268 # Find who we are.  Look in the path if we contain no directory separator.
25269 case $0 in #((
25270   *[\\/]* ) as_myself=$0 ;;
25271   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25272 for as_dir in $PATH
25273 do
25274   IFS=$as_save_IFS
25275   test -z "$as_dir" && as_dir=.
25276     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25277   done
25278 IFS=$as_save_IFS
25279
25280      ;;
25281 esac
25282 # We did not find ourselves, most probably we were run as `sh COMMAND'
25283 # in which case we are not to be found in the path.
25284 if test "x$as_myself" = x; then
25285   as_myself=$0
25286 fi
25287 if test ! -f "$as_myself"; then
25288   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25289   exit 1
25290 fi
25291
25292 # Unset variables that we do not need and which cause bugs (e.g. in
25293 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25294 # suppresses any "Segmentation fault" message there.  '((' could
25295 # trigger a bug in pdksh 5.2.14.
25296 for as_var in BASH_ENV ENV MAIL MAILPATH
25297 do eval test x\${$as_var+set} = xset \
25298   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25299 done
25300 PS1='$ '
25301 PS2='> '
25302 PS4='+ '
25303
25304 # NLS nuisances.
25305 LC_ALL=C
25306 export LC_ALL
25307 LANGUAGE=C
25308 export LANGUAGE
25309
25310 # CDPATH.
25311 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25312
25313
25314 # as_fn_error ERROR [LINENO LOG_FD]
25315 # ---------------------------------
25316 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25317 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25318 # script with status $?, using 1 if that was 0.
25319 as_fn_error ()
25320 {
25321   as_status=$?; test $as_status -eq 0 && as_status=1
25322   if test "$3"; then
25323     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25324     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25325   fi
25326   $as_echo "$as_me: error: $1" >&2
25327   as_fn_exit $as_status
25328 } # as_fn_error
25329
25330
25331 # as_fn_set_status STATUS
25332 # -----------------------
25333 # Set $? to STATUS, without forking.
25334 as_fn_set_status ()
25335 {
25336   return $1
25337 } # as_fn_set_status
25338
25339 # as_fn_exit STATUS
25340 # -----------------
25341 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25342 as_fn_exit ()
25343 {
25344   set +e
25345   as_fn_set_status $1
25346   exit $1
25347 } # as_fn_exit
25348
25349 # as_fn_unset VAR
25350 # ---------------
25351 # Portably unset VAR.
25352 as_fn_unset ()
25353 {
25354   { eval $1=; unset $1;}
25355 }
25356 as_unset=as_fn_unset
25357 # as_fn_append VAR VALUE
25358 # ----------------------
25359 # Append the text in VALUE to the end of the definition contained in VAR. Take
25360 # advantage of any shell optimizations that allow amortized linear growth over
25361 # repeated appends, instead of the typical quadratic growth present in naive
25362 # implementations.
25363 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25364   eval 'as_fn_append ()
25365   {
25366     eval $1+=\$2
25367   }'
25368 else
25369   as_fn_append ()
25370   {
25371     eval $1=\$$1\$2
25372   }
25373 fi # as_fn_append
25374
25375 # as_fn_arith ARG...
25376 # ------------------
25377 # Perform arithmetic evaluation on the ARGs, and store the result in the
25378 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25379 # must be portable across $(()) and expr.
25380 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25381   eval 'as_fn_arith ()
25382   {
25383     as_val=$(( $* ))
25384   }'
25385 else
25386   as_fn_arith ()
25387   {
25388     as_val=`expr "$@" || test $? -eq 1`
25389   }
25390 fi # as_fn_arith
25391
25392
25393 if expr a : '\(a\)' >/dev/null 2>&1 &&
25394    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25395   as_expr=expr
25396 else
25397   as_expr=false
25398 fi
25399
25400 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25401   as_basename=basename
25402 else
25403   as_basename=false
25404 fi
25405
25406 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25407   as_dirname=dirname
25408 else
25409   as_dirname=false
25410 fi
25411
25412 as_me=`$as_basename -- "$0" ||
25413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25414          X"$0" : 'X\(//\)$' \| \
25415          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25416 $as_echo X/"$0" |
25417     sed '/^.*\/\([^/][^/]*\)\/*$/{
25418             s//\1/
25419             q
25420           }
25421           /^X\/\(\/\/\)$/{
25422             s//\1/
25423             q
25424           }
25425           /^X\/\(\/\).*/{
25426             s//\1/
25427             q
25428           }
25429           s/.*/./; q'`
25430
25431 # Avoid depending upon Character Ranges.
25432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25435 as_cr_digits='0123456789'
25436 as_cr_alnum=$as_cr_Letters$as_cr_digits
25437
25438 ECHO_C= ECHO_N= ECHO_T=
25439 case `echo -n x` in #(((((
25440 -n*)
25441   case `echo 'xy\c'` in
25442   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25443   xy)  ECHO_C='\c';;
25444   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25445        ECHO_T=' ';;
25446   esac;;
25447 *)
25448   ECHO_N='-n';;
25449 esac
25450
25451 rm -f conf$$ conf$$.exe conf$$.file
25452 if test -d conf$$.dir; then
25453   rm -f conf$$.dir/conf$$.file
25454 else
25455   rm -f conf$$.dir
25456   mkdir conf$$.dir 2>/dev/null
25457 fi
25458 if (echo >conf$$.file) 2>/dev/null; then
25459   if ln -s conf$$.file conf$$ 2>/dev/null; then
25460     as_ln_s='ln -s'
25461     # ... but there are two gotchas:
25462     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25463     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25464     # In both cases, we have to default to `cp -p'.
25465     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25466       as_ln_s='cp -p'
25467   elif ln conf$$.file conf$$ 2>/dev/null; then
25468     as_ln_s=ln
25469   else
25470     as_ln_s='cp -p'
25471   fi
25472 else
25473   as_ln_s='cp -p'
25474 fi
25475 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25476 rmdir conf$$.dir 2>/dev/null
25477
25478
25479 # as_fn_mkdir_p
25480 # -------------
25481 # Create "$as_dir" as a directory, including parents if necessary.
25482 as_fn_mkdir_p ()
25483 {
25484
25485   case $as_dir in #(
25486   -*) as_dir=./$as_dir;;
25487   esac
25488   test -d "$as_dir" || eval $as_mkdir_p || {
25489     as_dirs=
25490     while :; do
25491       case $as_dir in #(
25492       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25493       *) as_qdir=$as_dir;;
25494       esac
25495       as_dirs="'$as_qdir' $as_dirs"
25496       as_dir=`$as_dirname -- "$as_dir" ||
25497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25498          X"$as_dir" : 'X\(//\)[^/]' \| \
25499          X"$as_dir" : 'X\(//\)$' \| \
25500          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25501 $as_echo X"$as_dir" |
25502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25503             s//\1/
25504             q
25505           }
25506           /^X\(\/\/\)[^/].*/{
25507             s//\1/
25508             q
25509           }
25510           /^X\(\/\/\)$/{
25511             s//\1/
25512             q
25513           }
25514           /^X\(\/\).*/{
25515             s//\1/
25516             q
25517           }
25518           s/.*/./; q'`
25519       test -d "$as_dir" && break
25520     done
25521     test -z "$as_dirs" || eval "mkdir $as_dirs"
25522   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25523
25524
25525 } # as_fn_mkdir_p
25526 if mkdir -p . 2>/dev/null; then
25527   as_mkdir_p='mkdir -p "$as_dir"'
25528 else
25529   test -d ./-p && rmdir ./-p
25530   as_mkdir_p=false
25531 fi
25532
25533 if test -x / >/dev/null 2>&1; then
25534   as_test_x='test -x'
25535 else
25536   if ls -dL / >/dev/null 2>&1; then
25537     as_ls_L_option=L
25538   else
25539     as_ls_L_option=
25540   fi
25541   as_test_x='
25542     eval sh -c '\''
25543       if test -d "$1"; then
25544         test -d "$1/.";
25545       else
25546         case $1 in #(
25547         -*)set "./$1";;
25548         esac;
25549         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25550         ???[sx]*):;;*)false;;esac;fi
25551     '\'' sh
25552   '
25553 fi
25554 as_executable_p=$as_test_x
25555
25556 # Sed expression to map a string onto a valid CPP name.
25557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25558
25559 # Sed expression to map a string onto a valid variable name.
25560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25561
25562
25563 exec 6>&1
25564 ## ----------------------------------- ##
25565 ## Main body of $CONFIG_STATUS script. ##
25566 ## ----------------------------------- ##
25567 _ASEOF
25568 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25569
25570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25571 # Save the log message, to keep $0 and so on meaningful, and to
25572 # report actual input values of CONFIG_FILES etc. instead of their
25573 # values after options handling.
25574 ac_log="
25575 This file was extended by libjava $as_me version-unused, which was
25576 generated by GNU Autoconf 2.64.  Invocation command line was
25577
25578   CONFIG_FILES    = $CONFIG_FILES
25579   CONFIG_HEADERS  = $CONFIG_HEADERS
25580   CONFIG_LINKS    = $CONFIG_LINKS
25581   CONFIG_COMMANDS = $CONFIG_COMMANDS
25582   $ $0 $@
25583
25584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25585 "
25586
25587 _ACEOF
25588
25589 case $ac_config_files in *"
25590 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25591 esac
25592
25593 case $ac_config_headers in *"
25594 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25595 esac
25596
25597
25598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25599 # Files that config.status was made for.
25600 config_files="$ac_config_files"
25601 config_headers="$ac_config_headers"
25602 config_links="$ac_config_links"
25603 config_commands="$ac_config_commands"
25604
25605 _ACEOF
25606
25607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25608 ac_cs_usage="\
25609 \`$as_me' instantiates files and other configuration actions
25610 from templates according to the current configuration.  Unless the files
25611 and actions are specified as TAGs, all are instantiated by default.
25612
25613 Usage: $0 [OPTION]... [TAG]...
25614
25615   -h, --help       print this help, then exit
25616   -V, --version    print version number and configuration settings, then exit
25617   -q, --quiet, --silent
25618                    do not print progress messages
25619   -d, --debug      don't remove temporary files
25620       --recheck    update $as_me by reconfiguring in the same conditions
25621       --file=FILE[:TEMPLATE]
25622                    instantiate the configuration file FILE
25623       --header=FILE[:TEMPLATE]
25624                    instantiate the configuration header FILE
25625
25626 Configuration files:
25627 $config_files
25628
25629 Configuration headers:
25630 $config_headers
25631
25632 Configuration links:
25633 $config_links
25634
25635 Configuration commands:
25636 $config_commands
25637
25638 Report bugs to the package provider."
25639
25640 _ACEOF
25641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25642 ac_cs_version="\\
25643 libjava config.status version-unused
25644 configured by $0, generated by GNU Autoconf 2.64,
25645   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25646
25647 Copyright (C) 2009 Free Software Foundation, Inc.
25648 This config.status script is free software; the Free Software Foundation
25649 gives unlimited permission to copy, distribute and modify it."
25650
25651 ac_pwd='$ac_pwd'
25652 srcdir='$srcdir'
25653 INSTALL='$INSTALL'
25654 MKDIR_P='$MKDIR_P'
25655 AWK='$AWK'
25656 test -n "\$AWK" || AWK=awk
25657 _ACEOF
25658
25659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25660 # The default lists apply if the user does not specify any file.
25661 ac_need_defaults=:
25662 while test $# != 0
25663 do
25664   case $1 in
25665   --*=*)
25666     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25667     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25668     ac_shift=:
25669     ;;
25670   *)
25671     ac_option=$1
25672     ac_optarg=$2
25673     ac_shift=shift
25674     ;;
25675   esac
25676
25677   case $ac_option in
25678   # Handling of the options.
25679   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25680     ac_cs_recheck=: ;;
25681   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25682     $as_echo "$ac_cs_version"; exit ;;
25683   --debug | --debu | --deb | --de | --d | -d )
25684     debug=: ;;
25685   --file | --fil | --fi | --f )
25686     $ac_shift
25687     case $ac_optarg in
25688     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25689     esac
25690     as_fn_append CONFIG_FILES " '$ac_optarg'"
25691     ac_need_defaults=false;;
25692   --header | --heade | --head | --hea )
25693     $ac_shift
25694     case $ac_optarg in
25695     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25696     esac
25697     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25698     ac_need_defaults=false;;
25699   --he | --h)
25700     # Conflict between --help and --header
25701     as_fn_error "ambiguous option: \`$1'
25702 Try \`$0 --help' for more information.";;
25703   --help | --hel | -h )
25704     $as_echo "$ac_cs_usage"; exit ;;
25705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25706   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25707     ac_cs_silent=: ;;
25708
25709   # This is an error.
25710   -*) as_fn_error "unrecognized option: \`$1'
25711 Try \`$0 --help' for more information." ;;
25712
25713   *) as_fn_append ac_config_targets " $1"
25714      ac_need_defaults=false ;;
25715
25716   esac
25717   shift
25718 done
25719
25720 ac_configure_extra_args=
25721
25722 if $ac_cs_silent; then
25723   exec 6>/dev/null
25724   ac_configure_extra_args="$ac_configure_extra_args --silent"
25725 fi
25726
25727 _ACEOF
25728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25729 if \$ac_cs_recheck; then
25730   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25731   shift
25732   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25733   CONFIG_SHELL='$SHELL'
25734   export CONFIG_SHELL
25735   exec "\$@"
25736 fi
25737
25738 _ACEOF
25739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25740 exec 5>>config.log
25741 {
25742   echo
25743   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25744 ## Running $as_me. ##
25745 _ASBOX
25746   $as_echo "$ac_log"
25747 } >&5
25748
25749 _ACEOF
25750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25751 #
25752 # INIT-COMMANDS
25753 #
25754
25755 srcdir="$srcdir"
25756 host="$host"
25757 target="$target"
25758 with_multisubdir="$with_multisubdir"
25759 with_multisrctop="$with_multisrctop"
25760 with_target_subdir="$with_target_subdir"
25761 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25762 multi_basedir="$multi_basedir"
25763 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25764 CC="$CC"
25765 CXX="$CXX"
25766 GFORTRAN="$GFORTRAN"
25767 GCJ="$GCJ"
25768 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25769
25770
25771 # The HP-UX ksh and POSIX shell print the target directory to stdout
25772 # if CDPATH is set.
25773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25774
25775 sed_quote_subst='$sed_quote_subst'
25776 double_quote_subst='$double_quote_subst'
25777 delay_variable_subst='$delay_variable_subst'
25778 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25779 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25780 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25781 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25782 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25783 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25784 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25785 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25786 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25787 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25788 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25789 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25790 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25791 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25792 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25793 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25794 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25795 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25796 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25797 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25798 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25799 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25800 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25801 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25802 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25803 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25804 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25805 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25806 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25807 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25808 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25809 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25810 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25811 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25812 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25813 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25814 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25815 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25816 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25817 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25818 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25819 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25820 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25821 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25822 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25823 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25824 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25825 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25826 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25827 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25828 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25829 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25830 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25831 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25832 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25833 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25834 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25835 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25836 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25837 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25838 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25839 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25840 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25841 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25842 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25843 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25844 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25845 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25846 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25847 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25848 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25849 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25850 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25851 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25852 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25853 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25854 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25855 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25856 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25857 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25858 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25859 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25860 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25861 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25862 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25863 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25864 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25865 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25866 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25867 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25868 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25869 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25870 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25871 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25872 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25873 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25874 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25875 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25876 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25877 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25878 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25879 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25880 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25881 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25882 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25883 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25884 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25885 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25886 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25887 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25888 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25889 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25890 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25891 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25892 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25893 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25894 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25895 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25896 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25897 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25898 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25899 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25900 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25901 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25902 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25903 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25904 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25905 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25906 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25907 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25908 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25909 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25910 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25911 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25912 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25913 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25914 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25915 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25916 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25917 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25918 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25919 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25920 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25921 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25922 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25923 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25924 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25925 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25926 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25927 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25928 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25929 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25930 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25931 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25932 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25933 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25934 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25935 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25936 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25937 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25938 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25939 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25940 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25941 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25942 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25943 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25944 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25945 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25946 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25947 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25948 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25949 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25950 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25951 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25952 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25953 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25954 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25955 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25956 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25957 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25958 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25959 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25960 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25961 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25962 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25963 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25964 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25965 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25966 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25967 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25968 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25969 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25970 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25971 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25972 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25973 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25974 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25975 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25976 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25977 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25978 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25979 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25980 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25981 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25982 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25983 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25984 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25985 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25986 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25987 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25988 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25989 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25990 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25991 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25992 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25993 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25994 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25995 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25996 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25997 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25998 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25999 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26000 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26001 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26002
26003 LTCC='$LTCC'
26004 LTCFLAGS='$LTCFLAGS'
26005 compiler='$compiler_DEFAULT'
26006
26007 # A function that is used when there is no print builtin or printf.
26008 func_fallback_echo ()
26009 {
26010   eval 'cat <<_LTECHO_EOF
26011 \$1
26012 _LTECHO_EOF'
26013 }
26014
26015 # Quote evaled strings.
26016 for var in SHELL \
26017 ECHO \
26018 SED \
26019 GREP \
26020 EGREP \
26021 FGREP \
26022 LD \
26023 NM \
26024 LN_S \
26025 lt_SP2NL \
26026 lt_NL2SP \
26027 reload_flag \
26028 OBJDUMP \
26029 deplibs_check_method \
26030 file_magic_cmd \
26031 AR \
26032 AR_FLAGS \
26033 STRIP \
26034 RANLIB \
26035 CC \
26036 CFLAGS \
26037 compiler \
26038 lt_cv_sys_global_symbol_pipe \
26039 lt_cv_sys_global_symbol_to_cdecl \
26040 lt_cv_sys_global_symbol_to_c_name_address \
26041 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26042 lt_prog_compiler_no_builtin_flag \
26043 lt_prog_compiler_wl \
26044 lt_prog_compiler_pic \
26045 lt_prog_compiler_static \
26046 lt_cv_prog_compiler_c_o \
26047 need_locks \
26048 DSYMUTIL \
26049 NMEDIT \
26050 LIPO \
26051 OTOOL \
26052 OTOOL64 \
26053 shrext_cmds \
26054 export_dynamic_flag_spec \
26055 whole_archive_flag_spec \
26056 compiler_needs_object \
26057 with_gnu_ld \
26058 allow_undefined_flag \
26059 no_undefined_flag \
26060 hardcode_libdir_flag_spec \
26061 hardcode_libdir_flag_spec_ld \
26062 hardcode_libdir_separator \
26063 fix_srcfile_path \
26064 exclude_expsyms \
26065 include_expsyms \
26066 file_list_spec \
26067 variables_saved_for_relink \
26068 libname_spec \
26069 library_names_spec \
26070 soname_spec \
26071 install_override_mode \
26072 finish_eval \
26073 old_striplib \
26074 striplib \
26075 compiler_lib_search_dirs \
26076 predep_objects \
26077 postdep_objects \
26078 predeps \
26079 postdeps \
26080 compiler_lib_search_path \
26081 LD_CXX \
26082 LD_GCJ \
26083 reload_flag_CXX \
26084 reload_flag_GCJ \
26085 compiler_CXX \
26086 compiler_GCJ \
26087 lt_prog_compiler_no_builtin_flag_CXX \
26088 lt_prog_compiler_no_builtin_flag_GCJ \
26089 lt_prog_compiler_wl_CXX \
26090 lt_prog_compiler_wl_GCJ \
26091 lt_prog_compiler_pic_CXX \
26092 lt_prog_compiler_pic_GCJ \
26093 lt_prog_compiler_static_CXX \
26094 lt_prog_compiler_static_GCJ \
26095 lt_cv_prog_compiler_c_o_CXX \
26096 lt_cv_prog_compiler_c_o_GCJ \
26097 export_dynamic_flag_spec_CXX \
26098 export_dynamic_flag_spec_GCJ \
26099 whole_archive_flag_spec_CXX \
26100 whole_archive_flag_spec_GCJ \
26101 compiler_needs_object_CXX \
26102 compiler_needs_object_GCJ \
26103 with_gnu_ld_CXX \
26104 with_gnu_ld_GCJ \
26105 allow_undefined_flag_CXX \
26106 allow_undefined_flag_GCJ \
26107 no_undefined_flag_CXX \
26108 no_undefined_flag_GCJ \
26109 hardcode_libdir_flag_spec_CXX \
26110 hardcode_libdir_flag_spec_GCJ \
26111 hardcode_libdir_flag_spec_ld_CXX \
26112 hardcode_libdir_flag_spec_ld_GCJ \
26113 hardcode_libdir_separator_CXX \
26114 hardcode_libdir_separator_GCJ \
26115 fix_srcfile_path_CXX \
26116 fix_srcfile_path_GCJ \
26117 exclude_expsyms_CXX \
26118 exclude_expsyms_GCJ \
26119 include_expsyms_CXX \
26120 include_expsyms_GCJ \
26121 file_list_spec_CXX \
26122 file_list_spec_GCJ \
26123 compiler_lib_search_dirs_CXX \
26124 compiler_lib_search_dirs_GCJ \
26125 predep_objects_CXX \
26126 predep_objects_GCJ \
26127 postdep_objects_CXX \
26128 postdep_objects_GCJ \
26129 predeps_CXX \
26130 predeps_GCJ \
26131 postdeps_CXX \
26132 postdeps_GCJ \
26133 compiler_lib_search_path_CXX \
26134 compiler_lib_search_path_GCJ; do
26135     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26136     *[\\\\\\\`\\"\\\$]*)
26137       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26138       ;;
26139     *)
26140       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26141       ;;
26142     esac
26143 done
26144
26145 # Double-quote double-evaled strings.
26146 for var in reload_cmds \
26147 old_postinstall_cmds \
26148 old_postuninstall_cmds \
26149 old_archive_cmds \
26150 extract_expsyms_cmds \
26151 old_archive_from_new_cmds \
26152 old_archive_from_expsyms_cmds \
26153 archive_cmds \
26154 archive_expsym_cmds \
26155 module_cmds \
26156 module_expsym_cmds \
26157 export_symbols_cmds \
26158 prelink_cmds \
26159 postinstall_cmds \
26160 postuninstall_cmds \
26161 finish_cmds \
26162 sys_lib_search_path_spec \
26163 sys_lib_dlsearch_path_spec \
26164 reload_cmds_CXX \
26165 reload_cmds_GCJ \
26166 old_archive_cmds_CXX \
26167 old_archive_cmds_GCJ \
26168 old_archive_from_new_cmds_CXX \
26169 old_archive_from_new_cmds_GCJ \
26170 old_archive_from_expsyms_cmds_CXX \
26171 old_archive_from_expsyms_cmds_GCJ \
26172 archive_cmds_CXX \
26173 archive_cmds_GCJ \
26174 archive_expsym_cmds_CXX \
26175 archive_expsym_cmds_GCJ \
26176 module_cmds_CXX \
26177 module_cmds_GCJ \
26178 module_expsym_cmds_CXX \
26179 module_expsym_cmds_GCJ \
26180 export_symbols_cmds_CXX \
26181 export_symbols_cmds_GCJ \
26182 prelink_cmds_CXX \
26183 prelink_cmds_GCJ; do
26184     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26185     *[\\\\\\\`\\"\\\$]*)
26186       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26187       ;;
26188     *)
26189       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26190       ;;
26191     esac
26192 done
26193
26194 ac_aux_dir='$ac_aux_dir'
26195 xsi_shell='$xsi_shell'
26196 lt_shell_append='$lt_shell_append'
26197
26198 # See if we are running on zsh, and set the options which allow our
26199 # commands through without removal of \ escapes INIT.
26200 if test -n "\${ZSH_VERSION+set}" ; then
26201    setopt NO_GLOB_SUBST
26202 fi
26203
26204
26205     PACKAGE='$PACKAGE'
26206     VERSION='$VERSION'
26207     TIMESTAMP='$TIMESTAMP'
26208     RM='$RM'
26209     ofile='$ofile'
26210
26211
26212
26213
26214
26215
26216
26217
26218 _ACEOF
26219
26220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26221
26222 # Handling of arguments.
26223 for ac_config_target in $ac_config_targets
26224 do
26225   case $ac_config_target in
26226     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26227     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26228     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26229     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26230     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26231     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26232     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26233     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26234     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26235     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26236     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26237     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26238     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26239     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26240     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26241     "gnu/java/security/jce/prng/natVMSecureRandom.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
26242     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26243     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26244     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26245     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26246     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26247     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26248     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26249     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26250     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26251     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26252     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26253     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26254     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26255     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26256     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26257     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26258     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26259     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26260     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26261     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26262
26263   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26264   esac
26265 done
26266
26267
26268 # If the user did not use the arguments to specify the items to instantiate,
26269 # then the envvar interface is used.  Set only those that are not.
26270 # We use the long form for the default assignment because of an extremely
26271 # bizarre bug on SunOS 4.1.3.
26272 if $ac_need_defaults; then
26273   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26274   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26275   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26276   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26277 fi
26278
26279 # Have a temporary directory for convenience.  Make it in the build tree
26280 # simply because there is no reason against having it here, and in addition,
26281 # creating and moving files from /tmp can sometimes cause problems.
26282 # Hook for its removal unless debugging.
26283 # Note that there is a small window in which the directory will not be cleaned:
26284 # after its creation but before its name has been assigned to `$tmp'.
26285 $debug ||
26286 {
26287   tmp=
26288   trap 'exit_status=$?
26289   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26290 ' 0
26291   trap 'as_fn_exit 1' 1 2 13 15
26292 }
26293 # Create a (secure) tmp directory for tmp files.
26294
26295 {
26296   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26297   test -n "$tmp" && test -d "$tmp"
26298 }  ||
26299 {
26300   tmp=./conf$$-$RANDOM
26301   (umask 077 && mkdir "$tmp")
26302 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26303
26304 # Set up the scripts for CONFIG_FILES section.
26305 # No need to generate them if there are no CONFIG_FILES.
26306 # This happens for instance with `./config.status config.h'.
26307 if test -n "$CONFIG_FILES"; then
26308
26309
26310 ac_cr=`echo X | tr X '\015'`
26311 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26312 # But we know of no other shell where ac_cr would be empty at this
26313 # point, so we can use a bashism as a fallback.
26314 if test "x$ac_cr" = x; then
26315   eval ac_cr=\$\'\\r\'
26316 fi
26317 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26318 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26319   ac_cs_awk_cr='\r'
26320 else
26321   ac_cs_awk_cr=$ac_cr
26322 fi
26323
26324 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26325 _ACEOF
26326
26327
26328 {
26329   echo "cat >conf$$subs.awk <<_ACEOF" &&
26330   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26331   echo "_ACEOF"
26332 } >conf$$subs.sh ||
26333   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26334 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26335 ac_delim='%!_!# '
26336 for ac_last_try in false false false false false :; do
26337   . ./conf$$subs.sh ||
26338     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26339
26340   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26341   if test $ac_delim_n = $ac_delim_num; then
26342     break
26343   elif $ac_last_try; then
26344     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26345   else
26346     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26347   fi
26348 done
26349 rm -f conf$$subs.sh
26350
26351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26352 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26353 _ACEOF
26354 sed -n '
26355 h
26356 s/^/S["/; s/!.*/"]=/
26357 p
26358 g
26359 s/^[^!]*!//
26360 :repl
26361 t repl
26362 s/'"$ac_delim"'$//
26363 t delim
26364 :nl
26365 h
26366 s/\(.\{148\}\).*/\1/
26367 t more1
26368 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26369 p
26370 n
26371 b repl
26372 :more1
26373 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26374 p
26375 g
26376 s/.\{148\}//
26377 t nl
26378 :delim
26379 h
26380 s/\(.\{148\}\).*/\1/
26381 t more2
26382 s/["\\]/\\&/g; s/^/"/; s/$/"/
26383 p
26384 b
26385 :more2
26386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26387 p
26388 g
26389 s/.\{148\}//
26390 t delim
26391 ' <conf$$subs.awk | sed '
26392 /^[^""]/{
26393   N
26394   s/\n//
26395 }
26396 ' >>$CONFIG_STATUS || ac_write_fail=1
26397 rm -f conf$$subs.awk
26398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26399 _ACAWK
26400 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26401   for (key in S) S_is_set[key] = 1
26402   FS = "\a"
26403
26404 }
26405 {
26406   line = $ 0
26407   nfields = split(line, field, "@")
26408   substed = 0
26409   len = length(field[1])
26410   for (i = 2; i < nfields; i++) {
26411     key = field[i]
26412     keylen = length(key)
26413     if (S_is_set[key]) {
26414       value = S[key]
26415       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26416       len += length(value) + length(field[++i])
26417       substed = 1
26418     } else
26419       len += 1 + keylen
26420   }
26421
26422   print line
26423 }
26424
26425 _ACAWK
26426 _ACEOF
26427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26428 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26429   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26430 else
26431   cat
26432 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26433   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26434 _ACEOF
26435
26436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26438 # trailing colons and then remove the whole line if VPATH becomes empty
26439 # (actually we leave an empty line to preserve line numbers).
26440 if test "x$srcdir" = x.; then
26441   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26442 s/:*\$(srcdir):*/:/
26443 s/:*\${srcdir}:*/:/
26444 s/:*@srcdir@:*/:/
26445 s/^\([^=]*=[     ]*\):*/\1/
26446 s/:*$//
26447 s/^[^=]*=[       ]*$//
26448 }'
26449 fi
26450
26451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26452 fi # test -n "$CONFIG_FILES"
26453
26454 # Set up the scripts for CONFIG_HEADERS section.
26455 # No need to generate them if there are no CONFIG_HEADERS.
26456 # This happens for instance with `./config.status Makefile'.
26457 if test -n "$CONFIG_HEADERS"; then
26458 cat >"$tmp/defines.awk" <<\_ACAWK ||
26459 BEGIN {
26460 _ACEOF
26461
26462 # Transform confdefs.h into an awk script `defines.awk', embedded as
26463 # here-document in config.status, that substitutes the proper values into
26464 # config.h.in to produce config.h.
26465
26466 # Create a delimiter string that does not exist in confdefs.h, to ease
26467 # handling of long lines.
26468 ac_delim='%!_!# '
26469 for ac_last_try in false false :; do
26470   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26471   if test -z "$ac_t"; then
26472     break
26473   elif $ac_last_try; then
26474     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26475   else
26476     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26477   fi
26478 done
26479
26480 # For the awk script, D is an array of macro values keyed by name,
26481 # likewise P contains macro parameters if any.  Preserve backslash
26482 # newline sequences.
26483
26484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26485 sed -n '
26486 s/.\{148\}/&'"$ac_delim"'/g
26487 t rset
26488 :rset
26489 s/^[     ]*#[    ]*define[       ][      ]*/ /
26490 t def
26491 d
26492 :def
26493 s/\\$//
26494 t bsnl
26495 s/["\\]/\\&/g
26496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26497 D["\1"]=" \3"/p
26498 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26499 d
26500 :bsnl
26501 s/["\\]/\\&/g
26502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26503 D["\1"]=" \3\\\\\\n"\\/p
26504 t cont
26505 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26506 t cont
26507 d
26508 :cont
26509 n
26510 s/.\{148\}/&'"$ac_delim"'/g
26511 t clear
26512 :clear
26513 s/\\$//
26514 t bsnlc
26515 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26516 d
26517 :bsnlc
26518 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26519 b cont
26520 ' <confdefs.h | sed '
26521 s/'"$ac_delim"'/"\\\
26522 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26523
26524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26525   for (key in D) D_is_set[key] = 1
26526   FS = "\a"
26527 }
26528 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26529   line = \$ 0
26530   split(line, arg, " ")
26531   if (arg[1] == "#") {
26532     defundef = arg[2]
26533     mac1 = arg[3]
26534   } else {
26535     defundef = substr(arg[1], 2)
26536     mac1 = arg[2]
26537   }
26538   split(mac1, mac2, "(") #)
26539   macro = mac2[1]
26540   prefix = substr(line, 1, index(line, defundef) - 1)
26541   if (D_is_set[macro]) {
26542     # Preserve the white space surrounding the "#".
26543     print prefix "define", macro P[macro] D[macro]
26544     next
26545   } else {
26546     # Replace #undef with comments.  This is necessary, for example,
26547     # in the case of _POSIX_SOURCE, which is predefined and required
26548     # on some systems where configure will not decide to define it.
26549     if (defundef == "undef") {
26550       print "/*", prefix defundef, macro, "*/"
26551       next
26552     }
26553   }
26554 }
26555 { print }
26556 _ACAWK
26557 _ACEOF
26558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26559   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26560 fi # test -n "$CONFIG_HEADERS"
26561
26562
26563 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26564 shift
26565 for ac_tag
26566 do
26567   case $ac_tag in
26568   :[FHLC]) ac_mode=$ac_tag; continue;;
26569   esac
26570   case $ac_mode$ac_tag in
26571   :[FHL]*:*);;
26572   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26573   :[FH]-) ac_tag=-:-;;
26574   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26575   esac
26576   ac_save_IFS=$IFS
26577   IFS=:
26578   set x $ac_tag
26579   IFS=$ac_save_IFS
26580   shift
26581   ac_file=$1
26582   shift
26583
26584   case $ac_mode in
26585   :L) ac_source=$1;;
26586   :[FH])
26587     ac_file_inputs=
26588     for ac_f
26589     do
26590       case $ac_f in
26591       -) ac_f="$tmp/stdin";;
26592       *) # Look for the file first in the build tree, then in the source tree
26593          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26594          # because $ac_f cannot contain `:'.
26595          test -f "$ac_f" ||
26596            case $ac_f in
26597            [\\/$]*) false;;
26598            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26599            esac ||
26600            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26601       esac
26602       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26603       as_fn_append ac_file_inputs " '$ac_f'"
26604     done
26605
26606     # Let's still pretend it is `configure' which instantiates (i.e., don't
26607     # use $as_me), people would be surprised to read:
26608     #    /* config.h.  Generated by config.status.  */
26609     configure_input='Generated from '`
26610           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26611         `' by configure.'
26612     if test x"$ac_file" != x-; then
26613       configure_input="$ac_file.  $configure_input"
26614       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26615 $as_echo "$as_me: creating $ac_file" >&6;}
26616     fi
26617     # Neutralize special characters interpreted by sed in replacement strings.
26618     case $configure_input in #(
26619     *\&* | *\|* | *\\* )
26620        ac_sed_conf_input=`$as_echo "$configure_input" |
26621        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26622     *) ac_sed_conf_input=$configure_input;;
26623     esac
26624
26625     case $ac_tag in
26626     *:-:* | *:-) cat >"$tmp/stdin" \
26627       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26628     esac
26629     ;;
26630   esac
26631
26632   ac_dir=`$as_dirname -- "$ac_file" ||
26633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26634          X"$ac_file" : 'X\(//\)[^/]' \| \
26635          X"$ac_file" : 'X\(//\)$' \| \
26636          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26637 $as_echo X"$ac_file" |
26638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26639             s//\1/
26640             q
26641           }
26642           /^X\(\/\/\)[^/].*/{
26643             s//\1/
26644             q
26645           }
26646           /^X\(\/\/\)$/{
26647             s//\1/
26648             q
26649           }
26650           /^X\(\/\).*/{
26651             s//\1/
26652             q
26653           }
26654           s/.*/./; q'`
26655   as_dir="$ac_dir"; as_fn_mkdir_p
26656   ac_builddir=.
26657
26658 case "$ac_dir" in
26659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26660 *)
26661   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26662   # A ".." for each directory in $ac_dir_suffix.
26663   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26664   case $ac_top_builddir_sub in
26665   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26666   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26667   esac ;;
26668 esac
26669 ac_abs_top_builddir=$ac_pwd
26670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26671 # for backward compatibility:
26672 ac_top_builddir=$ac_top_build_prefix
26673
26674 case $srcdir in
26675   .)  # We are building in place.
26676     ac_srcdir=.
26677     ac_top_srcdir=$ac_top_builddir_sub
26678     ac_abs_top_srcdir=$ac_pwd ;;
26679   [\\/]* | ?:[\\/]* )  # Absolute name.
26680     ac_srcdir=$srcdir$ac_dir_suffix;
26681     ac_top_srcdir=$srcdir
26682     ac_abs_top_srcdir=$srcdir ;;
26683   *) # Relative name.
26684     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26685     ac_top_srcdir=$ac_top_build_prefix$srcdir
26686     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26687 esac
26688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26689
26690
26691   case $ac_mode in
26692   :F)
26693   #
26694   # CONFIG_FILE
26695   #
26696
26697   case $INSTALL in
26698   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26699   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26700   esac
26701   ac_MKDIR_P=$MKDIR_P
26702   case $MKDIR_P in
26703   [\\/$]* | ?:[\\/]* ) ;;
26704   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26705   esac
26706 _ACEOF
26707
26708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26709 # If the template does not know about datarootdir, expand it.
26710 # FIXME: This hack should be removed a few years after 2.60.
26711 ac_datarootdir_hack=; ac_datarootdir_seen=
26712 ac_sed_dataroot='
26713 /datarootdir/ {
26714   p
26715   q
26716 }
26717 /@datadir@/p
26718 /@docdir@/p
26719 /@infodir@/p
26720 /@localedir@/p
26721 /@mandir@/p'
26722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26723 *datarootdir*) ac_datarootdir_seen=yes;;
26724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26725   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26727 _ACEOF
26728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26729   ac_datarootdir_hack='
26730   s&@datadir@&$datadir&g
26731   s&@docdir@&$docdir&g
26732   s&@infodir@&$infodir&g
26733   s&@localedir@&$localedir&g
26734   s&@mandir@&$mandir&g
26735   s&\\\${datarootdir}&$datarootdir&g' ;;
26736 esac
26737 _ACEOF
26738
26739 # Neutralize VPATH when `$srcdir' = `.'.
26740 # Shell code in configure.ac might set extrasub.
26741 # FIXME: do we really want to maintain this feature?
26742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26743 ac_sed_extra="$ac_vpsub
26744 $extrasub
26745 _ACEOF
26746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26747 :t
26748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26749 s|@configure_input@|$ac_sed_conf_input|;t t
26750 s&@top_builddir@&$ac_top_builddir_sub&;t t
26751 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26752 s&@srcdir@&$ac_srcdir&;t t
26753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26754 s&@top_srcdir@&$ac_top_srcdir&;t t
26755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26756 s&@builddir@&$ac_builddir&;t t
26757 s&@abs_builddir@&$ac_abs_builddir&;t t
26758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26759 s&@INSTALL@&$ac_INSTALL&;t t
26760 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26761 $ac_datarootdir_hack
26762 "
26763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26764   || as_fn_error "could not create $ac_file" "$LINENO" 5
26765
26766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26767   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26768   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26769   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26770 which seems to be undefined.  Please make sure it is defined." >&5
26771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26772 which seems to be undefined.  Please make sure it is defined." >&2;}
26773
26774   rm -f "$tmp/stdin"
26775   case $ac_file in
26776   -) cat "$tmp/out" && rm -f "$tmp/out";;
26777   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26778   esac \
26779   || as_fn_error "could not create $ac_file" "$LINENO" 5
26780  ;;
26781   :H)
26782   #
26783   # CONFIG_HEADER
26784   #
26785   if test x"$ac_file" != x-; then
26786     {
26787       $as_echo "/* $configure_input  */" \
26788       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26789     } >"$tmp/config.h" \
26790       || as_fn_error "could not create $ac_file" "$LINENO" 5
26791     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26792       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26793 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26794     else
26795       rm -f "$ac_file"
26796       mv "$tmp/config.h" "$ac_file" \
26797         || as_fn_error "could not create $ac_file" "$LINENO" 5
26798     fi
26799   else
26800     $as_echo "/* $configure_input  */" \
26801       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26802       || as_fn_error "could not create -" "$LINENO" 5
26803   fi
26804 # Compute "$ac_file"'s index in $config_headers.
26805 _am_arg="$ac_file"
26806 _am_stamp_count=1
26807 for _am_header in $config_headers :; do
26808   case $_am_header in
26809     $_am_arg | $_am_arg:* )
26810       break ;;
26811     * )
26812       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26813   esac
26814 done
26815 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26816 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26817          X"$_am_arg" : 'X\(//\)[^/]' \| \
26818          X"$_am_arg" : 'X\(//\)$' \| \
26819          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26820 $as_echo X"$_am_arg" |
26821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26822             s//\1/
26823             q
26824           }
26825           /^X\(\/\/\)[^/].*/{
26826             s//\1/
26827             q
26828           }
26829           /^X\(\/\/\)$/{
26830             s//\1/
26831             q
26832           }
26833           /^X\(\/\).*/{
26834             s//\1/
26835             q
26836           }
26837           s/.*/./; q'`/stamp-h$_am_stamp_count
26838  ;;
26839   :L)
26840   #
26841   # CONFIG_LINK
26842   #
26843
26844   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26845     :
26846   else
26847     # Prefer the file from the source tree if names are identical.
26848     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26849       ac_source=$srcdir/$ac_source
26850     fi
26851
26852     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26853 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26854
26855     if test ! -r "$ac_source"; then
26856       as_fn_error "$ac_source: file not found" "$LINENO" 5
26857     fi
26858     rm -f "$ac_file"
26859
26860     # Try a relative symlink, then a hard link, then a copy.
26861     case $srcdir in
26862     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26863         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26864     esac
26865     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26866       ln "$ac_source" "$ac_file" 2>/dev/null ||
26867       cp -p "$ac_source" "$ac_file" ||
26868       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26869   fi
26870  ;;
26871   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26872 $as_echo "$as_me: executing $ac_file commands" >&6;}
26873  ;;
26874   esac
26875
26876
26877   case $ac_file$ac_mode in
26878     "default-1":C)
26879 # Only add multilib support code if we just rebuilt the top-level
26880 # Makefile.
26881 case " $CONFIG_FILES " in
26882  *" Makefile "*)
26883    ac_file=Makefile . ${multi_basedir}/config-ml.in
26884    ;;
26885 esac ;;
26886     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26887   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26888   # are listed without --file.  Let's play safe and only enable the eval
26889   # if we detect the quoting.
26890   case $CONFIG_FILES in
26891   *\'*) eval set x "$CONFIG_FILES" ;;
26892   *)   set x $CONFIG_FILES ;;
26893   esac
26894   shift
26895   for mf
26896   do
26897     # Strip MF so we end up with the name of the file.
26898     mf=`echo "$mf" | sed -e 's/:.*$//'`
26899     # Check whether this is an Automake generated Makefile or not.
26900     # We used to match only the files named `Makefile.in', but
26901     # some people rename them; so instead we look at the file content.
26902     # Grep'ing the first line is not enough: some people post-process
26903     # each Makefile.in and add a new line on top of each file to say so.
26904     # Grep'ing the whole file is not good either: AIX grep has a line
26905     # limit of 2048, but all sed's we know have understand at least 4000.
26906     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26907       dirpart=`$as_dirname -- "$mf" ||
26908 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26909          X"$mf" : 'X\(//\)[^/]' \| \
26910          X"$mf" : 'X\(//\)$' \| \
26911          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26912 $as_echo X"$mf" |
26913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26914             s//\1/
26915             q
26916           }
26917           /^X\(\/\/\)[^/].*/{
26918             s//\1/
26919             q
26920           }
26921           /^X\(\/\/\)$/{
26922             s//\1/
26923             q
26924           }
26925           /^X\(\/\).*/{
26926             s//\1/
26927             q
26928           }
26929           s/.*/./; q'`
26930     else
26931       continue
26932     fi
26933     # Extract the definition of DEPDIR, am__include, and am__quote
26934     # from the Makefile without running `make'.
26935     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26936     test -z "$DEPDIR" && continue
26937     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26938     test -z "am__include" && continue
26939     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26940     # When using ansi2knr, U may be empty or an underscore; expand it
26941     U=`sed -n 's/^U = //p' < "$mf"`
26942     # Find all dependency output files, they are included files with
26943     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26944     # simplest approach to changing $(DEPDIR) to its actual value in the
26945     # expansion.
26946     for file in `sed -n "
26947       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26948          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26949       # Make sure the directory exists.
26950       test -f "$dirpart/$file" && continue
26951       fdir=`$as_dirname -- "$file" ||
26952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26953          X"$file" : 'X\(//\)[^/]' \| \
26954          X"$file" : 'X\(//\)$' \| \
26955          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26956 $as_echo X"$file" |
26957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26958             s//\1/
26959             q
26960           }
26961           /^X\(\/\/\)[^/].*/{
26962             s//\1/
26963             q
26964           }
26965           /^X\(\/\/\)$/{
26966             s//\1/
26967             q
26968           }
26969           /^X\(\/\).*/{
26970             s//\1/
26971             q
26972           }
26973           s/.*/./; q'`
26974       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26975       # echo "creating $dirpart/$file"
26976       echo '# dummy' > "$dirpart/$file"
26977     done
26978   done
26979 }
26980  ;;
26981     "libtool":C)
26982
26983     # See if we are running on zsh, and set the options which allow our
26984     # commands through without removal of \ escapes.
26985     if test -n "${ZSH_VERSION+set}" ; then
26986       setopt NO_GLOB_SUBST
26987     fi
26988
26989     cfgfile="${ofile}T"
26990     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26991     $RM "$cfgfile"
26992
26993     cat <<_LT_EOF >> "$cfgfile"
26994 #! $SHELL
26995
26996 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26997 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26999 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27000 #
27001 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27002 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27003 #   Written by Gordon Matzigkeit, 1996
27004 #
27005 #   This file is part of GNU Libtool.
27006 #
27007 # GNU Libtool is free software; you can redistribute it and/or
27008 # modify it under the terms of the GNU General Public License as
27009 # published by the Free Software Foundation; either version 2 of
27010 # the License, or (at your option) any later version.
27011 #
27012 # As a special exception to the GNU General Public License,
27013 # if you distribute this file as part of a program or library that
27014 # is built using GNU Libtool, you may include this file under the
27015 # same distribution terms that you use for the rest of that program.
27016 #
27017 # GNU Libtool is distributed in the hope that it will be useful,
27018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27020 # GNU General Public License for more details.
27021 #
27022 # You should have received a copy of the GNU General Public License
27023 # along with GNU Libtool; see the file COPYING.  If not, a copy
27024 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27025 # obtained by writing to the Free Software Foundation, Inc.,
27026 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27027
27028
27029 # The names of the tagged configurations supported by this script.
27030 available_tags="CXX GCJ "
27031
27032 # ### BEGIN LIBTOOL CONFIG
27033
27034 # Which release of libtool.m4 was used?
27035 macro_version=$macro_version
27036 macro_revision=$macro_revision
27037
27038 # Whether or not to build shared libraries.
27039 build_libtool_libs=$enable_shared
27040
27041 # Whether or not to build static libraries.
27042 build_old_libs=$enable_static
27043
27044 # What type of objects to build.
27045 pic_mode=$pic_mode
27046
27047 # Whether or not to optimize for fast installation.
27048 fast_install=$enable_fast_install
27049
27050 # Shell to use when invoking shell scripts.
27051 SHELL=$lt_SHELL
27052
27053 # An echo program that protects backslashes.
27054 ECHO=$lt_ECHO
27055
27056 # The host system.
27057 host_alias=$host_alias
27058 host=$host
27059 host_os=$host_os
27060
27061 # The build system.
27062 build_alias=$build_alias
27063 build=$build
27064 build_os=$build_os
27065
27066 # A sed program that does not truncate output.
27067 SED=$lt_SED
27068
27069 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27070 Xsed="\$SED -e 1s/^X//"
27071
27072 # A grep program that handles long lines.
27073 GREP=$lt_GREP
27074
27075 # An ERE matcher.
27076 EGREP=$lt_EGREP
27077
27078 # A literal string matcher.
27079 FGREP=$lt_FGREP
27080
27081 # A BSD- or MS-compatible name lister.
27082 NM=$lt_NM
27083
27084 # Whether we need soft or hard links.
27085 LN_S=$lt_LN_S
27086
27087 # What is the maximum length of a command?
27088 max_cmd_len=$max_cmd_len
27089
27090 # Object file suffix (normally "o").
27091 objext=$ac_objext
27092
27093 # Executable file suffix (normally "").
27094 exeext=$exeext
27095
27096 # whether the shell understands "unset".
27097 lt_unset=$lt_unset
27098
27099 # turn spaces into newlines.
27100 SP2NL=$lt_lt_SP2NL
27101
27102 # turn newlines into spaces.
27103 NL2SP=$lt_lt_NL2SP
27104
27105 # An object symbol dumper.
27106 OBJDUMP=$lt_OBJDUMP
27107
27108 # Method to check whether dependent libraries are shared objects.
27109 deplibs_check_method=$lt_deplibs_check_method
27110
27111 # Command to use when deplibs_check_method == "file_magic".
27112 file_magic_cmd=$lt_file_magic_cmd
27113
27114 # The archiver.
27115 AR=$lt_AR
27116 AR_FLAGS=$lt_AR_FLAGS
27117
27118 # A symbol stripping program.
27119 STRIP=$lt_STRIP
27120
27121 # Commands used to install an old-style archive.
27122 RANLIB=$lt_RANLIB
27123 old_postinstall_cmds=$lt_old_postinstall_cmds
27124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27125
27126 # Whether to use a lock for old archive extraction.
27127 lock_old_archive_extraction=$lock_old_archive_extraction
27128
27129 # A C compiler.
27130 LTCC=$lt_CC
27131
27132 # LTCC compiler flags.
27133 LTCFLAGS=$lt_CFLAGS
27134
27135 # Take the output of nm and produce a listing of raw symbols and C names.
27136 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27137
27138 # Transform the output of nm in a proper C declaration.
27139 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27140
27141 # Transform the output of nm in a C name address pair.
27142 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27143
27144 # Transform the output of nm in a C name address pair when lib prefix is needed.
27145 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27146
27147 # The name of the directory that contains temporary libtool files.
27148 objdir=$objdir
27149
27150 # Used to examine libraries when file_magic_cmd begins with "file".
27151 MAGIC_CMD=$MAGIC_CMD
27152
27153 # Must we lock files when doing compilation?
27154 need_locks=$lt_need_locks
27155
27156 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27157 DSYMUTIL=$lt_DSYMUTIL
27158
27159 # Tool to change global to local symbols on Mac OS X.
27160 NMEDIT=$lt_NMEDIT
27161
27162 # Tool to manipulate fat objects and archives on Mac OS X.
27163 LIPO=$lt_LIPO
27164
27165 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27166 OTOOL=$lt_OTOOL
27167
27168 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27169 OTOOL64=$lt_OTOOL64
27170
27171 # Old archive suffix (normally "a").
27172 libext=$libext
27173
27174 # Shared library suffix (normally ".so").
27175 shrext_cmds=$lt_shrext_cmds
27176
27177 # The commands to extract the exported symbol list from a shared archive.
27178 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27179
27180 # Variables whose values should be saved in libtool wrapper scripts and
27181 # restored at link time.
27182 variables_saved_for_relink=$lt_variables_saved_for_relink
27183
27184 # Do we need the "lib" prefix for modules?
27185 need_lib_prefix=$need_lib_prefix
27186
27187 # Do we need a version for libraries?
27188 need_version=$need_version
27189
27190 # Library versioning type.
27191 version_type=$version_type
27192
27193 # Shared library runtime path variable.
27194 runpath_var=$runpath_var
27195
27196 # Shared library path variable.
27197 shlibpath_var=$shlibpath_var
27198
27199 # Is shlibpath searched before the hard-coded library search path?
27200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27201
27202 # Format of library name prefix.
27203 libname_spec=$lt_libname_spec
27204
27205 # List of archive names.  First name is the real one, the rest are links.
27206 # The last name is the one that the linker finds with -lNAME
27207 library_names_spec=$lt_library_names_spec
27208
27209 # The coded name of the library, if different from the real name.
27210 soname_spec=$lt_soname_spec
27211
27212 # Permission mode override for installation of shared libraries.
27213 install_override_mode=$lt_install_override_mode
27214
27215 # Command to use after installation of a shared archive.
27216 postinstall_cmds=$lt_postinstall_cmds
27217
27218 # Command to use after uninstallation of a shared archive.
27219 postuninstall_cmds=$lt_postuninstall_cmds
27220
27221 # Commands used to finish a libtool library installation in a directory.
27222 finish_cmds=$lt_finish_cmds
27223
27224 # As "finish_cmds", except a single script fragment to be evaled but
27225 # not shown.
27226 finish_eval=$lt_finish_eval
27227
27228 # Whether we should hardcode library paths into libraries.
27229 hardcode_into_libs=$hardcode_into_libs
27230
27231 # Compile-time system search path for libraries.
27232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27233
27234 # Run-time system search path for libraries.
27235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27236
27237 # Whether dlopen is supported.
27238 dlopen_support=$enable_dlopen
27239
27240 # Whether dlopen of programs is supported.
27241 dlopen_self=$enable_dlopen_self
27242
27243 # Whether dlopen of statically linked programs is supported.
27244 dlopen_self_static=$enable_dlopen_self_static
27245
27246 # Commands to strip libraries.
27247 old_striplib=$lt_old_striplib
27248 striplib=$lt_striplib
27249
27250
27251 # The linker used to build libraries.
27252 LD=$lt_LD
27253
27254 # How to create reloadable object files.
27255 reload_flag=$lt_reload_flag
27256 reload_cmds=$lt_reload_cmds
27257
27258 # Commands used to build an old-style archive.
27259 old_archive_cmds=$lt_old_archive_cmds
27260
27261 # A language specific compiler.
27262 CC=$lt_compiler
27263
27264 # Is the compiler the GNU compiler?
27265 with_gcc=$GCC
27266
27267 # Compiler flag to turn off builtin functions.
27268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27269
27270 # How to pass a linker flag through the compiler.
27271 wl=$lt_lt_prog_compiler_wl
27272
27273 # Additional compiler flags for building library objects.
27274 pic_flag=$lt_lt_prog_compiler_pic
27275
27276 # Compiler flag to prevent dynamic linking.
27277 link_static_flag=$lt_lt_prog_compiler_static
27278
27279 # Does compiler simultaneously support -c and -o options?
27280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27281
27282 # Whether or not to add -lc for building shared libraries.
27283 build_libtool_need_lc=$archive_cmds_need_lc
27284
27285 # Whether or not to disallow shared libs when runtime libs are static.
27286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27287
27288 # Compiler flag to allow reflexive dlopens.
27289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27290
27291 # Compiler flag to generate shared objects directly from archives.
27292 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27293
27294 # Whether the compiler copes with passing no objects directly.
27295 compiler_needs_object=$lt_compiler_needs_object
27296
27297 # Create an old-style archive from a shared archive.
27298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27299
27300 # Create a temporary old-style archive to link instead of a shared archive.
27301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27302
27303 # Commands used to build a shared archive.
27304 archive_cmds=$lt_archive_cmds
27305 archive_expsym_cmds=$lt_archive_expsym_cmds
27306
27307 # Commands used to build a loadable module if different from building
27308 # a shared archive.
27309 module_cmds=$lt_module_cmds
27310 module_expsym_cmds=$lt_module_expsym_cmds
27311
27312 # Whether we are building with GNU ld or not.
27313 with_gnu_ld=$lt_with_gnu_ld
27314
27315 # Flag that allows shared libraries with undefined symbols to be built.
27316 allow_undefined_flag=$lt_allow_undefined_flag
27317
27318 # Flag that enforces no undefined symbols.
27319 no_undefined_flag=$lt_no_undefined_flag
27320
27321 # Flag to hardcode \$libdir into a binary during linking.
27322 # This must work even if \$libdir does not exist
27323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27324
27325 # If ld is used when linking, flag to hardcode \$libdir into a binary
27326 # during linking.  This must work even if \$libdir does not exist.
27327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27328
27329 # Whether we need a single "-rpath" flag with a separated argument.
27330 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27331
27332 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27333 # DIR into the resulting binary.
27334 hardcode_direct=$hardcode_direct
27335
27336 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27337 # DIR into the resulting binary and the resulting library dependency is
27338 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27339 # library is relocated.
27340 hardcode_direct_absolute=$hardcode_direct_absolute
27341
27342 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27343 # into the resulting binary.
27344 hardcode_minus_L=$hardcode_minus_L
27345
27346 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27347 # into the resulting binary.
27348 hardcode_shlibpath_var=$hardcode_shlibpath_var
27349
27350 # Set to "yes" if building a shared library automatically hardcodes DIR
27351 # into the library and all subsequent libraries and executables linked
27352 # against it.
27353 hardcode_automatic=$hardcode_automatic
27354
27355 # Set to yes if linker adds runtime paths of dependent libraries
27356 # to runtime path list.
27357 inherit_rpath=$inherit_rpath
27358
27359 # Whether libtool must link a program against all its dependency libraries.
27360 link_all_deplibs=$link_all_deplibs
27361
27362 # Fix the shell variable \$srcfile for the compiler.
27363 fix_srcfile_path=$lt_fix_srcfile_path
27364
27365 # Set to "yes" if exported symbols are required.
27366 always_export_symbols=$always_export_symbols
27367
27368 # The commands to list exported symbols.
27369 export_symbols_cmds=$lt_export_symbols_cmds
27370
27371 # Symbols that should not be listed in the preloaded symbols.
27372 exclude_expsyms=$lt_exclude_expsyms
27373
27374 # Symbols that must always be exported.
27375 include_expsyms=$lt_include_expsyms
27376
27377 # Commands necessary for linking programs (against libraries) with templates.
27378 prelink_cmds=$lt_prelink_cmds
27379
27380 # Specify filename containing input files.
27381 file_list_spec=$lt_file_list_spec
27382
27383 # How to hardcode a shared library path into an executable.
27384 hardcode_action=$hardcode_action
27385
27386 # The directories searched by this compiler when creating a shared library.
27387 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27388
27389 # Dependencies to place before and after the objects being linked to
27390 # create a shared library.
27391 predep_objects=$lt_predep_objects
27392 postdep_objects=$lt_postdep_objects
27393 predeps=$lt_predeps
27394 postdeps=$lt_postdeps
27395
27396 # The library search path used internally by the compiler when linking
27397 # a shared library.
27398 compiler_lib_search_path=$lt_compiler_lib_search_path
27399
27400 # ### END LIBTOOL CONFIG
27401
27402 _LT_EOF
27403
27404   case $host_os in
27405   aix3*)
27406     cat <<\_LT_EOF >> "$cfgfile"
27407 # AIX sometimes has problems with the GCC collect2 program.  For some
27408 # reason, if we set the COLLECT_NAMES environment variable, the problems
27409 # vanish in a puff of smoke.
27410 if test "X${COLLECT_NAMES+set}" != Xset; then
27411   COLLECT_NAMES=
27412   export COLLECT_NAMES
27413 fi
27414 _LT_EOF
27415     ;;
27416   esac
27417
27418
27419 ltmain="$ac_aux_dir/ltmain.sh"
27420
27421
27422   # We use sed instead of cat because bash on DJGPP gets confused if
27423   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27424   # text mode, it properly converts lines to CR/LF.  This bash problem
27425   # is reportedly fixed, but why not run on old versions too?
27426   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27427     || (rm -f "$cfgfile"; exit 1)
27428
27429   case $xsi_shell in
27430   yes)
27431     cat << \_LT_EOF >> "$cfgfile"
27432
27433 # func_dirname file append nondir_replacement
27434 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27435 # otherwise set result to NONDIR_REPLACEMENT.
27436 func_dirname ()
27437 {
27438   case ${1} in
27439     */*) func_dirname_result="${1%/*}${2}" ;;
27440     *  ) func_dirname_result="${3}" ;;
27441   esac
27442 }
27443
27444 # func_basename file
27445 func_basename ()
27446 {
27447   func_basename_result="${1##*/}"
27448 }
27449
27450 # func_dirname_and_basename file append nondir_replacement
27451 # perform func_basename and func_dirname in a single function
27452 # call:
27453 #   dirname:  Compute the dirname of FILE.  If nonempty,
27454 #             add APPEND to the result, otherwise set result
27455 #             to NONDIR_REPLACEMENT.
27456 #             value returned in "$func_dirname_result"
27457 #   basename: Compute filename of FILE.
27458 #             value retuned in "$func_basename_result"
27459 # Implementation must be kept synchronized with func_dirname
27460 # and func_basename. For efficiency, we do not delegate to
27461 # those functions but instead duplicate the functionality here.
27462 func_dirname_and_basename ()
27463 {
27464   case ${1} in
27465     */*) func_dirname_result="${1%/*}${2}" ;;
27466     *  ) func_dirname_result="${3}" ;;
27467   esac
27468   func_basename_result="${1##*/}"
27469 }
27470
27471 # func_stripname prefix suffix name
27472 # strip PREFIX and SUFFIX off of NAME.
27473 # PREFIX and SUFFIX must not contain globbing or regex special
27474 # characters, hashes, percent signs, but SUFFIX may contain a leading
27475 # dot (in which case that matches only a dot).
27476 func_stripname ()
27477 {
27478   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27479   # positional parameters, so assign one to ordinary parameter first.
27480   func_stripname_result=${3}
27481   func_stripname_result=${func_stripname_result#"${1}"}
27482   func_stripname_result=${func_stripname_result%"${2}"}
27483 }
27484
27485 # func_opt_split
27486 func_opt_split ()
27487 {
27488   func_opt_split_opt=${1%%=*}
27489   func_opt_split_arg=${1#*=}
27490 }
27491
27492 # func_lo2o object
27493 func_lo2o ()
27494 {
27495   case ${1} in
27496     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27497     *)    func_lo2o_result=${1} ;;
27498   esac
27499 }
27500
27501 # func_xform libobj-or-source
27502 func_xform ()
27503 {
27504   func_xform_result=${1%.*}.lo
27505 }
27506
27507 # func_arith arithmetic-term...
27508 func_arith ()
27509 {
27510   func_arith_result=$(( $* ))
27511 }
27512
27513 # func_len string
27514 # STRING may not start with a hyphen.
27515 func_len ()
27516 {
27517   func_len_result=${#1}
27518 }
27519
27520 _LT_EOF
27521     ;;
27522   *) # Bourne compatible functions.
27523     cat << \_LT_EOF >> "$cfgfile"
27524
27525 # func_dirname file append nondir_replacement
27526 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27527 # otherwise set result to NONDIR_REPLACEMENT.
27528 func_dirname ()
27529 {
27530   # Extract subdirectory from the argument.
27531   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27532   if test "X$func_dirname_result" = "X${1}"; then
27533     func_dirname_result="${3}"
27534   else
27535     func_dirname_result="$func_dirname_result${2}"
27536   fi
27537 }
27538
27539 # func_basename file
27540 func_basename ()
27541 {
27542   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27543 }
27544
27545
27546 # func_stripname prefix suffix name
27547 # strip PREFIX and SUFFIX off of NAME.
27548 # PREFIX and SUFFIX must not contain globbing or regex special
27549 # characters, hashes, percent signs, but SUFFIX may contain a leading
27550 # dot (in which case that matches only a dot).
27551 # func_strip_suffix prefix name
27552 func_stripname ()
27553 {
27554   case ${2} in
27555     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27556     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27557   esac
27558 }
27559
27560 # sed scripts:
27561 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27562 my_sed_long_arg='1s/^-[^=]*=//'
27563
27564 # func_opt_split
27565 func_opt_split ()
27566 {
27567   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27568   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27569 }
27570
27571 # func_lo2o object
27572 func_lo2o ()
27573 {
27574   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27575 }
27576
27577 # func_xform libobj-or-source
27578 func_xform ()
27579 {
27580   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27581 }
27582
27583 # func_arith arithmetic-term...
27584 func_arith ()
27585 {
27586   func_arith_result=`expr "$@"`
27587 }
27588
27589 # func_len string
27590 # STRING may not start with a hyphen.
27591 func_len ()
27592 {
27593   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27594 }
27595
27596 _LT_EOF
27597 esac
27598
27599 case $lt_shell_append in
27600   yes)
27601     cat << \_LT_EOF >> "$cfgfile"
27602
27603 # func_append var value
27604 # Append VALUE to the end of shell variable VAR.
27605 func_append ()
27606 {
27607   eval "$1+=\$2"
27608 }
27609 _LT_EOF
27610     ;;
27611   *)
27612     cat << \_LT_EOF >> "$cfgfile"
27613
27614 # func_append var value
27615 # Append VALUE to the end of shell variable VAR.
27616 func_append ()
27617 {
27618   eval "$1=\$$1\$2"
27619 }
27620
27621 _LT_EOF
27622     ;;
27623   esac
27624
27625
27626   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27627     || (rm -f "$cfgfile"; exit 1)
27628
27629   mv -f "$cfgfile" "$ofile" ||
27630     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27631   chmod +x "$ofile"
27632
27633
27634     cat <<_LT_EOF >> "$ofile"
27635
27636 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27637
27638 # The linker used to build libraries.
27639 LD=$lt_LD_CXX
27640
27641 # How to create reloadable object files.
27642 reload_flag=$lt_reload_flag_CXX
27643 reload_cmds=$lt_reload_cmds_CXX
27644
27645 # Commands used to build an old-style archive.
27646 old_archive_cmds=$lt_old_archive_cmds_CXX
27647
27648 # A language specific compiler.
27649 CC=$lt_compiler_CXX
27650
27651 # Is the compiler the GNU compiler?
27652 with_gcc=$GCC_CXX
27653
27654 # Compiler flag to turn off builtin functions.
27655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27656
27657 # How to pass a linker flag through the compiler.
27658 wl=$lt_lt_prog_compiler_wl_CXX
27659
27660 # Additional compiler flags for building library objects.
27661 pic_flag=$lt_lt_prog_compiler_pic_CXX
27662
27663 # Compiler flag to prevent dynamic linking.
27664 link_static_flag=$lt_lt_prog_compiler_static_CXX
27665
27666 # Does compiler simultaneously support -c and -o options?
27667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27668
27669 # Whether or not to add -lc for building shared libraries.
27670 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27671
27672 # Whether or not to disallow shared libs when runtime libs are static.
27673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27674
27675 # Compiler flag to allow reflexive dlopens.
27676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27677
27678 # Compiler flag to generate shared objects directly from archives.
27679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27680
27681 # Whether the compiler copes with passing no objects directly.
27682 compiler_needs_object=$lt_compiler_needs_object_CXX
27683
27684 # Create an old-style archive from a shared archive.
27685 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27686
27687 # Create a temporary old-style archive to link instead of a shared archive.
27688 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27689
27690 # Commands used to build a shared archive.
27691 archive_cmds=$lt_archive_cmds_CXX
27692 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27693
27694 # Commands used to build a loadable module if different from building
27695 # a shared archive.
27696 module_cmds=$lt_module_cmds_CXX
27697 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27698
27699 # Whether we are building with GNU ld or not.
27700 with_gnu_ld=$lt_with_gnu_ld_CXX
27701
27702 # Flag that allows shared libraries with undefined symbols to be built.
27703 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27704
27705 # Flag that enforces no undefined symbols.
27706 no_undefined_flag=$lt_no_undefined_flag_CXX
27707
27708 # Flag to hardcode \$libdir into a binary during linking.
27709 # This must work even if \$libdir does not exist
27710 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27711
27712 # If ld is used when linking, flag to hardcode \$libdir into a binary
27713 # during linking.  This must work even if \$libdir does not exist.
27714 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27715
27716 # Whether we need a single "-rpath" flag with a separated argument.
27717 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27718
27719 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27720 # DIR into the resulting binary.
27721 hardcode_direct=$hardcode_direct_CXX
27722
27723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27724 # DIR into the resulting binary and the resulting library dependency is
27725 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27726 # library is relocated.
27727 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27728
27729 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27730 # into the resulting binary.
27731 hardcode_minus_L=$hardcode_minus_L_CXX
27732
27733 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27734 # into the resulting binary.
27735 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27736
27737 # Set to "yes" if building a shared library automatically hardcodes DIR
27738 # into the library and all subsequent libraries and executables linked
27739 # against it.
27740 hardcode_automatic=$hardcode_automatic_CXX
27741
27742 # Set to yes if linker adds runtime paths of dependent libraries
27743 # to runtime path list.
27744 inherit_rpath=$inherit_rpath_CXX
27745
27746 # Whether libtool must link a program against all its dependency libraries.
27747 link_all_deplibs=$link_all_deplibs_CXX
27748
27749 # Fix the shell variable \$srcfile for the compiler.
27750 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27751
27752 # Set to "yes" if exported symbols are required.
27753 always_export_symbols=$always_export_symbols_CXX
27754
27755 # The commands to list exported symbols.
27756 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27757
27758 # Symbols that should not be listed in the preloaded symbols.
27759 exclude_expsyms=$lt_exclude_expsyms_CXX
27760
27761 # Symbols that must always be exported.
27762 include_expsyms=$lt_include_expsyms_CXX
27763
27764 # Commands necessary for linking programs (against libraries) with templates.
27765 prelink_cmds=$lt_prelink_cmds_CXX
27766
27767 # Specify filename containing input files.
27768 file_list_spec=$lt_file_list_spec_CXX
27769
27770 # How to hardcode a shared library path into an executable.
27771 hardcode_action=$hardcode_action_CXX
27772
27773 # The directories searched by this compiler when creating a shared library.
27774 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27775
27776 # Dependencies to place before and after the objects being linked to
27777 # create a shared library.
27778 predep_objects=$lt_predep_objects_CXX
27779 postdep_objects=$lt_postdep_objects_CXX
27780 predeps=$lt_predeps_CXX
27781 postdeps=$lt_postdeps_CXX
27782
27783 # The library search path used internally by the compiler when linking
27784 # a shared library.
27785 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27786
27787 # ### END LIBTOOL TAG CONFIG: CXX
27788 _LT_EOF
27789
27790
27791     cat <<_LT_EOF >> "$ofile"
27792
27793 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27794
27795 # The linker used to build libraries.
27796 LD=$lt_LD_GCJ
27797
27798 # How to create reloadable object files.
27799 reload_flag=$lt_reload_flag_GCJ
27800 reload_cmds=$lt_reload_cmds_GCJ
27801
27802 # Commands used to build an old-style archive.
27803 old_archive_cmds=$lt_old_archive_cmds_GCJ
27804
27805 # A language specific compiler.
27806 CC=$lt_compiler_GCJ
27807
27808 # Is the compiler the GNU compiler?
27809 with_gcc=$GCC_GCJ
27810
27811 # Compiler flag to turn off builtin functions.
27812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27813
27814 # How to pass a linker flag through the compiler.
27815 wl=$lt_lt_prog_compiler_wl_GCJ
27816
27817 # Additional compiler flags for building library objects.
27818 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27819
27820 # Compiler flag to prevent dynamic linking.
27821 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27822
27823 # Does compiler simultaneously support -c and -o options?
27824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27825
27826 # Whether or not to add -lc for building shared libraries.
27827 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27828
27829 # Whether or not to disallow shared libs when runtime libs are static.
27830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27831
27832 # Compiler flag to allow reflexive dlopens.
27833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27834
27835 # Compiler flag to generate shared objects directly from archives.
27836 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27837
27838 # Whether the compiler copes with passing no objects directly.
27839 compiler_needs_object=$lt_compiler_needs_object_GCJ
27840
27841 # Create an old-style archive from a shared archive.
27842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27843
27844 # Create a temporary old-style archive to link instead of a shared archive.
27845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27846
27847 # Commands used to build a shared archive.
27848 archive_cmds=$lt_archive_cmds_GCJ
27849 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27850
27851 # Commands used to build a loadable module if different from building
27852 # a shared archive.
27853 module_cmds=$lt_module_cmds_GCJ
27854 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27855
27856 # Whether we are building with GNU ld or not.
27857 with_gnu_ld=$lt_with_gnu_ld_GCJ
27858
27859 # Flag that allows shared libraries with undefined symbols to be built.
27860 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27861
27862 # Flag that enforces no undefined symbols.
27863 no_undefined_flag=$lt_no_undefined_flag_GCJ
27864
27865 # Flag to hardcode \$libdir into a binary during linking.
27866 # This must work even if \$libdir does not exist
27867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27868
27869 # If ld is used when linking, flag to hardcode \$libdir into a binary
27870 # during linking.  This must work even if \$libdir does not exist.
27871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27872
27873 # Whether we need a single "-rpath" flag with a separated argument.
27874 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27875
27876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27877 # DIR into the resulting binary.
27878 hardcode_direct=$hardcode_direct_GCJ
27879
27880 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27881 # DIR into the resulting binary and the resulting library dependency is
27882 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27883 # library is relocated.
27884 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27885
27886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27887 # into the resulting binary.
27888 hardcode_minus_L=$hardcode_minus_L_GCJ
27889
27890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27891 # into the resulting binary.
27892 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27893
27894 # Set to "yes" if building a shared library automatically hardcodes DIR
27895 # into the library and all subsequent libraries and executables linked
27896 # against it.
27897 hardcode_automatic=$hardcode_automatic_GCJ
27898
27899 # Set to yes if linker adds runtime paths of dependent libraries
27900 # to runtime path list.
27901 inherit_rpath=$inherit_rpath_GCJ
27902
27903 # Whether libtool must link a program against all its dependency libraries.
27904 link_all_deplibs=$link_all_deplibs_GCJ
27905
27906 # Fix the shell variable \$srcfile for the compiler.
27907 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27908
27909 # Set to "yes" if exported symbols are required.
27910 always_export_symbols=$always_export_symbols_GCJ
27911
27912 # The commands to list exported symbols.
27913 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27914
27915 # Symbols that should not be listed in the preloaded symbols.
27916 exclude_expsyms=$lt_exclude_expsyms_GCJ
27917
27918 # Symbols that must always be exported.
27919 include_expsyms=$lt_include_expsyms_GCJ
27920
27921 # Commands necessary for linking programs (against libraries) with templates.
27922 prelink_cmds=$lt_prelink_cmds_GCJ
27923
27924 # Specify filename containing input files.
27925 file_list_spec=$lt_file_list_spec_GCJ
27926
27927 # How to hardcode a shared library path into an executable.
27928 hardcode_action=$hardcode_action_GCJ
27929
27930 # The directories searched by this compiler when creating a shared library.
27931 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27932
27933 # Dependencies to place before and after the objects being linked to
27934 # create a shared library.
27935 predep_objects=$lt_predep_objects_GCJ
27936 postdep_objects=$lt_postdep_objects_GCJ
27937 predeps=$lt_predeps_GCJ
27938 postdeps=$lt_postdeps_GCJ
27939
27940 # The library search path used internally by the compiler when linking
27941 # a shared library.
27942 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27943
27944 # ### END LIBTOOL TAG CONFIG: GCJ
27945 _LT_EOF
27946
27947  ;;
27948     "scripts/jar":F) chmod +x scripts/jar ;;
27949
27950   esac
27951 done # for ac_tag
27952
27953
27954 as_fn_exit 0
27955 _ACEOF
27956 ac_clean_files=$ac_clean_files_save
27957
27958 test $ac_write_fail = 0 ||
27959   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27960
27961
27962 # configure is writing to config.log, and then calls config.status.
27963 # config.status does its own redirection, appending to config.log.
27964 # Unfortunately, on DOS this fails, as config.log is still kept open
27965 # by configure, so config.status won't be able to write to it; its
27966 # output is simply discarded.  So we exec the FD to /dev/null,
27967 # effectively closing config.log, so it can be properly (re)opened and
27968 # appended to by config.status.  When coming back to configure, we
27969 # need to make the FD available again.
27970 if test "$no_create" != yes; then
27971   ac_cs_success=:
27972   ac_config_status_args=
27973   test "$silent" = yes &&
27974     ac_config_status_args="$ac_config_status_args --quiet"
27975   exec 5>/dev/null
27976   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27977   exec 5>>config.log
27978   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27979   # would make configure fail if this is the last instruction.
27980   $ac_cs_success || as_fn_exit $?
27981 fi
27982
27983 #
27984 # CONFIG_SUBDIRS section.
27985 #
27986 if test "$no_recursion" != yes; then
27987
27988   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27989   # so they do not pile up.
27990   ac_sub_configure_args=
27991   ac_prev=
27992   eval "set x $ac_configure_args"
27993   shift
27994   for ac_arg
27995   do
27996     if test -n "$ac_prev"; then
27997       ac_prev=
27998       continue
27999     fi
28000     case $ac_arg in
28001     -cache-file | --cache-file | --cache-fil | --cache-fi \
28002     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28003       ac_prev=cache_file ;;
28004     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28005     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28006     | --c=*)
28007       ;;
28008     --config-cache | -C)
28009       ;;
28010     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28011       ac_prev=srcdir ;;
28012     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28013       ;;
28014     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28015       ac_prev=prefix ;;
28016     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28017       ;;
28018     --disable-option-checking)
28019       ;;
28020     *)
28021       case $ac_arg in
28022       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28023       esac
28024       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28025     esac
28026   done
28027
28028   # Always prepend --prefix to ensure using the same prefix
28029   # in subdir configurations.
28030   ac_arg="--prefix=$prefix"
28031   case $ac_arg in
28032   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28033   esac
28034   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28035
28036   # Pass --silent
28037   if test "$silent" = yes; then
28038     ac_sub_configure_args="--silent $ac_sub_configure_args"
28039   fi
28040
28041   # Always prepend --disable-option-checking to silence warnings, since
28042   # different subdirs can have different --enable and --with options.
28043   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28044
28045   ac_popdir=`pwd`
28046   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28047
28048     # Do not complain, so a configure script can configure whichever
28049     # parts of a large source tree are present.
28050     test -d "$srcdir/$ac_dir" || continue
28051
28052     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28053     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28054     $as_echo "$ac_msg" >&6
28055     as_dir="$ac_dir"; as_fn_mkdir_p
28056     ac_builddir=.
28057
28058 case "$ac_dir" in
28059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28060 *)
28061   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28062   # A ".." for each directory in $ac_dir_suffix.
28063   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28064   case $ac_top_builddir_sub in
28065   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28066   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28067   esac ;;
28068 esac
28069 ac_abs_top_builddir=$ac_pwd
28070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28071 # for backward compatibility:
28072 ac_top_builddir=$ac_top_build_prefix
28073
28074 case $srcdir in
28075   .)  # We are building in place.
28076     ac_srcdir=.
28077     ac_top_srcdir=$ac_top_builddir_sub
28078     ac_abs_top_srcdir=$ac_pwd ;;
28079   [\\/]* | ?:[\\/]* )  # Absolute name.
28080     ac_srcdir=$srcdir$ac_dir_suffix;
28081     ac_top_srcdir=$srcdir
28082     ac_abs_top_srcdir=$srcdir ;;
28083   *) # Relative name.
28084     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28085     ac_top_srcdir=$ac_top_build_prefix$srcdir
28086     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28087 esac
28088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28089
28090
28091     cd "$ac_dir"
28092
28093     # Check for guested configure; otherwise get Cygnus style configure.
28094     if test -f "$ac_srcdir/configure.gnu"; then
28095       ac_sub_configure=$ac_srcdir/configure.gnu
28096     elif test -f "$ac_srcdir/configure"; then
28097       ac_sub_configure=$ac_srcdir/configure
28098     elif test -f "$ac_srcdir/configure.in"; then
28099       # This should be Cygnus configure.
28100       ac_sub_configure=$ac_aux_dir/configure
28101     else
28102       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28103 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28104       ac_sub_configure=
28105     fi
28106
28107     # The recursion is here.
28108     if test -n "$ac_sub_configure"; then
28109       # Make the cache file name correct relative to the subdirectory.
28110       case $cache_file in
28111       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28112       *) # Relative name.
28113         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28114       esac
28115
28116       { $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
28117 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28118       # The eval makes quoting arguments work.
28119       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28120            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28121         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28122     fi
28123
28124     cd "$ac_popdir"
28125   done
28126 fi
28127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28130 fi
28131