OSDN Git Service

Fix building ecjx in cross compile mode.
[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 LTLIBICONV
678 LIBICONV
679 USING_GCC_FALSE
680 USING_GCC_TRUE
681 HASH_SYNC_SPEC
682 LIBGCJ_BC_SPEC
683 LIBGCJ_SPEC
684 USE_LIBGCJ_BC_FALSE
685 USE_LIBGCJ_BC_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
692 THREADCXXFLAGS
693 THREADLDFLAGS
694 THREADSTARTFILESPEC
695 THREADSPEC
696 THREADDEPS
697 THREADINCS
698 THREADLIBS
699 USING_NOGC_FALSE
700 USING_NOGC_TRUE
701 USING_BOEHMGC_FALSE
702 USING_BOEHMGC_TRUE
703 GCTESTSPEC
704 JC1GCSPEC
705 GCSPEC
706 GCDEPS
707 GCINCS
708 GCLIBS
709 LIBGCJTESTSPEC
710 LIBSTDCXXSPEC
711 extra_ldflags
712 extra_ldflags_libjava
713 X_EXTRA_LIBS
714 X_LIBS
715 X_PRE_LIBS
716 X_CFLAGS
717 XMKMF
718 ZLIBTESTSPEC
719 ZLIBSPEC
720 SYSTEMSPEC
721 USING_DARWIN_CRT_FALSE
722 USING_DARWIN_CRT_TRUE
723 USING_POSIX_PLATFORM_FALSE
724 USING_POSIX_PLATFORM_TRUE
725 USING_WIN32_PLATFORM_FALSE
726 USING_WIN32_PLATFORM_TRUE
727 PLATFORM
728 LIBFFIINCS
729 LIBFFI
730 INTERPRETER_FALSE
731 INTERPRETER_TRUE
732 INTERPRETER
733 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
734 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
735 SUPPRESS_LIBGCJ_BC_FALSE
736 SUPPRESS_LIBGCJ_BC_TRUE
737 JAVA_HOME
738 JAVA_HOME_SET_FALSE
739 JAVA_HOME_SET_TRUE
740 INSTALL_ECJ_JAR_FALSE
741 INSTALL_ECJ_JAR_TRUE
742 BUILD_ECJ1_FALSE
743 BUILD_ECJ1_TRUE
744 ECJ_JAR
745 ECJ_BUILD_JAR
746 TESTSUBDIR_FALSE
747 TESTSUBDIR_TRUE
748 subdirs
749 am__fastdepGCJ_FALSE
750 am__fastdepGCJ_TRUE
751 GCJDEPMODE
752 GCJFLAGS
753 ac_ct_GCJ
754 GCJ
755 CXXCPP
756 CPP
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 OBJDUMP
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 FGREP
767 EGREP
768 GREP
769 SED
770 LIBTOOL
771 DIRLTDL
772 LIBLTDL
773 INCLTDL
774 host_exeext
775 GCJH
776 GCC_FOR_ECJX
777 GCJ_FOR_ECJX
778 X_AWT_FALSE
779 X_AWT_TRUE
780 XLIB_AWT_FALSE
781 XLIB_AWT_TRUE
782 TOOLKIT
783 LIBGCJDEBUG
784 BUILD_SUBLIBS_FALSE
785 BUILD_SUBLIBS_TRUE
786 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
787 LIBGCJ_LD_SYMBOLIC
788 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
789 LIBGCJ_SUBLIB_LTFLAGS
790 LIBGCJ_JAVAFLAGS
791 LIBGCJ_CXXFLAGS
792 LIBGCJ_CFLAGS
793 MAINT
794 MAINTAINER_MODE_FALSE
795 MAINTAINER_MODE_TRUE
796 UNZIP
797 ZIP
798 JAR
799 DLLTOOL
800 RANLIB
801 AR
802 LD
803 AS
804 am__fastdepCXX_FALSE
805 am__fastdepCXX_TRUE
806 CXXDEPMODE
807 am__fastdepCC_FALSE
808 am__fastdepCC_TRUE
809 CCDEPMODE
810 AMDEPBACKSLASH
811 AMDEP_FALSE
812 AMDEP_TRUE
813 am__quote
814 am__include
815 DEPDIR
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 ac_ct_CXX
840 CXXFLAGS
841 CXX
842 OBJEXT
843 EXEEXT
844 ac_ct_CC
845 CPPFLAGS
846 LDFLAGS
847 CFLAGS
848 CC
849 JAVA_MAINTAINER_MODE_FALSE
850 JAVA_MAINTAINER_MODE_TRUE
851 CREATE_GJDOC_FALSE
852 CREATE_GJDOC_TRUE
853 ANTLR_JAR
854 mkinstalldirs
855 LN_S
856 target_noncanonical
857 target_os
858 target_vendor
859 target_cpu
860 target
861 host_os
862 host_vendor
863 host_cpu
864 host
865 multi_basedir
866 target_subdir
867 host_subdir
868 build_subdir
869 build_libsubdir
870 build_os
871 build_vendor
872 build_cpu
873 build
874 target_alias
875 host_alias
876 build_alias
877 LIBS
878 ECHO_T
879 ECHO_N
880 ECHO_C
881 DEFS
882 mandir
883 localedir
884 libdir
885 psdir
886 pdfdir
887 dvidir
888 htmldir
889 infodir
890 docdir
891 oldincludedir
892 includedir
893 localstatedir
894 sharedstatedir
895 sysconfdir
896 datadir
897 datarootdir
898 libexecdir
899 sbindir
900 bindir
901 program_transform_name
902 prefix
903 exec_prefix
904 PACKAGE_URL
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 with_build_libsubdir
916 with_target_subdir
917 enable_multilib
918 with_cross_host
919 with_newlib
920 enable_version_specific_runtime_libs
921 enable_browser_plugin
922 enable_gconf_peer
923 with_antlr_jar
924 enable_gjdoc
925 enable_java_maintainer_mode
926 enable_dependency_tracking
927 enable_maintainer_mode
928 enable_libgcj_sublibs
929 enable_libgcj_debug
930 with_escher
931 enable_java_awt
932 enable_shared
933 enable_static
934 with_pic
935 enable_fast_install
936 with_gnu_ld
937 enable_libtool_lock
938 enable_getenv_properties
939 enable_hash_synchronization
940 with_ecj_jar
941 with_java_home
942 enable_libgcj_bc
943 enable_reduced_reflection
944 with_win32_nlsapi
945 enable_gc_debug
946 enable_interpreter
947 enable_sjlj_exceptions
948 enable_java_net
949 with_libffi
950 enable_jvmpi
951 with_ecos
952 with_system_zlib
953 with_x
954 enable_java_gc
955 enable_rpath
956 with_libiconv_prefix
957 enable_tls
958 with_system_libunwind
959 with_python_dir
960 enable_aot_compile_rpm
961 enable_java_home
962 with_gcc_suffix
963 with_arch_directory
964 with_os_directory
965 with_origin_name
966 with_arch_suffix
967 with_jvm_root_dir
968 with_jvm_jar_dir
969 '
970       ac_precious_vars='build_alias
971 host_alias
972 target_alias
973 CC
974 CFLAGS
975 LDFLAGS
976 LIBS
977 CPPFLAGS
978 CXX
979 CXXFLAGS
980 CCC
981 CPP
982 CXXCPP
983 XMKMF'
984 ac_subdirs_all='classpath libltdl'
985
986 # Initialize some variables set by options.
987 ac_init_help=
988 ac_init_version=false
989 ac_unrecognized_opts=
990 ac_unrecognized_sep=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
993 cache_file=/dev/null
994 exec_prefix=NONE
995 no_create=
996 no_recursion=
997 prefix=NONE
998 program_prefix=NONE
999 program_suffix=NONE
1000 program_transform_name=s,x,x,
1001 silent=
1002 site=
1003 srcdir=
1004 verbose=
1005 x_includes=NONE
1006 x_libraries=NONE
1007
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 includedir='${prefix}/include'
1023 oldincludedir='/usr/include'
1024 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025 infodir='${datarootdir}/info'
1026 htmldir='${docdir}'
1027 dvidir='${docdir}'
1028 pdfdir='${docdir}'
1029 psdir='${docdir}'
1030 libdir='${exec_prefix}/lib'
1031 localedir='${datarootdir}/locale'
1032 mandir='${datarootdir}/man'
1033
1034 ac_prev=
1035 ac_dashdash=
1036 for ac_option
1037 do
1038   # If the previous option needs an argument, assign it.
1039   if test -n "$ac_prev"; then
1040     eval $ac_prev=\$ac_option
1041     ac_prev=
1042     continue
1043   fi
1044
1045   case $ac_option in
1046   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1047   *)    ac_optarg=yes ;;
1048   esac
1049
1050   # Accept the important Cygnus configure options, so we can diagnose typos.
1051
1052   case $ac_dashdash$ac_option in
1053   --)
1054     ac_dashdash=yes ;;
1055
1056   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057     ac_prev=bindir ;;
1058   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059     bindir=$ac_optarg ;;
1060
1061   -build | --build | --buil | --bui | --bu)
1062     ac_prev=build_alias ;;
1063   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064     build_alias=$ac_optarg ;;
1065
1066   -cache-file | --cache-file | --cache-fil | --cache-fi \
1067   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068     ac_prev=cache_file ;;
1069   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071     cache_file=$ac_optarg ;;
1072
1073   --config-cache | -C)
1074     cache_file=config.cache ;;
1075
1076   -datadir | --datadir | --datadi | --datad)
1077     ac_prev=datadir ;;
1078   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079     datadir=$ac_optarg ;;
1080
1081   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082   | --dataroo | --dataro | --datar)
1083     ac_prev=datarootdir ;;
1084   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086     datarootdir=$ac_optarg ;;
1087
1088   -disable-* | --disable-*)
1089     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092       as_fn_error "invalid feature name: $ac_useropt"
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval enable_$ac_useropt=no ;;
1103
1104   -docdir | --docdir | --docdi | --doc | --do)
1105     ac_prev=docdir ;;
1106   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107     docdir=$ac_optarg ;;
1108
1109   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110     ac_prev=dvidir ;;
1111   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112     dvidir=$ac_optarg ;;
1113
1114   -enable-* | --enable-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error "invalid feature name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "enable_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval enable_$ac_useropt=\$ac_optarg ;;
1129
1130   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132   | --exec | --exe | --ex)
1133     ac_prev=exec_prefix ;;
1134   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136   | --exec=* | --exe=* | --ex=*)
1137     exec_prefix=$ac_optarg ;;
1138
1139   -gas | --gas | --ga | --g)
1140     # Obsolete; use --with-gas.
1141     with_gas=yes ;;
1142
1143   -help | --help | --hel | --he | -h)
1144     ac_init_help=long ;;
1145   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146     ac_init_help=recursive ;;
1147   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148     ac_init_help=short ;;
1149
1150   -host | --host | --hos | --ho)
1151     ac_prev=host_alias ;;
1152   -host=* | --host=* | --hos=* | --ho=*)
1153     host_alias=$ac_optarg ;;
1154
1155   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156     ac_prev=htmldir ;;
1157   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158   | --ht=*)
1159     htmldir=$ac_optarg ;;
1160
1161   -includedir | --includedir | --includedi | --included | --include \
1162   | --includ | --inclu | --incl | --inc)
1163     ac_prev=includedir ;;
1164   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165   | --includ=* | --inclu=* | --incl=* | --inc=*)
1166     includedir=$ac_optarg ;;
1167
1168   -infodir | --infodir | --infodi | --infod | --info | --inf)
1169     ac_prev=infodir ;;
1170   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171     infodir=$ac_optarg ;;
1172
1173   -libdir | --libdir | --libdi | --libd)
1174     ac_prev=libdir ;;
1175   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176     libdir=$ac_optarg ;;
1177
1178   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179   | --libexe | --libex | --libe)
1180     ac_prev=libexecdir ;;
1181   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182   | --libexe=* | --libex=* | --libe=*)
1183     libexecdir=$ac_optarg ;;
1184
1185   -localedir | --localedir | --localedi | --localed | --locale)
1186     ac_prev=localedir ;;
1187   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188     localedir=$ac_optarg ;;
1189
1190   -localstatedir | --localstatedir | --localstatedi | --localstated \
1191   | --localstate | --localstat | --localsta | --localst | --locals)
1192     ac_prev=localstatedir ;;
1193   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195     localstatedir=$ac_optarg ;;
1196
1197   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198     ac_prev=mandir ;;
1199   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200     mandir=$ac_optarg ;;
1201
1202   -nfp | --nfp | --nf)
1203     # Obsolete; use --without-fp.
1204     with_fp=no ;;
1205
1206   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207   | --no-cr | --no-c | -n)
1208     no_create=yes ;;
1209
1210   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212     no_recursion=yes ;;
1213
1214   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216   | --oldin | --oldi | --old | --ol | --o)
1217     ac_prev=oldincludedir ;;
1218   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221     oldincludedir=$ac_optarg ;;
1222
1223   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224     ac_prev=prefix ;;
1225   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226     prefix=$ac_optarg ;;
1227
1228   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229   | --program-pre | --program-pr | --program-p)
1230     ac_prev=program_prefix ;;
1231   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233     program_prefix=$ac_optarg ;;
1234
1235   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236   | --program-suf | --program-su | --program-s)
1237     ac_prev=program_suffix ;;
1238   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240     program_suffix=$ac_optarg ;;
1241
1242   -program-transform-name | --program-transform-name \
1243   | --program-transform-nam | --program-transform-na \
1244   | --program-transform-n | --program-transform- \
1245   | --program-transform | --program-transfor \
1246   | --program-transfo | --program-transf \
1247   | --program-trans | --program-tran \
1248   | --progr-tra | --program-tr | --program-t)
1249     ac_prev=program_transform_name ;;
1250   -program-transform-name=* | --program-transform-name=* \
1251   | --program-transform-nam=* | --program-transform-na=* \
1252   | --program-transform-n=* | --program-transform-=* \
1253   | --program-transform=* | --program-transfor=* \
1254   | --program-transfo=* | --program-transf=* \
1255   | --program-trans=* | --program-tran=* \
1256   | --progr-tra=* | --program-tr=* | --program-t=*)
1257     program_transform_name=$ac_optarg ;;
1258
1259   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260     ac_prev=pdfdir ;;
1261   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262     pdfdir=$ac_optarg ;;
1263
1264   -psdir | --psdir | --psdi | --psd | --ps)
1265     ac_prev=psdir ;;
1266   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267     psdir=$ac_optarg ;;
1268
1269   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270   | -silent | --silent | --silen | --sile | --sil)
1271     silent=yes ;;
1272
1273   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274     ac_prev=sbindir ;;
1275   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276   | --sbi=* | --sb=*)
1277     sbindir=$ac_optarg ;;
1278
1279   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281   | --sharedst | --shareds | --shared | --share | --shar \
1282   | --sha | --sh)
1283     ac_prev=sharedstatedir ;;
1284   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287   | --sha=* | --sh=*)
1288     sharedstatedir=$ac_optarg ;;
1289
1290   -site | --site | --sit)
1291     ac_prev=site ;;
1292   -site=* | --site=* | --sit=*)
1293     site=$ac_optarg ;;
1294
1295   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296     ac_prev=srcdir ;;
1297   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298     srcdir=$ac_optarg ;;
1299
1300   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301   | --syscon | --sysco | --sysc | --sys | --sy)
1302     ac_prev=sysconfdir ;;
1303   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305     sysconfdir=$ac_optarg ;;
1306
1307   -target | --target | --targe | --targ | --tar | --ta | --t)
1308     ac_prev=target_alias ;;
1309   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310     target_alias=$ac_optarg ;;
1311
1312   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313     verbose=yes ;;
1314
1315   -version | --version | --versio | --versi | --vers | -V)
1316     ac_init_version=: ;;
1317
1318   -with-* | --with-*)
1319     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320     # Reject names that are not valid shell variable names.
1321     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322       as_fn_error "invalid package name: $ac_useropt"
1323     ac_useropt_orig=$ac_useropt
1324     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325     case $ac_user_opts in
1326       *"
1327 "with_$ac_useropt"
1328 "*) ;;
1329       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330          ac_unrecognized_sep=', ';;
1331     esac
1332     eval with_$ac_useropt=\$ac_optarg ;;
1333
1334   -without-* | --without-*)
1335     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338       as_fn_error "invalid package name: $ac_useropt"
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=no ;;
1349
1350   --x)
1351     # Obsolete; use --with-x.
1352     with_x=yes ;;
1353
1354   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355   | --x-incl | --x-inc | --x-in | --x-i)
1356     ac_prev=x_includes ;;
1357   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359     x_includes=$ac_optarg ;;
1360
1361   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363     ac_prev=x_libraries ;;
1364   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366     x_libraries=$ac_optarg ;;
1367
1368   -*) as_fn_error "unrecognized option: \`$ac_option'
1369 Try \`$0 --help' for more information."
1370     ;;
1371
1372   *=*)
1373     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374     # Reject names that are not valid shell variable names.
1375     case $ac_envvar in #(
1376       '' | [0-9]* | *[!_$as_cr_alnum]* )
1377       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1378     esac
1379     eval $ac_envvar=\$ac_optarg
1380     export $ac_envvar ;;
1381
1382   *)
1383     # FIXME: should be removed in autoconf 3.0.
1384     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388     ;;
1389
1390   esac
1391 done
1392
1393 if test -n "$ac_prev"; then
1394   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395   as_fn_error "missing argument to $ac_option"
1396 fi
1397
1398 if test -n "$ac_unrecognized_opts"; then
1399   case $enable_option_checking in
1400     no) ;;
1401     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1402     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403   esac
1404 fi
1405
1406 # Check all directory arguments for consistency.
1407 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408                 datadir sysconfdir sharedstatedir localstatedir includedir \
1409                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410                 libdir localedir mandir
1411 do
1412   eval ac_val=\$$ac_var
1413   # Remove trailing slashes.
1414   case $ac_val in
1415     */ )
1416       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417       eval $ac_var=\$ac_val;;
1418   esac
1419   # Be sure to have absolute directory names.
1420   case $ac_val in
1421     [\\/$]* | ?:[\\/]* )  continue;;
1422     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423   esac
1424   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1425 done
1426
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1433
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436   if test "x$build_alias" = x; then
1437     cross_compiling=maybe
1438     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439     If a cross compiler is detected then cross compile mode will be used." >&2
1440   elif test "x$build_alias" != "x$host_alias"; then
1441     cross_compiling=yes
1442   fi
1443 fi
1444
1445 ac_tool_prefix=
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447
1448 test "$silent" = yes && exec 6>/dev/null
1449
1450
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454   as_fn_error "working directory cannot be determined"
1455 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1456   as_fn_error "pwd does not report name of working directory"
1457
1458
1459 # Find the source files, if location was not specified.
1460 if test -z "$srcdir"; then
1461   ac_srcdir_defaulted=yes
1462   # Try the directory containing this script, then the parent directory.
1463   ac_confdir=`$as_dirname -- "$as_myself" ||
1464 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465          X"$as_myself" : 'X\(//\)[^/]' \| \
1466          X"$as_myself" : 'X\(//\)$' \| \
1467          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1468 $as_echo X"$as_myself" |
1469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470             s//\1/
1471             q
1472           }
1473           /^X\(\/\/\)[^/].*/{
1474             s//\1/
1475             q
1476           }
1477           /^X\(\/\/\)$/{
1478             s//\1/
1479             q
1480           }
1481           /^X\(\/\).*/{
1482             s//\1/
1483             q
1484           }
1485           s/.*/./; q'`
1486   srcdir=$ac_confdir
1487   if test ! -r "$srcdir/$ac_unique_file"; then
1488     srcdir=..
1489   fi
1490 else
1491   ac_srcdir_defaulted=no
1492 fi
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1496 fi
1497 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498 ac_abs_confdir=`(
1499         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1500         pwd)`
1501 # When building in place, set srcdir=.
1502 if test "$ac_abs_confdir" = "$ac_pwd"; then
1503   srcdir=.
1504 fi
1505 # Remove unnecessary trailing slashes from srcdir.
1506 # Double slashes in file names in object file debugging info
1507 # mess up M-x gdb in Emacs.
1508 case $srcdir in
1509 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510 esac
1511 for ac_var in $ac_precious_vars; do
1512   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1513   eval ac_env_${ac_var}_value=\$${ac_var}
1514   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1515   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1516 done
1517
1518 #
1519 # Report the --help message.
1520 #
1521 if test "$ac_init_help" = "long"; then
1522   # Omit some internal or obsolete options to make the list less imposing.
1523   # This message is too long to be a string in the A/UX 3.1 sh.
1524   cat <<_ACEOF
1525 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1526
1527 Usage: $0 [OPTION]... [VAR=VALUE]...
1528
1529 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1530 VAR=VALUE.  See below for descriptions of some of the useful variables.
1531
1532 Defaults for the options are specified in brackets.
1533
1534 Configuration:
1535   -h, --help              display this help and exit
1536       --help=short        display options specific to this package
1537       --help=recursive    display the short help of all the included packages
1538   -V, --version           display version information and exit
1539   -q, --quiet, --silent   do not print \`checking...' messages
1540       --cache-file=FILE   cache test results in FILE [disabled]
1541   -C, --config-cache      alias for \`--cache-file=config.cache'
1542   -n, --no-create         do not create output files
1543       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1544
1545 Installation directories:
1546   --prefix=PREFIX         install architecture-independent files in PREFIX
1547                           [$ac_default_prefix]
1548   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1549                           [PREFIX]
1550
1551 By default, \`make install' will install all the files in
1552 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1553 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1554 for instance \`--prefix=\$HOME'.
1555
1556 For better control, use the options below.
1557
1558 Fine tuning of the installation directories:
1559   --bindir=DIR            user executables [EPREFIX/bin]
1560   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1561   --libexecdir=DIR        program executables [EPREFIX/libexec]
1562   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1563   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1564   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1565   --libdir=DIR            object code libraries [EPREFIX/lib]
1566   --includedir=DIR        C header files [PREFIX/include]
1567   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1568   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1569   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1570   --infodir=DIR           info documentation [DATAROOTDIR/info]
1571   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1572   --mandir=DIR            man documentation [DATAROOTDIR/man]
1573   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1574   --htmldir=DIR           html documentation [DOCDIR]
1575   --dvidir=DIR            dvi documentation [DOCDIR]
1576   --pdfdir=DIR            pdf documentation [DOCDIR]
1577   --psdir=DIR             ps documentation [DOCDIR]
1578 _ACEOF
1579
1580   cat <<\_ACEOF
1581
1582 Program names:
1583   --program-prefix=PREFIX            prepend PREFIX to installed program names
1584   --program-suffix=SUFFIX            append SUFFIX to installed program names
1585   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1586
1587 X features:
1588   --x-includes=DIR    X include files are in DIR
1589   --x-libraries=DIR   X library files are in DIR
1590
1591 System types:
1592   --build=BUILD     configure for building on BUILD [guessed]
1593   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1594   --target=TARGET   configure for building compilers for TARGET [HOST]
1595 _ACEOF
1596 fi
1597
1598 if test -n "$ac_init_help"; then
1599   case $ac_init_help in
1600      short | recursive ) echo "Configuration of libjava version-unused:";;
1601    esac
1602   cat <<\_ACEOF
1603
1604 Optional Features:
1605   --disable-option-checking  ignore unrecognized --enable/--with options
1606   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1607   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1608   --enable-multilib       build many library versions (default)
1609   --enable-version-specific-runtime-libs
1610                           specify that runtime libraries should be installed
1611                           in a compiler-specific directory
1612   --enable-browser-plugin build gcjwebplugin web browser plugin
1613   --enable-gconf-peer     compile GConf native peers for util.preferences
1614   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1615                           default=yes
1616   --enable-java-maintainer-mode
1617                           allow rebuilding of .class and .h files
1618   --disable-dependency-tracking  speeds up one-time build
1619   --enable-dependency-tracking   do not reject slow dependency extractors
1620   --enable-maintainer-mode  enable make rules and dependencies not useful
1621                           (and sometimes confusing) to the casual installer
1622   --enable-libgcj-sublibs build libgcj as many sub-libraries
1623   --enable-libgcj-debug   enable runtime debugging code
1624   --enable-java-awt       list of AWT peer implementations to be built
1625   --enable-shared[=PKGS]  build shared libraries [default=yes]
1626   --enable-static[=PKGS]  build static libraries [default=yes]
1627   --enable-fast-install[=PKGS]
1628                           optimize for fast installation [default=yes]
1629   --disable-libtool-lock  avoid locking (might break parallel builds)
1630   --disable-getenv-properties
1631                           don't set system properties from GCJ_PROPERTIES
1632   --enable-hash-synchronization
1633                           use global hash table for monitor locks
1634   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1635                           libgcj
1636   --enable-reduced-reflection
1637                           enable or disable(default) -freduced-reflection when
1638                           building portions of libgcj
1639   --enable-gc-debug       include full support for pointer backtracing etc.
1640   --enable-interpreter    enable interpreter
1641   --enable-sjlj-exceptions
1642                           force use of builtin_setjmp for exceptions
1643   --disable-java-net      disable java.net
1644   --disable-jvmpi         disable JVMPI support
1645   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1646   --disable-rpath         do not hardcode runtime library paths
1647   --enable-tls            Use thread-local storage [default=yes]
1648   --enable-aot-compile-rpm
1649                           enable installation of aot-compile-rpm [default=no]
1650   --enable-java-home      create a standard JDK-style directory layout in the
1651                           install tree [default=no]
1652
1653 Optional Packages:
1654   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1655   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1656   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1657   --with-target-subdir=SUBDIR
1658                           configure in a subdirectory
1659   --with-cross-host=HOST  configure with a cross compiler from HOST
1660   --with-newlib           configure with newlib
1661   --with-antlr-jar=file   Use ANTLR from the specified jar file
1662   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-ecj-jar=FILE     use preinstalled ecj jar
1667   --with-java-home=DIRECTORY
1668                           value of java.home system property
1669   --with-win32-nlsapi=ansi or unicows or unicode
1670                           native MinGW libgcj Win32 OS API (default is ansi)
1671   --without-libffi        don't use libffi
1672   --with-ecos             enable runtime eCos target support
1673   --with-system-zlib      use installed libz
1674   --with-x                use the X Window System
1675   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1676   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1677   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1678   --with-system-libunwind use installed libunwind
1679   --with-python-dir       the location to install Python modules. This path
1680                           should NOT include the prefix.
1681   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1682   --with-arch-directory   the arch directory under jre/lib (defaults to
1683                           auto-detect)
1684   --with-os-directory     the os directory under include (defaults to
1685                           auto-detect)
1686   --with-origin-name      the JPackage origin name of this package (default is
1687                           gcj${gcc_suffix}
1688   --with-arch-suffix      the arch directory suffix (default is the empty
1689                           string
1690   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1691   --with-jvm-jar-dir      where to install jars (default is
1692                           ${prefix}/lib/jvm-exports)
1693
1694 Some influential environment variables:
1695   CC          C compiler command
1696   CFLAGS      C compiler flags
1697   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1698               nonstandard directory <lib dir>
1699   LIBS        libraries to pass to the linker, e.g. -l<library>
1700   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1701               you have headers in a nonstandard directory <include dir>
1702   CXX         C++ compiler command
1703   CXXFLAGS    C++ compiler flags
1704   CPP         C preprocessor
1705   CXXCPP      C++ preprocessor
1706   XMKMF       Path to xmkmf, Makefile generator for X Window System
1707
1708 Use these variables to override the choices made by `configure' or to help
1709 it to find libraries and programs with nonstandard names/locations.
1710
1711 Report bugs to the package provider.
1712 _ACEOF
1713 ac_status=$?
1714 fi
1715
1716 if test "$ac_init_help" = "recursive"; then
1717   # If there are subdirs, report their specific --help.
1718   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1719     test -d "$ac_dir" ||
1720       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721       continue
1722     ac_builddir=.
1723
1724 case "$ac_dir" in
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *)
1727   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1728   # A ".." for each directory in $ac_dir_suffix.
1729   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730   case $ac_top_builddir_sub in
1731   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733   esac ;;
1734 esac
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1739
1740 case $srcdir in
1741   .)  # We are building in place.
1742     ac_srcdir=.
1743     ac_top_srcdir=$ac_top_builddir_sub
1744     ac_abs_top_srcdir=$ac_pwd ;;
1745   [\\/]* | ?:[\\/]* )  # Absolute name.
1746     ac_srcdir=$srcdir$ac_dir_suffix;
1747     ac_top_srcdir=$srcdir
1748     ac_abs_top_srcdir=$srcdir ;;
1749   *) # Relative name.
1750     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751     ac_top_srcdir=$ac_top_build_prefix$srcdir
1752     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 esac
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755
1756     cd "$ac_dir" || { ac_status=$?; continue; }
1757     # Check for guested configure.
1758     if test -f "$ac_srcdir/configure.gnu"; then
1759       echo &&
1760       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761     elif test -f "$ac_srcdir/configure"; then
1762       echo &&
1763       $SHELL "$ac_srcdir/configure" --help=recursive
1764     else
1765       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766     fi || ac_status=$?
1767     cd "$ac_pwd" || { ac_status=$?; break; }
1768   done
1769 fi
1770
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1773   cat <<\_ACEOF
1774 libjava configure version-unused
1775 generated by GNU Autoconf 2.64
1776
1777 Copyright (C) 2009 Free Software Foundation, Inc.
1778 This configure script is free software; the Free Software Foundation
1779 gives unlimited permission to copy, distribute and modify it.
1780 _ACEOF
1781   exit
1782 fi
1783
1784 ## ------------------------ ##
1785 ## Autoconf initialization. ##
1786 ## ------------------------ ##
1787
1788 # ac_fn_c_try_compile LINENO
1789 # --------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_compile ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   rm -f conftest.$ac_objext
1795   if { { ac_try="$ac_compile"
1796 case "(($ac_try" in
1797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798   *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802   (eval "$ac_compile") 2>conftest.err
1803   ac_status=$?
1804   if test -s conftest.err; then
1805     grep -v '^ *+' conftest.err >conftest.er1
1806     cat conftest.er1 >&5
1807     mv -f conftest.er1 conftest.err
1808   fi
1809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810   test $ac_status = 0; } && {
1811          test -z "$ac_c_werror_flag" ||
1812          test ! -s conftest.err
1813        } && test -s conftest.$ac_objext; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819         ac_retval=1
1820 fi
1821   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822   return $ac_retval
1823
1824 } # ac_fn_c_try_compile
1825
1826 # ac_fn_cxx_try_compile LINENO
1827 # ----------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_compile ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext
1833   if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_compile") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_cxx_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest.$ac_objext; then :
1852   ac_retval=0
1853 else
1854   $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857         ac_retval=1
1858 fi
1859   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860   return $ac_retval
1861
1862 } # ac_fn_cxx_try_compile
1863
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_c_try_link ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   rm -f conftest.$ac_objext conftest$ac_exeext
1871   if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_link") 2>conftest.err
1879   ac_status=$?
1880   if test -s conftest.err; then
1881     grep -v '^ *+' conftest.err >conftest.er1
1882     cat conftest.er1 >&5
1883     mv -f conftest.er1 conftest.err
1884   fi
1885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; } && {
1887          test -z "$ac_c_werror_flag" ||
1888          test ! -s conftest.err
1889        } && test -s conftest$ac_exeext && {
1890          test "$cross_compiling" = yes ||
1891          $as_test_x conftest$ac_exeext
1892        }; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898         ac_retval=1
1899 fi
1900   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902   # interfere with the next link command; also delete a directory that is
1903   # left behind by Apple's compiler.  We do this before executing the actions.
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906   return $ac_retval
1907
1908 } # ac_fn_c_try_link
1909
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939 } # ac_fn_c_check_header_compile
1940
1941 # ac_fn_c_try_cpp LINENO
1942 # ----------------------
1943 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_cpp ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955   ac_status=$?
1956   if test -s conftest.err; then
1957     grep -v '^ *+' conftest.err >conftest.er1
1958     cat conftest.er1 >&5
1959     mv -f conftest.er1 conftest.err
1960   fi
1961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962   test $ac_status = 0; } >/dev/null && {
1963          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1964          test ! -s conftest.err
1965        }; then :
1966   ac_retval=0
1967 else
1968   $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971     ac_retval=1
1972 fi
1973   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974   return $ac_retval
1975
1976 } # ac_fn_c_try_cpp
1977
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1982 ac_fn_c_try_run ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_link") 2>&5
1993   ac_status=$?
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996   { { case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_try") 2>&5
2003   ac_status=$?
2004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; }; }; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: program exited with status $ac_status" >&5
2009        $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012        ac_retval=$ac_status
2013 fi
2014   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016   return $ac_retval
2017
2018 } # ac_fn_c_try_run
2019
2020 # ac_fn_c_check_func LINENO FUNC VAR
2021 # ----------------------------------
2022 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2023 ac_fn_c_check_func ()
2024 {
2025   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029   $as_echo_n "(cached) " >&6
2030 else
2031   if test x$gcc_no_link = xyes; then
2032   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2033 fi
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2038 #define $2 innocuous_$2
2039
2040 /* System header to define __stub macros and hopefully few prototypes,
2041     which can conflict with char $2 (); below.
2042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2043     <limits.h> exists even on freestanding compilers.  */
2044
2045 #ifdef __STDC__
2046 # include <limits.h>
2047 #else
2048 # include <assert.h>
2049 #endif
2050
2051 #undef $2
2052
2053 /* Override any GCC internal prototype to avoid an error.
2054    Use char because int might match the return type of a GCC
2055    builtin and then its argument prototype would still apply.  */
2056 #ifdef __cplusplus
2057 extern "C"
2058 #endif
2059 char $2 ();
2060 /* The GNU C library defines this for functions which it implements
2061     to always fail with ENOSYS.  Some functions are actually named
2062     something starting with __ and the normal name is an alias.  */
2063 #if defined __stub_$2 || defined __stub___$2
2064 choke me
2065 #endif
2066
2067 int
2068 main ()
2069 {
2070 return $2 ();
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_link "$LINENO"; then :
2076   eval "$3=yes"
2077 else
2078   eval "$3=no"
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext \
2081     conftest$ac_exeext conftest.$ac_ext
2082 fi
2083 eval ac_res=\$$3
2084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087
2088 } # ac_fn_c_check_func
2089
2090 # ac_fn_cxx_try_cpp LINENO
2091 # ------------------------
2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_cxx_try_cpp ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   if { { ac_try="$ac_cpp conftest.$ac_ext"
2097 case "(($ac_try" in
2098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099   *) ac_try_echo=$ac_try;;
2100 esac
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2104   ac_status=$?
2105   if test -s conftest.err; then
2106     grep -v '^ *+' conftest.err >conftest.er1
2107     cat conftest.er1 >&5
2108     mv -f conftest.er1 conftest.err
2109   fi
2110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111   test $ac_status = 0; } >/dev/null && {
2112          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2113          test ! -s conftest.err
2114        }; then :
2115   ac_retval=0
2116 else
2117   $as_echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120     ac_retval=1
2121 fi
2122   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123   return $ac_retval
2124
2125 } # ac_fn_cxx_try_cpp
2126
2127 # ac_fn_cxx_try_link LINENO
2128 # -------------------------
2129 # Try to link conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_cxx_try_link ()
2131 {
2132   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133   rm -f conftest.$ac_objext conftest$ac_exeext
2134   if { { ac_try="$ac_link"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141   (eval "$ac_link") 2>conftest.err
2142   ac_status=$?
2143   if test -s conftest.err; then
2144     grep -v '^ *+' conftest.err >conftest.er1
2145     cat conftest.er1 >&5
2146     mv -f conftest.er1 conftest.err
2147   fi
2148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149   test $ac_status = 0; } && {
2150          test -z "$ac_cxx_werror_flag" ||
2151          test ! -s conftest.err
2152        } && test -s conftest$ac_exeext && {
2153          test "$cross_compiling" = yes ||
2154          $as_test_x conftest$ac_exeext
2155        }; then :
2156   ac_retval=0
2157 else
2158   $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161         ac_retval=1
2162 fi
2163   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165   # interfere with the next link command; also delete a directory that is
2166   # left behind by Apple's compiler.  We do this before executing the actions.
2167   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169   return $ac_retval
2170
2171 } # ac_fn_cxx_try_link
2172
2173 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2174 # -------------------------------------------------------
2175 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2176 # the include files in INCLUDES and setting the cache variable VAR
2177 # accordingly.
2178 ac_fn_c_check_header_mongrel ()
2179 {
2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185   $as_echo_n "(cached) " >&6
2186 fi
2187 eval ac_res=\$$3
2188                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 else
2191   # Is the header compilable?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2193 $as_echo_n "checking $2 usability... " >&6; }
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 #include <$2>
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200   ac_header_compiler=yes
2201 else
2202   ac_header_compiler=no
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2206 $as_echo "$ac_header_compiler" >&6; }
2207
2208 # Is the header present?
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2210 $as_echo_n "checking $2 presence... " >&6; }
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h.  */
2213 #include <$2>
2214 _ACEOF
2215 if ac_fn_c_try_cpp "$LINENO"; then :
2216   ac_header_preproc=yes
2217 else
2218   ac_header_preproc=no
2219 fi
2220 rm -f conftest.err conftest.$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2222 $as_echo "$ac_header_preproc" >&6; }
2223
2224 # So?  What about this header?
2225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2226   yes:no: )
2227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2228 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2229     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231     ;;
2232   no:yes:* )
2233     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2234 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2235     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2236 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2238 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2240 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2241     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2242 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2243     ;;
2244 esac
2245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248   $as_echo_n "(cached) " >&6
2249 else
2250   eval "$3=\$ac_header_compiler"
2251 fi
2252 eval ac_res=\$$3
2253                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 fi
2256   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257
2258 } # ac_fn_c_check_header_mongrel
2259
2260 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2261 # ----------------------------------------------------
2262 # Tries to find if the field MEMBER exists in type AGGR, after including
2263 # INCLUDES, setting cache variable VAR accordingly.
2264 ac_fn_c_check_member ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2268 $as_echo_n "checking for $2.$3... " >&6; }
2269 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2270   $as_echo_n "(cached) " >&6
2271 else
2272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h.  */
2274 $5
2275 int
2276 main ()
2277 {
2278 static $2 ac_aggr;
2279 if (ac_aggr.$3)
2280 return 0;
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286   eval "$4=yes"
2287 else
2288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h.  */
2290 $5
2291 int
2292 main ()
2293 {
2294 static $2 ac_aggr;
2295 if (sizeof ac_aggr.$3)
2296 return 0;
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   eval "$4=yes"
2303 else
2304   eval "$4=no"
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 eval ac_res=\$$4
2311                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
2315 } # ac_fn_c_check_member
2316
2317 # ac_fn_c_check_decl LINENO SYMBOL VAR
2318 # ------------------------------------
2319 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2320 ac_fn_c_check_decl ()
2321 {
2322   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323   as_decl_name=`echo $2|sed 's/ *(.*//'`
2324   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2327 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328   $as_echo_n "(cached) " >&6
2329 else
2330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 int
2334 main ()
2335 {
2336 #ifndef $as_decl_name
2337 #ifdef __cplusplus
2338   (void) $as_decl_use;
2339 #else
2340   (void) $as_decl_name;
2341 #endif
2342 #endif
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349   eval "$3=yes"
2350 else
2351   eval "$3=no"
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 eval ac_res=\$$3
2356                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359
2360 } # ac_fn_c_check_decl
2361
2362 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2363 # --------------------------------------------
2364 # Tries to find the compile-time value of EXPR in a program that includes
2365 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2366 # computed
2367 ac_fn_c_compute_int ()
2368 {
2369   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370   if test "$cross_compiling" = yes; then
2371     # Depending upon the size, compute the lo and hi bounds.
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 int
2376 main ()
2377 {
2378 static int test_array [1 - 2 * !(($2) >= 0)];
2379 test_array [0] = 0
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386   ac_lo=0 ac_mid=0
2387   while :; do
2388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h.  */
2390 $4
2391 int
2392 main ()
2393 {
2394 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2395 test_array [0] = 0
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402   ac_hi=$ac_mid; break
2403 else
2404   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2405                         if test $ac_lo -le $ac_mid; then
2406                           ac_lo= ac_hi=
2407                           break
2408                         fi
2409                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2410 fi
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412   done
2413 else
2414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h.  */
2416 $4
2417 int
2418 main ()
2419 {
2420 static int test_array [1 - 2 * !(($2) < 0)];
2421 test_array [0] = 0
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428   ac_hi=-1 ac_mid=-1
2429   while :; do
2430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h.  */
2432 $4
2433 int
2434 main ()
2435 {
2436 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2437 test_array [0] = 0
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444   ac_lo=$ac_mid; break
2445 else
2446   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2447                         if test $ac_mid -le $ac_hi; then
2448                           ac_lo= ac_hi=
2449                           break
2450                         fi
2451                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454   done
2455 else
2456   ac_lo= ac_hi=
2457 fi
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 # Binary search between lo and hi bounds.
2462 while test "x$ac_lo" != "x$ac_hi"; do
2463   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h.  */
2466 $4
2467 int
2468 main ()
2469 {
2470 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2471 test_array [0] = 0
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 if ac_fn_c_try_compile "$LINENO"; then :
2478   ac_hi=$ac_mid
2479 else
2480   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2481 fi
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 done
2484 case $ac_lo in #((
2485 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2486 '') ac_retval=1 ;;
2487 esac
2488   else
2489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h.  */
2491 $4
2492 static long int longval () { return $2; }
2493 static unsigned long int ulongval () { return $2; }
2494 #include <stdio.h>
2495 #include <stdlib.h>
2496 int
2497 main ()
2498 {
2499
2500   FILE *f = fopen ("conftest.val", "w");
2501   if (! f)
2502     return 1;
2503   if (($2) < 0)
2504     {
2505       long int i = longval ();
2506       if (i != ($2))
2507         return 1;
2508       fprintf (f, "%ld", i);
2509     }
2510   else
2511     {
2512       unsigned long int i = ulongval ();
2513       if (i != ($2))
2514         return 1;
2515       fprintf (f, "%lu", i);
2516     }
2517   /* Do not output a trailing newline, as this causes \r\n confusion
2518      on some platforms.  */
2519   return ferror (f) || fclose (f) != 0;
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_run "$LINENO"; then :
2526   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2527 else
2528   ac_retval=1
2529 fi
2530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2531   conftest.$ac_objext conftest.beam conftest.$ac_ext
2532 rm -f conftest.val
2533
2534   fi
2535   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536   return $ac_retval
2537
2538 } # ac_fn_c_compute_int
2539
2540 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2541 # -------------------------------------------
2542 # Tests whether TYPE exists after having included INCLUDES, setting cache
2543 # variable VAR accordingly.
2544 ac_fn_c_check_type ()
2545 {
2546   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550   $as_echo_n "(cached) " >&6
2551 else
2552   eval "$3=no"
2553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 $4
2556 int
2557 main ()
2558 {
2559 if (sizeof ($2))
2560          return 0;
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_c_try_compile "$LINENO"; then :
2566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h.  */
2568 $4
2569 int
2570 main ()
2571 {
2572 if (sizeof (($2)))
2573             return 0;
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579
2580 else
2581   eval "$3=yes"
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 eval ac_res=\$$3
2588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591
2592 } # ac_fn_c_check_type
2593 cat >config.log <<_ACEOF
2594 This file contains any messages produced by compilers while
2595 running configure, to aid debugging if configure makes a mistake.
2596
2597 It was created by libjava $as_me version-unused, which was
2598 generated by GNU Autoconf 2.64.  Invocation command line was
2599
2600   $ $0 $@
2601
2602 _ACEOF
2603 exec 5>>config.log
2604 {
2605 cat <<_ASUNAME
2606 ## --------- ##
2607 ## Platform. ##
2608 ## --------- ##
2609
2610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2615
2616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2618
2619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2626
2627 _ASUNAME
2628
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     $as_echo "PATH: $as_dir"
2635   done
2636 IFS=$as_save_IFS
2637
2638 } >&5
2639
2640 cat >&5 <<_ACEOF
2641
2642
2643 ## ----------- ##
2644 ## Core tests. ##
2645 ## ----------- ##
2646
2647 _ACEOF
2648
2649
2650 # Keep a trace of the command line.
2651 # Strip out --no-create and --no-recursion so they do not pile up.
2652 # Strip out --silent because we don't want to record it for future runs.
2653 # Also quote any args containing shell meta-characters.
2654 # Make two passes to allow for proper duplicate-argument suppression.
2655 ac_configure_args=
2656 ac_configure_args0=
2657 ac_configure_args1=
2658 ac_must_keep_next=false
2659 for ac_pass in 1 2
2660 do
2661   for ac_arg
2662   do
2663     case $ac_arg in
2664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2666     | -silent | --silent | --silen | --sile | --sil)
2667       continue ;;
2668     *\'*)
2669       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2670     esac
2671     case $ac_pass in
2672     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2673     2)
2674       as_fn_append ac_configure_args1 " '$ac_arg'"
2675       if test $ac_must_keep_next = true; then
2676         ac_must_keep_next=false # Got value, back to normal.
2677       else
2678         case $ac_arg in
2679           *=* | --config-cache | -C | -disable-* | --disable-* \
2680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2682           | -with-* | --with-* | -without-* | --without-* | --x)
2683             case "$ac_configure_args0 " in
2684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2685             esac
2686             ;;
2687           -* ) ac_must_keep_next=true ;;
2688         esac
2689       fi
2690       as_fn_append ac_configure_args " '$ac_arg'"
2691       ;;
2692     esac
2693   done
2694 done
2695 { ac_configure_args0=; unset ac_configure_args0;}
2696 { ac_configure_args1=; unset ac_configure_args1;}
2697
2698 # When interrupted or exit'd, cleanup temporary files, and complete
2699 # config.log.  We remove comments because anyway the quotes in there
2700 # would cause problems or look ugly.
2701 # WARNING: Use '\'' to represent an apostrophe within the trap.
2702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2703 trap 'exit_status=$?
2704   # Save into config.log some information that might help in debugging.
2705   {
2706     echo
2707
2708     cat <<\_ASBOX
2709 ## ---------------- ##
2710 ## Cache variables. ##
2711 ## ---------------- ##
2712 _ASBOX
2713     echo
2714     # The following way of writing the cache mishandles newlines in values,
2715 (
2716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2717     eval ac_val=\$$ac_var
2718     case $ac_val in #(
2719     *${as_nl}*)
2720       case $ac_var in #(
2721       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2723       esac
2724       case $ac_var in #(
2725       _ | IFS | as_nl) ;; #(
2726       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2727       *) { eval $ac_var=; unset $ac_var;} ;;
2728       esac ;;
2729     esac
2730   done
2731   (set) 2>&1 |
2732     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2733     *${as_nl}ac_space=\ *)
2734       sed -n \
2735         "s/'\''/'\''\\\\'\'''\''/g;
2736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2737       ;; #(
2738     *)
2739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2740       ;;
2741     esac |
2742     sort
2743 )
2744     echo
2745
2746     cat <<\_ASBOX
2747 ## ----------------- ##
2748 ## Output variables. ##
2749 ## ----------------- ##
2750 _ASBOX
2751     echo
2752     for ac_var in $ac_subst_vars
2753     do
2754       eval ac_val=\$$ac_var
2755       case $ac_val in
2756       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757       esac
2758       $as_echo "$ac_var='\''$ac_val'\''"
2759     done | sort
2760     echo
2761
2762     if test -n "$ac_subst_files"; then
2763       cat <<\_ASBOX
2764 ## ------------------- ##
2765 ## File substitutions. ##
2766 ## ------------------- ##
2767 _ASBOX
2768       echo
2769       for ac_var in $ac_subst_files
2770       do
2771         eval ac_val=\$$ac_var
2772         case $ac_val in
2773         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774         esac
2775         $as_echo "$ac_var='\''$ac_val'\''"
2776       done | sort
2777       echo
2778     fi
2779
2780     if test -s confdefs.h; then
2781       cat <<\_ASBOX
2782 ## ----------- ##
2783 ## confdefs.h. ##
2784 ## ----------- ##
2785 _ASBOX
2786       echo
2787       cat confdefs.h
2788       echo
2789     fi
2790     test "$ac_signal" != 0 &&
2791       $as_echo "$as_me: caught signal $ac_signal"
2792     $as_echo "$as_me: exit $exit_status"
2793   } >&5
2794   rm -f core *.core core.conftest.* &&
2795     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2796     exit $exit_status
2797 ' 0
2798 for ac_signal in 1 2 13 15; do
2799   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2800 done
2801 ac_signal=0
2802
2803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2804 rm -f -r conftest* confdefs.h
2805
2806 $as_echo "/* confdefs.h */" > confdefs.h
2807
2808 # Predefined preprocessor variables.
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_NAME "$PACKAGE_NAME"
2812 _ACEOF
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2816 _ACEOF
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2820 _ACEOF
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_STRING "$PACKAGE_STRING"
2824 _ACEOF
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2828 _ACEOF
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_URL "$PACKAGE_URL"
2832 _ACEOF
2833
2834
2835 # Let the site file select an alternate cache file if it wants to.
2836 # Prefer an explicitly selected file to automatically selected ones.
2837 ac_site_file1=NONE
2838 ac_site_file2=NONE
2839 if test -n "$CONFIG_SITE"; then
2840   ac_site_file1=$CONFIG_SITE
2841 elif test "x$prefix" != xNONE; then
2842   ac_site_file1=$prefix/share/config.site
2843   ac_site_file2=$prefix/etc/config.site
2844 else
2845   ac_site_file1=$ac_default_prefix/share/config.site
2846   ac_site_file2=$ac_default_prefix/etc/config.site
2847 fi
2848 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2849 do
2850   test "x$ac_site_file" = xNONE && continue
2851   if test -r "$ac_site_file"; then
2852     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2853 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2854     sed 's/^/| /' "$ac_site_file" >&5
2855     . "$ac_site_file"
2856   fi
2857 done
2858
2859 if test -r "$cache_file"; then
2860   # Some versions of bash will fail to source /dev/null (special
2861   # files actually), so we avoid doing that.
2862   if test -f "$cache_file"; then
2863     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2864 $as_echo "$as_me: loading cache $cache_file" >&6;}
2865     case $cache_file in
2866       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2867       *)                      . "./$cache_file";;
2868     esac
2869   fi
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2872 $as_echo "$as_me: creating cache $cache_file" >&6;}
2873   >$cache_file
2874 fi
2875
2876 # Check that the precious variables saved in the cache have kept the same
2877 # value.
2878 ac_cache_corrupted=false
2879 for ac_var in $ac_precious_vars; do
2880   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2881   eval ac_new_set=\$ac_env_${ac_var}_set
2882   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2883   eval ac_new_val=\$ac_env_${ac_var}_value
2884   case $ac_old_set,$ac_new_set in
2885     set,)
2886       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2888       ac_cache_corrupted=: ;;
2889     ,set)
2890       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2892       ac_cache_corrupted=: ;;
2893     ,);;
2894     *)
2895       if test "x$ac_old_val" != "x$ac_new_val"; then
2896         # differences in whitespace do not lead to failure.
2897         ac_old_val_w=`echo x $ac_old_val`
2898         ac_new_val_w=`echo x $ac_new_val`
2899         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2900           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2902           ac_cache_corrupted=:
2903         else
2904           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2906           eval $ac_var=\$ac_old_val
2907         fi
2908         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2909 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2910         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2911 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2912       fi;;
2913   esac
2914   # Pass precious variables to config.status.
2915   if test "$ac_new_set" = set; then
2916     case $ac_new_val in
2917     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2918     *) ac_arg=$ac_var=$ac_new_val ;;
2919     esac
2920     case " $ac_configure_args " in
2921       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2922       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2923     esac
2924   fi
2925 done
2926 if $ac_cache_corrupted; then
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2930 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2931   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2932 fi
2933 ## -------------------- ##
2934 ## Main body of script. ##
2935 ## -------------------- ##
2936
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942
2943
2944
2945
2946
2947
2948
2949
2950 ac_aux_dir=
2951 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2952   for ac_t in install-sh install.sh shtool; do
2953     if test -f "$ac_dir/$ac_t"; then
2954       ac_aux_dir=$ac_dir
2955       ac_install_sh="$ac_aux_dir/$ac_t -c"
2956       break 2
2957     fi
2958   done
2959 done
2960 if test -z "$ac_aux_dir"; then
2961   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2962 fi
2963
2964 # These three variables are undocumented and unsupported,
2965 # and are intended to be withdrawn in a future Autoconf release.
2966 # They can cause serious problems if a builder's source tree is in a directory
2967 # whose full name contains unusual characters.
2968 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2969 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2970 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2971
2972
2973 # Make sure we can run config.sub.
2974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2975   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2976
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2978 $as_echo_n "checking build system type... " >&6; }
2979 if test "${ac_cv_build+set}" = set; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   ac_build_alias=$build_alias
2983 test "x$ac_build_alias" = x &&
2984   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2985 test "x$ac_build_alias" = x &&
2986   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2987 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2988   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2989
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2992 $as_echo "$ac_cv_build" >&6; }
2993 case $ac_cv_build in
2994 *-*-*) ;;
2995 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2996 esac
2997 build=$ac_cv_build
2998 ac_save_IFS=$IFS; IFS='-'
2999 set x $ac_cv_build
3000 shift
3001 build_cpu=$1
3002 build_vendor=$2
3003 shift; shift
3004 # Remember, the first character of IFS is used to create $*,
3005 # except with old shells:
3006 build_os=$*
3007 IFS=$ac_save_IFS
3008 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3009
3010
3011  case ${build_alias} in
3012   "") build_noncanonical=${build} ;;
3013   *) build_noncanonical=${build_alias} ;;
3014 esac
3015
3016  case ${host_alias} in
3017   "") host_noncanonical=${build_noncanonical} ;;
3018   *) host_noncanonical=${host_alias} ;;
3019 esac
3020
3021  case ${target_alias} in
3022   "") target_noncanonical=${host_noncanonical} ;;
3023   *) target_noncanonical=${target_alias} ;;
3024 esac
3025
3026
3027 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3028 # have matching libraries, they should use host libraries: Makefile.tpl
3029 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3030 # However, they still use the build modules, because the corresponding
3031 # host modules (e.g. bison) are only built for the host when bootstrap
3032 # finishes. So:
3033 # - build_subdir is where we find build modules, and never changes.
3034 # - build_libsubdir is where we find build libraries, and can be overridden.
3035
3036 # Prefix 'build-' so this never conflicts with target_subdir.
3037 build_subdir="build-${build_noncanonical}"
3038
3039 # Check whether --with-build-libsubdir was given.
3040 if test "${with_build_libsubdir+set}" = set; then :
3041   withval=$with_build_libsubdir; build_libsubdir="$withval"
3042 else
3043   build_libsubdir="$build_subdir"
3044 fi
3045
3046 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3047 if ( test $srcdir = . && test -d gcc ) \
3048    || test -d $srcdir/../host-${host_noncanonical}; then
3049   host_subdir="host-${host_noncanonical}"
3050 else
3051   host_subdir=.
3052 fi
3053 # No prefix.
3054 target_subdir=${target_noncanonical}
3055
3056
3057 # We use these options to decide which functions to include.
3058
3059 # Check whether --with-target-subdir was given.
3060 if test "${with_target_subdir+set}" = set; then :
3061   withval=$with_target_subdir;
3062 fi
3063
3064
3065 # We may get other options which we don't document:
3066 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3067
3068 # Find the rest of the source tree framework.
3069 # Default to --enable-multilib
3070 # Check whether --enable-multilib was given.
3071 if test "${enable_multilib+set}" = set; then :
3072   enableval=$enable_multilib; case "$enableval" in
3073   yes) multilib=yes ;;
3074   no)  multilib=no ;;
3075   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3076  esac
3077 else
3078   multilib=yes
3079 fi
3080
3081
3082 # We may get other options which we leave undocumented:
3083 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3084 # See config-ml.in if you want the gory details.
3085
3086 if test "$srcdir" = "."; then
3087   if test "$with_target_subdir" != "."; then
3088     multi_basedir="$srcdir/$with_multisrctop../.."
3089   else
3090     multi_basedir="$srcdir/$with_multisrctop.."
3091   fi
3092 else
3093   multi_basedir="$srcdir/.."
3094 fi
3095
3096
3097 # Even if the default multilib is not a cross compilation,
3098 # it may be that some of the other multilibs are.
3099 if test $cross_compiling = no && test $multilib = yes \
3100    && test "x${with_multisubdir}" != x ; then
3101    cross_compiling=maybe
3102 fi
3103
3104 ac_config_commands="$ac_config_commands default-1"
3105
3106
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3108 $as_echo_n "checking host system type... " >&6; }
3109 if test "${ac_cv_host+set}" = set; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test "x$host_alias" = x; then
3113   ac_cv_host=$ac_cv_build
3114 else
3115   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3116     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3117 fi
3118
3119 fi
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3121 $as_echo "$ac_cv_host" >&6; }
3122 case $ac_cv_host in
3123 *-*-*) ;;
3124 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3125 esac
3126 host=$ac_cv_host
3127 ac_save_IFS=$IFS; IFS='-'
3128 set x $ac_cv_host
3129 shift
3130 host_cpu=$1
3131 host_vendor=$2
3132 shift; shift
3133 # Remember, the first character of IFS is used to create $*,
3134 # except with old shells:
3135 host_os=$*
3136 IFS=$ac_save_IFS
3137 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3141 $as_echo_n "checking target system type... " >&6; }
3142 if test "${ac_cv_target+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test "x$target_alias" = x; then
3146   ac_cv_target=$ac_cv_host
3147 else
3148   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3149     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3150 fi
3151
3152 fi
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3154 $as_echo "$ac_cv_target" >&6; }
3155 case $ac_cv_target in
3156 *-*-*) ;;
3157 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3158 esac
3159 target=$ac_cv_target
3160 ac_save_IFS=$IFS; IFS='-'
3161 set x $ac_cv_target
3162 shift
3163 target_cpu=$1
3164 target_vendor=$2
3165 shift; shift
3166 # Remember, the first character of IFS is used to create $*,
3167 # except with old shells:
3168 target_os=$*
3169 IFS=$ac_save_IFS
3170 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171
3172
3173 # The aliases save the names the user supplied, while $host etc.
3174 # will get canonicalized.
3175 test -n "$target_alias" &&
3176   test "$program_prefix$program_suffix$program_transform_name" = \
3177     NONENONEs,x,x, &&
3178   program_prefix=${target_alias}-
3179
3180  case ${build_alias} in
3181   "") build_noncanonical=${build} ;;
3182   *) build_noncanonical=${build_alias} ;;
3183 esac
3184
3185  case ${target_alias} in
3186   "") target_noncanonical=${host_noncanonical} ;;
3187   *) target_noncanonical=${target_alias} ;;
3188 esac
3189
3190
3191
3192
3193 # This works around the fact that libtool configuration may change LD
3194 # for this particular configuration, but some shells, instead of
3195 # keeping the changes in LD private, export them just because LD is
3196 # exported.
3197 ORIGINAL_LD_FOR_MULTILIBS=$LD
3198
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3200 $as_echo_n "checking whether ln -s works... " >&6; }
3201 LN_S=$as_ln_s
3202 if test "$LN_S" = "ln -s"; then
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3205 else
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3207 $as_echo "no, using $LN_S" >&6; }
3208 fi
3209
3210
3211 # This works around an automake problem.
3212 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3213
3214
3215
3216 # Check whether --with-cross-host was given.
3217 if test "${with_cross_host+set}" = set; then :
3218   withval=$with_cross_host;
3219 fi
3220
3221
3222
3223 # Check whether --with-newlib was given.
3224 if test "${with_newlib+set}" = set; then :
3225   withval=$with_newlib;
3226 fi
3227
3228
3229 # Check whether --enable-version-specific-runtime-libs was given.
3230 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3231   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3232       yes) version_specific_libs=yes ;;
3233       no)  version_specific_libs=no ;;
3234       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3235      esac
3236 else
3237   version_specific_libs=no
3238
3239 fi
3240
3241
3242 # Check whether --enable-browser-plugin was given.
3243 if test "${enable_browser_plugin+set}" = set; then :
3244   enableval=$enable_browser_plugin; case "$enableval" in
3245       yes) browser_plugin_enabled=yes ;;
3246       no)  browser_plugin_enabled=no ;;
3247       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3248      esac
3249 else
3250   browser_plugin_enabled=no
3251
3252 fi
3253
3254
3255 # Check whether --enable-gconf-peer was given.
3256 if test "${enable_gconf_peer+set}" = set; then :
3257   enableval=$enable_gconf_peer; case "$enableval" in
3258       yes) gconf_enabled=yes ;;
3259       no)  gconf_enabled=no ;;
3260       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3261      esac
3262 else
3263   gconf_enabled=no
3264
3265 fi
3266
3267
3268
3269 # Check whether --with-antlr-jar was given.
3270 if test "${with_antlr_jar+set}" = set; then :
3271   withval=$with_antlr_jar;
3272              ANTLR_JAR=$withval
3273
3274 else
3275
3276              ANTLR_JAR=
3277
3278 fi
3279
3280
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3282 $as_echo_n "checking for antlr.jar... " >&6; }
3283 if test "x$ANTLR_JAR" = x; then
3284     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3285         /usr/share/antlr/lib /usr/share/java /usr/lib;
3286     do
3287         if test -f "$antlr_lib_home/antlr.jar"; then
3288             # FIXME: version check for antlr needed without using a VM
3289             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3290             break
3291         fi
3292     done
3293     if test "x$ANTLR_JAR" = x; then
3294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3295 $as_echo "not found" >&6; }
3296     else
3297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3298 $as_echo "$ANTLR_JAR" >&6; }
3299     fi
3300 else
3301     if test -f "${ANTLR_JAR}"; then
3302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3303 $as_echo "$ANTLR_JAR" >&6; }
3304     else
3305         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3306     fi
3307 fi
3308
3309
3310 # Check whether --enable-gjdoc was given.
3311 if test "${enable_gjdoc+set}" = set; then :
3312   enableval=$enable_gjdoc; case "${enableval}" in
3313                 yes) BUILD_GJDOC=yes ;;
3314                 no) BUILD_GJDOC=no ;;
3315                 *) BUILD_GJDOC=yes ;;
3316               esac
3317 else
3318   BUILD_GJDOC=maybe
3319 fi
3320
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3323 $as_echo_n "checking whether to build gjdoc... " >&6; }
3324 if test "x$BUILD_GJDOC" = xmaybe; then
3325     if test -f "${ANTLR_JAR}"; then
3326         BUILD_GJDOC=yes
3327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329     else
3330         BUILD_GJDOC=no
3331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3332 $as_echo "no, antlr.jar not found" >&6; }
3333     fi
3334 else
3335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3336 $as_echo "$BUILD_GJDOC" >&6; }
3337 fi
3338  if test "x${BUILD_GJDOC}" = xyes; then
3339   CREATE_GJDOC_TRUE=
3340   CREATE_GJDOC_FALSE='#'
3341 else
3342   CREATE_GJDOC_TRUE='#'
3343   CREATE_GJDOC_FALSE=
3344 fi
3345
3346
3347 # Check whether --enable-java-maintainer-mode was given.
3348 if test "${enable_java_maintainer_mode+set}" = set; then :
3349   enableval=$enable_java_maintainer_mode;
3350 fi
3351
3352  if test "$enable_java_maintainer_mode" = yes; then
3353   JAVA_MAINTAINER_MODE_TRUE=
3354   JAVA_MAINTAINER_MODE_FALSE='#'
3355 else
3356   JAVA_MAINTAINER_MODE_TRUE='#'
3357   JAVA_MAINTAINER_MODE_FALSE=
3358 fi
3359
3360
3361 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3362
3363
3364 # For libstdc++-v3, -fno-builtin must be present here so that a
3365 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3366 # used in later tests.  This may not be necessary in libjava; I don't know.
3367 save_CXXFLAGS="$CXXFLAGS"
3368 CXXFLAGS="$CXXFLAGS -fno-builtin"
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412 fi
3413 if test -z "$ac_cv_prog_CC"; then
3414   ac_ct_CC=$CC
3415   # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3420   $as_echo_n "(cached) " >&6
3421 else
3422   if test -n "$ac_ct_CC"; then
3423   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428   IFS=$as_save_IFS
3429   test -z "$as_dir" && as_dir=.
3430     for ac_exec_ext in '' $ac_executable_extensions; do
3431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432     ac_cv_prog_ac_ct_CC="gcc"
3433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434     break 2
3435   fi
3436 done
3437   done
3438 IFS=$as_save_IFS
3439
3440 fi
3441 fi
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3446 else
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 fi
3450
3451   if test "x$ac_ct_CC" = x; then
3452     CC=""
3453   else
3454     case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460     CC=$ac_ct_CC
3461   fi
3462 else
3463   CC="$ac_cv_prog_CC"
3464 fi
3465
3466 if test -z "$CC"; then
3467           if test -n "$ac_tool_prefix"; then
3468     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   if test -n "$CC"; then
3476   ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485     ac_cv_prog_CC="${ac_tool_prefix}cc"
3486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490   done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505   fi
3506 fi
3507 if test -z "$CC"; then
3508   # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513   $as_echo_n "(cached) " >&6
3514 else
3515   if test -n "$CC"; then
3516   ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518   ac_prog_rejected=no
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524     for ac_exec_ext in '' $ac_executable_extensions; do
3525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527        ac_prog_rejected=yes
3528        continue
3529      fi
3530     ac_cv_prog_CC="cc"
3531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532     break 2
3533   fi
3534 done
3535   done
3536 IFS=$as_save_IFS
3537
3538 if test $ac_prog_rejected = yes; then
3539   # We found a bogon in the path, so make sure we never use it.
3540   set dummy $ac_cv_prog_CC
3541   shift
3542   if test $# != 0; then
3543     # We chose a different compiler from the bogus one.
3544     # However, it has the same basename, so the bogon will be chosen
3545     # first if we set CC to just the basename; use the full file name.
3546     shift
3547     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3548   fi
3549 fi
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562 fi
3563 if test -z "$CC"; then
3564   if test -n "$ac_tool_prefix"; then
3565   for ac_prog in cl.exe
3566   do
3567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if test -n "$CC"; then
3575   ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580   IFS=$as_save_IFS
3581   test -z "$as_dir" && as_dir=.
3582     for ac_exec_ext in '' $ac_executable_extensions; do
3583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586     break 2
3587   fi
3588 done
3589   done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3598 else
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603
3604     test -n "$CC" && break
3605   done
3606 fi
3607 if test -z "$CC"; then
3608   ac_ct_CC=$CC
3609   for ac_prog in cl.exe
3610 do
3611   # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   if test -n "$ac_ct_CC"; then
3619   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628     ac_cv_prog_ac_ct_CC="$ac_prog"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3642 else
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648   test -n "$ac_ct_CC" && break
3649 done
3650
3651   if test "x$ac_ct_CC" = x; then
3652     CC=""
3653   else
3654     case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660     CC=$ac_ct_CC
3661   fi
3662 fi
3663
3664 fi
3665
3666
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details." "$LINENO" 5; }
3671
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674 set X $ac_compile
3675 ac_compiler=$2
3676 for ac_option in --version -v -V -qversion; do
3677   { { ac_try="$ac_compiler $ac_option >&5"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685   ac_status=$?
3686   if test -s conftest.err; then
3687     sed '10a\
3688 ... rest of stderr output deleted ...
3689          10q' conftest.err >conftest.er1
3690     cat conftest.er1 >&5
3691     rm -f conftest.er1 conftest.err
3692   fi
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }
3695 done
3696
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699
3700 int
3701 main ()
3702 {
3703
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 # FIXME: Cleanup?
3709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3710   (eval $ac_link) 2>&5
3711   ac_status=$?
3712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713   test $ac_status = 0; }; then :
3714   gcc_no_link=no
3715 else
3716   gcc_no_link=yes
3717 fi
3718 if test x$gcc_no_link = xyes; then
3719   # Setting cross_compile will disable run tests; it will
3720   # also disable AC_CHECK_FILE but that's generally
3721   # correct if we can't link.
3722   cross_compiling=yes
3723   EXEEXT=
3724 else
3725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h.  */
3727
3728 int
3729 main ()
3730 {
3731
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 ac_clean_files_save=$ac_clean_files
3737 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3738 # Try to create an executable without -o first, disregard a.out.
3739 # It will help us diagnose broken compilers, and finding out an intuition
3740 # of exeext.
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3742 $as_echo_n "checking for C compiler default output file name... " >&6; }
3743 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3744
3745 # The possible output files:
3746 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3747
3748 ac_rmfiles=
3749 for ac_file in $ac_files
3750 do
3751   case $ac_file in
3752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3754   esac
3755 done
3756 rm -f $ac_rmfiles
3757
3758 if { { ac_try="$ac_link_default"
3759 case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765   (eval "$ac_link_default") 2>&5
3766   ac_status=$?
3767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768   test $ac_status = 0; }; then :
3769   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3770 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3771 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3772 # so that the user can short-circuit this test for compilers unknown to
3773 # Autoconf.
3774 for ac_file in $ac_files ''
3775 do
3776   test -f "$ac_file" || continue
3777   case $ac_file in
3778     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3779         ;;
3780     [ab].out )
3781         # We found the default executable, but exeext='' is most
3782         # certainly right.
3783         break;;
3784     *.* )
3785         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3786         then :; else
3787            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788         fi
3789         # We set ac_cv_exeext here because the later test for it is not
3790         # safe: cross compilers may not add the suffix if given an `-o'
3791         # argument, so we may need to know it at that point already.
3792         # Even if this section looks crufty: it has the advantage of
3793         # actually working.
3794         break;;
3795     * )
3796         break;;
3797   esac
3798 done
3799 test "$ac_cv_exeext" = no && ac_cv_exeext=
3800
3801 else
3802   ac_file=''
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3805 $as_echo "$ac_file" >&6; }
3806 if test -z "$ac_file"; then :
3807   $as_echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 { as_fn_set_status 77
3813 as_fn_error "C compiler cannot create executables
3814 See \`config.log' for more details." "$LINENO" 5; }; }
3815 fi
3816 ac_exeext=$ac_cv_exeext
3817
3818 # Check that the compiler produces executables we can run.  If not, either
3819 # the compiler is broken, or we cross compile.
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821 $as_echo_n "checking whether the C compiler works... " >&6; }
3822 # If not cross compiling, check that we can run a simple program.
3823 if test "$cross_compiling" != yes; then
3824   if { ac_try='./$ac_file'
3825   { { case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831   (eval "$ac_try") 2>&5
3832   ac_status=$?
3833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834   test $ac_status = 0; }; }; then
3835     cross_compiling=no
3836   else
3837     if test "$cross_compiling" = maybe; then
3838         cross_compiling=yes
3839     else
3840         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error "cannot run C compiled programs.
3843 If you meant to cross compile, use \`--host'.
3844 See \`config.log' for more details." "$LINENO" 5; }
3845     fi
3846   fi
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849 $as_echo "yes" >&6; }
3850
3851 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3852 ac_clean_files=$ac_clean_files_save
3853 # Check that the compiler produces executables we can run.  If not, either
3854 # the compiler is broken, or we cross compile.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3856 $as_echo_n "checking whether we are cross compiling... " >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3858 $as_echo "$cross_compiling" >&6; }
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3861 $as_echo_n "checking for suffix of executables... " >&6; }
3862 if { { ac_try="$ac_link"
3863 case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869   (eval "$ac_link") 2>&5
3870   ac_status=$?
3871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872   test $ac_status = 0; }; then :
3873   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3874 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3875 # work properly (i.e., refer to `conftest.exe'), while it won't with
3876 # `rm'.
3877 for ac_file in conftest.exe conftest conftest.*; do
3878   test -f "$ac_file" || continue
3879   case $ac_file in
3880     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3881     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882           break;;
3883     * ) break;;
3884   esac
3885 done
3886 else
3887   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot compute suffix of executables: cannot compile and link
3890 See \`config.log' for more details." "$LINENO" 5; }
3891 fi
3892 rm -f conftest$ac_cv_exeext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3894 $as_echo "$ac_cv_exeext" >&6; }
3895
3896 rm -f conftest.$ac_ext
3897 EXEEXT=$ac_cv_exeext
3898 ac_exeext=$EXEEXT
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3901 $as_echo_n "checking for suffix of object files... " >&6; }
3902 if test "${ac_cv_objext+set}" = set; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 rm -f conftest.o conftest.obj
3917 if { { ac_try="$ac_compile"
3918 case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924   (eval "$ac_compile") 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }; then :
3928   for ac_file in conftest.o conftest.obj conftest.*; do
3929   test -f "$ac_file" || continue;
3930   case $ac_file in
3931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3932     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3933        break;;
3934   esac
3935 done
3936 else
3937   $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot compute suffix of object files: cannot compile
3943 See \`config.log' for more details." "$LINENO" 5; }
3944 fi
3945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3948 $as_echo "$ac_cv_objext" >&6; }
3949 OBJEXT=$ac_cv_objext
3950 ac_objext=$OBJEXT
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3953 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962 #ifndef __GNUC__
3963        choke me
3964 #endif
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971   ac_compiler_gnu=yes
3972 else
3973   ac_compiler_gnu=no
3974 fi
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981 if test $ac_compiler_gnu = yes; then
3982   GCC=yes
3983 else
3984   GCC=
3985 fi
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3990 if test "${ac_cv_prog_cc_g+set}" = set; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   ac_save_c_werror_flag=$ac_c_werror_flag
3994    ac_c_werror_flag=yes
3995    ac_cv_prog_cc_g=no
3996    CFLAGS="-g"
3997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_cv_prog_cc_g=yes
4010 else
4011   CFLAGS=""
4012       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 int
4016 main ()
4017 {
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024
4025 else
4026   ac_c_werror_flag=$ac_save_c_werror_flag
4027          CFLAGS="-g"
4028          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040   ac_cv_prog_cc_g=yes
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047    ac_c_werror_flag=$ac_save_c_werror_flag
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4050 $as_echo "$ac_cv_prog_cc_g" >&6; }
4051 if test "$ac_test_CFLAGS" = set; then
4052   CFLAGS=$ac_save_CFLAGS
4053 elif test $ac_cv_prog_cc_g = yes; then
4054   if test "$GCC" = yes; then
4055     CFLAGS="-g -O2"
4056   else
4057     CFLAGS="-g"
4058   fi
4059 else
4060   if test "$GCC" = yes; then
4061     CFLAGS="-O2"
4062   else
4063     CFLAGS=
4064   fi
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4068 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   ac_cv_prog_cc_c89=no
4072 ac_save_CC=$CC
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h.  */
4075 #include <stdarg.h>
4076 #include <stdio.h>
4077 #include <sys/types.h>
4078 #include <sys/stat.h>
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4083      char **p;
4084      int i;
4085 {
4086   return p[i];
4087 }
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4089 {
4090   char *s;
4091   va_list v;
4092   va_start (v,p);
4093   s = g (p, va_arg (v,int));
4094   va_end (v);
4095   return s;
4096 }
4097
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4099    function prototypes and stuff, but not '\xHH' hex character constants.
4100    These don't provoke an error unfortunately, instead are silently treated
4101    as 'x'.  The following induces an error, until -std is added to get
4102    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4103    array size at least.  It's necessary to write '\x00'==0 to get something
4104    that's true only with -std.  */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4106
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108    inside strings and character constants.  */
4109 #define FOO(x) 'x'
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4111
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4116 int argc;
4117 char **argv;
4118 int
4119 main ()
4120 {
4121 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4122   ;
4123   return 0;
4124 }
4125 _ACEOF
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4128 do
4129   CC="$ac_save_CC $ac_arg"
4130   if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_cv_prog_cc_c89=$ac_arg
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext
4134   test "x$ac_cv_prog_cc_c89" != "xno" && break
4135 done
4136 rm -f conftest.$ac_ext
4137 CC=$ac_save_CC
4138
4139 fi
4140 # AC_CACHE_VAL
4141 case "x$ac_cv_prog_cc_c89" in
4142   x)
4143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;;
4145   xno)
4146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147 $as_echo "unsupported" >&6; } ;;
4148   *)
4149     CC="$CC $ac_cv_prog_cc_c89"
4150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4152 esac
4153 if test "x$ac_cv_prog_cc_c89" != xno; then :
4154
4155 fi
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163 ac_ext=cpp
4164 ac_cpp='$CXXCPP $CPPFLAGS'
4165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4168 if test -z "$CXX"; then
4169   if test -n "$CCC"; then
4170     CXX=$CCC
4171   else
4172     if test -n "$ac_tool_prefix"; then
4173   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4174   do
4175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if test "${ac_cv_prog_CXX+set}" = set; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   if test -n "$CXX"; then
4183   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done
4198 IFS=$as_save_IFS
4199
4200 fi
4201 fi
4202 CXX=$ac_cv_prog_CXX
4203 if test -n "$CXX"; then
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4205 $as_echo "$CXX" >&6; }
4206 else
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4209 fi
4210
4211
4212     test -n "$CXX" && break
4213   done
4214 fi
4215 if test -z "$CXX"; then
4216   ac_ct_CXX=$CXX
4217   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4218 do
4219   # Extract the first word of "$ac_prog", so it can be a program name with args.
4220 set dummy $ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if test -n "$ac_ct_CXX"; then
4227   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236     ac_cv_prog_ac_ct_CXX="$ac_prog"
4237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4247 if test -n "$ac_ct_CXX"; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4249 $as_echo "$ac_ct_CXX" >&6; }
4250 else
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256   test -n "$ac_ct_CXX" && break
4257 done
4258
4259   if test "x$ac_ct_CXX" = x; then
4260     CXX="g++"
4261   else
4262     case $cross_compiling:$ac_tool_warned in
4263 yes:)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268     CXX=$ac_ct_CXX
4269   fi
4270 fi
4271
4272   fi
4273 fi
4274 # Provide some information about the compiler.
4275 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4276 set X $ac_compile
4277 ac_compiler=$2
4278 for ac_option in --version -v -V -qversion; do
4279   { { ac_try="$ac_compiler $ac_option >&5"
4280 case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4287   ac_status=$?
4288   if test -s conftest.err; then
4289     sed '10a\
4290 ... rest of stderr output deleted ...
4291          10q' conftest.err >conftest.er1
4292     cat conftest.er1 >&5
4293     rm -f conftest.er1 conftest.err
4294   fi
4295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296   test $ac_status = 0; }
4297 done
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4300 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4301 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4302   $as_echo_n "(cached) " >&6
4303 else
4304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h.  */
4306
4307 int
4308 main ()
4309 {
4310 #ifndef __GNUC__
4311        choke me
4312 #endif
4313
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 if ac_fn_cxx_try_compile "$LINENO"; then :
4319   ac_compiler_gnu=yes
4320 else
4321   ac_compiler_gnu=no
4322 fi
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4328 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4329 if test $ac_compiler_gnu = yes; then
4330   GXX=yes
4331 else
4332   GXX=
4333 fi
4334 ac_test_CXXFLAGS=${CXXFLAGS+set}
4335 ac_save_CXXFLAGS=$CXXFLAGS
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4337 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4338 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4342    ac_cxx_werror_flag=yes
4343    ac_cv_prog_cxx_g=no
4344    CXXFLAGS="-g"
4345    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347
4348 int
4349 main ()
4350 {
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_cxx_try_compile "$LINENO"; then :
4357   ac_cv_prog_cxx_g=yes
4358 else
4359   CXXFLAGS=""
4360       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h.  */
4362
4363 int
4364 main ()
4365 {
4366
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_cxx_try_compile "$LINENO"; then :
4372
4373 else
4374   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4375          CXXFLAGS="-g"
4376          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h.  */
4378
4379 int
4380 main ()
4381 {
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_cxx_try_compile "$LINENO"; then :
4388   ac_cv_prog_cxx_g=yes
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4398 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4399 if test "$ac_test_CXXFLAGS" = set; then
4400   CXXFLAGS=$ac_save_CXXFLAGS
4401 elif test $ac_cv_prog_cxx_g = yes; then
4402   if test "$GXX" = yes; then
4403     CXXFLAGS="-g -O2"
4404   else
4405     CXXFLAGS="-g"
4406   fi
4407 else
4408   if test "$GXX" = yes; then
4409     CXXFLAGS="-O2"
4410   else
4411     CXXFLAGS=
4412   fi
4413 fi
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
4420 CXXFLAGS="$save_CXXFLAGS"
4421
4422 am__api_version='1.11'
4423
4424 # Find a good install program.  We prefer a C program (faster),
4425 # so one script is as good as another.  But avoid the broken or
4426 # incompatible versions:
4427 # SysV /etc/install, /usr/sbin/install
4428 # SunOS /usr/etc/install
4429 # IRIX /sbin/install
4430 # AIX /bin/install
4431 # AmigaOS /C/install, which installs bootblocks on floppy discs
4432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4435 # OS/2's system install, which has a completely different semantic
4436 # ./install, which can be erroneously created by make from ./install.sh.
4437 # Reject install programs that cannot install multiple files.
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4440 if test -z "$INSTALL"; then
4441 if test "${ac_cv_path_install+set}" = set; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     # Account for people who put trailing slashes in PATH elements.
4450 case $as_dir/ in #((
4451   ./ | .// | /[cC]/* | \
4452   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4453   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4454   /usr/ucb/* ) ;;
4455   *)
4456     # OSF1 and SCO ODT 3.0 have their own names for install.
4457     # Don't use installbsd from OSF since it installs stuff as root
4458     # by default.
4459     for ac_prog in ginstall scoinst install; do
4460       for ac_exec_ext in '' $ac_executable_extensions; do
4461         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4462           if test $ac_prog = install &&
4463             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4464             # AIX install.  It has an incompatible calling convention.
4465             :
4466           elif test $ac_prog = install &&
4467             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4468             # program-specific install script used by HP pwplus--don't use.
4469             :
4470           else
4471             rm -rf conftest.one conftest.two conftest.dir
4472             echo one > conftest.one
4473             echo two > conftest.two
4474             mkdir conftest.dir
4475             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4476               test -s conftest.one && test -s conftest.two &&
4477               test -s conftest.dir/conftest.one &&
4478               test -s conftest.dir/conftest.two
4479             then
4480               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4481               break 3
4482             fi
4483           fi
4484         fi
4485       done
4486     done
4487     ;;
4488 esac
4489
4490   done
4491 IFS=$as_save_IFS
4492
4493 rm -rf conftest.one conftest.two conftest.dir
4494
4495 fi
4496   if test "${ac_cv_path_install+set}" = set; then
4497     INSTALL=$ac_cv_path_install
4498   else
4499     # As a last resort, use the slow shell script.  Don't cache a
4500     # value for INSTALL within a source directory, because that will
4501     # break other packages using the cache if that directory is
4502     # removed, or if the value is a relative name.
4503     INSTALL=$ac_install_sh
4504   fi
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4507 $as_echo "$INSTALL" >&6; }
4508
4509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4510 # It thinks the first close brace ends the variable substitution.
4511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4512
4513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4514
4515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4518 $as_echo_n "checking whether build environment is sane... " >&6; }
4519 # Just in case
4520 sleep 1
4521 echo timestamp > conftest.file
4522 # Reject unsafe characters in $srcdir or the absolute working directory
4523 # name.  Accept space and tab only in the latter.
4524 am_lf='
4525 '
4526 case `pwd` in
4527   *[\\\"\#\$\&\'\`$am_lf]*)
4528     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4529 esac
4530 case $srcdir in
4531   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4532     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4533 esac
4534
4535 # Do `set' in a subshell so we don't clobber the current shell's
4536 # arguments.  Must try -L first in case configure is actually a
4537 # symlink; some systems play weird games with the mod time of symlinks
4538 # (eg FreeBSD returns the mod time of the symlink's containing
4539 # directory).
4540 if (
4541    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4542    if test "$*" = "X"; then
4543       # -L didn't work.
4544       set X `ls -t "$srcdir/configure" conftest.file`
4545    fi
4546    rm -f conftest.file
4547    if test "$*" != "X $srcdir/configure conftest.file" \
4548       && test "$*" != "X conftest.file $srcdir/configure"; then
4549
4550       # If neither matched, then we have a broken ls.  This can happen
4551       # if, for instance, CONFIG_SHELL is bash and it inherits a
4552       # broken ls alias from the environment.  This has actually
4553       # happened.  Such a system could not be considered "sane".
4554       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4555 alias in your environment" "$LINENO" 5
4556    fi
4557
4558    test "$2" = conftest.file
4559    )
4560 then
4561    # Ok.
4562    :
4563 else
4564    as_fn_error "newly created file is older than distributed files!
4565 Check your system clock" "$LINENO" 5
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568 $as_echo "yes" >&6; }
4569 test "$program_prefix" != NONE &&
4570   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4571 # Use a double $ so make ignores it.
4572 test "$program_suffix" != NONE &&
4573   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4574 # Double any \ or $.
4575 # By default was `s,x,x', remove it if useless.
4576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4577 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4578
4579 # expand $ac_aux_dir to an absolute path
4580 am_aux_dir=`cd $ac_aux_dir && pwd`
4581
4582 if test x"${MISSING+set}" != xset; then
4583   case $am_aux_dir in
4584   *\ * | *\     *)
4585     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4586   *)
4587     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4588   esac
4589 fi
4590 # Use eval to expand $SHELL
4591 if eval "$MISSING --run true"; then
4592   am_missing_run="$MISSING --run "
4593 else
4594   am_missing_run=
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4596 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4597 fi
4598
4599 if test x"${install_sh}" != xset; then
4600   case $am_aux_dir in
4601   *\ * | *\     *)
4602     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4603   *)
4604     install_sh="\${SHELL} $am_aux_dir/install-sh"
4605   esac
4606 fi
4607
4608 # Installed binaries are usually stripped using `strip' when the user
4609 # run `make install-strip'.  However `strip' might not be the right
4610 # tool to use in cross-compilation environments, therefore Automake
4611 # will honor the `STRIP' environment variable to overrule this program.
4612 if test "$cross_compiling" != no; then
4613   if test -n "$ac_tool_prefix"; then
4614   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4615 set dummy ${ac_tool_prefix}strip; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_STRIP+set}" = set; then :
4619   $as_echo_n "(cached) " >&6
4620 else
4621   if test -n "$STRIP"; then
4622   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629     for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636   done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 STRIP=$ac_cv_prog_STRIP
4642 if test -n "$STRIP"; then
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4644 $as_echo "$STRIP" >&6; }
4645 else
4646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 fi
4649
4650
4651 fi
4652 if test -z "$ac_cv_prog_STRIP"; then
4653   ac_ct_STRIP=$STRIP
4654   # Extract the first word of "strip", so it can be a program name with args.
4655 set dummy strip; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661   if test -n "$ac_ct_STRIP"; then
4662   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669     for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_prog_ac_ct_STRIP="strip"
4672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676   done
4677 IFS=$as_save_IFS
4678
4679 fi
4680 fi
4681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682 if test -n "$ac_ct_STRIP"; then
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4684 $as_echo "$ac_ct_STRIP" >&6; }
4685 else
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689
4690   if test "x$ac_ct_STRIP" = x; then
4691     STRIP=":"
4692   else
4693     case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4698 esac
4699     STRIP=$ac_ct_STRIP
4700   fi
4701 else
4702   STRIP="$ac_cv_prog_STRIP"
4703 fi
4704
4705 fi
4706 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4709 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4710 if test -z "$MKDIR_P"; then
4711   if test "${ac_cv_path_mkdir+set}" = set; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719     for ac_prog in mkdir gmkdir; do
4720          for ac_exec_ext in '' $ac_executable_extensions; do
4721            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4722            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4723              'mkdir (GNU coreutils) '* | \
4724              'mkdir (coreutils) '* | \
4725              'mkdir (fileutils) '4.1*)
4726                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4727                break 3;;
4728            esac
4729          done
4730        done
4731   done
4732 IFS=$as_save_IFS
4733
4734 fi
4735
4736   if test "${ac_cv_path_mkdir+set}" = set; then
4737     MKDIR_P="$ac_cv_path_mkdir -p"
4738   else
4739     # As a last resort, use the slow shell script.  Don't cache a
4740     # value for MKDIR_P within a source directory, because that will
4741     # break other packages using the cache if that directory is
4742     # removed, or if the value is a relative name.
4743     test -d ./--version && rmdir ./--version
4744     MKDIR_P="$ac_install_sh -d"
4745   fi
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4748 $as_echo "$MKDIR_P" >&6; }
4749
4750 mkdir_p="$MKDIR_P"
4751 case $mkdir_p in
4752   [\\/$]* | ?:[\\/]*) ;;
4753   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4754 esac
4755
4756 for ac_prog in gawk mawk nawk awk
4757 do
4758   # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_AWK+set}" = set; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -n "$AWK"; then
4766   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_prog_AWK="$ac_prog"
4776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780   done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 AWK=$ac_cv_prog_AWK
4786 if test -n "$AWK"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4788 $as_echo "$AWK" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795   test -n "$AWK" && break
4796 done
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4800 set x ${MAKE-make}
4801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   cat >conftest.make <<\_ACEOF
4806 SHELL = /bin/sh
4807 all:
4808         @echo '@@@%%%=$(MAKE)=@@@%%%'
4809 _ACEOF
4810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4812   *@@@%%%=?*=@@@%%%*)
4813     eval ac_cv_prog_make_${ac_make}_set=yes;;
4814   *)
4815     eval ac_cv_prog_make_${ac_make}_set=no;;
4816 esac
4817 rm -f conftest.make
4818 fi
4819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4821 $as_echo "yes" >&6; }
4822   SET_MAKE=
4823 else
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4826   SET_MAKE="MAKE=${MAKE-make}"
4827 fi
4828
4829 rm -rf .tst 2>/dev/null
4830 mkdir .tst 2>/dev/null
4831 if test -d .tst; then
4832   am__leading_dot=.
4833 else
4834   am__leading_dot=_
4835 fi
4836 rmdir .tst 2>/dev/null
4837
4838 DEPDIR="${am__leading_dot}deps"
4839
4840 ac_config_commands="$ac_config_commands depfiles"
4841
4842
4843 am_make=${MAKE-make}
4844 cat > confinc << 'END'
4845 am__doit:
4846         @echo this is the am__doit target
4847 .PHONY: am__doit
4848 END
4849 # If we don't find an include directive, just comment out the code.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4851 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4852 am__include="#"
4853 am__quote=
4854 _am_result=none
4855 # First try GNU make style include.
4856 echo "include confinc" > confmf
4857 # Ignore all kinds of additional output from `make'.
4858 case `$am_make -s -f confmf 2> /dev/null` in #(
4859 *the\ am__doit\ target*)
4860   am__include=include
4861   am__quote=
4862   _am_result=GNU
4863   ;;
4864 esac
4865 # Now try BSD make style include.
4866 if test "$am__include" = "#"; then
4867    echo '.include "confinc"' > confmf
4868    case `$am_make -s -f confmf 2> /dev/null` in #(
4869    *the\ am__doit\ target*)
4870      am__include=.include
4871      am__quote="\""
4872      _am_result=BSD
4873      ;;
4874    esac
4875 fi
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4879 $as_echo "$_am_result" >&6; }
4880 rm -f confinc confmf
4881
4882 # Check whether --enable-dependency-tracking was given.
4883 if test "${enable_dependency_tracking+set}" = set; then :
4884   enableval=$enable_dependency_tracking;
4885 fi
4886
4887 if test "x$enable_dependency_tracking" != xno; then
4888   am_depcomp="$ac_aux_dir/depcomp"
4889   AMDEPBACKSLASH='\'
4890 fi
4891  if test "x$enable_dependency_tracking" != xno; then
4892   AMDEP_TRUE=
4893   AMDEP_FALSE='#'
4894 else
4895   AMDEP_TRUE='#'
4896   AMDEP_FALSE=
4897 fi
4898
4899
4900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4901   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4902   # is not polluted with repeated "-I."
4903   am__isrc=' -I$(srcdir)'
4904   # test to see if srcdir already configured
4905   if test -f $srcdir/config.status; then
4906     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4907   fi
4908 fi
4909
4910 # test whether we have cygpath
4911 if test -z "$CYGPATH_W"; then
4912   if (cygpath --version) >/dev/null 2>/dev/null; then
4913     CYGPATH_W='cygpath -w'
4914   else
4915     CYGPATH_W=echo
4916   fi
4917 fi
4918
4919
4920 # Define the identity of the package.
4921  PACKAGE='libjava'
4922  VERSION='version-unused'
4923
4924
4925 cat >>confdefs.h <<_ACEOF
4926 #define PACKAGE "$PACKAGE"
4927 _ACEOF
4928
4929
4930 cat >>confdefs.h <<_ACEOF
4931 #define VERSION "$VERSION"
4932 _ACEOF
4933
4934 # Some tools Automake needs.
4935
4936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4937
4938
4939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4940
4941
4942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4943
4944
4945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4946
4947
4948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4949
4950 # We need awk for the "check" target.  The system "awk" is bad on
4951 # some platforms.
4952 # Always define AMTAR for backward compatibility.
4953
4954 AMTAR=${AMTAR-"${am_missing_run}tar"}
4955
4956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4957
4958
4959
4960
4961 depcc="$CC"   am_compiler_list=
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4964 $as_echo_n "checking dependency style of $depcc... " >&6; }
4965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4969   # We make a subdir and do the tests there.  Otherwise we can end up
4970   # making bogus files that we don't know about and never remove.  For
4971   # instance it was reported that on HP-UX the gcc test will end up
4972   # making a dummy file named `D' -- because `-MD' means `put the output
4973   # in D'.
4974   mkdir conftest.dir
4975   # Copy depcomp to subdir because otherwise we won't find it if we're
4976   # using a relative directory.
4977   cp "$am_depcomp" conftest.dir
4978   cd conftest.dir
4979   # We will build objects and dependencies in a subdirectory because
4980   # it helps to detect inapplicable dependency modes.  For instance
4981   # both Tru64's cc and ICC support -MD to output dependencies as a
4982   # side effect of compilation, but ICC will put the dependencies in
4983   # the current directory while Tru64 will put them in the object
4984   # directory.
4985   mkdir sub
4986
4987   am_cv_CC_dependencies_compiler_type=none
4988   if test "$am_compiler_list" = ""; then
4989      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990   fi
4991   am__universal=false
4992   case " $depcc " in #(
4993      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4994      esac
4995
4996   for depmode in $am_compiler_list; do
4997     # Setup a source with many dependencies, because some compilers
4998     # like to wrap large dependency lists on column 80 (with \), and
4999     # we should not choose a depcomp mode which is confused by this.
5000     #
5001     # We need to recreate these files for each test, as the compiler may
5002     # overwrite some of them when testing with obscure command lines.
5003     # This happens at least with the AIX C compiler.
5004     : > sub/conftest.c
5005     for i in 1 2 3 4 5 6; do
5006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008       # Solaris 8's {/usr,}/bin/sh.
5009       touch sub/conftst$i.h
5010     done
5011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5014     # mode.  It turns out that the SunPro C++ compiler does not properly
5015     # handle `-M -o', and we need to detect this.  Also, some Intel
5016     # versions had trouble with output in subdirs
5017     am__obj=sub/conftest.${OBJEXT-o}
5018     am__minus_obj="-o $am__obj"
5019     case $depmode in
5020     gcc)
5021       # This depmode causes a compiler race in universal mode.
5022       test "$am__universal" = false || continue
5023       ;;
5024     nosideeffect)
5025       # after this tag, mechanisms are not by side-effect, so they'll
5026       # only be used when explicitly requested
5027       if test "x$enable_dependency_tracking" = xyes; then
5028         continue
5029       else
5030         break
5031       fi
5032       ;;
5033     msvisualcpp | msvcmsys)
5034       # This compiler won't grok `-c -o', but also, the minuso test has
5035       # not run yet.  These depmodes are late enough in the game, and
5036       # so weak that their functioning should not be impacted.
5037       am__obj=conftest.${OBJEXT-o}
5038       am__minus_obj=
5039       ;;
5040     none) break ;;
5041     esac
5042     if depmode=$depmode \
5043        source=sub/conftest.c object=$am__obj \
5044        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5046          >/dev/null 2>conftest.err &&
5047        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5048        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5050        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051       # icc doesn't choke on unknown options, it will just issue warnings
5052       # or remarks (even with -Werror).  So we grep stderr for any message
5053       # that says an option was ignored or not supported.
5054       # When given -MP, icc 7.0 and 7.1 complain thusly:
5055       #   icc: Command line warning: ignoring option '-M'; no argument required
5056       # The diagnosis changed in icc 8.0:
5057       #   icc: Command line remark: option '-MP' not supported
5058       if (grep 'ignoring option' conftest.err ||
5059           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060         am_cv_CC_dependencies_compiler_type=$depmode
5061         break
5062       fi
5063     fi
5064   done
5065
5066   cd ..
5067   rm -rf conftest.dir
5068 else
5069   am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077  if
5078   test "x$enable_dependency_tracking" != xno \
5079   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5080   am__fastdepCC_TRUE=
5081   am__fastdepCC_FALSE='#'
5082 else
5083   am__fastdepCC_TRUE='#'
5084   am__fastdepCC_FALSE=
5085 fi
5086
5087
5088 depcc="$CXX"  am_compiler_list=
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5091 $as_echo_n "checking dependency style of $depcc... " >&6; }
5092 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5096   # We make a subdir and do the tests there.  Otherwise we can end up
5097   # making bogus files that we don't know about and never remove.  For
5098   # instance it was reported that on HP-UX the gcc test will end up
5099   # making a dummy file named `D' -- because `-MD' means `put the output
5100   # in D'.
5101   mkdir conftest.dir
5102   # Copy depcomp to subdir because otherwise we won't find it if we're
5103   # using a relative directory.
5104   cp "$am_depcomp" conftest.dir
5105   cd conftest.dir
5106   # We will build objects and dependencies in a subdirectory because
5107   # it helps to detect inapplicable dependency modes.  For instance
5108   # both Tru64's cc and ICC support -MD to output dependencies as a
5109   # side effect of compilation, but ICC will put the dependencies in
5110   # the current directory while Tru64 will put them in the object
5111   # directory.
5112   mkdir sub
5113
5114   am_cv_CXX_dependencies_compiler_type=none
5115   if test "$am_compiler_list" = ""; then
5116      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5117   fi
5118   am__universal=false
5119   case " $depcc " in #(
5120      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5121      esac
5122
5123   for depmode in $am_compiler_list; do
5124     # Setup a source with many dependencies, because some compilers
5125     # like to wrap large dependency lists on column 80 (with \), and
5126     # we should not choose a depcomp mode which is confused by this.
5127     #
5128     # We need to recreate these files for each test, as the compiler may
5129     # overwrite some of them when testing with obscure command lines.
5130     # This happens at least with the AIX C compiler.
5131     : > sub/conftest.c
5132     for i in 1 2 3 4 5 6; do
5133       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5134       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5135       # Solaris 8's {/usr,}/bin/sh.
5136       touch sub/conftst$i.h
5137     done
5138     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5139
5140     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5141     # mode.  It turns out that the SunPro C++ compiler does not properly
5142     # handle `-M -o', and we need to detect this.  Also, some Intel
5143     # versions had trouble with output in subdirs
5144     am__obj=sub/conftest.${OBJEXT-o}
5145     am__minus_obj="-o $am__obj"
5146     case $depmode in
5147     gcc)
5148       # This depmode causes a compiler race in universal mode.
5149       test "$am__universal" = false || continue
5150       ;;
5151     nosideeffect)
5152       # after this tag, mechanisms are not by side-effect, so they'll
5153       # only be used when explicitly requested
5154       if test "x$enable_dependency_tracking" = xyes; then
5155         continue
5156       else
5157         break
5158       fi
5159       ;;
5160     msvisualcpp | msvcmsys)
5161       # This compiler won't grok `-c -o', but also, the minuso test has
5162       # not run yet.  These depmodes are late enough in the game, and
5163       # so weak that their functioning should not be impacted.
5164       am__obj=conftest.${OBJEXT-o}
5165       am__minus_obj=
5166       ;;
5167     none) break ;;
5168     esac
5169     if depmode=$depmode \
5170        source=sub/conftest.c object=$am__obj \
5171        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5172        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5173          >/dev/null 2>conftest.err &&
5174        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5175        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5176        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5177        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5178       # icc doesn't choke on unknown options, it will just issue warnings
5179       # or remarks (even with -Werror).  So we grep stderr for any message
5180       # that says an option was ignored or not supported.
5181       # When given -MP, icc 7.0 and 7.1 complain thusly:
5182       #   icc: Command line warning: ignoring option '-M'; no argument required
5183       # The diagnosis changed in icc 8.0:
5184       #   icc: Command line remark: option '-MP' not supported
5185       if (grep 'ignoring option' conftest.err ||
5186           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5187         am_cv_CXX_dependencies_compiler_type=$depmode
5188         break
5189       fi
5190     fi
5191   done
5192
5193   cd ..
5194   rm -rf conftest.dir
5195 else
5196   am_cv_CXX_dependencies_compiler_type=none
5197 fi
5198
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5201 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5202 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5203
5204  if
5205   test "x$enable_dependency_tracking" != xno \
5206   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5207   am__fastdepCXX_TRUE=
5208   am__fastdepCXX_FALSE='#'
5209 else
5210   am__fastdepCXX_TRUE='#'
5211   am__fastdepCXX_FALSE=
5212 fi
5213
5214
5215
5216
5217 if test -n "$ac_tool_prefix"; then
5218   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}as; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_AS+set}" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$AS"; then
5226   ac_cv_prog_AS="$AS" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_AS="${ac_tool_prefix}as"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 AS=$ac_cv_prog_AS
5246 if test -n "$AS"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5248 $as_echo "$AS" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 fi
5256 if test -z "$ac_cv_prog_AS"; then
5257   ac_ct_AS=$AS
5258   # Extract the first word of "as", so it can be a program name with args.
5259 set dummy as; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   if test -n "$ac_ct_AS"; then
5266   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275     ac_cv_prog_ac_ct_AS="as"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5286 if test -n "$ac_ct_AS"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5288 $as_echo "$ac_ct_AS" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294   if test "x$ac_ct_AS" = x; then
5295     AS=""
5296   else
5297     case $cross_compiling:$ac_tool_warned in
5298 yes:)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5302 esac
5303     AS=$ac_ct_AS
5304   fi
5305 else
5306   AS="$ac_cv_prog_AS"
5307 fi
5308
5309 if test -n "$ac_tool_prefix"; then
5310   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}ld; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_LD+set}" = set; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   if test -n "$LD"; then
5318   ac_cv_prog_LD="$LD" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325     for ac_exec_ext in '' $ac_executable_extensions; do
5326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327     ac_cv_prog_LD="${ac_tool_prefix}ld"
5328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332   done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 LD=$ac_cv_prog_LD
5338 if test -n "$LD"; then
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5340 $as_echo "$LD" >&6; }
5341 else
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346
5347 fi
5348 if test -z "$ac_cv_prog_LD"; then
5349   ac_ct_LD=$LD
5350   # Extract the first word of "ld", so it can be a program name with args.
5351 set dummy ld; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -n "$ac_ct_LD"; then
5358   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367     ac_cv_prog_ac_ct_LD="ld"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5378 if test -n "$ac_ct_LD"; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5380 $as_echo "$ac_ct_LD" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386   if test "x$ac_ct_LD" = x; then
5387     LD=""
5388   else
5389     case $cross_compiling:$ac_tool_warned in
5390 yes:)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5394 esac
5395     LD=$ac_ct_LD
5396   fi
5397 else
5398   LD="$ac_cv_prog_LD"
5399 fi
5400
5401 if test -n "$ac_tool_prefix"; then
5402   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5403 set dummy ${ac_tool_prefix}ar; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if test "${ac_cv_prog_AR+set}" = set; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   if test -n "$AR"; then
5410   ac_cv_prog_AR="$AR" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419     ac_cv_prog_AR="${ac_tool_prefix}ar"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 AR=$ac_cv_prog_AR
5430 if test -n "$AR"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432 $as_echo "$AR" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439 fi
5440 if test -z "$ac_cv_prog_AR"; then
5441   ac_ct_AR=$AR
5442   # Extract the first word of "ar", so it can be a program name with args.
5443 set dummy ar; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   if test -n "$ac_ct_AR"; then
5450   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455   IFS=$as_save_IFS
5456   test -z "$as_dir" && as_dir=.
5457     for ac_exec_ext in '' $ac_executable_extensions; do
5458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459     ac_cv_prog_ac_ct_AR="ar"
5460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461     break 2
5462   fi
5463 done
5464   done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5470 if test -n "$ac_ct_AR"; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5472 $as_echo "$ac_ct_AR" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478   if test "x$ac_ct_AR" = x; then
5479     AR=""
5480   else
5481     case $cross_compiling:$ac_tool_warned in
5482 yes:)
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5485 ac_tool_warned=yes ;;
5486 esac
5487     AR=$ac_ct_AR
5488   fi
5489 else
5490   AR="$ac_cv_prog_AR"
5491 fi
5492
5493 if test -n "$ac_tool_prefix"; then
5494   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$RANLIB"; then
5502   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 RANLIB=$ac_cv_prog_RANLIB
5522 if test -n "$RANLIB"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5524 $as_echo "$RANLIB" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531 fi
5532 if test -z "$ac_cv_prog_RANLIB"; then
5533   ac_ct_RANLIB=$RANLIB
5534   # Extract the first word of "ranlib", so it can be a program name with args.
5535 set dummy ranlib; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541   if test -n "$ac_ct_RANLIB"; then
5542   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549     for ac_exec_ext in '' $ac_executable_extensions; do
5550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551     ac_cv_prog_ac_ct_RANLIB="ranlib"
5552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556   done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5562 if test -n "$ac_ct_RANLIB"; then
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5564 $as_echo "$ac_ct_RANLIB" >&6; }
5565 else
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570   if test "x$ac_ct_RANLIB" = x; then
5571     RANLIB=":"
5572   else
5573     case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579     RANLIB=$ac_ct_RANLIB
5580   fi
5581 else
5582   RANLIB="$ac_cv_prog_RANLIB"
5583 fi
5584
5585 if test -n "$ac_tool_prefix"; then
5586   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5587 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593   if test -n "$DLLTOOL"; then
5594   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601     for ac_exec_ext in '' $ac_executable_extensions; do
5602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608   done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 DLLTOOL=$ac_cv_prog_DLLTOOL
5614 if test -n "$DLLTOOL"; then
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5616 $as_echo "$DLLTOOL" >&6; }
5617 else
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622
5623 fi
5624 if test -z "$ac_cv_prog_DLLTOOL"; then
5625   ac_ct_DLLTOOL=$DLLTOOL
5626   # Extract the first word of "dlltool", so it can be a program name with args.
5627 set dummy dlltool; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   if test -n "$ac_ct_DLLTOOL"; then
5634   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639   IFS=$as_save_IFS
5640   test -z "$as_dir" && as_dir=.
5641     for ac_exec_ext in '' $ac_executable_extensions; do
5642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645     break 2
5646   fi
5647 done
5648   done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5654 if test -n "$ac_ct_DLLTOOL"; then
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5656 $as_echo "$ac_ct_DLLTOOL" >&6; }
5657 else
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662   if test "x$ac_ct_DLLTOOL" = x; then
5663     DLLTOOL=":"
5664   else
5665     case $cross_compiling:$ac_tool_warned in
5666 yes:)
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5669 ac_tool_warned=yes ;;
5670 esac
5671     DLLTOOL=$ac_ct_DLLTOOL
5672   fi
5673 else
5674   DLLTOOL="$ac_cv_prog_DLLTOOL"
5675 fi
5676
5677 for ac_prog in gawk mawk nawk awk
5678 do
5679   # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_AWK+set}" = set; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if test -n "$AWK"; then
5687   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694     for ac_exec_ext in '' $ac_executable_extensions; do
5695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696     ac_cv_prog_AWK="$ac_prog"
5697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698     break 2
5699   fi
5700 done
5701   done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 AWK=$ac_cv_prog_AWK
5707 if test -n "$AWK"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5709 $as_echo "$AWK" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716   test -n "$AWK" && break
5717 done
5718
5719 for ac_prog in jar fastjar gjar
5720 do
5721   # Extract the first word of "$ac_prog", so it can be a program name with args.
5722 set dummy $ac_prog; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_JAR+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if test -n "$JAR"; then
5729   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_prog_JAR="$ac_prog"
5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 JAR=$ac_cv_prog_JAR
5749 if test -n "$JAR"; then
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5751 $as_echo "$JAR" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5755 fi
5756
5757
5758   test -n "$JAR" && break
5759 done
5760 test -n "$JAR" || JAR="no"
5761
5762 # Extract the first word of "zip", so it can be a program name with args.
5763 set dummy zip; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_path_ZIP+set}" = set; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   case $ZIP in
5770   [\\/]* | ?:[\\/]*)
5771   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5772   ;;
5773   *)
5774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5790   ;;
5791 esac
5792 fi
5793 ZIP=$ac_cv_path_ZIP
5794 if test -n "$ZIP"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5796 $as_echo "$ZIP" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803 # Extract the first word of "unzip", so it can be a program name with args.
5804 set dummy unzip; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_path_UNZIP+set}" = set; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   case $UNZIP in
5811   [\\/]* | ?:[\\/]*)
5812   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5813   ;;
5814   *)
5815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5831   ;;
5832 esac
5833 fi
5834 UNZIP=$ac_cv_path_UNZIP
5835 if test -n "$UNZIP"; then
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5837 $as_echo "$UNZIP" >&6; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844
5845 # We need a jar that supports -@.  This is a GNU extension.
5846 if test "$JAR" != no; then
5847    rm -f config-test.jar
5848    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5849    if test -f config-test.jar; then
5850      rm -f config-test.jar
5851    else
5852      JAR=no
5853    fi
5854 fi
5855
5856 # Prefer the jar we found, but fall back to our jar script.
5857 if test "$JAR" = no; then
5858   if test "$ZIP" = no; then
5859     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5860   else
5861     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5862     JAR=`pwd`/scripts/jar
5863   fi
5864 fi
5865
5866
5867
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5871     # Check whether --enable-maintainer-mode was given.
5872 if test "${enable_maintainer_mode+set}" = set; then :
5873   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5874 else
5875   USE_MAINTAINER_MODE=no
5876 fi
5877
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5880    if test $USE_MAINTAINER_MODE = yes; then
5881   MAINTAINER_MODE_TRUE=
5882   MAINTAINER_MODE_FALSE='#'
5883 else
5884   MAINTAINER_MODE_TRUE='#'
5885   MAINTAINER_MODE_FALSE=
5886 fi
5887
5888   MAINT=$MAINTAINER_MODE_TRUE
5889
5890
5891
5892
5893
5894 # configure.host sets the following important variables
5895 #       libgcj_cflags    - host specific C compiler flags
5896 #       libgcj_cxxflags  - host specific C++ compiler flags
5897 #       libgcj_javaflags - host specific Java compiler flags
5898 #       libgcj_sublib_ltflags - host specific Libtool flags
5899 #       libgcj_sublib_core_extra_deps - host specific extra
5900 #                          dependencies for core sublib
5901 #       (these last two only used when building sublibs)
5902 # and a number of others; see the list at the start of the file.
5903
5904 libgcj_cflags=
5905 libgcj_cxxflags=
5906 libgcj_javaflags=
5907 libgcj_sublib_ltflags=
5908 libgcj_sublib_core_extra_deps=
5909
5910 . ${srcdir}/configure.host
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5918 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5919   acl_cv_prog_gnu_ld=yes
5920 else
5921   acl_cv_prog_gnu_ld=no
5922 fi
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5925 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5926 with_gnu_ld=$acl_cv_prog_gnu_ld
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5929 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5930 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933
5934 acl_cv_prog_gnu_ld_symbolic=no
5935
5936 if test x"$with_gnu_ld" = x"yes"; then
5937   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5938     acl_cv_prog_gnu_ld_symbolic=yes
5939   fi
5940 fi
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5943 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5944 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5945   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5946 else
5947   SYMBOLIC_LDFLAGS=''
5948 fi
5949
5950 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5951 if test -z "$libgcj_ld_symbolic"; then
5952   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5953 fi
5954
5955 LIBGCJ_CFLAGS="${libgcj_cflags}"
5956 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5957 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5958 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5959 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5960 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5961 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5962
5963
5964
5965
5966
5967
5968
5969
5970 # Only use libltdl for non-newlib builds.
5971 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5974 library_names_spec=
5975 libname_spec='lib$name'
5976 soname_spec=
5977 shrext=".so"
5978 postinstall_cmds=
5979 postuninstall_cmds=
5980 finish_cmds=
5981 finish_eval=
5982 shlibpath_var=
5983 shlibpath_overrides_runpath=unknown
5984 version_type=none
5985 dynamic_linker="$host_os ld.so"
5986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5987 if test "$GCC" = yes; then
5988   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5989   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5990     # if the path contains ";" then we assume it to be the separator
5991     # otherwise default to the standard path separator (i.e. ":") - it is
5992     # assumed that no part of a normal pathname contains ";" but that should
5993     # okay in the real world where ";" in dirpaths is itself problematic.
5994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5995   else
5996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5997   fi
5998 else
5999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6000 fi
6001 need_lib_prefix=unknown
6002 hardcode_into_libs=no
6003
6004 # when you set need_version to no, make sure it does not cause -set_version
6005 # flags to be left without arguments
6006 need_version=unknown
6007
6008 case $host_os in
6009 aix3*)
6010   version_type=linux
6011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6012   shlibpath_var=LIBPATH
6013
6014   # AIX 3 has no versioning support, so we append a major version to the name.
6015   soname_spec='${libname}${release}${shared_ext}$major'
6016   ;;
6017
6018 aix[4-9]*)
6019   version_type=linux
6020   need_lib_prefix=no
6021   need_version=no
6022   hardcode_into_libs=yes
6023   if test "$host_cpu" = ia64; then
6024     # AIX 5 supports IA64
6025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6026     shlibpath_var=LD_LIBRARY_PATH
6027   else
6028     # With GCC up to 2.95.x, collect2 would create an import file
6029     # for dependence libraries.  The import file would start with
6030     # the line `#! .'.  This would cause the generated library to
6031     # depend on `.', always an invalid library.  This was fixed in
6032     # development snapshots of GCC prior to 3.0.
6033     case $host_os in
6034       aix4 | aix4.[01] | aix4.[01].*)
6035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6036            echo ' yes '
6037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6038         :
6039       else
6040         can_build_shared=no
6041       fi
6042       ;;
6043     esac
6044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6045     # soname into executable. Probably we can add versioning support to
6046     # collect2, so additional links can be useful in future.
6047     if test "$aix_use_runtimelinking" = yes; then
6048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6049       # instead of lib<name>.a to let people know that these are not
6050       # typical AIX shared libraries.
6051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6052     else
6053       # We preserve .a as extension for shared libraries through AIX4.2
6054       # and later when we are not doing run time linking.
6055       library_names_spec='${libname}${release}.a $libname.a'
6056       soname_spec='${libname}${release}${shared_ext}$major'
6057     fi
6058     shlibpath_var=LIBPATH
6059   fi
6060   ;;
6061
6062 amigaos*)
6063   library_names_spec='$libname.ixlibrary $libname.a'
6064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6065   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'
6066   ;;
6067
6068 beos*)
6069   library_names_spec='${libname}${shared_ext}'
6070   dynamic_linker="$host_os ld.so"
6071   shlibpath_var=LIBRARY_PATH
6072   ;;
6073
6074 bsdi4*)
6075   version_type=linux
6076   need_version=no
6077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6078   soname_spec='${libname}${release}${shared_ext}$major'
6079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6080   shlibpath_var=LD_LIBRARY_PATH
6081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6083   # the default ld.so.conf also contains /usr/contrib/lib and
6084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6085   # libtool to hard-code these into programs
6086   ;;
6087
6088 cygwin* | mingw* | pw32*)
6089   version_type=windows
6090   shrext=".dll"
6091   need_version=no
6092   need_lib_prefix=no
6093
6094   case $GCC,$host_os in
6095   yes,cygwin* | yes,mingw* | yes,pw32*)
6096     library_names_spec='$libname.dll.a'
6097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6098     postinstall_cmds='base_file=`basename \${file}`~
6099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6100       dldir=$destdir/`dirname \$dlpath`~
6101       test -d \$dldir || mkdir -p \$dldir~
6102       $install_prog $dir/$dlname \$dldir/$dlname'
6103     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6104       dlpath=$dir/\$dldll~
6105        $rm \$dlpath'
6106     shlibpath_overrides_runpath=yes
6107
6108     case $host_os in
6109     cygwin*)
6110       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6111       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6112       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6113       ;;
6114     mingw*)
6115       # MinGW DLLs use traditional 'lib' prefix
6116       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6117       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6118       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6119         # It is most probably a Windows format PATH printed by
6120         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6121         # path with ; separators, and with drive letters. We can handle the
6122         # drive letters (cygwin fileutils understands them), so leave them,
6123         # especially as we might pass files found there to a mingw objdump,
6124         # which wouldn't understand a cygwinified path. Ahh.
6125         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6126       else
6127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6128       fi
6129       ;;
6130     pw32*)
6131       # pw32 DLLs use 'pw' prefix rather than 'lib'
6132       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6133       ;;
6134     esac
6135     ;;
6136
6137   *)
6138     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6139     ;;
6140   esac
6141   dynamic_linker='Win32 ld.exe'
6142   # FIXME: first we should search . and the directory the executable is in
6143   shlibpath_var=PATH
6144   ;;
6145
6146 darwin* | rhapsody*)
6147   dynamic_linker="$host_os dyld"
6148   version_type=darwin
6149   need_lib_prefix=no
6150   need_version=no
6151   # FIXME: Relying on posixy $() will cause problems for
6152   #        cross-compilation, but unfortunately the echo tests do not
6153   #        yet detect zsh echo's removal of \ escapes.
6154   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6155   soname_spec='${libname}${release}${major}$shared_ext'
6156   shlibpath_overrides_runpath=yes
6157   shlibpath_var=DYLD_LIBRARY_PATH
6158   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6159   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6160   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6161   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"`
6162   fi
6163   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6164   ;;
6165
6166 dgux*)
6167   version_type=linux
6168   need_lib_prefix=no
6169   need_version=no
6170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6171   soname_spec='${libname}${release}${shared_ext}$major'
6172   shlibpath_var=LD_LIBRARY_PATH
6173   ;;
6174
6175 freebsd1*)
6176   dynamic_linker=no
6177   ;;
6178
6179 freebsd*)
6180   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6181   version_type=freebsd-$objformat
6182   case $version_type in
6183     freebsd-elf*)
6184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6185       need_version=no
6186       need_lib_prefix=no
6187       ;;
6188     freebsd-*)
6189       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6190       need_version=yes
6191       ;;
6192   esac
6193   shlibpath_var=LD_LIBRARY_PATH
6194   case $host_os in
6195   freebsd2*)
6196     shlibpath_overrides_runpath=yes
6197     ;;
6198   freebsd3.01* | freebsdelf3.01*)
6199     shlibpath_overrides_runpath=yes
6200     hardcode_into_libs=yes
6201     ;;
6202   *) # from 3.2 on
6203     shlibpath_overrides_runpath=no
6204     hardcode_into_libs=yes
6205     ;;
6206   esac
6207   ;;
6208
6209 gnu*)
6210   version_type=linux
6211   need_lib_prefix=no
6212   need_version=no
6213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6214   soname_spec='${libname}${release}${shared_ext}$major'
6215   shlibpath_var=LD_LIBRARY_PATH
6216   hardcode_into_libs=yes
6217   ;;
6218
6219 hpux9* | hpux10* | hpux11*)
6220   # Give a soname corresponding to the major version so that dld.sl refuses to
6221   # link against other versions.
6222   version_type=sunos
6223   need_lib_prefix=no
6224   need_version=no
6225   case "$host_cpu" in
6226   ia64*)
6227     shrext='.so'
6228     hardcode_into_libs=yes
6229     dynamic_linker="$host_os dld.so"
6230     shlibpath_var=LD_LIBRARY_PATH
6231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6233     soname_spec='${libname}${release}${shared_ext}$major'
6234     if test "X$HPUX_IA64_MODE" = X32; then
6235       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6236     else
6237       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6238     fi
6239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6240     ;;
6241    hppa*64*)
6242      shrext='.sl'
6243      hardcode_into_libs=yes
6244      dynamic_linker="$host_os dld.sl"
6245      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6246      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6248      soname_spec='${libname}${release}${shared_ext}$major'
6249      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6250      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6251      ;;
6252    *)
6253     shrext='.sl'
6254     dynamic_linker="$host_os dld.sl"
6255     shlibpath_var=SHLIB_PATH
6256     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6258     soname_spec='${libname}${release}${shared_ext}$major'
6259     ;;
6260   esac
6261   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6262   postinstall_cmds='chmod 555 $lib'
6263   ;;
6264
6265 irix5* | irix6* | nonstopux*)
6266   case $host_os in
6267     nonstopux*) version_type=nonstopux ;;
6268     *)
6269         if test "$lt_cv_prog_gnu_ld" = yes; then
6270                 version_type=linux
6271         else
6272                 version_type=irix
6273         fi ;;
6274   esac
6275   need_lib_prefix=no
6276   need_version=no
6277   soname_spec='${libname}${release}${shared_ext}$major'
6278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6279   case $host_os in
6280   irix5* | nonstopux*)
6281     libsuff= shlibsuff=
6282     ;;
6283   *)
6284     case $LD in # libtool.m4 will add one of these switches to LD
6285     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6286       libsuff= shlibsuff= libmagic=32-bit;;
6287     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6288       libsuff=32 shlibsuff=N32 libmagic=N32;;
6289     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6290       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6291     *) libsuff= shlibsuff= libmagic=never-match;;
6292     esac
6293     ;;
6294   esac
6295   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6296   shlibpath_overrides_runpath=no
6297   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6298   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6299   hardcode_into_libs=yes
6300   ;;
6301
6302 # No shared lib support for Linux oldld, aout, or coff.
6303 linux*oldld* | linux*aout* | linux*coff*)
6304   dynamic_linker=no
6305   ;;
6306
6307 # This must be Linux ELF.
6308 linux*|k*bsd*-gnu)
6309   version_type=linux
6310   need_lib_prefix=no
6311   need_version=no
6312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6313   soname_spec='${libname}${release}${shared_ext}$major'
6314   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6315   shlibpath_var=LD_LIBRARY_PATH
6316   shlibpath_overrides_runpath=no
6317   # This implies no fast_install, which is unacceptable.
6318   # Some rework will be needed to allow for fast_install
6319   # before this can be enabled.
6320   hardcode_into_libs=yes
6321
6322   # We used to test for /lib/ld.so.1 and disable shared libraries on
6323   # powerpc, because MkLinux only supported shared libraries with the
6324   # GNU dynamic linker.  Since this was broken with cross compilers,
6325   # most powerpc-linux boxes support dynamic linking these days and
6326   # people can always --disable-shared, the test was removed, and we
6327   # assume the GNU/Linux dynamic linker is in use.
6328   dynamic_linker='GNU/Linux ld.so'
6329   ;;
6330
6331 netbsd*)
6332   version_type=sunos
6333   need_lib_prefix=no
6334   need_version=no
6335   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6337     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6338     dynamic_linker='NetBSD (a.out) ld.so'
6339   else
6340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6341     soname_spec='${libname}${release}${shared_ext}$major'
6342     dynamic_linker='NetBSD ld.elf_so'
6343   fi
6344   shlibpath_var=LD_LIBRARY_PATH
6345   shlibpath_overrides_runpath=yes
6346   hardcode_into_libs=yes
6347   ;;
6348
6349 newsos6)
6350   version_type=linux
6351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6352   shlibpath_var=LD_LIBRARY_PATH
6353   shlibpath_overrides_runpath=yes
6354   ;;
6355
6356 nto-qnx)
6357   version_type=linux
6358   need_lib_prefix=no
6359   need_version=no
6360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6361   soname_spec='${libname}${release}${shared_ext}$major'
6362   shlibpath_var=LD_LIBRARY_PATH
6363   shlibpath_overrides_runpath=yes
6364   ;;
6365
6366 openbsd*)
6367   version_type=sunos
6368   need_lib_prefix=no
6369   need_version=no
6370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6372   shlibpath_var=LD_LIBRARY_PATH
6373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374     case $host_os in
6375       openbsd2.[89] | openbsd2.[89].*)
6376         shlibpath_overrides_runpath=no
6377         ;;
6378       *)
6379         shlibpath_overrides_runpath=yes
6380         ;;
6381       esac
6382   else
6383     shlibpath_overrides_runpath=yes
6384   fi
6385   ;;
6386
6387 os2*)
6388   libname_spec='$name'
6389   shrext=".dll"
6390   need_lib_prefix=no
6391   library_names_spec='$libname${shared_ext} $libname.a'
6392   dynamic_linker='OS/2 ld.exe'
6393   shlibpath_var=LIBPATH
6394   ;;
6395
6396 osf3* | osf4* | osf5*)
6397   version_type=osf
6398   need_lib_prefix=no
6399   need_version=no
6400   soname_spec='${libname}${release}${shared_ext}$major'
6401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6402   shlibpath_var=LD_LIBRARY_PATH
6403   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6404   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6405   ;;
6406
6407 sco3.2v5*)
6408   version_type=osf
6409   soname_spec='${libname}${release}${shared_ext}$major'
6410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6411   shlibpath_var=LD_LIBRARY_PATH
6412   ;;
6413
6414 solaris*)
6415   version_type=linux
6416   need_lib_prefix=no
6417   need_version=no
6418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6419   soname_spec='${libname}${release}${shared_ext}$major'
6420   shlibpath_var=LD_LIBRARY_PATH
6421   shlibpath_overrides_runpath=yes
6422   hardcode_into_libs=yes
6423   # ldd complains unless libraries are executable
6424   postinstall_cmds='chmod +x $lib'
6425   ;;
6426
6427 sunos4*)
6428   version_type=sunos
6429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6430   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6431   shlibpath_var=LD_LIBRARY_PATH
6432   shlibpath_overrides_runpath=yes
6433   if test "$with_gnu_ld" = yes; then
6434     need_lib_prefix=no
6435   fi
6436   need_version=yes
6437   ;;
6438
6439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6440   version_type=linux
6441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6442   soname_spec='${libname}${release}${shared_ext}$major'
6443   shlibpath_var=LD_LIBRARY_PATH
6444   case $host_vendor in
6445     sni)
6446       shlibpath_overrides_runpath=no
6447       need_lib_prefix=no
6448       export_dynamic_flag_spec='${wl}-Blargedynsym'
6449       runpath_var=LD_RUN_PATH
6450       ;;
6451     siemens)
6452       need_lib_prefix=no
6453       ;;
6454     motorola)
6455       need_lib_prefix=no
6456       need_version=no
6457       shlibpath_overrides_runpath=no
6458       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6459       ;;
6460   esac
6461   ;;
6462
6463 sysv4*MP*)
6464   if test -d /usr/nec ;then
6465     version_type=linux
6466     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6467     soname_spec='$libname${shared_ext}.$major'
6468     shlibpath_var=LD_LIBRARY_PATH
6469   fi
6470   ;;
6471
6472 uts4*)
6473   version_type=linux
6474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6475   soname_spec='${libname}${release}${shared_ext}$major'
6476   shlibpath_var=LD_LIBRARY_PATH
6477   ;;
6478
6479 *)
6480   dynamic_linker=no
6481   ;;
6482 esac
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6484 $as_echo "$dynamic_linker" >&6; }
6485 test "$dynamic_linker" = no && can_build_shared=no
6486
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6489 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6490 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   libltdl_cv_shlibpath_var="$shlibpath_var"
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6496 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6497 if test -n "$libltdl_cv_shlibpath_var"; then
6498
6499 cat >>confdefs.h <<_ACEOF
6500 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6501 _ACEOF
6502
6503 fi
6504
6505 fi
6506
6507 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6508
6509
6510 # Possibly build libgcj as many sub-libraries.
6511 # Check whether --enable-libgcj-sublibs was given.
6512 if test "${enable_libgcj_sublibs+set}" = set; then :
6513   enableval=$enable_libgcj_sublibs;
6514 fi
6515
6516
6517 if test -z "$enable_libgcj_sublibs"; then
6518    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6519 fi
6520  if test "$enable_libgcj_sublibs" = yes; then
6521   BUILD_SUBLIBS_TRUE=
6522   BUILD_SUBLIBS_FALSE='#'
6523 else
6524   BUILD_SUBLIBS_TRUE='#'
6525   BUILD_SUBLIBS_FALSE=
6526 fi
6527
6528 if test "$enable_libgcj_sublibs" = yes ; then
6529   # In theory we could make do with only one override and simply
6530   # tag "_bc" onto the end of it when we use it to generate the
6531   # spec, but that's an ugly thing to do when there are multiple
6532   # words in the string and you're relying on the ordering to
6533   # append the correct one.
6534   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6535   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6536 fi
6537
6538
6539 # See if the user has requested runtime debugging.
6540 LIBGCJDEBUG="disable"
6541
6542 # Check whether --enable-libgcj-debug was given.
6543 if test "${enable_libgcj_debug+set}" = set; then :
6544   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6545
6546 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6547
6548     LIBGCJDEBUG="enable"
6549   fi
6550 fi
6551
6552
6553
6554 # Check whether --with-escher was given.
6555 if test "${with_escher+set}" = set; then :
6556   withval=$with_escher;
6557 fi
6558
6559 case "$with_escher" in
6560 "")
6561         use_escher=false
6562         ;;
6563 "no")
6564         use_escher=false
6565         ;;
6566 "yes")
6567         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6568         ;;
6569 *)
6570         use_escher=true
6571         ;;
6572 esac
6573
6574 # Determine which AWT peer libraries to build
6575 # Check whether --enable-java-awt was given.
6576 if test "${enable_java_awt+set}" = set; then :
6577   enableval=$enable_java_awt;
6578 fi
6579
6580
6581 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6582 use_xlib_awt=""
6583 use_gtk_awt=""
6584 use_qt_awt=""
6585 use_x_awt=""
6586 # The default toolkit to use is the first one specified.
6587 TOOLKIT=
6588
6589
6590 for peer in $peerlibs ; do
6591   case $peer in
6592     xlib)
6593       if test "$no_x" = yes; then
6594         echo "*** xlib peers requested but no X library available" 1>&2
6595         exit 1
6596       else
6597         use_xlib_awt="yes"
6598         if test -z "$TOOLKIT"; then
6599            TOOLKIT=gnu.awt.xlib.XToolkit
6600         fi
6601       fi
6602       ;;
6603     gtk)
6604       if test "$no_x" = yes; then
6605          echo "*** gtk peers requested but no X library available" 1>&2
6606          exit 1
6607       else
6608          use_gtk_awt=yes
6609          if test -z "$TOOLKIT"; then
6610             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6611          fi
6612       fi
6613       ;;
6614     qt)
6615       if test "$no_x" = yes; then
6616          # Perhaps we should admit the possibility of embedded Qt.
6617          echo "*** Qt peers requested but no X library available" 1>&2
6618          exit 1
6619       else
6620          use_qt_awt=yes
6621          if test -z "$TOOLKIT"; then
6622             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6623          fi
6624       fi
6625       ;;
6626     x)
6627       use_x_awt=yes
6628       if test -z "$TOOLKIT"; then
6629          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6630       fi
6631       ;;
6632     no)
6633       use_xlib_awt=
6634       use_gtk_awt=
6635       use_qt_awt=
6636       use_x_awt=
6637       break
6638       ;;
6639     *)
6640       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6641       exit 1
6642   esac
6643 done
6644
6645  if test "$use_xlib_awt" = yes; then
6646   XLIB_AWT_TRUE=
6647   XLIB_AWT_FALSE='#'
6648 else
6649   XLIB_AWT_TRUE='#'
6650   XLIB_AWT_FALSE=
6651 fi
6652
6653  if test "$use_x_awt" = yes; then
6654   X_AWT_TRUE=
6655   X_AWT_FALSE='#'
6656 else
6657   X_AWT_TRUE='#'
6658   X_AWT_FALSE=
6659 fi
6660
6661
6662
6663 cat >>confdefs.h <<_ACEOF
6664 #define AWT_TOOLKIT "$TOOLKIT"
6665 _ACEOF
6666
6667
6668 expanded_prefix=$prefix
6669 if test "X$prefix" = XNONE; then
6670   expanded_prefix=${ac_default_prefix}
6671 fi
6672
6673
6674 cat >>confdefs.h <<_ACEOF
6675 #define LIBGCJ_PREFIX "$expanded_prefix"
6676 _ACEOF
6677
6678
6679 # Create standard.omit based on decisions we just made.
6680 cp $srcdir/standard.omit.in standard.omit
6681 if test "$use_xlib_awt" != yes; then
6682    echo gnu/awt/xlib >> standard.omit
6683    echo gnu/gcj/xlib >> standard.omit
6684 fi
6685 if test "$use_x_awt" != yes; then
6686    echo gnu/java/awt/peer/x >> standard.omit
6687 fi
6688
6689 # Tools that need to be compiled against classpath's tools classes
6690 : > vm-tools-packages
6691 for package in gnu/gcj/tools/gc_analyze ; do
6692     echo $package >> standard.omit
6693     echo $package >> vm-tools-packages
6694 done
6695
6696 if test -z "${with_multisubdir}"; then
6697    builddotdot=.
6698 else
6699    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6700 fi
6701
6702 NATIVE=yes
6703
6704 # Which gcj and host gcj (for ecjx) do we use?
6705 which_gcj=default
6706 host_exeext=${ac_exeext}
6707 GCJ_FOR_ECJX='$(GCJ)'
6708 GCC_FOR_ECJX='$(CXX)'
6709 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6710 if test -n "${with_cross_host}"; then
6711   # We are being configured with a cross compiler. We can't
6712   # use ac_exeext, because that is for the target platform.
6713   NATIVE=no
6714   cross_host_exeext=
6715   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6716   GCC_FOR_ECJX="${with_cross_host}-gcc"
6717   case "${with_cross_host}" in
6718      *mingw* | *cygwin*)
6719          cross_host_exeext=.exe
6720      ;;
6721   esac
6722   host_exeext=${cross_host_exeext}
6723   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6724      if test x"$build_noncanonical" = x"$with_cross_host"; then
6725         # Ordinary cross (host!=target and host=build)
6726         which_gcj=built
6727      else
6728         # Canadian cross (host!=target and host!=build)
6729         which_gcj=cross
6730      fi
6731   else
6732      which_gcj=cross
6733   fi
6734 else
6735   # We are being configured with a native or crossed-native compiler
6736   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6737      if test x"$build" = x"$host"; then
6738         # True native build (host=target and host=build)
6739         which_gcj=built
6740      else
6741         # Crossed-native build (host=target and host!=build)
6742         which_gcj=cross
6743      fi
6744   else
6745      which_gcj=path
6746   fi
6747 fi
6748 libgcjdir=`${PWDCMD-pwd}`
6749 case $GCJ in
6750 *" -B"*)
6751   # Just in case there is a comma in the build dir, quote it for the
6752   # sed command below.
6753   case $libgcjdir in
6754   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6755   *) qlibgcjdir=$libgcjdir;;
6756   esac
6757   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6758   ;;
6759 *)
6760   GCJ=$GCJ" -B$libgcjdir/"
6761   ;;
6762 esac
6763 case "${which_gcj}" in
6764    built)
6765       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6766    ;;
6767    cross)
6768       if test "x${with_newlib}" = "xyes"; then
6769          # FIXME (comment): Why is this needed?
6770          GCC_UNWIND_INCLUDE=
6771       fi
6772       GCJH='$(target_noncanonical)-gcjh'
6773    ;;
6774    path)
6775       GCJH=gcjh
6776    ;;
6777 esac
6778 JAVAC="$GCJ -C"
6779 export JAVAC
6780
6781
6782
6783
6784
6785
6786 # Create it, so that compile/link tests don't fail
6787 test -f libgcj.spec || touch libgcj.spec
6788
6789
6790
6791 # Set up to configure Classpath.
6792 # FIXME: no supported way to pass args in autoconf.
6793 # Disable tool wrappers to avoid ltdl.h configure check.
6794 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6795 ac_configure_args="$ac_configure_args --disable-load-library"
6796 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6797 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6798 dir1=`cd $srcdir && pwd`
6799 dir2=`pwd`
6800 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6801 ac_configure_args="$ac_configure_args --disable-core-jni"
6802 ac_configure_args="$ac_configure_args --disable-examples"
6803 ac_configure_args="$ac_configure_args --with-glibj=build"
6804 if test "$browser_plugin_enabled" != yes; then
6805   ac_configure_args="$ac_configure_args --disable-plugin"
6806 else
6807   ac_configure_args="$ac_configure_args --enable-plugin"
6808 fi
6809 if test "$gconf_enabled" != yes; then
6810   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6811   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6812 fi
6813 if test "$use_gtk_awt" != yes; then
6814   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6815 fi
6816 if test "$use_qt_awt" != yes; then
6817   ac_configure_args="$ac_configure_args --disable-qt-peer"
6818 else
6819   # We need this as qt is disabled by default in classpath.
6820   ac_configure_args="$ac_configure_args --enable-qt-peer"
6821 fi
6822 if test "$use_x_awt" != yes; then
6823   ac_configure_args="$ac_configure_args --without-escher"
6824 else
6825   # We need this as escher is disabled by default in classpath.
6826   if test "$use_escher" != true; then
6827     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6828   else
6829     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6830   fi
6831 fi
6832 if test "x$BUILD_GJDOC" = xno; then
6833   ac_configure_args="$ac_configure_args --disable-gjdoc"
6834 fi
6835 # -Werror causes unavoidable problems in code using alsa.
6836 ac_configure_args="$ac_configure_args --disable-regen-headers"
6837 ac_configure_args="$ac_configure_args --disable-Werror"
6838
6839 # Only use libltdl for non-newlib builds.
6840 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6841      case $enable_ltdl_convenience in
6842   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6843   "") enable_ltdl_convenience=yes
6844       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6845   esac
6846   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6847   LTDLINCL='-I${top_srcdir}/''libltdl'
6848   # For backwards non-gettext consistent compatibility...
6849   INCLTDL="$LTDLINCL"
6850
6851    enable_dlopen=yes
6852
6853
6854
6855    DIRLTDL=libltdl
6856
6857 $as_echo "#define USE_LTDL 1" >>confdefs.h
6858
6859    # Sigh.  Libtool's macro doesn't do the right thing.
6860    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6861    # FIXME: this is a hack.
6862    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6863    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6864 fi
6865
6866
6867
6868 case `pwd` in
6869   *\ * | *\     *)
6870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6871 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6872 esac
6873
6874
6875
6876 macro_version='2.2.7a'
6877 macro_revision='1.3134'
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 ltmain="$ac_aux_dir/ltmain.sh"
6892
6893 # Backslashify metacharacters that are still active within
6894 # double-quoted strings.
6895 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6896
6897 # Same as above, but do not quote variable references.
6898 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6899
6900 # Sed substitution to delay expansion of an escaped shell variable in a
6901 # double_quote_subst'ed string.
6902 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6903
6904 # Sed substitution to delay expansion of an escaped single quote.
6905 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6906
6907 # Sed substitution to avoid accidental globbing in evaled expressions
6908 no_glob_subst='s/\*/\\\*/g'
6909
6910 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6915 $as_echo_n "checking how to print strings... " >&6; }
6916 # Test print first, because it will be a builtin if present.
6917 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6918    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6919   ECHO='print -r --'
6920 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6921   ECHO='printf %s\n'
6922 else
6923   # Use this function as a fallback that always works.
6924   func_fallback_echo ()
6925   {
6926     eval 'cat <<_LTECHO_EOF
6927 $1
6928 _LTECHO_EOF'
6929   }
6930   ECHO='func_fallback_echo'
6931 fi
6932
6933 # func_echo_all arg...
6934 # Invoke $ECHO with all args, space-separated.
6935 func_echo_all ()
6936 {
6937     $ECHO ""
6938 }
6939
6940 case "$ECHO" in
6941   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6942 $as_echo "printf" >&6; } ;;
6943   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6944 $as_echo "print -r" >&6; } ;;
6945   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6946 $as_echo "cat" >&6; } ;;
6947 esac
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6963 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6964 if test "${ac_cv_path_SED+set}" = set; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6968      for ac_i in 1 2 3 4 5 6 7; do
6969        ac_script="$ac_script$as_nl$ac_script"
6970      done
6971      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6972      { ac_script=; unset ac_script;}
6973      if test -z "$SED"; then
6974   ac_path_SED_found=false
6975   # Loop through the user's path and test for each of PROGNAME-LIST
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_prog in sed gsed; do
6982     for ac_exec_ext in '' $ac_executable_extensions; do
6983       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6984       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6985 # Check for GNU ac_path_SED and select it if it is found.
6986   # Check for GNU $ac_path_SED
6987 case `"$ac_path_SED" --version 2>&1` in
6988 *GNU*)
6989   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6990 *)
6991   ac_count=0
6992   $as_echo_n 0123456789 >"conftest.in"
6993   while :
6994   do
6995     cat "conftest.in" "conftest.in" >"conftest.tmp"
6996     mv "conftest.tmp" "conftest.in"
6997     cp "conftest.in" "conftest.nl"
6998     $as_echo '' >> "conftest.nl"
6999     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7000     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7001     as_fn_arith $ac_count + 1 && ac_count=$as_val
7002     if test $ac_count -gt ${ac_path_SED_max-0}; then
7003       # Best one so far, save it but keep looking for a better one
7004       ac_cv_path_SED="$ac_path_SED"
7005       ac_path_SED_max=$ac_count
7006     fi
7007     # 10*(2^10) chars as input seems more than enough
7008     test $ac_count -gt 10 && break
7009   done
7010   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7011 esac
7012
7013       $ac_path_SED_found && break 3
7014     done
7015   done
7016   done
7017 IFS=$as_save_IFS
7018   if test -z "$ac_cv_path_SED"; then
7019     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7020   fi
7021 else
7022   ac_cv_path_SED=$SED
7023 fi
7024
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7027 $as_echo "$ac_cv_path_SED" >&6; }
7028  SED="$ac_cv_path_SED"
7029   rm -f conftest.sed
7030
7031 test -z "$SED" && SED=sed
7032 Xsed="$SED -e 1s/^X//"
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7046 if test "${ac_cv_path_GREP+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test -z "$GREP"; then
7050   ac_path_GREP_found=false
7051   # Loop through the user's path and test for each of PROGNAME-LIST
7052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_prog in grep ggrep; do
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7060       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7061 # Check for GNU ac_path_GREP and select it if it is found.
7062   # Check for GNU $ac_path_GREP
7063 case `"$ac_path_GREP" --version 2>&1` in
7064 *GNU*)
7065   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7066 *)
7067   ac_count=0
7068   $as_echo_n 0123456789 >"conftest.in"
7069   while :
7070   do
7071     cat "conftest.in" "conftest.in" >"conftest.tmp"
7072     mv "conftest.tmp" "conftest.in"
7073     cp "conftest.in" "conftest.nl"
7074     $as_echo 'GREP' >> "conftest.nl"
7075     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7077     as_fn_arith $ac_count + 1 && ac_count=$as_val
7078     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7079       # Best one so far, save it but keep looking for a better one
7080       ac_cv_path_GREP="$ac_path_GREP"
7081       ac_path_GREP_max=$ac_count
7082     fi
7083     # 10*(2^10) chars as input seems more than enough
7084     test $ac_count -gt 10 && break
7085   done
7086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7087 esac
7088
7089       $ac_path_GREP_found && break 3
7090     done
7091   done
7092   done
7093 IFS=$as_save_IFS
7094   if test -z "$ac_cv_path_GREP"; then
7095     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7096   fi
7097 else
7098   ac_cv_path_GREP=$GREP
7099 fi
7100
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7103 $as_echo "$ac_cv_path_GREP" >&6; }
7104  GREP="$ac_cv_path_GREP"
7105
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7108 $as_echo_n "checking for egrep... " >&6; }
7109 if test "${ac_cv_path_EGREP+set}" = set; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7113    then ac_cv_path_EGREP="$GREP -E"
7114    else
7115      if test -z "$EGREP"; then
7116   ac_path_EGREP_found=false
7117   # Loop through the user's path and test for each of PROGNAME-LIST
7118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123     for ac_prog in egrep; do
7124     for ac_exec_ext in '' $ac_executable_extensions; do
7125       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7126       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7127 # Check for GNU ac_path_EGREP and select it if it is found.
7128   # Check for GNU $ac_path_EGREP
7129 case `"$ac_path_EGREP" --version 2>&1` in
7130 *GNU*)
7131   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7132 *)
7133   ac_count=0
7134   $as_echo_n 0123456789 >"conftest.in"
7135   while :
7136   do
7137     cat "conftest.in" "conftest.in" >"conftest.tmp"
7138     mv "conftest.tmp" "conftest.in"
7139     cp "conftest.in" "conftest.nl"
7140     $as_echo 'EGREP' >> "conftest.nl"
7141     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7143     as_fn_arith $ac_count + 1 && ac_count=$as_val
7144     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7145       # Best one so far, save it but keep looking for a better one
7146       ac_cv_path_EGREP="$ac_path_EGREP"
7147       ac_path_EGREP_max=$ac_count
7148     fi
7149     # 10*(2^10) chars as input seems more than enough
7150     test $ac_count -gt 10 && break
7151   done
7152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7153 esac
7154
7155       $ac_path_EGREP_found && break 3
7156     done
7157   done
7158   done
7159 IFS=$as_save_IFS
7160   if test -z "$ac_cv_path_EGREP"; then
7161     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7162   fi
7163 else
7164   ac_cv_path_EGREP=$EGREP
7165 fi
7166
7167    fi
7168 fi
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7170 $as_echo "$ac_cv_path_EGREP" >&6; }
7171  EGREP="$ac_cv_path_EGREP"
7172
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7175 $as_echo_n "checking for fgrep... " >&6; }
7176 if test "${ac_cv_path_FGREP+set}" = set; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7180    then ac_cv_path_FGREP="$GREP -F"
7181    else
7182      if test -z "$FGREP"; then
7183   ac_path_FGREP_found=false
7184   # Loop through the user's path and test for each of PROGNAME-LIST
7185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     for ac_prog in fgrep; do
7191     for ac_exec_ext in '' $ac_executable_extensions; do
7192       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7193       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7194 # Check for GNU ac_path_FGREP and select it if it is found.
7195   # Check for GNU $ac_path_FGREP
7196 case `"$ac_path_FGREP" --version 2>&1` in
7197 *GNU*)
7198   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7199 *)
7200   ac_count=0
7201   $as_echo_n 0123456789 >"conftest.in"
7202   while :
7203   do
7204     cat "conftest.in" "conftest.in" >"conftest.tmp"
7205     mv "conftest.tmp" "conftest.in"
7206     cp "conftest.in" "conftest.nl"
7207     $as_echo 'FGREP' >> "conftest.nl"
7208     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7209     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7210     as_fn_arith $ac_count + 1 && ac_count=$as_val
7211     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7212       # Best one so far, save it but keep looking for a better one
7213       ac_cv_path_FGREP="$ac_path_FGREP"
7214       ac_path_FGREP_max=$ac_count
7215     fi
7216     # 10*(2^10) chars as input seems more than enough
7217     test $ac_count -gt 10 && break
7218   done
7219   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7220 esac
7221
7222       $ac_path_FGREP_found && break 3
7223     done
7224   done
7225   done
7226 IFS=$as_save_IFS
7227   if test -z "$ac_cv_path_FGREP"; then
7228     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7229   fi
7230 else
7231   ac_cv_path_FGREP=$FGREP
7232 fi
7233
7234    fi
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7237 $as_echo "$ac_cv_path_FGREP" >&6; }
7238  FGREP="$ac_cv_path_FGREP"
7239
7240
7241 test -z "$GREP" && GREP=grep
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261 # Check whether --with-gnu-ld was given.
7262 if test "${with_gnu_ld+set}" = set; then :
7263   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7264 else
7265   with_gnu_ld=no
7266 fi
7267
7268 ac_prog=ld
7269 if test "$GCC" = yes; then
7270   # Check if gcc -print-prog-name=ld gives a path.
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7272 $as_echo_n "checking for ld used by $CC... " >&6; }
7273   case $host in
7274   *-*-mingw*)
7275     # gcc leaves a trailing carriage return which upsets mingw
7276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7277   *)
7278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7279   esac
7280   case $ac_prog in
7281     # Accept absolute paths.
7282     [\\/]* | ?:[\\/]*)
7283       re_direlt='/[^/][^/]*/\.\./'
7284       # Canonicalize the pathname of ld
7285       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7286       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7287         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7288       done
7289       test -z "$LD" && LD="$ac_prog"
7290       ;;
7291   "")
7292     # If it fails, then pretend we aren't using GCC.
7293     ac_prog=ld
7294     ;;
7295   *)
7296     # If it is relative, then search for the first ld in PATH.
7297     with_gnu_ld=unknown
7298     ;;
7299   esac
7300 elif test "$with_gnu_ld" = yes; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7302 $as_echo_n "checking for GNU ld... " >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7305 $as_echo_n "checking for non-GNU ld... " >&6; }
7306 fi
7307 if test "${lt_cv_path_LD+set}" = set; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -z "$LD"; then
7311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7312   for ac_dir in $PATH; do
7313     IFS="$lt_save_ifs"
7314     test -z "$ac_dir" && ac_dir=.
7315     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7316       lt_cv_path_LD="$ac_dir/$ac_prog"
7317       # Check to see if the program is GNU ld.  I'd rather use --version,
7318       # but apparently some variants of GNU ld only accept -v.
7319       # Break only if it was the GNU/non-GNU ld that we prefer.
7320       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7321       *GNU* | *'with BFD'*)
7322         test "$with_gnu_ld" != no && break
7323         ;;
7324       *)
7325         test "$with_gnu_ld" != yes && break
7326         ;;
7327       esac
7328     fi
7329   done
7330   IFS="$lt_save_ifs"
7331 else
7332   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7333 fi
7334 fi
7335
7336 LD="$lt_cv_path_LD"
7337 if test -n "$LD"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7339 $as_echo "$LD" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7347 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7348   $as_echo_n "(cached) " >&6
7349 else
7350   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7351 case `$LD -v 2>&1 </dev/null` in
7352 *GNU* | *'with BFD'*)
7353   lt_cv_prog_gnu_ld=yes
7354   ;;
7355 *)
7356   lt_cv_prog_gnu_ld=no
7357   ;;
7358 esac
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7362 with_gnu_ld=$lt_cv_prog_gnu_ld
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7373 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7374 if test "${lt_cv_path_NM+set}" = set; then :
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$NM"; then
7378   # Let the user override the test.
7379   lt_cv_path_NM="$NM"
7380 else
7381   lt_nm_to_check="${ac_tool_prefix}nm"
7382   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7383     lt_nm_to_check="$lt_nm_to_check nm"
7384   fi
7385   for lt_tmp_nm in $lt_nm_to_check; do
7386     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7387     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7388       IFS="$lt_save_ifs"
7389       test -z "$ac_dir" && ac_dir=.
7390       tmp_nm="$ac_dir/$lt_tmp_nm"
7391       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7392         # Check to see if the nm accepts a BSD-compat flag.
7393         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7394         #   nm: unknown option "B" ignored
7395         # Tru64's nm complains that /dev/null is an invalid object file
7396         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7397         */dev/null* | *'Invalid file or object type'*)
7398           lt_cv_path_NM="$tmp_nm -B"
7399           break
7400           ;;
7401         *)
7402           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7403           */dev/null*)
7404             lt_cv_path_NM="$tmp_nm -p"
7405             break
7406             ;;
7407           *)
7408             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7409             continue # so that we can try to find one that supports BSD flags
7410             ;;
7411           esac
7412           ;;
7413         esac
7414       fi
7415     done
7416     IFS="$lt_save_ifs"
7417   done
7418   : ${lt_cv_path_NM=no}
7419 fi
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7422 $as_echo "$lt_cv_path_NM" >&6; }
7423 if test "$lt_cv_path_NM" != "no"; then
7424   NM="$lt_cv_path_NM"
7425 else
7426   # Didn't find any BSD compatible name lister, look for dumpbin.
7427   if test -n "$DUMPBIN"; then :
7428     # Let the user override the test.
7429   else
7430     if test -n "$ac_tool_prefix"; then
7431   for ac_prog in dumpbin "link -dump"
7432   do
7433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$DUMPBIN"; then
7441   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 DUMPBIN=$ac_cv_prog_DUMPBIN
7461 if test -n "$DUMPBIN"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7463 $as_echo "$DUMPBIN" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470     test -n "$DUMPBIN" && break
7471   done
7472 fi
7473 if test -z "$DUMPBIN"; then
7474   ac_ct_DUMPBIN=$DUMPBIN
7475   for ac_prog in dumpbin "link -dump"
7476 do
7477   # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   if test -n "$ac_ct_DUMPBIN"; then
7485   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492     for ac_exec_ext in '' $ac_executable_extensions; do
7493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499   done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7505 if test -n "$ac_ct_DUMPBIN"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7507 $as_echo "$ac_ct_DUMPBIN" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513
7514   test -n "$ac_ct_DUMPBIN" && break
7515 done
7516
7517   if test "x$ac_ct_DUMPBIN" = x; then
7518     DUMPBIN=":"
7519   else
7520     case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526     DUMPBIN=$ac_ct_DUMPBIN
7527   fi
7528 fi
7529
7530     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7531     *COFF*)
7532       DUMPBIN="$DUMPBIN -symbols"
7533       ;;
7534     *)
7535       DUMPBIN=:
7536       ;;
7537     esac
7538   fi
7539
7540   if test "$DUMPBIN" != ":"; then
7541     NM="$DUMPBIN"
7542   fi
7543 fi
7544 test -z "$NM" && NM=nm
7545
7546
7547
7548
7549
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7552 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7553 if test "${lt_cv_nm_interface+set}" = set; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   lt_cv_nm_interface="BSD nm"
7557   echo "int some_variable = 0;" > conftest.$ac_ext
7558   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7559   (eval "$ac_compile" 2>conftest.err)
7560   cat conftest.err >&5
7561   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7562   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7563   cat conftest.err >&5
7564   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7565   cat conftest.out >&5
7566   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7567     lt_cv_nm_interface="MS dumpbin"
7568   fi
7569   rm -f conftest*
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7572 $as_echo "$lt_cv_nm_interface" >&6; }
7573
7574 # find the maximum length of command line arguments
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7576 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7577 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580     i=0
7581   teststring="ABCD"
7582
7583   case $build_os in
7584   msdosdjgpp*)
7585     # On DJGPP, this test can blow up pretty badly due to problems in libc
7586     # (any single argument exceeding 2000 bytes causes a buffer overrun
7587     # during glob expansion).  Even if it were fixed, the result of this
7588     # check would be larger than it should be.
7589     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7590     ;;
7591
7592   gnu*)
7593     # Under GNU Hurd, this test is not required because there is
7594     # no limit to the length of command line arguments.
7595     # Libtool will interpret -1 as no limit whatsoever
7596     lt_cv_sys_max_cmd_len=-1;
7597     ;;
7598
7599   cygwin* | mingw* | cegcc*)
7600     # On Win9x/ME, this test blows up -- it succeeds, but takes
7601     # about 5 minutes as the teststring grows exponentially.
7602     # Worse, since 9x/ME are not pre-emptively multitasking,
7603     # you end up with a "frozen" computer, even though with patience
7604     # the test eventually succeeds (with a max line length of 256k).
7605     # Instead, let's just punt: use the minimum linelength reported by
7606     # all of the supported platforms: 8192 (on NT/2K/XP).
7607     lt_cv_sys_max_cmd_len=8192;
7608     ;;
7609
7610   mint*)
7611     # On MiNT this can take a long time and run out of memory.
7612     lt_cv_sys_max_cmd_len=8192;
7613     ;;
7614
7615   amigaos*)
7616     # On AmigaOS with pdksh, this test takes hours, literally.
7617     # So we just punt and use a minimum line length of 8192.
7618     lt_cv_sys_max_cmd_len=8192;
7619     ;;
7620
7621   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7622     # This has been around since 386BSD, at least.  Likely further.
7623     if test -x /sbin/sysctl; then
7624       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7625     elif test -x /usr/sbin/sysctl; then
7626       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7627     else
7628       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7629     fi
7630     # And add a safety zone
7631     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7632     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7633     ;;
7634
7635   interix*)
7636     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7637     lt_cv_sys_max_cmd_len=196608
7638     ;;
7639
7640   osf*)
7641     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7642     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7643     # nice to cause kernel panics so lets avoid the loop below.
7644     # First set a reasonable default.
7645     lt_cv_sys_max_cmd_len=16384
7646     #
7647     if test -x /sbin/sysconfig; then
7648       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7649         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7650       esac
7651     fi
7652     ;;
7653   sco3.2v5*)
7654     lt_cv_sys_max_cmd_len=102400
7655     ;;
7656   sysv5* | sco5v6* | sysv4.2uw2*)
7657     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7658     if test -n "$kargmax"; then
7659       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7660     else
7661       lt_cv_sys_max_cmd_len=32768
7662     fi
7663     ;;
7664   *)
7665     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7666     if test -n "$lt_cv_sys_max_cmd_len"; then
7667       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7668       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7669     else
7670       # Make teststring a little bigger before we do anything with it.
7671       # a 1K string should be a reasonable start.
7672       for i in 1 2 3 4 5 6 7 8 ; do
7673         teststring=$teststring$teststring
7674       done
7675       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7676       # If test is not a shell built-in, we'll probably end up computing a
7677       # maximum length that is only half of the actual maximum length, but
7678       # we can't tell.
7679       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7680                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7681               test $i != 17 # 1/2 MB should be enough
7682       do
7683         i=`expr $i + 1`
7684         teststring=$teststring$teststring
7685       done
7686       # Only check the string length outside the loop.
7687       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7688       teststring=
7689       # Add a significant safety factor because C++ compilers can tack on
7690       # massive amounts of additional arguments before passing them to the
7691       # linker.  It appears as though 1/2 is a usable value.
7692       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7693     fi
7694     ;;
7695   esac
7696
7697 fi
7698
7699 if test -n $lt_cv_sys_max_cmd_len ; then
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7701 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7702 else
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7704 $as_echo "none" >&6; }
7705 fi
7706 max_cmd_len=$lt_cv_sys_max_cmd_len
7707
7708
7709
7710
7711
7712
7713 : ${CP="cp -f"}
7714 : ${MV="mv -f"}
7715 : ${RM="rm -f"}
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7718 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7719 # Try some XSI features
7720 xsi_shell=no
7721 ( _lt_dummy="a/b/c"
7722   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7723       = c,a/b,, \
7724     && eval 'test $(( 1 + 1 )) -eq 2 \
7725     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7726   && xsi_shell=yes
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7728 $as_echo "$xsi_shell" >&6; }
7729
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7732 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7733 lt_shell_append=no
7734 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7735     >/dev/null 2>&1 \
7736   && lt_shell_append=yes
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7738 $as_echo "$lt_shell_append" >&6; }
7739
7740
7741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7742   lt_unset=unset
7743 else
7744   lt_unset=false
7745 fi
7746
7747
7748
7749
7750
7751 # test EBCDIC or ASCII
7752 case `echo X|tr X '\101'` in
7753  A) # ASCII based system
7754     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7755   lt_SP2NL='tr \040 \012'
7756   lt_NL2SP='tr \015\012 \040\040'
7757   ;;
7758  *) # EBCDIC based system
7759   lt_SP2NL='tr \100 \n'
7760   lt_NL2SP='tr \r\n \100\100'
7761   ;;
7762 esac
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7773 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7774 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   lt_cv_ld_reload_flag='-r'
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7780 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7781 reload_flag=$lt_cv_ld_reload_flag
7782 case $reload_flag in
7783 "" | " "*) ;;
7784 *) reload_flag=" $reload_flag" ;;
7785 esac
7786 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7787 case $host_os in
7788   darwin*)
7789     if test "$GCC" = yes; then
7790       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7791     else
7792       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7793     fi
7794     ;;
7795 esac
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 if test -n "$ac_tool_prefix"; then
7806   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7807 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7811   $as_echo_n "(cached) " >&6
7812 else
7813   if test -n "$OBJDUMP"; then
7814   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819   IFS=$as_save_IFS
7820   test -z "$as_dir" && as_dir=.
7821     for ac_exec_ext in '' $ac_executable_extensions; do
7822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825     break 2
7826   fi
7827 done
7828   done
7829 IFS=$as_save_IFS
7830
7831 fi
7832 fi
7833 OBJDUMP=$ac_cv_prog_OBJDUMP
7834 if test -n "$OBJDUMP"; then
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7836 $as_echo "$OBJDUMP" >&6; }
7837 else
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842
7843 fi
7844 if test -z "$ac_cv_prog_OBJDUMP"; then
7845   ac_ct_OBJDUMP=$OBJDUMP
7846   # Extract the first word of "objdump", so it can be a program name with args.
7847 set dummy objdump; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   if test -n "$ac_ct_OBJDUMP"; then
7854   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859   IFS=$as_save_IFS
7860   test -z "$as_dir" && as_dir=.
7861     for ac_exec_ext in '' $ac_executable_extensions; do
7862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865     break 2
7866   fi
7867 done
7868   done
7869 IFS=$as_save_IFS
7870
7871 fi
7872 fi
7873 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7874 if test -n "$ac_ct_OBJDUMP"; then
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7876 $as_echo "$ac_ct_OBJDUMP" >&6; }
7877 else
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880 fi
7881
7882   if test "x$ac_ct_OBJDUMP" = x; then
7883     OBJDUMP="false"
7884   else
7885     case $cross_compiling:$ac_tool_warned in
7886 yes:)
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889 ac_tool_warned=yes ;;
7890 esac
7891     OBJDUMP=$ac_ct_OBJDUMP
7892   fi
7893 else
7894   OBJDUMP="$ac_cv_prog_OBJDUMP"
7895 fi
7896
7897 test -z "$OBJDUMP" && OBJDUMP=objdump
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7908 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7909 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   lt_cv_file_magic_cmd='$MAGIC_CMD'
7913 lt_cv_file_magic_test_file=
7914 lt_cv_deplibs_check_method='unknown'
7915 # Need to set the preceding variable on all platforms that support
7916 # interlibrary dependencies.
7917 # 'none' -- dependencies not supported.
7918 # `unknown' -- same as none, but documents that we really don't know.
7919 # 'pass_all' -- all dependencies passed with no checks.
7920 # 'test_compile' -- check by making test program.
7921 # 'file_magic [[regex]]' -- check by looking for files in library path
7922 # which responds to the $file_magic_cmd with a given extended regex.
7923 # If you have `file' or equivalent on your system and you're not sure
7924 # whether `pass_all' will *always* work, you probably want this one.
7925
7926 case $host_os in
7927 aix[4-9]*)
7928   lt_cv_deplibs_check_method=pass_all
7929   ;;
7930
7931 beos*)
7932   lt_cv_deplibs_check_method=pass_all
7933   ;;
7934
7935 bsdi[45]*)
7936   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7937   lt_cv_file_magic_cmd='/usr/bin/file -L'
7938   lt_cv_file_magic_test_file=/shlib/libc.so
7939   ;;
7940
7941 cygwin*)
7942   # func_win32_libid is a shell function defined in ltmain.sh
7943   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7944   lt_cv_file_magic_cmd='func_win32_libid'
7945   ;;
7946
7947 mingw* | pw32*)
7948   # Base MSYS/MinGW do not provide the 'file' command needed by
7949   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7950   # unless we find 'file', for example because we are cross-compiling.
7951   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7952   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7953     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7954     lt_cv_file_magic_cmd='func_win32_libid'
7955   else
7956     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7957     lt_cv_file_magic_cmd='$OBJDUMP -f'
7958   fi
7959   ;;
7960
7961 cegcc*)
7962   # use the weaker test based on 'objdump'. See mingw*.
7963   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7964   lt_cv_file_magic_cmd='$OBJDUMP -f'
7965   ;;
7966
7967 darwin* | rhapsody*)
7968   lt_cv_deplibs_check_method=pass_all
7969   ;;
7970
7971 freebsd* | dragonfly*)
7972   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7973     case $host_cpu in
7974     i*86 )
7975       # Not sure whether the presence of OpenBSD here was a mistake.
7976       # Let's accept both of them until this is cleared up.
7977       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7978       lt_cv_file_magic_cmd=/usr/bin/file
7979       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7980       ;;
7981     esac
7982   else
7983     lt_cv_deplibs_check_method=pass_all
7984   fi
7985   ;;
7986
7987 gnu*)
7988   lt_cv_deplibs_check_method=pass_all
7989   ;;
7990
7991 haiku*)
7992   lt_cv_deplibs_check_method=pass_all
7993   ;;
7994
7995 hpux10.20* | hpux11*)
7996   lt_cv_file_magic_cmd=/usr/bin/file
7997   case $host_cpu in
7998   ia64*)
7999     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8000     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8001     ;;
8002   hppa*64*)
8003     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]'
8004     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8005     ;;
8006   *)
8007     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8008     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8009     ;;
8010   esac
8011   ;;
8012
8013 interix[3-9]*)
8014   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8015   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8016   ;;
8017
8018 irix5* | irix6* | nonstopux*)
8019   case $LD in
8020   *-32|*"-32 ") libmagic=32-bit;;
8021   *-n32|*"-n32 ") libmagic=N32;;
8022   *-64|*"-64 ") libmagic=64-bit;;
8023   *) libmagic=never-match;;
8024   esac
8025   lt_cv_deplibs_check_method=pass_all
8026   ;;
8027
8028 # This must be Linux ELF.
8029 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8030   lt_cv_deplibs_check_method=pass_all
8031   ;;
8032
8033 netbsd*)
8034   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8035     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8036   else
8037     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8038   fi
8039   ;;
8040
8041 newos6*)
8042   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8043   lt_cv_file_magic_cmd=/usr/bin/file
8044   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8045   ;;
8046
8047 *nto* | *qnx*)
8048   lt_cv_deplibs_check_method=pass_all
8049   ;;
8050
8051 openbsd*)
8052   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8053     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8054   else
8055     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8056   fi
8057   ;;
8058
8059 osf3* | osf4* | osf5*)
8060   lt_cv_deplibs_check_method=pass_all
8061   ;;
8062
8063 rdos*)
8064   lt_cv_deplibs_check_method=pass_all
8065   ;;
8066
8067 solaris*)
8068   lt_cv_deplibs_check_method=pass_all
8069   ;;
8070
8071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8072   lt_cv_deplibs_check_method=pass_all
8073   ;;
8074
8075 sysv4 | sysv4.3*)
8076   case $host_vendor in
8077   motorola)
8078     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]'
8079     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8080     ;;
8081   ncr)
8082     lt_cv_deplibs_check_method=pass_all
8083     ;;
8084   sequent)
8085     lt_cv_file_magic_cmd='/bin/file'
8086     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8087     ;;
8088   sni)
8089     lt_cv_file_magic_cmd='/bin/file'
8090     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8091     lt_cv_file_magic_test_file=/lib/libc.so
8092     ;;
8093   siemens)
8094     lt_cv_deplibs_check_method=pass_all
8095     ;;
8096   pc)
8097     lt_cv_deplibs_check_method=pass_all
8098     ;;
8099   esac
8100   ;;
8101
8102 tpf*)
8103   lt_cv_deplibs_check_method=pass_all
8104   ;;
8105 esac
8106
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8109 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8110 file_magic_cmd=$lt_cv_file_magic_cmd
8111 deplibs_check_method=$lt_cv_deplibs_check_method
8112 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 if test -n "$ac_tool_prefix"; then
8126   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8127 set dummy ${ac_tool_prefix}ar; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_AR+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   if test -n "$AR"; then
8134   ac_cv_prog_AR="$AR" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139   IFS=$as_save_IFS
8140   test -z "$as_dir" && as_dir=.
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143     ac_cv_prog_AR="${ac_tool_prefix}ar"
8144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 AR=$ac_cv_prog_AR
8154 if test -n "$AR"; then
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8156 $as_echo "$AR" >&6; }
8157 else
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162
8163 fi
8164 if test -z "$ac_cv_prog_AR"; then
8165   ac_ct_AR=$AR
8166   # Extract the first word of "ar", so it can be a program name with args.
8167 set dummy ar; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   if test -n "$ac_ct_AR"; then
8174   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179   IFS=$as_save_IFS
8180   test -z "$as_dir" && as_dir=.
8181     for ac_exec_ext in '' $ac_executable_extensions; do
8182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183     ac_cv_prog_ac_ct_AR="ar"
8184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185     break 2
8186   fi
8187 done
8188   done
8189 IFS=$as_save_IFS
8190
8191 fi
8192 fi
8193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8194 if test -n "$ac_ct_AR"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8196 $as_echo "$ac_ct_AR" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202   if test "x$ac_ct_AR" = x; then
8203     AR="false"
8204   else
8205     case $cross_compiling:$ac_tool_warned in
8206 yes:)
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8209 ac_tool_warned=yes ;;
8210 esac
8211     AR=$ac_ct_AR
8212   fi
8213 else
8214   AR="$ac_cv_prog_AR"
8215 fi
8216
8217 test -z "$AR" && AR=ar
8218 test -z "$AR_FLAGS" && AR_FLAGS=cru
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230 if test -n "$ac_tool_prefix"; then
8231   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}strip; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_prog_STRIP+set}" = set; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   if test -n "$STRIP"; then
8239   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244   IFS=$as_save_IFS
8245   test -z "$as_dir" && as_dir=.
8246     for ac_exec_ext in '' $ac_executable_extensions; do
8247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250     break 2
8251   fi
8252 done
8253   done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 STRIP=$ac_cv_prog_STRIP
8259 if test -n "$STRIP"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8261 $as_echo "$STRIP" >&6; }
8262 else
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268 fi
8269 if test -z "$ac_cv_prog_STRIP"; then
8270   ac_ct_STRIP=$STRIP
8271   # Extract the first word of "strip", so it can be a program name with args.
8272 set dummy strip; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   if test -n "$ac_ct_STRIP"; then
8279   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288     ac_cv_prog_ac_ct_STRIP="strip"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8299 if test -n "$ac_ct_STRIP"; then
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8301 $as_echo "$ac_ct_STRIP" >&6; }
8302 else
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307   if test "x$ac_ct_STRIP" = x; then
8308     STRIP=":"
8309   else
8310     case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316     STRIP=$ac_ct_STRIP
8317   fi
8318 else
8319   STRIP="$ac_cv_prog_STRIP"
8320 fi
8321
8322 test -z "$STRIP" && STRIP=:
8323
8324
8325
8326
8327
8328
8329 if test -n "$ac_tool_prefix"; then
8330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8335   $as_echo_n "(cached) " >&6
8336 else
8337   if test -n "$RANLIB"; then
8338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8342 do
8343   IFS=$as_save_IFS
8344   test -z "$as_dir" && as_dir=.
8345     for ac_exec_ext in '' $ac_executable_extensions; do
8346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349     break 2
8350   fi
8351 done
8352   done
8353 IFS=$as_save_IFS
8354
8355 fi
8356 fi
8357 RANLIB=$ac_cv_prog_RANLIB
8358 if test -n "$RANLIB"; then
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8360 $as_echo "$RANLIB" >&6; }
8361 else
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8364 fi
8365
8366
8367 fi
8368 if test -z "$ac_cv_prog_RANLIB"; then
8369   ac_ct_RANLIB=$RANLIB
8370   # Extract the first word of "ranlib", so it can be a program name with args.
8371 set dummy ranlib; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8375   $as_echo_n "(cached) " >&6
8376 else
8377   if test -n "$ac_ct_RANLIB"; then
8378   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383   IFS=$as_save_IFS
8384   test -z "$as_dir" && as_dir=.
8385     for ac_exec_ext in '' $ac_executable_extensions; do
8386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387     ac_cv_prog_ac_ct_RANLIB="ranlib"
8388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389     break 2
8390   fi
8391 done
8392   done
8393 IFS=$as_save_IFS
8394
8395 fi
8396 fi
8397 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8398 if test -n "$ac_ct_RANLIB"; then
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8400 $as_echo "$ac_ct_RANLIB" >&6; }
8401 else
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405
8406   if test "x$ac_ct_RANLIB" = x; then
8407     RANLIB=":"
8408   else
8409     case $cross_compiling:$ac_tool_warned in
8410 yes:)
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413 ac_tool_warned=yes ;;
8414 esac
8415     RANLIB=$ac_ct_RANLIB
8416   fi
8417 else
8418   RANLIB="$ac_cv_prog_RANLIB"
8419 fi
8420
8421 test -z "$RANLIB" && RANLIB=:
8422
8423
8424
8425
8426
8427
8428 # Determine commands to create old-style static archives.
8429 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8430 old_postinstall_cmds='chmod 644 $oldlib'
8431 old_postuninstall_cmds=
8432
8433 if test -n "$RANLIB"; then
8434   case $host_os in
8435   openbsd*)
8436     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8437     ;;
8438   *)
8439     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8440     ;;
8441   esac
8442   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8443 fi
8444
8445 case $host_os in
8446   darwin*)
8447     lock_old_archive_extraction=yes ;;
8448   *)
8449     lock_old_archive_extraction=no ;;
8450 esac
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
8490 # If no C compiler was specified, use CC.
8491 LTCC=${LTCC-"$CC"}
8492
8493 # If no C compiler flags were specified, use CFLAGS.
8494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8495
8496 # Allow CC to be a program name with arguments.
8497 compiler=$CC
8498
8499
8500 # Check for command to grab the raw symbol name followed by C symbol from nm.
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8502 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8503 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506
8507 # These are sane defaults that work on at least a few old systems.
8508 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8509
8510 # Character class describing NM global symbol codes.
8511 symcode='[BCDEGRST]'
8512
8513 # Regexp to match symbols that can be accessed directly from C.
8514 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8515
8516 # Define system-specific variables.
8517 case $host_os in
8518 aix*)
8519   symcode='[BCDT]'
8520   ;;
8521 cygwin* | mingw* | pw32* | cegcc*)
8522   symcode='[ABCDGISTW]'
8523   ;;
8524 hpux*)
8525   if test "$host_cpu" = ia64; then
8526     symcode='[ABCDEGRST]'
8527   fi
8528   ;;
8529 irix* | nonstopux*)
8530   symcode='[BCDEGRST]'
8531   ;;
8532 osf*)
8533   symcode='[BCDEGQRST]'
8534   ;;
8535 solaris*)
8536   symcode='[BDRT]'
8537   ;;
8538 sco3.2v5*)
8539   symcode='[DT]'
8540   ;;
8541 sysv4.2uw2*)
8542   symcode='[DT]'
8543   ;;
8544 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8545   symcode='[ABDT]'
8546   ;;
8547 sysv4)
8548   symcode='[DFNSTU]'
8549   ;;
8550 esac
8551
8552 # If we're using GNU nm, then use its standard symbol codes.
8553 case `$NM -V 2>&1` in
8554 *GNU* | *'with BFD'*)
8555   symcode='[ABCDGIRSTW]' ;;
8556 esac
8557
8558 # Transform an extracted symbol line into a proper C declaration.
8559 # Some systems (esp. on ia64) link data and code symbols differently,
8560 # so use this general approach.
8561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8562
8563 # Transform an extracted symbol line into symbol name and symbol address
8564 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8565 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'"
8566
8567 # Handle CRLF in mingw tool chain
8568 opt_cr=
8569 case $build_os in
8570 mingw*)
8571   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8572   ;;
8573 esac
8574
8575 # Try without a prefix underscore, then with it.
8576 for ac_symprfx in "" "_"; do
8577
8578   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8579   symxfrm="\\1 $ac_symprfx\\2 \\2"
8580
8581   # Write the raw and C identifiers.
8582   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8583     # Fake it for dumpbin and say T for any non-static function
8584     # and D for any global variable.
8585     # Also find C++ and __fastcall symbols from MSVC++,
8586     # which start with @ or ?.
8587     lt_cv_sys_global_symbol_pipe="$AWK '"\
8588 "     {last_section=section; section=\$ 3};"\
8589 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8590 "     \$ 0!~/External *\|/{next};"\
8591 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8592 "     {if(hide[section]) next};"\
8593 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8594 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8595 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8596 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8597 "     ' prfx=^$ac_symprfx"
8598   else
8599     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8600   fi
8601
8602   # Check to see that the pipe works correctly.
8603   pipe_works=no
8604
8605   rm -f conftest*
8606   cat > conftest.$ac_ext <<_LT_EOF
8607 #ifdef __cplusplus
8608 extern "C" {
8609 #endif
8610 char nm_test_var;
8611 void nm_test_func(void);
8612 void nm_test_func(void){}
8613 #ifdef __cplusplus
8614 }
8615 #endif
8616 int main(){nm_test_var='a';nm_test_func();return(0);}
8617 _LT_EOF
8618
8619   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8620   (eval $ac_compile) 2>&5
8621   ac_status=$?
8622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8623   test $ac_status = 0; }; then
8624     # Now try to grab the symbols.
8625     nlist=conftest.nm
8626     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8627   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8628   ac_status=$?
8629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8630   test $ac_status = 0; } && test -s "$nlist"; then
8631       # Try sorting and uniquifying the output.
8632       if sort "$nlist" | uniq > "$nlist"T; then
8633         mv -f "$nlist"T "$nlist"
8634       else
8635         rm -f "$nlist"T
8636       fi
8637
8638       # Make sure that we snagged all the symbols we need.
8639       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8640         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8641           cat <<_LT_EOF > conftest.$ac_ext
8642 #ifdef __cplusplus
8643 extern "C" {
8644 #endif
8645
8646 _LT_EOF
8647           # Now generate the symbol file.
8648           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8649
8650           cat <<_LT_EOF >> conftest.$ac_ext
8651
8652 /* The mapping between symbol names and symbols.  */
8653 const struct {
8654   const char *name;
8655   void       *address;
8656 }
8657 lt__PROGRAM__LTX_preloaded_symbols[] =
8658 {
8659   { "@PROGRAM@", (void *) 0 },
8660 _LT_EOF
8661           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8662           cat <<\_LT_EOF >> conftest.$ac_ext
8663   {0, (void *) 0}
8664 };
8665
8666 /* This works around a problem in FreeBSD linker */
8667 #ifdef FREEBSD_WORKAROUND
8668 static const void *lt_preloaded_setup() {
8669   return lt__PROGRAM__LTX_preloaded_symbols;
8670 }
8671 #endif
8672
8673 #ifdef __cplusplus
8674 }
8675 #endif
8676 _LT_EOF
8677           # Now try linking the two files.
8678           mv conftest.$ac_objext conftstm.$ac_objext
8679           lt_save_LIBS="$LIBS"
8680           lt_save_CFLAGS="$CFLAGS"
8681           LIBS="conftstm.$ac_objext"
8682           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8683           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684   (eval $ac_link) 2>&5
8685   ac_status=$?
8686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8688             pipe_works=yes
8689           fi
8690           LIBS="$lt_save_LIBS"
8691           CFLAGS="$lt_save_CFLAGS"
8692         else
8693           echo "cannot find nm_test_func in $nlist" >&5
8694         fi
8695       else
8696         echo "cannot find nm_test_var in $nlist" >&5
8697       fi
8698     else
8699       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8700     fi
8701   else
8702     echo "$progname: failed program was:" >&5
8703     cat conftest.$ac_ext >&5
8704   fi
8705   rm -rf conftest* conftst*
8706
8707   # Do not use the global_symbol_pipe unless it works.
8708   if test "$pipe_works" = yes; then
8709     break
8710   else
8711     lt_cv_sys_global_symbol_pipe=
8712   fi
8713 done
8714
8715 fi
8716
8717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8718   lt_cv_sys_global_symbol_to_cdecl=
8719 fi
8720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8722 $as_echo "failed" >&6; }
8723 else
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8725 $as_echo "ok" >&6; }
8726 fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 # Check whether --enable-libtool-lock was given.
8751 if test "${enable_libtool_lock+set}" = set; then :
8752   enableval=$enable_libtool_lock;
8753 fi
8754
8755 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8756
8757 # Some flags need to be propagated to the compiler or linker for good
8758 # libtool support.
8759 case $host in
8760 ia64-*-hpux*)
8761   # Find out which ABI we are using.
8762   echo 'int i;' > conftest.$ac_ext
8763   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8764   (eval $ac_compile) 2>&5
8765   ac_status=$?
8766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8767   test $ac_status = 0; }; then
8768     case `/usr/bin/file conftest.$ac_objext` in
8769       *ELF-32*)
8770         HPUX_IA64_MODE="32"
8771         ;;
8772       *ELF-64*)
8773         HPUX_IA64_MODE="64"
8774         ;;
8775     esac
8776   fi
8777   rm -rf conftest*
8778   ;;
8779 *-*-irix6*)
8780   # Find out which ABI we are using.
8781   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8783   (eval $ac_compile) 2>&5
8784   ac_status=$?
8785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8786   test $ac_status = 0; }; then
8787     if test "$lt_cv_prog_gnu_ld" = yes; then
8788       case `/usr/bin/file conftest.$ac_objext` in
8789         *32-bit*)
8790           LD="${LD-ld} -melf32bsmip"
8791           ;;
8792         *N32*)
8793           LD="${LD-ld} -melf32bmipn32"
8794           ;;
8795         *64-bit*)
8796           LD="${LD-ld} -melf64bmip"
8797         ;;
8798       esac
8799     else
8800       case `/usr/bin/file conftest.$ac_objext` in
8801         *32-bit*)
8802           LD="${LD-ld} -32"
8803           ;;
8804         *N32*)
8805           LD="${LD-ld} -n32"
8806           ;;
8807         *64-bit*)
8808           LD="${LD-ld} -64"
8809           ;;
8810       esac
8811     fi
8812   fi
8813   rm -rf conftest*
8814   ;;
8815
8816 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8817 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8818   # Find out which ABI we are using.
8819   echo 'int i;' > conftest.$ac_ext
8820   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8821   (eval $ac_compile) 2>&5
8822   ac_status=$?
8823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824   test $ac_status = 0; }; then
8825     case `/usr/bin/file conftest.o` in
8826       *32-bit*)
8827         case $host in
8828           x86_64-*kfreebsd*-gnu)
8829             LD="${LD-ld} -m elf_i386_fbsd"
8830             ;;
8831           x86_64-*linux*)
8832             LD="${LD-ld} -m elf_i386"
8833             ;;
8834           ppc64-*linux*|powerpc64-*linux*)
8835             LD="${LD-ld} -m elf32ppclinux"
8836             ;;
8837           s390x-*linux*)
8838             LD="${LD-ld} -m elf_s390"
8839             ;;
8840           sparc64-*linux*)
8841             LD="${LD-ld} -m elf32_sparc"
8842             ;;
8843         esac
8844         ;;
8845       *64-bit*)
8846         case $host in
8847           x86_64-*kfreebsd*-gnu)
8848             LD="${LD-ld} -m elf_x86_64_fbsd"
8849             ;;
8850           x86_64-*linux*)
8851             LD="${LD-ld} -m elf_x86_64"
8852             ;;
8853           ppc*-*linux*|powerpc*-*linux*)
8854             LD="${LD-ld} -m elf64ppc"
8855             ;;
8856           s390*-*linux*|s390*-*tpf*)
8857             LD="${LD-ld} -m elf64_s390"
8858             ;;
8859           sparc*-*linux*)
8860             LD="${LD-ld} -m elf64_sparc"
8861             ;;
8862         esac
8863         ;;
8864     esac
8865   fi
8866   rm -rf conftest*
8867   ;;
8868
8869 *-*-sco3.2v5*)
8870   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8871   SAVE_CFLAGS="$CFLAGS"
8872   CFLAGS="$CFLAGS -belf"
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8874 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8875 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8876   $as_echo_n "(cached) " >&6
8877 else
8878   ac_ext=c
8879 ac_cpp='$CPP $CPPFLAGS'
8880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8883
8884      if test x$gcc_no_link = xyes; then
8885   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8886 fi
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h.  */
8889
8890 int
8891 main ()
8892 {
8893
8894   ;
8895   return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"; then :
8899   lt_cv_cc_needs_belf=yes
8900 else
8901   lt_cv_cc_needs_belf=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904     conftest$ac_exeext conftest.$ac_ext
8905      ac_ext=c
8906 ac_cpp='$CPP $CPPFLAGS'
8907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8910
8911 fi
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8914   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8915     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8916     CFLAGS="$SAVE_CFLAGS"
8917   fi
8918   ;;
8919 sparc*-*solaris*)
8920   # Find out which ABI we are using.
8921   echo 'int i;' > conftest.$ac_ext
8922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8923   (eval $ac_compile) 2>&5
8924   ac_status=$?
8925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926   test $ac_status = 0; }; then
8927     case `/usr/bin/file conftest.o` in
8928     *64-bit*)
8929       case $lt_cv_prog_gnu_ld in
8930       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8931       *)
8932         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8933           LD="${LD-ld} -64"
8934         fi
8935         ;;
8936       esac
8937       ;;
8938     esac
8939   fi
8940   rm -rf conftest*
8941   ;;
8942 esac
8943
8944 need_locks="$enable_libtool_lock"
8945
8946
8947   case $host_os in
8948     rhapsody* | darwin*)
8949     if test -n "$ac_tool_prefix"; then
8950   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   if test -n "$DSYMUTIL"; then
8958   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965     for ac_exec_ext in '' $ac_executable_extensions; do
8966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969     break 2
8970   fi
8971 done
8972   done
8973 IFS=$as_save_IFS
8974
8975 fi
8976 fi
8977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8978 if test -n "$DSYMUTIL"; then
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8980 $as_echo "$DSYMUTIL" >&6; }
8981 else
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8984 fi
8985
8986
8987 fi
8988 if test -z "$ac_cv_prog_DSYMUTIL"; then
8989   ac_ct_DSYMUTIL=$DSYMUTIL
8990   # Extract the first word of "dsymutil", so it can be a program name with args.
8991 set dummy dsymutil; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8995   $as_echo_n "(cached) " >&6
8996 else
8997   if test -n "$ac_ct_DSYMUTIL"; then
8998   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005     for ac_exec_ext in '' $ac_executable_extensions; do
9006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012   done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9018 if test -n "$ac_ct_DSYMUTIL"; then
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9021 else
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9024 fi
9025
9026   if test "x$ac_ct_DSYMUTIL" = x; then
9027     DSYMUTIL=":"
9028   else
9029     case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035     DSYMUTIL=$ac_ct_DSYMUTIL
9036   fi
9037 else
9038   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9039 fi
9040
9041     if test -n "$ac_tool_prefix"; then
9042   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   if test -n "$NMEDIT"; then
9050   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057     for ac_exec_ext in '' $ac_executable_extensions; do
9058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064   done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 NMEDIT=$ac_cv_prog_NMEDIT
9070 if test -n "$NMEDIT"; then
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9072 $as_echo "$NMEDIT" >&6; }
9073 else
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078
9079 fi
9080 if test -z "$ac_cv_prog_NMEDIT"; then
9081   ac_ct_NMEDIT=$NMEDIT
9082   # Extract the first word of "nmedit", so it can be a program name with args.
9083 set dummy nmedit; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9087   $as_echo_n "(cached) " >&6
9088 else
9089   if test -n "$ac_ct_NMEDIT"; then
9090   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095   IFS=$as_save_IFS
9096   test -z "$as_dir" && as_dir=.
9097     for ac_exec_ext in '' $ac_executable_extensions; do
9098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101     break 2
9102   fi
9103 done
9104   done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9110 if test -n "$ac_ct_NMEDIT"; then
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9112 $as_echo "$ac_ct_NMEDIT" >&6; }
9113 else
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9116 fi
9117
9118   if test "x$ac_ct_NMEDIT" = x; then
9119     NMEDIT=":"
9120   else
9121     case $cross_compiling:$ac_tool_warned in
9122 yes:)
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9126 esac
9127     NMEDIT=$ac_ct_NMEDIT
9128   fi
9129 else
9130   NMEDIT="$ac_cv_prog_NMEDIT"
9131 fi
9132
9133     if test -n "$ac_tool_prefix"; then
9134   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_LIPO+set}" = set; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$LIPO"; then
9142   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 LIPO=$ac_cv_prog_LIPO
9162 if test -n "$LIPO"; then
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9164 $as_echo "$LIPO" >&6; }
9165 else
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171 fi
9172 if test -z "$ac_cv_prog_LIPO"; then
9173   ac_ct_LIPO=$LIPO
9174   # Extract the first word of "lipo", so it can be a program name with args.
9175 set dummy lipo; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   if test -n "$ac_ct_LIPO"; then
9182   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189     for ac_exec_ext in '' $ac_executable_extensions; do
9190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191     ac_cv_prog_ac_ct_LIPO="lipo"
9192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196   done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9202 if test -n "$ac_ct_LIPO"; then
9203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9204 $as_echo "$ac_ct_LIPO" >&6; }
9205 else
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9208 fi
9209
9210   if test "x$ac_ct_LIPO" = x; then
9211     LIPO=":"
9212   else
9213     case $cross_compiling:$ac_tool_warned in
9214 yes:)
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9217 ac_tool_warned=yes ;;
9218 esac
9219     LIPO=$ac_ct_LIPO
9220   fi
9221 else
9222   LIPO="$ac_cv_prog_LIPO"
9223 fi
9224
9225     if test -n "$ac_tool_prefix"; then
9226   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9227 set dummy ${ac_tool_prefix}otool; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9231   $as_echo_n "(cached) " >&6
9232 else
9233   if test -n "$OTOOL"; then
9234   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239   IFS=$as_save_IFS
9240   test -z "$as_dir" && as_dir=.
9241     for ac_exec_ext in '' $ac_executable_extensions; do
9242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9243     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245     break 2
9246   fi
9247 done
9248   done
9249 IFS=$as_save_IFS
9250
9251 fi
9252 fi
9253 OTOOL=$ac_cv_prog_OTOOL
9254 if test -n "$OTOOL"; then
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9256 $as_echo "$OTOOL" >&6; }
9257 else
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262
9263 fi
9264 if test -z "$ac_cv_prog_OTOOL"; then
9265   ac_ct_OTOOL=$OTOOL
9266   # Extract the first word of "otool", so it can be a program name with args.
9267 set dummy otool; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   if test -n "$ac_ct_OTOOL"; then
9274   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283     ac_cv_prog_ac_ct_OTOOL="otool"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290
9291 fi
9292 fi
9293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9294 if test -n "$ac_ct_OTOOL"; then
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9296 $as_echo "$ac_ct_OTOOL" >&6; }
9297 else
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302   if test "x$ac_ct_OTOOL" = x; then
9303     OTOOL=":"
9304   else
9305     case $cross_compiling:$ac_tool_warned in
9306 yes:)
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309 ac_tool_warned=yes ;;
9310 esac
9311     OTOOL=$ac_ct_OTOOL
9312   fi
9313 else
9314   OTOOL="$ac_cv_prog_OTOOL"
9315 fi
9316
9317     if test -n "$ac_tool_prefix"; then
9318   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   if test -n "$OTOOL64"; then
9326   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9327 else
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9330 do
9331   IFS=$as_save_IFS
9332   test -z "$as_dir" && as_dir=.
9333     for ac_exec_ext in '' $ac_executable_extensions; do
9334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9335     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337     break 2
9338   fi
9339 done
9340   done
9341 IFS=$as_save_IFS
9342
9343 fi
9344 fi
9345 OTOOL64=$ac_cv_prog_OTOOL64
9346 if test -n "$OTOOL64"; then
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9348 $as_echo "$OTOOL64" >&6; }
9349 else
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9352 fi
9353
9354
9355 fi
9356 if test -z "$ac_cv_prog_OTOOL64"; then
9357   ac_ct_OTOOL64=$OTOOL64
9358   # Extract the first word of "otool64", so it can be a program name with args.
9359 set dummy otool64; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   if test -n "$ac_ct_OTOOL64"; then
9366   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371   IFS=$as_save_IFS
9372   test -z "$as_dir" && as_dir=.
9373     for ac_exec_ext in '' $ac_executable_extensions; do
9374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375     ac_cv_prog_ac_ct_OTOOL64="otool64"
9376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377     break 2
9378   fi
9379 done
9380   done
9381 IFS=$as_save_IFS
9382
9383 fi
9384 fi
9385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9386 if test -n "$ac_ct_OTOOL64"; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9388 $as_echo "$ac_ct_OTOOL64" >&6; }
9389 else
9390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392 fi
9393
9394   if test "x$ac_ct_OTOOL64" = x; then
9395     OTOOL64=":"
9396   else
9397     case $cross_compiling:$ac_tool_warned in
9398 yes:)
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401 ac_tool_warned=yes ;;
9402 esac
9403     OTOOL64=$ac_ct_OTOOL64
9404   fi
9405 else
9406   OTOOL64="$ac_cv_prog_OTOOL64"
9407 fi
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
9435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9436 $as_echo_n "checking for -single_module linker flag... " >&6; }
9437 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9438   $as_echo_n "(cached) " >&6
9439 else
9440   lt_cv_apple_cc_single_mod=no
9441       if test -z "${LT_MULTI_MODULE}"; then
9442         # By default we will add the -single_module flag. You can override
9443         # by either setting the environment variable LT_MULTI_MODULE
9444         # non-empty at configure time, or by adding -multi_module to the
9445         # link flags.
9446         rm -rf libconftest.dylib*
9447         echo "int foo(void){return 1;}" > conftest.c
9448         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9449 -dynamiclib -Wl,-single_module conftest.c" >&5
9450         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9451           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9452         _lt_result=$?
9453         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9454           lt_cv_apple_cc_single_mod=yes
9455         else
9456           cat conftest.err >&5
9457         fi
9458         rm -rf libconftest.dylib*
9459         rm -f conftest.*
9460       fi
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9466 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   lt_cv_ld_exported_symbols_list=no
9470       save_LDFLAGS=$LDFLAGS
9471       echo "_main" > conftest.sym
9472       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9473       if test x$gcc_no_link = xyes; then
9474   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9475 fi
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h.  */
9478
9479 int
9480 main ()
9481 {
9482
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488   lt_cv_ld_exported_symbols_list=yes
9489 else
9490   lt_cv_ld_exported_symbols_list=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493     conftest$ac_exeext conftest.$ac_ext
9494         LDFLAGS="$save_LDFLAGS"
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9498 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9500 $as_echo_n "checking for -force_load linker flag... " >&6; }
9501 if test "${lt_cv_ld_force_load+set}" = set; then :
9502   $as_echo_n "(cached) " >&6
9503 else
9504   lt_cv_ld_force_load=no
9505       cat > conftest.c << _LT_EOF
9506 int forced_loaded() { return 2;}
9507 _LT_EOF
9508       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9509       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9510       echo "$AR cru libconftest.a conftest.o" >&5
9511       $AR cru libconftest.a conftest.o 2>&5
9512       cat > conftest.c << _LT_EOF
9513 int main() { return 0;}
9514 _LT_EOF
9515       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9516       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9517       _lt_result=$?
9518       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9519         lt_cv_ld_force_load=yes
9520       else
9521         cat conftest.err >&5
9522       fi
9523         rm -f conftest.err libconftest.a conftest conftest.c
9524         rm -rf conftest.dSYM
9525
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9528 $as_echo "$lt_cv_ld_force_load" >&6; }
9529     case $host_os in
9530     rhapsody* | darwin1.[012])
9531       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9532     darwin1.*)
9533       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9534     darwin*) # darwin 5.x on
9535       # if running on 10.5 or later, the deployment target defaults
9536       # to the OS version, if on x86, and 10.4, the deployment
9537       # target defaults to 10.4. Don't you love it?
9538       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9539         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9540           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9541         10.[012]*)
9542           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9543         10.*)
9544           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9545       esac
9546     ;;
9547   esac
9548     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9549       _lt_dar_single_mod='$single_module'
9550     fi
9551     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9552       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9553     else
9554       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9555     fi
9556     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9557       _lt_dsymutil='~$DSYMUTIL $lib || :'
9558     else
9559       _lt_dsymutil=
9560     fi
9561     ;;
9562   esac
9563
9564 ac_ext=c
9565 ac_cpp='$CPP $CPPFLAGS'
9566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9571 # On Suns, sometimes $CPP names a directory.
9572 if test -n "$CPP" && test -d "$CPP"; then
9573   CPP=
9574 fi
9575 if test -z "$CPP"; then
9576   if test "${ac_cv_prog_CPP+set}" = set; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579       # Double quotes because CPP needs to be expanded
9580     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9581     do
9582       ac_preproc_ok=false
9583 for ac_c_preproc_warn_flag in '' yes
9584 do
9585   # Use a header file that comes with gcc, so configuring glibc
9586   # with a fresh cross-compiler works.
9587   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9588   # <limits.h> exists even on freestanding compilers.
9589   # On the NeXT, cc -E runs the code through the compiler's parser,
9590   # not just through cpp. "Syntax error" is here to catch this case.
9591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h.  */
9593 #ifdef __STDC__
9594 # include <limits.h>
9595 #else
9596 # include <assert.h>
9597 #endif
9598                      Syntax error
9599 _ACEOF
9600 if ac_fn_c_try_cpp "$LINENO"; then :
9601
9602 else
9603   # Broken: fails on valid input.
9604 continue
9605 fi
9606 rm -f conftest.err conftest.$ac_ext
9607
9608   # OK, works on sane cases.  Now check whether nonexistent headers
9609   # can be detected and how.
9610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h.  */
9612 #include <ac_nonexistent.h>
9613 _ACEOF
9614 if ac_fn_c_try_cpp "$LINENO"; then :
9615   # Broken: success on invalid input.
9616 continue
9617 else
9618   # Passes both tests.
9619 ac_preproc_ok=:
9620 break
9621 fi
9622 rm -f conftest.err conftest.$ac_ext
9623
9624 done
9625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9626 rm -f conftest.err conftest.$ac_ext
9627 if $ac_preproc_ok; then :
9628   break
9629 fi
9630
9631     done
9632     ac_cv_prog_CPP=$CPP
9633
9634 fi
9635   CPP=$ac_cv_prog_CPP
9636 else
9637   ac_cv_prog_CPP=$CPP
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9640 $as_echo "$CPP" >&6; }
9641 ac_preproc_ok=false
9642 for ac_c_preproc_warn_flag in '' yes
9643 do
9644   # Use a header file that comes with gcc, so configuring glibc
9645   # with a fresh cross-compiler works.
9646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9647   # <limits.h> exists even on freestanding compilers.
9648   # On the NeXT, cc -E runs the code through the compiler's parser,
9649   # not just through cpp. "Syntax error" is here to catch this case.
9650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h.  */
9652 #ifdef __STDC__
9653 # include <limits.h>
9654 #else
9655 # include <assert.h>
9656 #endif
9657                      Syntax error
9658 _ACEOF
9659 if ac_fn_c_try_cpp "$LINENO"; then :
9660
9661 else
9662   # Broken: fails on valid input.
9663 continue
9664 fi
9665 rm -f conftest.err conftest.$ac_ext
9666
9667   # OK, works on sane cases.  Now check whether nonexistent headers
9668   # can be detected and how.
9669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671 #include <ac_nonexistent.h>
9672 _ACEOF
9673 if ac_fn_c_try_cpp "$LINENO"; then :
9674   # Broken: success on invalid input.
9675 continue
9676 else
9677   # Passes both tests.
9678 ac_preproc_ok=:
9679 break
9680 fi
9681 rm -f conftest.err conftest.$ac_ext
9682
9683 done
9684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9685 rm -f conftest.err conftest.$ac_ext
9686 if $ac_preproc_ok; then :
9687
9688 else
9689   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9691 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9692 See \`config.log' for more details." "$LINENO" 5; }
9693 fi
9694
9695 ac_ext=c
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9700
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9703 $as_echo_n "checking for ANSI C header files... " >&6; }
9704 if test "${ac_cv_header_stdc+set}" = set; then :
9705   $as_echo_n "(cached) " >&6
9706 else
9707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h.  */
9709 #include <stdlib.h>
9710 #include <stdarg.h>
9711 #include <string.h>
9712 #include <float.h>
9713
9714 int
9715 main ()
9716 {
9717
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723   ac_cv_header_stdc=yes
9724 else
9725   ac_cv_header_stdc=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728
9729 if test $ac_cv_header_stdc = yes; then
9730   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h.  */
9733 #include <string.h>
9734
9735 _ACEOF
9736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9737   $EGREP "memchr" >/dev/null 2>&1; then :
9738
9739 else
9740   ac_cv_header_stdc=no
9741 fi
9742 rm -f conftest*
9743
9744 fi
9745
9746 if test $ac_cv_header_stdc = yes; then
9747   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h.  */
9750 #include <stdlib.h>
9751
9752 _ACEOF
9753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9754   $EGREP "free" >/dev/null 2>&1; then :
9755
9756 else
9757   ac_cv_header_stdc=no
9758 fi
9759 rm -f conftest*
9760
9761 fi
9762
9763 if test $ac_cv_header_stdc = yes; then
9764   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9765   if test "$cross_compiling" = yes; then :
9766   :
9767 else
9768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h.  */
9770 #include <ctype.h>
9771 #include <stdlib.h>
9772 #if ((' ' & 0x0FF) == 0x020)
9773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9775 #else
9776 # define ISLOWER(c) \
9777                    (('a' <= (c) && (c) <= 'i') \
9778                      || ('j' <= (c) && (c) <= 'r') \
9779                      || ('s' <= (c) && (c) <= 'z'))
9780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9781 #endif
9782
9783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9784 int
9785 main ()
9786 {
9787   int i;
9788   for (i = 0; i < 256; i++)
9789     if (XOR (islower (i), ISLOWER (i))
9790         || toupper (i) != TOUPPER (i))
9791       return 2;
9792   return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_run "$LINENO"; then :
9796
9797 else
9798   ac_cv_header_stdc=no
9799 fi
9800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9801   conftest.$ac_objext conftest.beam conftest.$ac_ext
9802 fi
9803
9804 fi
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9807 $as_echo "$ac_cv_header_stdc" >&6; }
9808 if test $ac_cv_header_stdc = yes; then
9809
9810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9811
9812 fi
9813
9814 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9815 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9816                   inttypes.h stdint.h unistd.h
9817 do :
9818   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9819 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9820 "
9821 eval as_val=\$$as_ac_Header
9822    if test "x$as_val" = x""yes; then :
9823   cat >>confdefs.h <<_ACEOF
9824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9825 _ACEOF
9826
9827 fi
9828
9829 done
9830
9831
9832 for ac_header in dlfcn.h
9833 do :
9834   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9835 "
9836 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9837   cat >>confdefs.h <<_ACEOF
9838 #define HAVE_DLFCN_H 1
9839 _ACEOF
9840
9841 fi
9842
9843 done
9844
9845
9846
9847
9848
9849
9850 # Set options
9851
9852
9853
9854
9855   enable_win32_dll=no
9856
9857
9858             # Check whether --enable-shared was given.
9859 if test "${enable_shared+set}" = set; then :
9860   enableval=$enable_shared; p=${PACKAGE-default}
9861     case $enableval in
9862     yes) enable_shared=yes ;;
9863     no) enable_shared=no ;;
9864     *)
9865       enable_shared=no
9866       # Look at the argument we got.  We use all the common list separators.
9867       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9868       for pkg in $enableval; do
9869         IFS="$lt_save_ifs"
9870         if test "X$pkg" = "X$p"; then
9871           enable_shared=yes
9872         fi
9873       done
9874       IFS="$lt_save_ifs"
9875       ;;
9876     esac
9877 else
9878   enable_shared=yes
9879 fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889   # Check whether --enable-static was given.
9890 if test "${enable_static+set}" = set; then :
9891   enableval=$enable_static; p=${PACKAGE-default}
9892     case $enableval in
9893     yes) enable_static=yes ;;
9894     no) enable_static=no ;;
9895     *)
9896      enable_static=no
9897       # Look at the argument we got.  We use all the common list separators.
9898       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9899       for pkg in $enableval; do
9900         IFS="$lt_save_ifs"
9901         if test "X$pkg" = "X$p"; then
9902           enable_static=yes
9903         fi
9904       done
9905       IFS="$lt_save_ifs"
9906       ;;
9907     esac
9908 else
9909   enable_static=yes
9910 fi
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 # Check whether --with-pic was given.
9922 if test "${with_pic+set}" = set; then :
9923   withval=$with_pic; pic_mode="$withval"
9924 else
9925   pic_mode=default
9926 fi
9927
9928
9929 test -z "$pic_mode" && pic_mode=default
9930
9931
9932
9933
9934
9935
9936
9937   # Check whether --enable-fast-install was given.
9938 if test "${enable_fast_install+set}" = set; then :
9939   enableval=$enable_fast_install; p=${PACKAGE-default}
9940     case $enableval in
9941     yes) enable_fast_install=yes ;;
9942     no) enable_fast_install=no ;;
9943     *)
9944       enable_fast_install=no
9945       # Look at the argument we got.  We use all the common list separators.
9946       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9947       for pkg in $enableval; do
9948         IFS="$lt_save_ifs"
9949         if test "X$pkg" = "X$p"; then
9950           enable_fast_install=yes
9951         fi
9952       done
9953       IFS="$lt_save_ifs"
9954       ;;
9955     esac
9956 else
9957   enable_fast_install=yes
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970 # This can be used to rebuild libtool when needed
9971 LIBTOOL_DEPS="$ltmain"
9972
9973 # Always use our own libtool.
9974 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
10001 test -z "$LN_S" && LN_S="ln -s"
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016 if test -n "${ZSH_VERSION+set}" ; then
10017    setopt NO_GLOB_SUBST
10018 fi
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10021 $as_echo_n "checking for objdir... " >&6; }
10022 if test "${lt_cv_objdir+set}" = set; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   rm -f .libs 2>/dev/null
10026 mkdir .libs 2>/dev/null
10027 if test -d .libs; then
10028   lt_cv_objdir=.libs
10029 else
10030   # MS-DOS does not allow filenames that begin with a dot.
10031   lt_cv_objdir=_libs
10032 fi
10033 rmdir .libs 2>/dev/null
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10036 $as_echo "$lt_cv_objdir" >&6; }
10037 objdir=$lt_cv_objdir
10038
10039
10040
10041
10042
10043 cat >>confdefs.h <<_ACEOF
10044 #define LT_OBJDIR "$lt_cv_objdir/"
10045 _ACEOF
10046
10047
10048
10049
10050 case $host_os in
10051 aix3*)
10052   # AIX sometimes has problems with the GCC collect2 program.  For some
10053   # reason, if we set the COLLECT_NAMES environment variable, the problems
10054   # vanish in a puff of smoke.
10055   if test "X${COLLECT_NAMES+set}" != Xset; then
10056     COLLECT_NAMES=
10057     export COLLECT_NAMES
10058   fi
10059   ;;
10060 esac
10061
10062 # Global variables:
10063 ofile=libtool
10064 can_build_shared=yes
10065
10066 # All known linkers require a `.a' archive for static linking (except MSVC,
10067 # which needs '.lib').
10068 libext=a
10069
10070 with_gnu_ld="$lt_cv_prog_gnu_ld"
10071
10072 old_CC="$CC"
10073 old_CFLAGS="$CFLAGS"
10074
10075 # Set sane defaults for various variables
10076 test -z "$CC" && CC=cc
10077 test -z "$LTCC" && LTCC=$CC
10078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10079 test -z "$LD" && LD=ld
10080 test -z "$ac_objext" && ac_objext=o
10081
10082 for cc_temp in $compiler""; do
10083   case $cc_temp in
10084     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10085     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10086     \-*) ;;
10087     *) break;;
10088   esac
10089 done
10090 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10091
10092
10093 # Only perform the check for file, if the check method requires it
10094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10095 case $deplibs_check_method in
10096 file_magic*)
10097   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10099 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10100 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10101   $as_echo_n "(cached) " >&6
10102 else
10103   case $MAGIC_CMD in
10104 [\\/*] |  ?:[\\/]*)
10105   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10106   ;;
10107 *)
10108   lt_save_MAGIC_CMD="$MAGIC_CMD"
10109   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10110   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10111   for ac_dir in $ac_dummy; do
10112     IFS="$lt_save_ifs"
10113     test -z "$ac_dir" && ac_dir=.
10114     if test -f $ac_dir/${ac_tool_prefix}file; then
10115       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10116       if test -n "$file_magic_test_file"; then
10117         case $deplibs_check_method in
10118         "file_magic "*)
10119           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10120           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10121           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10122             $EGREP "$file_magic_regex" > /dev/null; then
10123             :
10124           else
10125             cat <<_LT_EOF 1>&2
10126
10127 *** Warning: the command libtool uses to detect shared libraries,
10128 *** $file_magic_cmd, produces output that libtool cannot recognize.
10129 *** The result is that libtool may fail to recognize shared libraries
10130 *** as such.  This will affect the creation of libtool libraries that
10131 *** depend on shared libraries, but programs linked with such libtool
10132 *** libraries will work regardless of this problem.  Nevertheless, you
10133 *** may want to report the problem to your system manager and/or to
10134 *** bug-libtool@gnu.org
10135
10136 _LT_EOF
10137           fi ;;
10138         esac
10139       fi
10140       break
10141     fi
10142   done
10143   IFS="$lt_save_ifs"
10144   MAGIC_CMD="$lt_save_MAGIC_CMD"
10145   ;;
10146 esac
10147 fi
10148
10149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10150 if test -n "$MAGIC_CMD"; then
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10152 $as_echo "$MAGIC_CMD" >&6; }
10153 else
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10156 fi
10157
10158
10159
10160
10161
10162 if test -z "$lt_cv_path_MAGIC_CMD"; then
10163   if test -n "$ac_tool_prefix"; then
10164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10165 $as_echo_n "checking for file... " >&6; }
10166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   case $MAGIC_CMD in
10170 [\\/*] |  ?:[\\/]*)
10171   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10172   ;;
10173 *)
10174   lt_save_MAGIC_CMD="$MAGIC_CMD"
10175   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10176   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10177   for ac_dir in $ac_dummy; do
10178     IFS="$lt_save_ifs"
10179     test -z "$ac_dir" && ac_dir=.
10180     if test -f $ac_dir/file; then
10181       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10182       if test -n "$file_magic_test_file"; then
10183         case $deplibs_check_method in
10184         "file_magic "*)
10185           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10186           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10187           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10188             $EGREP "$file_magic_regex" > /dev/null; then
10189             :
10190           else
10191             cat <<_LT_EOF 1>&2
10192
10193 *** Warning: the command libtool uses to detect shared libraries,
10194 *** $file_magic_cmd, produces output that libtool cannot recognize.
10195 *** The result is that libtool may fail to recognize shared libraries
10196 *** as such.  This will affect the creation of libtool libraries that
10197 *** depend on shared libraries, but programs linked with such libtool
10198 *** libraries will work regardless of this problem.  Nevertheless, you
10199 *** may want to report the problem to your system manager and/or to
10200 *** bug-libtool@gnu.org
10201
10202 _LT_EOF
10203           fi ;;
10204         esac
10205       fi
10206       break
10207     fi
10208   done
10209   IFS="$lt_save_ifs"
10210   MAGIC_CMD="$lt_save_MAGIC_CMD"
10211   ;;
10212 esac
10213 fi
10214
10215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10216 if test -n "$MAGIC_CMD"; then
10217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10218 $as_echo "$MAGIC_CMD" >&6; }
10219 else
10220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225   else
10226     MAGIC_CMD=:
10227   fi
10228 fi
10229
10230   fi
10231   ;;
10232 esac
10233
10234 # Use C for the default configuration in the libtool script
10235
10236 lt_save_CC="$CC"
10237 ac_ext=c
10238 ac_cpp='$CPP $CPPFLAGS'
10239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242
10243
10244 # Source file extension for C test sources.
10245 ac_ext=c
10246
10247 # Object file extension for compiled C test sources.
10248 objext=o
10249 objext=$objext
10250
10251 # Code to be used in simple compile tests
10252 lt_simple_compile_test_code="int some_variable = 0;"
10253
10254 # Code to be used in simple link tests
10255 lt_simple_link_test_code='int main(){return(0);}'
10256
10257
10258
10259
10260
10261
10262
10263 # If no C compiler was specified, use CC.
10264 LTCC=${LTCC-"$CC"}
10265
10266 # If no C compiler flags were specified, use CFLAGS.
10267 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10268
10269 # Allow CC to be a program name with arguments.
10270 compiler=$CC
10271
10272 # Save the default compiler, since it gets overwritten when the other
10273 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10274 compiler_DEFAULT=$CC
10275
10276 # save warnings/boilerplate of simple test code
10277 ac_outfile=conftest.$ac_objext
10278 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10280 _lt_compiler_boilerplate=`cat conftest.err`
10281 $RM conftest*
10282
10283 ac_outfile=conftest.$ac_objext
10284 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10286 _lt_linker_boilerplate=`cat conftest.err`
10287 $RM -r conftest*
10288
10289
10290 ## CAVEAT EMPTOR:
10291 ## There is no encapsulation within the following macros, do not change
10292 ## the running order or otherwise move them around unless you know exactly
10293 ## what you are doing...
10294 if test -n "$compiler"; then
10295
10296 lt_prog_compiler_no_builtin_flag=
10297
10298 if test "$GCC" = yes; then
10299   case $cc_basename in
10300   nvcc*)
10301     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10302   *)
10303     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10304   esac
10305
10306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10307 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   lt_cv_prog_compiler_rtti_exceptions=no
10312    ac_outfile=conftest.$ac_objext
10313    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314    lt_compiler_flag="-fno-rtti -fno-exceptions"
10315    # Insert the option either (1) after the last *FLAGS variable, or
10316    # (2) before a word containing "conftest.", or (3) at the end.
10317    # Note that $ac_compile itself does not contain backslashes and begins
10318    # with a dollar sign (not a hyphen), so the echo should work correctly.
10319    # The option is referenced via a variable to avoid confusing sed.
10320    lt_compile=`echo "$ac_compile" | $SED \
10321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10323    -e 's:$: $lt_compiler_flag:'`
10324    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10325    (eval "$lt_compile" 2>conftest.err)
10326    ac_status=$?
10327    cat conftest.err >&5
10328    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329    if (exit $ac_status) && test -s "$ac_outfile"; then
10330      # The compiler can only warn and ignore the option if not recognized
10331      # So say no if there are warnings other than the usual output.
10332      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10333      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10334      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10335        lt_cv_prog_compiler_rtti_exceptions=yes
10336      fi
10337    fi
10338    $RM conftest*
10339
10340 fi
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10342 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10343
10344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10345     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10346 else
10347     :
10348 fi
10349
10350 fi
10351
10352
10353
10354
10355
10356
10357   lt_prog_compiler_wl=
10358 lt_prog_compiler_pic=
10359 lt_prog_compiler_static=
10360
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10363
10364   if test "$GCC" = yes; then
10365     lt_prog_compiler_wl='-Wl,'
10366     lt_prog_compiler_static='-static'
10367
10368     case $host_os in
10369       aix*)
10370       # All AIX code is PIC.
10371       if test "$host_cpu" = ia64; then
10372         # AIX 5 now supports IA64 processor
10373         lt_prog_compiler_static='-Bstatic'
10374       fi
10375       ;;
10376
10377     amigaos*)
10378       case $host_cpu in
10379       powerpc)
10380             # see comment about AmigaOS4 .so support
10381             lt_prog_compiler_pic='-fPIC'
10382         ;;
10383       m68k)
10384             # FIXME: we need at least 68020 code to build shared libraries, but
10385             # adding the `-m68020' flag to GCC prevents building anything better,
10386             # like `-m68040'.
10387             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10388         ;;
10389       esac
10390       ;;
10391
10392     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10393       # PIC is the default for these OSes.
10394       ;;
10395
10396     mingw* | cygwin* | pw32* | os2* | cegcc*)
10397       # This hack is so that the source file can tell whether it is being
10398       # built for inclusion in a dll (and should export symbols for example).
10399       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10400       # (--disable-auto-import) libraries
10401       lt_prog_compiler_pic='-DDLL_EXPORT'
10402       ;;
10403
10404     darwin* | rhapsody*)
10405       # PIC is the default on this platform
10406       # Common symbols not allowed in MH_DYLIB files
10407       lt_prog_compiler_pic='-fno-common'
10408       ;;
10409
10410     haiku*)
10411       # PIC is the default for Haiku.
10412       # The "-static" flag exists, but is broken.
10413       lt_prog_compiler_static=
10414       ;;
10415
10416     hpux*)
10417       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10418       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10419       # sets the default TLS model and affects inlining.
10420       case $host_cpu in
10421       hppa*64*)
10422         # +Z the default
10423         ;;
10424       *)
10425         lt_prog_compiler_pic='-fPIC'
10426         ;;
10427       esac
10428       ;;
10429
10430     interix[3-9]*)
10431       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10432       # Instead, we relocate shared libraries at runtime.
10433       ;;
10434
10435     msdosdjgpp*)
10436       # Just because we use GCC doesn't mean we suddenly get shared libraries
10437       # on systems that don't support them.
10438       lt_prog_compiler_can_build_shared=no
10439       enable_shared=no
10440       ;;
10441
10442     *nto* | *qnx*)
10443       # QNX uses GNU C++, but need to define -shared option too, otherwise
10444       # it will coredump.
10445       lt_prog_compiler_pic='-fPIC -shared'
10446       ;;
10447
10448     sysv4*MP*)
10449       if test -d /usr/nec; then
10450         lt_prog_compiler_pic=-Kconform_pic
10451       fi
10452       ;;
10453
10454     *)
10455       lt_prog_compiler_pic='-fPIC'
10456       ;;
10457     esac
10458
10459     case $cc_basename in
10460     nvcc*) # Cuda Compiler Driver 2.2
10461       lt_prog_compiler_wl='-Xlinker '
10462       lt_prog_compiler_pic='-Xcompiler -fPIC'
10463       ;;
10464     esac
10465   else
10466     # PORTME Check for flag to pass linker flags through the system compiler.
10467     case $host_os in
10468     aix*)
10469       lt_prog_compiler_wl='-Wl,'
10470       if test "$host_cpu" = ia64; then
10471         # AIX 5 now supports IA64 processor
10472         lt_prog_compiler_static='-Bstatic'
10473       else
10474         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10475       fi
10476       ;;
10477
10478     mingw* | cygwin* | pw32* | os2* | cegcc*)
10479       # This hack is so that the source file can tell whether it is being
10480       # built for inclusion in a dll (and should export symbols for example).
10481       lt_prog_compiler_pic='-DDLL_EXPORT'
10482       ;;
10483
10484     hpux9* | hpux10* | hpux11*)
10485       lt_prog_compiler_wl='-Wl,'
10486       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10487       # not for PA HP-UX.
10488       case $host_cpu in
10489       hppa*64*|ia64*)
10490         # +Z the default
10491         ;;
10492       *)
10493         lt_prog_compiler_pic='+Z'
10494         ;;
10495       esac
10496       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10497       lt_prog_compiler_static='${wl}-a ${wl}archive'
10498       ;;
10499
10500     irix5* | irix6* | nonstopux*)
10501       lt_prog_compiler_wl='-Wl,'
10502       # PIC (with -KPIC) is the default.
10503       lt_prog_compiler_static='-non_shared'
10504       ;;
10505
10506     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10507       case $cc_basename in
10508       # old Intel for x86_64 which still supported -KPIC.
10509       ecc*)
10510         lt_prog_compiler_wl='-Wl,'
10511         lt_prog_compiler_pic='-KPIC'
10512         lt_prog_compiler_static='-static'
10513         ;;
10514       # icc used to be incompatible with GCC.
10515       # ICC 10 doesn't accept -KPIC any more.
10516       icc* | ifort*)
10517         lt_prog_compiler_wl='-Wl,'
10518         lt_prog_compiler_pic='-fPIC'
10519         lt_prog_compiler_static='-static'
10520         ;;
10521       # Lahey Fortran 8.1.
10522       lf95*)
10523         lt_prog_compiler_wl='-Wl,'
10524         lt_prog_compiler_pic='--shared'
10525         lt_prog_compiler_static='--static'
10526         ;;
10527       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10528         # Portland Group compilers (*not* the Pentium gcc compiler,
10529         # which looks to be a dead project)
10530         lt_prog_compiler_wl='-Wl,'
10531         lt_prog_compiler_pic='-fpic'
10532         lt_prog_compiler_static='-Bstatic'
10533         ;;
10534       ccc*)
10535         lt_prog_compiler_wl='-Wl,'
10536         # All Alpha code is PIC.
10537         lt_prog_compiler_static='-non_shared'
10538         ;;
10539       xl* | bgxl* | bgf* | mpixl*)
10540         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10541         lt_prog_compiler_wl='-Wl,'
10542         lt_prog_compiler_pic='-qpic'
10543         lt_prog_compiler_static='-qstaticlink'
10544         ;;
10545       *)
10546         case `$CC -V 2>&1 | sed 5q` in
10547         *Sun\ F* | *Sun*Fortran*)
10548           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10549           lt_prog_compiler_pic='-KPIC'
10550           lt_prog_compiler_static='-Bstatic'
10551           lt_prog_compiler_wl=''
10552           ;;
10553         *Sun\ C*)
10554           # Sun C 5.9
10555           lt_prog_compiler_pic='-KPIC'
10556           lt_prog_compiler_static='-Bstatic'
10557           lt_prog_compiler_wl='-Wl,'
10558           ;;
10559         esac
10560         ;;
10561       esac
10562       ;;
10563
10564     newsos6)
10565       lt_prog_compiler_pic='-KPIC'
10566       lt_prog_compiler_static='-Bstatic'
10567       ;;
10568
10569     *nto* | *qnx*)
10570       # QNX uses GNU C++, but need to define -shared option too, otherwise
10571       # it will coredump.
10572       lt_prog_compiler_pic='-fPIC -shared'
10573       ;;
10574
10575     osf3* | osf4* | osf5*)
10576       lt_prog_compiler_wl='-Wl,'
10577       # All OSF/1 code is PIC.
10578       lt_prog_compiler_static='-non_shared'
10579       ;;
10580
10581     rdos*)
10582       lt_prog_compiler_static='-non_shared'
10583       ;;
10584
10585     solaris*)
10586       lt_prog_compiler_pic='-KPIC'
10587       lt_prog_compiler_static='-Bstatic'
10588       case $cc_basename in
10589       f77* | f90* | f95*)
10590         lt_prog_compiler_wl='-Qoption ld ';;
10591       *)
10592         lt_prog_compiler_wl='-Wl,';;
10593       esac
10594       ;;
10595
10596     sunos4*)
10597       lt_prog_compiler_wl='-Qoption ld '
10598       lt_prog_compiler_pic='-PIC'
10599       lt_prog_compiler_static='-Bstatic'
10600       ;;
10601
10602     sysv4 | sysv4.2uw2* | sysv4.3*)
10603       lt_prog_compiler_wl='-Wl,'
10604       lt_prog_compiler_pic='-KPIC'
10605       lt_prog_compiler_static='-Bstatic'
10606       ;;
10607
10608     sysv4*MP*)
10609       if test -d /usr/nec ;then
10610         lt_prog_compiler_pic='-Kconform_pic'
10611         lt_prog_compiler_static='-Bstatic'
10612       fi
10613       ;;
10614
10615     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10616       lt_prog_compiler_wl='-Wl,'
10617       lt_prog_compiler_pic='-KPIC'
10618       lt_prog_compiler_static='-Bstatic'
10619       ;;
10620
10621     unicos*)
10622       lt_prog_compiler_wl='-Wl,'
10623       lt_prog_compiler_can_build_shared=no
10624       ;;
10625
10626     uts4*)
10627       lt_prog_compiler_pic='-pic'
10628       lt_prog_compiler_static='-Bstatic'
10629       ;;
10630
10631     *)
10632       lt_prog_compiler_can_build_shared=no
10633       ;;
10634     esac
10635   fi
10636
10637 case $host_os in
10638   # For platforms which do not support PIC, -DPIC is meaningless:
10639   *djgpp*)
10640     lt_prog_compiler_pic=
10641     ;;
10642   *)
10643     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10644     ;;
10645 esac
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10647 $as_echo "$lt_prog_compiler_pic" >&6; }
10648
10649
10650
10651
10652
10653
10654 #
10655 # Check to make sure the PIC flag actually works.
10656 #
10657 if test -n "$lt_prog_compiler_pic"; then
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10660 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663   lt_cv_prog_compiler_pic_works=no
10664    ac_outfile=conftest.$ac_objext
10665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10666    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10667    # Insert the option either (1) after the last *FLAGS variable, or
10668    # (2) before a word containing "conftest.", or (3) at the end.
10669    # Note that $ac_compile itself does not contain backslashes and begins
10670    # with a dollar sign (not a hyphen), so the echo should work correctly.
10671    # The option is referenced via a variable to avoid confusing sed.
10672    lt_compile=`echo "$ac_compile" | $SED \
10673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10675    -e 's:$: $lt_compiler_flag:'`
10676    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10677    (eval "$lt_compile" 2>conftest.err)
10678    ac_status=$?
10679    cat conftest.err >&5
10680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681    if (exit $ac_status) && test -s "$ac_outfile"; then
10682      # The compiler can only warn and ignore the option if not recognized
10683      # So say no if there are warnings other than the usual output.
10684      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10687        lt_cv_prog_compiler_pic_works=yes
10688      fi
10689    fi
10690    $RM conftest*
10691
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10694 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10695
10696 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10697     case $lt_prog_compiler_pic in
10698      "" | " "*) ;;
10699      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10700      esac
10701 else
10702     lt_prog_compiler_pic=
10703      lt_prog_compiler_can_build_shared=no
10704 fi
10705
10706 fi
10707
10708
10709
10710
10711
10712
10713 #
10714 # Check to make sure the static flag actually works.
10715 #
10716 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10718 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10719 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722   lt_cv_prog_compiler_static_works=no
10723    save_LDFLAGS="$LDFLAGS"
10724    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10725    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10726    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10727      # The linker can only warn and ignore the option if not recognized
10728      # So say no if there are warnings
10729      if test -s conftest.err; then
10730        # Append any errors to the config.log.
10731        cat conftest.err 1>&5
10732        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10733        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10734        if diff conftest.exp conftest.er2 >/dev/null; then
10735          lt_cv_prog_compiler_static_works=yes
10736        fi
10737      else
10738        lt_cv_prog_compiler_static_works=yes
10739      fi
10740    fi
10741    $RM -r conftest*
10742    LDFLAGS="$save_LDFLAGS"
10743
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10746 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10747
10748 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10749     :
10750 else
10751     lt_prog_compiler_static=
10752 fi
10753
10754
10755
10756
10757
10758
10759
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10761 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10762 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10763   $as_echo_n "(cached) " >&6
10764 else
10765   lt_cv_prog_compiler_c_o=no
10766    $RM -r conftest 2>/dev/null
10767    mkdir conftest
10768    cd conftest
10769    mkdir out
10770    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10771
10772    lt_compiler_flag="-o out/conftest2.$ac_objext"
10773    # Insert the option either (1) after the last *FLAGS variable, or
10774    # (2) before a word containing "conftest.", or (3) at the end.
10775    # Note that $ac_compile itself does not contain backslashes and begins
10776    # with a dollar sign (not a hyphen), so the echo should work correctly.
10777    lt_compile=`echo "$ac_compile" | $SED \
10778    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10780    -e 's:$: $lt_compiler_flag:'`
10781    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10782    (eval "$lt_compile" 2>out/conftest.err)
10783    ac_status=$?
10784    cat out/conftest.err >&5
10785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10787    then
10788      # The compiler can only warn and ignore the option if not recognized
10789      # So say no if there are warnings
10790      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10791      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10792      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10793        lt_cv_prog_compiler_c_o=yes
10794      fi
10795    fi
10796    chmod u+w . 2>&5
10797    $RM conftest*
10798    # SGI C++ compiler will create directory out/ii_files/ for
10799    # template instantiation
10800    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10801    $RM out/* && rmdir out
10802    cd ..
10803    $RM -r conftest
10804    $RM conftest*
10805
10806 fi
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10808 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10809
10810
10811
10812
10813
10814
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10816 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10817 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10818   $as_echo_n "(cached) " >&6
10819 else
10820   lt_cv_prog_compiler_c_o=no
10821    $RM -r conftest 2>/dev/null
10822    mkdir conftest
10823    cd conftest
10824    mkdir out
10825    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10826
10827    lt_compiler_flag="-o out/conftest2.$ac_objext"
10828    # Insert the option either (1) after the last *FLAGS variable, or
10829    # (2) before a word containing "conftest.", or (3) at the end.
10830    # Note that $ac_compile itself does not contain backslashes and begins
10831    # with a dollar sign (not a hyphen), so the echo should work correctly.
10832    lt_compile=`echo "$ac_compile" | $SED \
10833    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10834    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10835    -e 's:$: $lt_compiler_flag:'`
10836    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10837    (eval "$lt_compile" 2>out/conftest.err)
10838    ac_status=$?
10839    cat out/conftest.err >&5
10840    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10842    then
10843      # The compiler can only warn and ignore the option if not recognized
10844      # So say no if there are warnings
10845      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10846      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10847      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10848        lt_cv_prog_compiler_c_o=yes
10849      fi
10850    fi
10851    chmod u+w . 2>&5
10852    $RM conftest*
10853    # SGI C++ compiler will create directory out/ii_files/ for
10854    # template instantiation
10855    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10856    $RM out/* && rmdir out
10857    cd ..
10858    $RM -r conftest
10859    $RM conftest*
10860
10861 fi
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10863 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10864
10865
10866
10867
10868 hard_links="nottested"
10869 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10870   # do not overwrite the value of need_locks provided by the user
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10872 $as_echo_n "checking if we can lock with hard links... " >&6; }
10873   hard_links=yes
10874   $RM conftest*
10875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10876   touch conftest.a
10877   ln conftest.a conftest.b 2>&5 || hard_links=no
10878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10880 $as_echo "$hard_links" >&6; }
10881   if test "$hard_links" = no; then
10882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10883 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10884     need_locks=warn
10885   fi
10886 else
10887   need_locks=no
10888 fi
10889
10890
10891
10892
10893
10894
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10896 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10897
10898   runpath_var=
10899   allow_undefined_flag=
10900   always_export_symbols=no
10901   archive_cmds=
10902   archive_expsym_cmds=
10903   compiler_needs_object=no
10904   enable_shared_with_static_runtimes=no
10905   export_dynamic_flag_spec=
10906   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10907   hardcode_automatic=no
10908   hardcode_direct=no
10909   hardcode_direct_absolute=no
10910   hardcode_libdir_flag_spec=
10911   hardcode_libdir_flag_spec_ld=
10912   hardcode_libdir_separator=
10913   hardcode_minus_L=no
10914   hardcode_shlibpath_var=unsupported
10915   inherit_rpath=no
10916   link_all_deplibs=unknown
10917   module_cmds=
10918   module_expsym_cmds=
10919   old_archive_from_new_cmds=
10920   old_archive_from_expsyms_cmds=
10921   thread_safe_flag_spec=
10922   whole_archive_flag_spec=
10923   # include_expsyms should be a list of space-separated symbols to be *always*
10924   # included in the symbol list
10925   include_expsyms=
10926   # exclude_expsyms can be an extended regexp of symbols to exclude
10927   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10928   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10929   # as well as any symbol that contains `d'.
10930   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10931   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10932   # platforms (ab)use it in PIC code, but their linkers get confused if
10933   # the symbol is explicitly referenced.  Since portable code cannot
10934   # rely on this symbol name, it's probably fine to never include it in
10935   # preloaded symbol tables.
10936   # Exclude shared library initialization/finalization symbols.
10937   extract_expsyms_cmds=
10938
10939   case $host_os in
10940   cygwin* | mingw* | pw32* | cegcc*)
10941     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10942     # When not using gcc, we currently assume that we are using
10943     # Microsoft Visual C++.
10944     if test "$GCC" != yes; then
10945       with_gnu_ld=no
10946     fi
10947     ;;
10948   interix*)
10949     # we just hope/assume this is gcc and not c89 (= MSVC++)
10950     with_gnu_ld=yes
10951     ;;
10952   openbsd*)
10953     with_gnu_ld=no
10954     ;;
10955   esac
10956
10957   ld_shlibs=yes
10958
10959   # On some targets, GNU ld is compatible enough with the native linker
10960   # that we're better off using the native interface for both.
10961   lt_use_gnu_ld_interface=no
10962   if test "$with_gnu_ld" = yes; then
10963     case $host_os in
10964       aix*)
10965         # The AIX port of GNU ld has always aspired to compatibility
10966         # with the native linker.  However, as the warning in the GNU ld
10967         # block says, versions before 2.19.5* couldn't really create working
10968         # shared libraries, regardless of the interface used.
10969         case `$LD -v 2>&1` in
10970           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10971           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10972           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10973           *)
10974             lt_use_gnu_ld_interface=yes
10975             ;;
10976         esac
10977         ;;
10978       *)
10979         lt_use_gnu_ld_interface=yes
10980         ;;
10981     esac
10982   fi
10983
10984   if test "$lt_use_gnu_ld_interface" = yes; then
10985     # If archive_cmds runs LD, not CC, wlarc should be empty
10986     wlarc='${wl}'
10987
10988     # Set some defaults for GNU ld with shared library support. These
10989     # are reset later if shared libraries are not supported. Putting them
10990     # here allows them to be overridden if necessary.
10991     runpath_var=LD_RUN_PATH
10992     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10993     export_dynamic_flag_spec='${wl}--export-dynamic'
10994     # ancient GNU ld didn't support --whole-archive et. al.
10995     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10996       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10997     else
10998       whole_archive_flag_spec=
10999     fi
11000     supports_anon_versioning=no
11001     case `$LD -v 2>&1` in
11002       *GNU\ gold*) supports_anon_versioning=yes ;;
11003       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11004       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11005       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11006       *\ 2.11.*) ;; # other 2.11 versions
11007       *) supports_anon_versioning=yes ;;
11008     esac
11009
11010     # See if GNU ld supports shared libraries.
11011     case $host_os in
11012     aix[3-9]*)
11013       # On AIX/PPC, the GNU linker is very broken
11014       if test "$host_cpu" != ia64; then
11015         ld_shlibs=no
11016         cat <<_LT_EOF 1>&2
11017
11018 *** Warning: the GNU linker, at least up to release 2.19, is reported
11019 *** to be unable to reliably create shared libraries on AIX.
11020 *** Therefore, libtool is disabling shared libraries support.  If you
11021 *** really care for shared libraries, you may want to install binutils
11022 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11023 *** You will then need to restart the configuration process.
11024
11025 _LT_EOF
11026       fi
11027       ;;
11028
11029     amigaos*)
11030       case $host_cpu in
11031       powerpc)
11032             # see comment about AmigaOS4 .so support
11033             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034             archive_expsym_cmds=''
11035         ;;
11036       m68k)
11037             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)'
11038             hardcode_libdir_flag_spec='-L$libdir'
11039             hardcode_minus_L=yes
11040         ;;
11041       esac
11042       ;;
11043
11044     beos*)
11045       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11046         allow_undefined_flag=unsupported
11047         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11048         # support --undefined.  This deserves some investigation.  FIXME
11049         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11050       else
11051         ld_shlibs=no
11052       fi
11053       ;;
11054
11055     cygwin* | mingw* | pw32* | cegcc*)
11056       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11057       # as there is no search path for DLLs.
11058       hardcode_libdir_flag_spec='-L$libdir'
11059       export_dynamic_flag_spec='${wl}--export-all-symbols'
11060       allow_undefined_flag=unsupported
11061       always_export_symbols=no
11062       enable_shared_with_static_runtimes=yes
11063       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11064
11065       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11066         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11067         # If the export-symbols file already is a .def file (1st line
11068         # is EXPORTS), use it as is; otherwise, prepend...
11069         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11070           cp $export_symbols $output_objdir/$soname.def;
11071         else
11072           echo EXPORTS > $output_objdir/$soname.def;
11073           cat $export_symbols >> $output_objdir/$soname.def;
11074         fi~
11075         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11076       else
11077         ld_shlibs=no
11078       fi
11079       ;;
11080
11081     haiku*)
11082       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083       link_all_deplibs=yes
11084       ;;
11085
11086     interix[3-9]*)
11087       hardcode_direct=no
11088       hardcode_shlibpath_var=no
11089       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11090       export_dynamic_flag_spec='${wl}-E'
11091       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11092       # Instead, shared libraries are loaded at an image base (0x10000000 by
11093       # default) and relocated if they conflict, which is a slow very memory
11094       # consuming and fragmenting process.  To avoid this, we pick a random,
11095       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11096       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11097       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11098       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'
11099       ;;
11100
11101     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11102       tmp_diet=no
11103       if test "$host_os" = linux-dietlibc; then
11104         case $cc_basename in
11105           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11106         esac
11107       fi
11108       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11109          && test "$tmp_diet" = no
11110       then
11111         tmp_addflag=
11112         tmp_sharedflag='-shared'
11113         case $cc_basename,$host_cpu in
11114         pgcc*)                          # Portland Group C compiler
11115           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'
11116           tmp_addflag=' $pic_flag'
11117           ;;
11118         pgf77* | pgf90* | pgf95* | pgfortran*)
11119                                         # Portland Group f77 and f90 compilers
11120           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'
11121           tmp_addflag=' $pic_flag -Mnomain' ;;
11122         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11123           tmp_addflag=' -i_dynamic' ;;
11124         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11125           tmp_addflag=' -i_dynamic -nofor_main' ;;
11126         ifc* | ifort*)                  # Intel Fortran compiler
11127           tmp_addflag=' -nofor_main' ;;
11128         lf95*)                          # Lahey Fortran 8.1
11129           whole_archive_flag_spec=
11130           tmp_sharedflag='--shared' ;;
11131         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11132           tmp_sharedflag='-qmkshrobj'
11133           tmp_addflag= ;;
11134         nvcc*)  # Cuda Compiler Driver 2.2
11135           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'
11136           compiler_needs_object=yes
11137           ;;
11138         esac
11139         case `$CC -V 2>&1 | sed 5q` in
11140         *Sun\ C*)                       # Sun C 5.9
11141           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'
11142           compiler_needs_object=yes
11143           tmp_sharedflag='-G' ;;
11144         *Sun\ F*)                       # Sun Fortran 8.3
11145           tmp_sharedflag='-G' ;;
11146         esac
11147         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148
11149         if test "x$supports_anon_versioning" = xyes; then
11150           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11151             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11152             echo "local: *; };" >> $output_objdir/$libname.ver~
11153             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11154         fi
11155
11156         case $cc_basename in
11157         xlf* | bgf* | bgxlf* | mpixlf*)
11158           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11159           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11160           hardcode_libdir_flag_spec=
11161           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11162           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11163           if test "x$supports_anon_versioning" = xyes; then
11164             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11165               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11166               echo "local: *; };" >> $output_objdir/$libname.ver~
11167               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11168           fi
11169           ;;
11170         esac
11171       else
11172         ld_shlibs=no
11173       fi
11174       ;;
11175
11176     netbsd*)
11177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11178         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11179         wlarc=
11180       else
11181         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11182         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11183       fi
11184       ;;
11185
11186     solaris*)
11187       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11188         ld_shlibs=no
11189         cat <<_LT_EOF 1>&2
11190
11191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11192 *** create shared libraries on Solaris systems.  Therefore, libtool
11193 *** is disabling shared libraries support.  We urge you to upgrade GNU
11194 *** binutils to release 2.9.1 or newer.  Another option is to modify
11195 *** your PATH or compiler configuration so that the native linker is
11196 *** used, and then restart.
11197
11198 _LT_EOF
11199       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11202       else
11203         ld_shlibs=no
11204       fi
11205       ;;
11206
11207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11208       case `$LD -v 2>&1` in
11209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11210         ld_shlibs=no
11211         cat <<_LT_EOF 1>&2
11212
11213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11215 *** is disabling shared libraries support.  We urge you to upgrade GNU
11216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11217 *** your PATH or compiler configuration so that the native linker is
11218 *** used, and then restart.
11219
11220 _LT_EOF
11221         ;;
11222         *)
11223           # For security reasons, it is highly recommended that you always
11224           # use absolute paths for naming shared libraries, and exclude the
11225           # DT_RUNPATH tag from executables and libraries.  But doing so
11226           # requires that you compile everything twice, which is a pain.
11227           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11228             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11230             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11231           else
11232             ld_shlibs=no
11233           fi
11234         ;;
11235       esac
11236       ;;
11237
11238     sunos4*)
11239       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11240       wlarc=
11241       hardcode_direct=yes
11242       hardcode_shlibpath_var=no
11243       ;;
11244
11245     *)
11246       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11249       else
11250         ld_shlibs=no
11251       fi
11252       ;;
11253     esac
11254
11255     if test "$ld_shlibs" = no; then
11256       runpath_var=
11257       hardcode_libdir_flag_spec=
11258       export_dynamic_flag_spec=
11259       whole_archive_flag_spec=
11260     fi
11261   else
11262     # PORTME fill in a description of your system's linker (not GNU ld)
11263     case $host_os in
11264     aix3*)
11265       allow_undefined_flag=unsupported
11266       always_export_symbols=yes
11267       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'
11268       # Note: this linker hardcodes the directories in LIBPATH if there
11269       # are no directories specified by -L.
11270       hardcode_minus_L=yes
11271       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11272         # Neither direct hardcoding nor static linking is supported with a
11273         # broken collect2.
11274         hardcode_direct=unsupported
11275       fi
11276       ;;
11277
11278     aix[4-9]*)
11279       if test "$host_cpu" = ia64; then
11280         # On IA64, the linker does run time linking by default, so we don't
11281         # have to do anything special.
11282         aix_use_runtimelinking=no
11283         exp_sym_flag='-Bexport'
11284         no_entry_flag=""
11285       else
11286         # If we're using GNU nm, then we don't want the "-C" option.
11287         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11288         # Also, AIX nm treats weak defined symbols like other global
11289         # defined symbols, whereas GNU nm marks them as "W".
11290         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11291           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'
11292         else
11293           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'
11294         fi
11295         aix_use_runtimelinking=no
11296
11297         # Test if we are trying to use run time linking or normal
11298         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11299         # need to do runtime linking.
11300         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11301           for ld_flag in $LDFLAGS; do
11302           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11303             aix_use_runtimelinking=yes
11304             break
11305           fi
11306           done
11307           ;;
11308         esac
11309
11310         exp_sym_flag='-bexport'
11311         no_entry_flag='-bnoentry'
11312       fi
11313
11314       # When large executables or shared objects are built, AIX ld can
11315       # have problems creating the table of contents.  If linking a library
11316       # or program results in "error TOC overflow" add -mminimal-toc to
11317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11319
11320       archive_cmds=''
11321       hardcode_direct=yes
11322       hardcode_direct_absolute=yes
11323       hardcode_libdir_separator=':'
11324       link_all_deplibs=yes
11325       file_list_spec='${wl}-f,'
11326
11327       if test "$GCC" = yes; then
11328         case $host_os in aix4.[012]|aix4.[012].*)
11329         # We only want to do this on AIX 4.2 and lower, the check
11330         # below for broken collect2 doesn't work under 4.3+
11331           collect2name=`${CC} -print-prog-name=collect2`
11332           if test -f "$collect2name" &&
11333            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11334           then
11335           # We have reworked collect2
11336           :
11337           else
11338           # We have old collect2
11339           hardcode_direct=unsupported
11340           # It fails to find uninstalled libraries when the uninstalled
11341           # path is not listed in the libpath.  Setting hardcode_minus_L
11342           # to unsupported forces relinking
11343           hardcode_minus_L=yes
11344           hardcode_libdir_flag_spec='-L$libdir'
11345           hardcode_libdir_separator=
11346           fi
11347           ;;
11348         esac
11349         shared_flag='-shared'
11350         if test "$aix_use_runtimelinking" = yes; then
11351           shared_flag="$shared_flag "'${wl}-G'
11352         fi
11353       else
11354         # not using gcc
11355         if test "$host_cpu" = ia64; then
11356         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11357         # chokes on -Wl,-G. The following line is correct:
11358           shared_flag='-G'
11359         else
11360           if test "$aix_use_runtimelinking" = yes; then
11361             shared_flag='${wl}-G'
11362           else
11363             shared_flag='${wl}-bM:SRE'
11364           fi
11365         fi
11366       fi
11367
11368       export_dynamic_flag_spec='${wl}-bexpall'
11369       # It seems that -bexpall does not export symbols beginning with
11370       # underscore (_), so it is better to generate a list of symbols to export.
11371       always_export_symbols=yes
11372       if test "$aix_use_runtimelinking" = yes; then
11373         # Warning - without using the other runtime loading flags (-brtl),
11374         # -berok will link without error, but may produce a broken library.
11375         allow_undefined_flag='-berok'
11376         # Determine the default libpath from the value encoded in an
11377         # empty executable.
11378         if test x$gcc_no_link = xyes; then
11379   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11380 fi
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h.  */
11383
11384 int
11385 main ()
11386 {
11387
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393
11394 lt_aix_libpath_sed='
11395     /Import File Strings/,/^$/ {
11396         /^0/ {
11397             s/^0  *\(.*\)$/\1/
11398             p
11399         }
11400     }'
11401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 # Check for a 64-bit object if we didn't find anything.
11403 if test -z "$aix_libpath"; then
11404   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 fi
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext \
11408     conftest$ac_exeext conftest.$ac_ext
11409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11410
11411         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11412         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"
11413       else
11414         if test "$host_cpu" = ia64; then
11415           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11416           allow_undefined_flag="-z nodefs"
11417           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"
11418         else
11419          # Determine the default libpath from the value encoded in an
11420          # empty executable.
11421          if test x$gcc_no_link = xyes; then
11422   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11423 fi
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h.  */
11426
11427 int
11428 main ()
11429 {
11430
11431   ;
11432   return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436
11437 lt_aix_libpath_sed='
11438     /Import File Strings/,/^$/ {
11439         /^0/ {
11440             s/^0  *\(.*\)$/\1/
11441             p
11442         }
11443     }'
11444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11445 # Check for a 64-bit object if we didn't find anything.
11446 if test -z "$aix_libpath"; then
11447   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11448 fi
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451     conftest$ac_exeext conftest.$ac_ext
11452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11453
11454          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11455           # Warning - without using the other run time loading flags,
11456           # -berok will link without error, but may produce a broken library.
11457           no_undefined_flag=' ${wl}-bernotok'
11458           allow_undefined_flag=' ${wl}-berok'
11459           if test "$with_gnu_ld" = yes; then
11460             # We only use this code for GNU lds that support --whole-archive.
11461             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11462           else
11463             # Exported symbols can be pulled into shared objects from archives
11464             whole_archive_flag_spec='$convenience'
11465           fi
11466           archive_cmds_need_lc=yes
11467           # This is similar to how AIX traditionally builds its shared libraries.
11468           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'
11469         fi
11470       fi
11471       ;;
11472
11473     amigaos*)
11474       case $host_cpu in
11475       powerpc)
11476             # see comment about AmigaOS4 .so support
11477             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11478             archive_expsym_cmds=''
11479         ;;
11480       m68k)
11481             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)'
11482             hardcode_libdir_flag_spec='-L$libdir'
11483             hardcode_minus_L=yes
11484         ;;
11485       esac
11486       ;;
11487
11488     bsdi[45]*)
11489       export_dynamic_flag_spec=-rdynamic
11490       ;;
11491
11492     cygwin* | mingw* | pw32* | cegcc*)
11493       # When not using gcc, we currently assume that we are using
11494       # Microsoft Visual C++.
11495       # hardcode_libdir_flag_spec is actually meaningless, as there is
11496       # no search path for DLLs.
11497       hardcode_libdir_flag_spec=' '
11498       allow_undefined_flag=unsupported
11499       # Tell ltmain to make .lib files, not .a files.
11500       libext=lib
11501       # Tell ltmain to make .dll files, not .so files.
11502       shrext_cmds=".dll"
11503       # FIXME: Setting linknames here is a bad hack.
11504       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11505       # The linker will automatically build a .lib file if we build a DLL.
11506       old_archive_from_new_cmds='true'
11507       # FIXME: Should let the user specify the lib program.
11508       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11509       fix_srcfile_path='`cygpath -w "$srcfile"`'
11510       enable_shared_with_static_runtimes=yes
11511       ;;
11512
11513     darwin* | rhapsody*)
11514
11515
11516   archive_cmds_need_lc=no
11517   hardcode_direct=no
11518   hardcode_automatic=yes
11519   hardcode_shlibpath_var=unsupported
11520   if test "$lt_cv_ld_force_load" = "yes"; then
11521     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\"`'
11522   else
11523     whole_archive_flag_spec=''
11524   fi
11525   link_all_deplibs=yes
11526   allow_undefined_flag="$_lt_dar_allow_undefined"
11527   case $cc_basename in
11528      ifort*) _lt_dar_can_shared=yes ;;
11529      *) _lt_dar_can_shared=$GCC ;;
11530   esac
11531   if test "$_lt_dar_can_shared" = "yes"; then
11532     output_verbose_link_cmd=func_echo_all
11533     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11534     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11535     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}"
11536     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}"
11537
11538   else
11539   ld_shlibs=no
11540   fi
11541
11542       ;;
11543
11544     dgux*)
11545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11546       hardcode_libdir_flag_spec='-L$libdir'
11547       hardcode_shlibpath_var=no
11548       ;;
11549
11550     freebsd1*)
11551       ld_shlibs=no
11552       ;;
11553
11554     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11555     # support.  Future versions do this automatically, but an explicit c++rt0.o
11556     # does not break anything, and helps significantly (at the cost of a little
11557     # extra space).
11558     freebsd2.2*)
11559       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11560       hardcode_libdir_flag_spec='-R$libdir'
11561       hardcode_direct=yes
11562       hardcode_shlibpath_var=no
11563       ;;
11564
11565     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11566     freebsd2*)
11567       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11568       hardcode_direct=yes
11569       hardcode_minus_L=yes
11570       hardcode_shlibpath_var=no
11571       ;;
11572
11573     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11574     freebsd* | dragonfly*)
11575       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11576       hardcode_libdir_flag_spec='-R$libdir'
11577       hardcode_direct=yes
11578       hardcode_shlibpath_var=no
11579       ;;
11580
11581     hpux9*)
11582       if test "$GCC" = yes; then
11583         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'
11584       else
11585         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'
11586       fi
11587       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11588       hardcode_libdir_separator=:
11589       hardcode_direct=yes
11590
11591       # hardcode_minus_L: Not really in the search PATH,
11592       # but as the default location of the library.
11593       hardcode_minus_L=yes
11594       export_dynamic_flag_spec='${wl}-E'
11595       ;;
11596
11597     hpux10*)
11598       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11599         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11600       else
11601         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11602       fi
11603       if test "$with_gnu_ld" = no; then
11604         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11605         hardcode_libdir_flag_spec_ld='+b $libdir'
11606         hardcode_libdir_separator=:
11607         hardcode_direct=yes
11608         hardcode_direct_absolute=yes
11609         export_dynamic_flag_spec='${wl}-E'
11610         # hardcode_minus_L: Not really in the search PATH,
11611         # but as the default location of the library.
11612         hardcode_minus_L=yes
11613       fi
11614       ;;
11615
11616     hpux11*)
11617       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11618         case $host_cpu in
11619         hppa*64*)
11620           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11621           ;;
11622         ia64*)
11623           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11624           ;;
11625         *)
11626           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11627           ;;
11628         esac
11629       else
11630         case $host_cpu in
11631         hppa*64*)
11632           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11633           ;;
11634         ia64*)
11635           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11636           ;;
11637         *)
11638
11639           # Older versions of the 11.00 compiler do not understand -b yet
11640           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11641           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11642 $as_echo_n "checking if $CC understands -b... " >&6; }
11643 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   lt_cv_prog_compiler__b=no
11647    save_LDFLAGS="$LDFLAGS"
11648    LDFLAGS="$LDFLAGS -b"
11649    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11650    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11651      # The linker can only warn and ignore the option if not recognized
11652      # So say no if there are warnings
11653      if test -s conftest.err; then
11654        # Append any errors to the config.log.
11655        cat conftest.err 1>&5
11656        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11657        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11658        if diff conftest.exp conftest.er2 >/dev/null; then
11659          lt_cv_prog_compiler__b=yes
11660        fi
11661      else
11662        lt_cv_prog_compiler__b=yes
11663      fi
11664    fi
11665    $RM -r conftest*
11666    LDFLAGS="$save_LDFLAGS"
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11670 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11671
11672 if test x"$lt_cv_prog_compiler__b" = xyes; then
11673     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11674 else
11675     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11676 fi
11677
11678           ;;
11679         esac
11680       fi
11681       if test "$with_gnu_ld" = no; then
11682         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11683         hardcode_libdir_separator=:
11684
11685         case $host_cpu in
11686         hppa*64*|ia64*)
11687           hardcode_direct=no
11688           hardcode_shlibpath_var=no
11689           ;;
11690         *)
11691           hardcode_direct=yes
11692           hardcode_direct_absolute=yes
11693           export_dynamic_flag_spec='${wl}-E'
11694
11695           # hardcode_minus_L: Not really in the search PATH,
11696           # but as the default location of the library.
11697           hardcode_minus_L=yes
11698           ;;
11699         esac
11700       fi
11701       ;;
11702
11703     irix5* | irix6* | nonstopux*)
11704       if test "$GCC" = yes; then
11705         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'
11706         # Try to use the -exported_symbol ld option, if it does not
11707         # work, assume that -exports_file does not work either and
11708         # implicitly export all symbols.
11709         save_LDFLAGS="$LDFLAGS"
11710         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11711         if test x$gcc_no_link = xyes; then
11712   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11713 fi
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h.  */
11716 int foo(void) {}
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719   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'
11720
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext \
11723     conftest$ac_exeext conftest.$ac_ext
11724         LDFLAGS="$save_LDFLAGS"
11725       else
11726         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'
11727         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'
11728       fi
11729       archive_cmds_need_lc='no'
11730       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11731       hardcode_libdir_separator=:
11732       inherit_rpath=yes
11733       link_all_deplibs=yes
11734       ;;
11735
11736     netbsd*)
11737       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11738         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11739       else
11740         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11741       fi
11742       hardcode_libdir_flag_spec='-R$libdir'
11743       hardcode_direct=yes
11744       hardcode_shlibpath_var=no
11745       ;;
11746
11747     newsos6)
11748       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11749       hardcode_direct=yes
11750       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11751       hardcode_libdir_separator=:
11752       hardcode_shlibpath_var=no
11753       ;;
11754
11755     *nto* | *qnx*)
11756       ;;
11757
11758     openbsd*)
11759       if test -f /usr/libexec/ld.so; then
11760         hardcode_direct=yes
11761         hardcode_shlibpath_var=no
11762         hardcode_direct_absolute=yes
11763         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11764           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11765           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11766           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11767           export_dynamic_flag_spec='${wl}-E'
11768         else
11769           case $host_os in
11770            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11771              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11772              hardcode_libdir_flag_spec='-R$libdir'
11773              ;;
11774            *)
11775              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11776              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11777              ;;
11778           esac
11779         fi
11780       else
11781         ld_shlibs=no
11782       fi
11783       ;;
11784
11785     os2*)
11786       hardcode_libdir_flag_spec='-L$libdir'
11787       hardcode_minus_L=yes
11788       allow_undefined_flag=unsupported
11789       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'
11790       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11791       ;;
11792
11793     osf3*)
11794       if test "$GCC" = yes; then
11795         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11796         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'
11797       else
11798         allow_undefined_flag=' -expect_unresolved \*'
11799         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'
11800       fi
11801       archive_cmds_need_lc='no'
11802       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11803       hardcode_libdir_separator=:
11804       ;;
11805
11806     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11807       if test "$GCC" = yes; then
11808         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11809         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'
11810         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11811       else
11812         allow_undefined_flag=' -expect_unresolved \*'
11813         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'
11814         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~
11815         $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'
11816
11817         # Both c and cxx compiler support -rpath directly
11818         hardcode_libdir_flag_spec='-rpath $libdir'
11819       fi
11820       archive_cmds_need_lc='no'
11821       hardcode_libdir_separator=:
11822       ;;
11823
11824     solaris*)
11825       no_undefined_flag=' -z defs'
11826       if test "$GCC" = yes; then
11827         wlarc='${wl}'
11828         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11830           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11831       else
11832         case `$CC -V 2>&1` in
11833         *"Compilers 5.0"*)
11834           wlarc=''
11835           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11836           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11837           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11838           ;;
11839         *)
11840           wlarc='${wl}'
11841           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11842           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11843           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11844           ;;
11845         esac
11846       fi
11847       hardcode_libdir_flag_spec='-R$libdir'
11848       hardcode_shlibpath_var=no
11849       case $host_os in
11850       solaris2.[0-5] | solaris2.[0-5].*) ;;
11851       *)
11852         # The compiler driver will combine and reorder linker options,
11853         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11854         # but is careful enough not to reorder.
11855         # Supported since Solaris 2.6 (maybe 2.5.1?)
11856         if test "$GCC" = yes; then
11857           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11858         else
11859           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11860         fi
11861         ;;
11862       esac
11863       link_all_deplibs=yes
11864       ;;
11865
11866     sunos4*)
11867       if test "x$host_vendor" = xsequent; then
11868         # Use $CC to link under sequent, because it throws in some extra .o
11869         # files that make .init and .fini sections work.
11870         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11871       else
11872         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11873       fi
11874       hardcode_libdir_flag_spec='-L$libdir'
11875       hardcode_direct=yes
11876       hardcode_minus_L=yes
11877       hardcode_shlibpath_var=no
11878       ;;
11879
11880     sysv4)
11881       case $host_vendor in
11882         sni)
11883           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11884           hardcode_direct=yes # is this really true???
11885         ;;
11886         siemens)
11887           ## LD is ld it makes a PLAMLIB
11888           ## CC just makes a GrossModule.
11889           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11890           reload_cmds='$CC -r -o $output$reload_objs'
11891           hardcode_direct=no
11892         ;;
11893         motorola)
11894           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11896         ;;
11897       esac
11898       runpath_var='LD_RUN_PATH'
11899       hardcode_shlibpath_var=no
11900       ;;
11901
11902     sysv4.3*)
11903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904       hardcode_shlibpath_var=no
11905       export_dynamic_flag_spec='-Bexport'
11906       ;;
11907
11908     sysv4*MP*)
11909       if test -d /usr/nec; then
11910         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11911         hardcode_shlibpath_var=no
11912         runpath_var=LD_RUN_PATH
11913         hardcode_runpath_var=yes
11914         ld_shlibs=yes
11915       fi
11916       ;;
11917
11918     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11919       no_undefined_flag='${wl}-z,text'
11920       archive_cmds_need_lc=no
11921       hardcode_shlibpath_var=no
11922       runpath_var='LD_RUN_PATH'
11923
11924       if test "$GCC" = yes; then
11925         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927       else
11928         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930       fi
11931       ;;
11932
11933     sysv5* | sco3.2v5* | sco5v6*)
11934       # Note: We can NOT use -z defs as we might desire, because we do not
11935       # link with -lc, and that would cause any symbols used from libc to
11936       # always be unresolved, which means just about no library would
11937       # ever link correctly.  If we're not using GNU ld we use -z text
11938       # though, which does catch some bad symbols but isn't as heavy-handed
11939       # as -z defs.
11940       no_undefined_flag='${wl}-z,text'
11941       allow_undefined_flag='${wl}-z,nodefs'
11942       archive_cmds_need_lc=no
11943       hardcode_shlibpath_var=no
11944       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11945       hardcode_libdir_separator=':'
11946       link_all_deplibs=yes
11947       export_dynamic_flag_spec='${wl}-Bexport'
11948       runpath_var='LD_RUN_PATH'
11949
11950       if test "$GCC" = yes; then
11951         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953       else
11954         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956       fi
11957       ;;
11958
11959     uts4*)
11960       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11961       hardcode_libdir_flag_spec='-L$libdir'
11962       hardcode_shlibpath_var=no
11963       ;;
11964
11965     *)
11966       ld_shlibs=no
11967       ;;
11968     esac
11969
11970     if test x$host_vendor = xsni; then
11971       case $host in
11972       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11973         export_dynamic_flag_spec='${wl}-Blargedynsym'
11974         ;;
11975       esac
11976     fi
11977   fi
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11980 $as_echo "$ld_shlibs" >&6; }
11981 test "$ld_shlibs" = no && can_build_shared=no
11982
11983 with_gnu_ld=$with_gnu_ld
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 #
12000 # Do we need to explicitly link libc?
12001 #
12002 case "x$archive_cmds_need_lc" in
12003 x|xyes)
12004   # Assume -lc should be added
12005   archive_cmds_need_lc=yes
12006
12007   if test "$enable_shared" = yes && test "$GCC" = yes; then
12008     case $archive_cmds in
12009     *'~'*)
12010       # FIXME: we may have to deal with multi-command sequences.
12011       ;;
12012     '$CC '*)
12013       # Test whether the compiler implicitly links with -lc since on some
12014       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12015       # to ld, don't add -lc before -lgcc.
12016       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12017 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12018 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12019   $as_echo_n "(cached) " >&6
12020 else
12021   $RM conftest*
12022         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12023
12024         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12025   (eval $ac_compile) 2>&5
12026   ac_status=$?
12027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028   test $ac_status = 0; } 2>conftest.err; then
12029           soname=conftest
12030           lib=conftest
12031           libobjs=conftest.$ac_objext
12032           deplibs=
12033           wl=$lt_prog_compiler_wl
12034           pic_flag=$lt_prog_compiler_pic
12035           compiler_flags=-v
12036           linker_flags=-v
12037           verstring=
12038           output_objdir=.
12039           libname=conftest
12040           lt_save_allow_undefined_flag=$allow_undefined_flag
12041           allow_undefined_flag=
12042           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12043   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12044   ac_status=$?
12045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046   test $ac_status = 0; }
12047           then
12048             lt_cv_archive_cmds_need_lc=no
12049           else
12050             lt_cv_archive_cmds_need_lc=yes
12051           fi
12052           allow_undefined_flag=$lt_save_allow_undefined_flag
12053         else
12054           cat conftest.err 1>&5
12055         fi
12056         $RM conftest*
12057
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12060 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12061       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12062       ;;
12063     esac
12064   fi
12065   ;;
12066 esac
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
12220
12221
12222
12223
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12225 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12226
12227 if test "$GCC" = yes; then
12228   case $host_os in
12229     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12230     *) lt_awk_arg="/^libraries:/" ;;
12231   esac
12232   case $host_os in
12233     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12234     *) lt_sed_strip_eq="s,=/,/,g" ;;
12235   esac
12236   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12237   case $lt_search_path_spec in
12238   *\;*)
12239     # if the path contains ";" then we assume it to be the separator
12240     # otherwise default to the standard path separator (i.e. ":") - it is
12241     # assumed that no part of a normal pathname contains ";" but that should
12242     # okay in the real world where ";" in dirpaths is itself problematic.
12243     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12244     ;;
12245   *)
12246     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12247     ;;
12248   esac
12249   # Ok, now we have the path, separated by spaces, we can step through it
12250   # and add multilib dir if necessary.
12251   lt_tmp_lt_search_path_spec=
12252   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12253   for lt_sys_path in $lt_search_path_spec; do
12254     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12255       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12256     else
12257       test -d "$lt_sys_path" && \
12258         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12259     fi
12260   done
12261   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12262 BEGIN {RS=" "; FS="/|\n";} {
12263   lt_foo="";
12264   lt_count=0;
12265   for (lt_i = NF; lt_i > 0; lt_i--) {
12266     if ($lt_i != "" && $lt_i != ".") {
12267       if ($lt_i == "..") {
12268         lt_count++;
12269       } else {
12270         if (lt_count == 0) {
12271           lt_foo="/" $lt_i lt_foo;
12272         } else {
12273           lt_count--;
12274         }
12275       }
12276     }
12277   }
12278   if (lt_foo != "") { lt_freq[lt_foo]++; }
12279   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12280 }'`
12281   # AWK program above erroneously prepends '/' to C:/dos/paths
12282   # for these hosts.
12283   case $host_os in
12284     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12285       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12286   esac
12287   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12288 else
12289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12290 fi
12291 library_names_spec=
12292 libname_spec='lib$name'
12293 soname_spec=
12294 shrext_cmds=".so"
12295 postinstall_cmds=
12296 postuninstall_cmds=
12297 finish_cmds=
12298 finish_eval=
12299 shlibpath_var=
12300 shlibpath_overrides_runpath=unknown
12301 version_type=none
12302 dynamic_linker="$host_os ld.so"
12303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12304 need_lib_prefix=unknown
12305 hardcode_into_libs=no
12306
12307 # when you set need_version to no, make sure it does not cause -set_version
12308 # flags to be left without arguments
12309 need_version=unknown
12310
12311 case $host_os in
12312 aix3*)
12313   version_type=linux
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12315   shlibpath_var=LIBPATH
12316
12317   # AIX 3 has no versioning support, so we append a major version to the name.
12318   soname_spec='${libname}${release}${shared_ext}$major'
12319   ;;
12320
12321 aix[4-9]*)
12322   version_type=linux
12323   need_lib_prefix=no
12324   need_version=no
12325   hardcode_into_libs=yes
12326   if test "$host_cpu" = ia64; then
12327     # AIX 5 supports IA64
12328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12329     shlibpath_var=LD_LIBRARY_PATH
12330   else
12331     # With GCC up to 2.95.x, collect2 would create an import file
12332     # for dependence libraries.  The import file would start with
12333     # the line `#! .'.  This would cause the generated library to
12334     # depend on `.', always an invalid library.  This was fixed in
12335     # development snapshots of GCC prior to 3.0.
12336     case $host_os in
12337       aix4 | aix4.[01] | aix4.[01].*)
12338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12339            echo ' yes '
12340            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12341         :
12342       else
12343         can_build_shared=no
12344       fi
12345       ;;
12346     esac
12347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12348     # soname into executable. Probably we can add versioning support to
12349     # collect2, so additional links can be useful in future.
12350     if test "$aix_use_runtimelinking" = yes; then
12351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12352       # instead of lib<name>.a to let people know that these are not
12353       # typical AIX shared libraries.
12354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12355     else
12356       # We preserve .a as extension for shared libraries through AIX4.2
12357       # and later when we are not doing run time linking.
12358       library_names_spec='${libname}${release}.a $libname.a'
12359       soname_spec='${libname}${release}${shared_ext}$major'
12360     fi
12361     shlibpath_var=LIBPATH
12362   fi
12363   ;;
12364
12365 amigaos*)
12366   case $host_cpu in
12367   powerpc)
12368     # Since July 2007 AmigaOS4 officially supports .so libraries.
12369     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371     ;;
12372   m68k)
12373     library_names_spec='$libname.ixlibrary $libname.a'
12374     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12375     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'
12376     ;;
12377   esac
12378   ;;
12379
12380 beos*)
12381   library_names_spec='${libname}${shared_ext}'
12382   dynamic_linker="$host_os ld.so"
12383   shlibpath_var=LIBRARY_PATH
12384   ;;
12385
12386 bsdi[45]*)
12387   version_type=linux
12388   need_version=no
12389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390   soname_spec='${libname}${release}${shared_ext}$major'
12391   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12392   shlibpath_var=LD_LIBRARY_PATH
12393   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12394   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12395   # the default ld.so.conf also contains /usr/contrib/lib and
12396   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12397   # libtool to hard-code these into programs
12398   ;;
12399
12400 cygwin* | mingw* | pw32* | cegcc*)
12401   version_type=windows
12402   shrext_cmds=".dll"
12403   need_version=no
12404   need_lib_prefix=no
12405
12406   case $GCC,$host_os in
12407   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12408     library_names_spec='$libname.dll.a'
12409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410     postinstall_cmds='base_file=`basename \${file}`~
12411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12412       dldir=$destdir/`dirname \$dlpath`~
12413       test -d \$dldir || mkdir -p \$dldir~
12414       $install_prog $dir/$dlname \$dldir/$dlname~
12415       chmod a+x \$dldir/$dlname~
12416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12418       fi'
12419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420       dlpath=$dir/\$dldll~
12421        $RM \$dlpath'
12422     shlibpath_overrides_runpath=yes
12423
12424     case $host_os in
12425     cygwin*)
12426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12427       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12428
12429       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12430       ;;
12431     mingw* | cegcc*)
12432       # MinGW DLLs use traditional 'lib' prefix
12433       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12434       ;;
12435     pw32*)
12436       # pw32 DLLs use 'pw' prefix rather than 'lib'
12437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12438       ;;
12439     esac
12440     ;;
12441
12442   *)
12443     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12444     ;;
12445   esac
12446   dynamic_linker='Win32 ld.exe'
12447   # FIXME: first we should search . and the directory the executable is in
12448   shlibpath_var=PATH
12449   ;;
12450
12451 darwin* | rhapsody*)
12452   dynamic_linker="$host_os dyld"
12453   version_type=darwin
12454   need_lib_prefix=no
12455   need_version=no
12456   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12457   soname_spec='${libname}${release}${major}$shared_ext'
12458   shlibpath_overrides_runpath=yes
12459   shlibpath_var=DYLD_LIBRARY_PATH
12460   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12461
12462   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12463   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12464   ;;
12465
12466 dgux*)
12467   version_type=linux
12468   need_lib_prefix=no
12469   need_version=no
12470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12471   soname_spec='${libname}${release}${shared_ext}$major'
12472   shlibpath_var=LD_LIBRARY_PATH
12473   ;;
12474
12475 freebsd1*)
12476   dynamic_linker=no
12477   ;;
12478
12479 freebsd* | dragonfly*)
12480   # DragonFly does not have aout.  When/if they implement a new
12481   # versioning mechanism, adjust this.
12482   if test -x /usr/bin/objformat; then
12483     objformat=`/usr/bin/objformat`
12484   else
12485     case $host_os in
12486     freebsd[123]*) objformat=aout ;;
12487     *) objformat=elf ;;
12488     esac
12489   fi
12490   version_type=freebsd-$objformat
12491   case $version_type in
12492     freebsd-elf*)
12493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12494       need_version=no
12495       need_lib_prefix=no
12496       ;;
12497     freebsd-*)
12498       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12499       need_version=yes
12500       ;;
12501   esac
12502   shlibpath_var=LD_LIBRARY_PATH
12503   case $host_os in
12504   freebsd2*)
12505     shlibpath_overrides_runpath=yes
12506     ;;
12507   freebsd3.[01]* | freebsdelf3.[01]*)
12508     shlibpath_overrides_runpath=yes
12509     hardcode_into_libs=yes
12510     ;;
12511   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12512   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12513     shlibpath_overrides_runpath=no
12514     hardcode_into_libs=yes
12515     ;;
12516   *) # from 4.6 on, and DragonFly
12517     shlibpath_overrides_runpath=yes
12518     hardcode_into_libs=yes
12519     ;;
12520   esac
12521   ;;
12522
12523 gnu*)
12524   version_type=linux
12525   need_lib_prefix=no
12526   need_version=no
12527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12528   soname_spec='${libname}${release}${shared_ext}$major'
12529   shlibpath_var=LD_LIBRARY_PATH
12530   hardcode_into_libs=yes
12531   ;;
12532
12533 haiku*)
12534   version_type=linux
12535   need_lib_prefix=no
12536   need_version=no
12537   dynamic_linker="$host_os runtime_loader"
12538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12539   soname_spec='${libname}${release}${shared_ext}$major'
12540   shlibpath_var=LIBRARY_PATH
12541   shlibpath_overrides_runpath=yes
12542   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12543   hardcode_into_libs=yes
12544   ;;
12545
12546 hpux9* | hpux10* | hpux11*)
12547   # Give a soname corresponding to the major version so that dld.sl refuses to
12548   # link against other versions.
12549   version_type=sunos
12550   need_lib_prefix=no
12551   need_version=no
12552   case $host_cpu in
12553   ia64*)
12554     shrext_cmds='.so'
12555     hardcode_into_libs=yes
12556     dynamic_linker="$host_os dld.so"
12557     shlibpath_var=LD_LIBRARY_PATH
12558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560     soname_spec='${libname}${release}${shared_ext}$major'
12561     if test "X$HPUX_IA64_MODE" = X32; then
12562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12563     else
12564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12565     fi
12566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12567     ;;
12568   hppa*64*)
12569     shrext_cmds='.sl'
12570     hardcode_into_libs=yes
12571     dynamic_linker="$host_os dld.sl"
12572     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12575     soname_spec='${libname}${release}${shared_ext}$major'
12576     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12578     ;;
12579   *)
12580     shrext_cmds='.sl'
12581     dynamic_linker="$host_os dld.sl"
12582     shlibpath_var=SHLIB_PATH
12583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12585     soname_spec='${libname}${release}${shared_ext}$major'
12586     ;;
12587   esac
12588   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12589   postinstall_cmds='chmod 555 $lib'
12590   # or fails outright, so override atomically:
12591   install_override_mode=555
12592   ;;
12593
12594 interix[3-9]*)
12595   version_type=linux
12596   need_lib_prefix=no
12597   need_version=no
12598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12599   soname_spec='${libname}${release}${shared_ext}$major'
12600   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12601   shlibpath_var=LD_LIBRARY_PATH
12602   shlibpath_overrides_runpath=no
12603   hardcode_into_libs=yes
12604   ;;
12605
12606 irix5* | irix6* | nonstopux*)
12607   case $host_os in
12608     nonstopux*) version_type=nonstopux ;;
12609     *)
12610         if test "$lt_cv_prog_gnu_ld" = yes; then
12611                 version_type=linux
12612         else
12613                 version_type=irix
12614         fi ;;
12615   esac
12616   need_lib_prefix=no
12617   need_version=no
12618   soname_spec='${libname}${release}${shared_ext}$major'
12619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12620   case $host_os in
12621   irix5* | nonstopux*)
12622     libsuff= shlibsuff=
12623     ;;
12624   *)
12625     case $LD in # libtool.m4 will add one of these switches to LD
12626     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12627       libsuff= shlibsuff= libmagic=32-bit;;
12628     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12629       libsuff=32 shlibsuff=N32 libmagic=N32;;
12630     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12631       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12632     *) libsuff= shlibsuff= libmagic=never-match;;
12633     esac
12634     ;;
12635   esac
12636   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12637   shlibpath_overrides_runpath=no
12638   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12639   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12640   hardcode_into_libs=yes
12641   ;;
12642
12643 # No shared lib support for Linux oldld, aout, or coff.
12644 linux*oldld* | linux*aout* | linux*coff*)
12645   dynamic_linker=no
12646   ;;
12647
12648 # This must be Linux ELF.
12649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12650   version_type=linux
12651   need_lib_prefix=no
12652   need_version=no
12653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654   soname_spec='${libname}${release}${shared_ext}$major'
12655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12656   shlibpath_var=LD_LIBRARY_PATH
12657   shlibpath_overrides_runpath=no
12658
12659   # Some binutils ld are patched to set DT_RUNPATH
12660   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663   lt_cv_shlibpath_overrides_runpath=no
12664     save_LDFLAGS=$LDFLAGS
12665     save_libdir=$libdir
12666     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12667          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12668     if test x$gcc_no_link = xyes; then
12669   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12670 fi
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h.  */
12673
12674 int
12675 main ()
12676 {
12677
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 if ac_fn_c_try_link "$LINENO"; then :
12683   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12684   lt_cv_shlibpath_overrides_runpath=yes
12685 fi
12686 fi
12687 rm -f core conftest.err conftest.$ac_objext \
12688     conftest$ac_exeext conftest.$ac_ext
12689     LDFLAGS=$save_LDFLAGS
12690     libdir=$save_libdir
12691
12692 fi
12693
12694   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12695
12696   # This implies no fast_install, which is unacceptable.
12697   # Some rework will be needed to allow for fast_install
12698   # before this can be enabled.
12699   hardcode_into_libs=yes
12700
12701   # Append ld.so.conf contents to the search path
12702   if test -f /etc/ld.so.conf; then
12703     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' ' '`
12704     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12705   fi
12706
12707   # We used to test for /lib/ld.so.1 and disable shared libraries on
12708   # powerpc, because MkLinux only supported shared libraries with the
12709   # GNU dynamic linker.  Since this was broken with cross compilers,
12710   # most powerpc-linux boxes support dynamic linking these days and
12711   # people can always --disable-shared, the test was removed, and we
12712   # assume the GNU/Linux dynamic linker is in use.
12713   dynamic_linker='GNU/Linux ld.so'
12714   ;;
12715
12716 netbsd*)
12717   version_type=sunos
12718   need_lib_prefix=no
12719   need_version=no
12720   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12722     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12723     dynamic_linker='NetBSD (a.out) ld.so'
12724   else
12725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12726     soname_spec='${libname}${release}${shared_ext}$major'
12727     dynamic_linker='NetBSD ld.elf_so'
12728   fi
12729   shlibpath_var=LD_LIBRARY_PATH
12730   shlibpath_overrides_runpath=yes
12731   hardcode_into_libs=yes
12732   ;;
12733
12734 newsos6)
12735   version_type=linux
12736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737   shlibpath_var=LD_LIBRARY_PATH
12738   shlibpath_overrides_runpath=yes
12739   ;;
12740
12741 *nto* | *qnx*)
12742   version_type=qnx
12743   need_lib_prefix=no
12744   need_version=no
12745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746   soname_spec='${libname}${release}${shared_ext}$major'
12747   shlibpath_var=LD_LIBRARY_PATH
12748   shlibpath_overrides_runpath=no
12749   hardcode_into_libs=yes
12750   dynamic_linker='ldqnx.so'
12751   ;;
12752
12753 openbsd*)
12754   version_type=sunos
12755   sys_lib_dlsearch_path_spec="/usr/lib"
12756   need_lib_prefix=no
12757   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12758   case $host_os in
12759     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12760     *)                          need_version=no  ;;
12761   esac
12762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12763   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12764   shlibpath_var=LD_LIBRARY_PATH
12765   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12766     case $host_os in
12767       openbsd2.[89] | openbsd2.[89].*)
12768         shlibpath_overrides_runpath=no
12769         ;;
12770       *)
12771         shlibpath_overrides_runpath=yes
12772         ;;
12773       esac
12774   else
12775     shlibpath_overrides_runpath=yes
12776   fi
12777   ;;
12778
12779 os2*)
12780   libname_spec='$name'
12781   shrext_cmds=".dll"
12782   need_lib_prefix=no
12783   library_names_spec='$libname${shared_ext} $libname.a'
12784   dynamic_linker='OS/2 ld.exe'
12785   shlibpath_var=LIBPATH
12786   ;;
12787
12788 osf3* | osf4* | osf5*)
12789   version_type=osf
12790   need_lib_prefix=no
12791   need_version=no
12792   soname_spec='${libname}${release}${shared_ext}$major'
12793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794   shlibpath_var=LD_LIBRARY_PATH
12795   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12796   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12797   ;;
12798
12799 rdos*)
12800   dynamic_linker=no
12801   ;;
12802
12803 solaris*)
12804   version_type=linux
12805   need_lib_prefix=no
12806   need_version=no
12807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12808   soname_spec='${libname}${release}${shared_ext}$major'
12809   shlibpath_var=LD_LIBRARY_PATH
12810   shlibpath_overrides_runpath=yes
12811   hardcode_into_libs=yes
12812   # ldd complains unless libraries are executable
12813   postinstall_cmds='chmod +x $lib'
12814   ;;
12815
12816 sunos4*)
12817   version_type=sunos
12818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12819   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12820   shlibpath_var=LD_LIBRARY_PATH
12821   shlibpath_overrides_runpath=yes
12822   if test "$with_gnu_ld" = yes; then
12823     need_lib_prefix=no
12824   fi
12825   need_version=yes
12826   ;;
12827
12828 sysv4 | sysv4.3*)
12829   version_type=linux
12830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831   soname_spec='${libname}${release}${shared_ext}$major'
12832   shlibpath_var=LD_LIBRARY_PATH
12833   case $host_vendor in
12834     sni)
12835       shlibpath_overrides_runpath=no
12836       need_lib_prefix=no
12837       runpath_var=LD_RUN_PATH
12838       ;;
12839     siemens)
12840       need_lib_prefix=no
12841       ;;
12842     motorola)
12843       need_lib_prefix=no
12844       need_version=no
12845       shlibpath_overrides_runpath=no
12846       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12847       ;;
12848   esac
12849   ;;
12850
12851 sysv4*MP*)
12852   if test -d /usr/nec ;then
12853     version_type=linux
12854     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12855     soname_spec='$libname${shared_ext}.$major'
12856     shlibpath_var=LD_LIBRARY_PATH
12857   fi
12858   ;;
12859
12860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12861   version_type=freebsd-elf
12862   need_lib_prefix=no
12863   need_version=no
12864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12865   soname_spec='${libname}${release}${shared_ext}$major'
12866   shlibpath_var=LD_LIBRARY_PATH
12867   shlibpath_overrides_runpath=yes
12868   hardcode_into_libs=yes
12869   if test "$with_gnu_ld" = yes; then
12870     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12871   else
12872     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12873     case $host_os in
12874       sco3.2v5*)
12875         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12876         ;;
12877     esac
12878   fi
12879   sys_lib_dlsearch_path_spec='/usr/lib'
12880   ;;
12881
12882 tpf*)
12883   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12884   version_type=linux
12885   need_lib_prefix=no
12886   need_version=no
12887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888   shlibpath_var=LD_LIBRARY_PATH
12889   shlibpath_overrides_runpath=no
12890   hardcode_into_libs=yes
12891   ;;
12892
12893 uts4*)
12894   version_type=linux
12895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896   soname_spec='${libname}${release}${shared_ext}$major'
12897   shlibpath_var=LD_LIBRARY_PATH
12898   ;;
12899
12900 *)
12901   dynamic_linker=no
12902   ;;
12903 esac
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12905 $as_echo "$dynamic_linker" >&6; }
12906 test "$dynamic_linker" = no && can_build_shared=no
12907
12908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12909 if test "$GCC" = yes; then
12910   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12911 fi
12912
12913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12914   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12915 fi
12916 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12917   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12918 fi
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
13003
13004
13005
13006
13007
13008
13009
13010
13011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13012 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13013 hardcode_action=
13014 if test -n "$hardcode_libdir_flag_spec" ||
13015    test -n "$runpath_var" ||
13016    test "X$hardcode_automatic" = "Xyes" ; then
13017
13018   # We can hardcode non-existent directories.
13019   if test "$hardcode_direct" != no &&
13020      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13021      # have to relink, otherwise we might link with an installed library
13022      # when we should be linking with a yet-to-be-installed one
13023      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13024      test "$hardcode_minus_L" != no; then
13025     # Linking always hardcodes the temporary library directory.
13026     hardcode_action=relink
13027   else
13028     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13029     hardcode_action=immediate
13030   fi
13031 else
13032   # We cannot hardcode anything, or else we can only hardcode existing
13033   # directories.
13034   hardcode_action=unsupported
13035 fi
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13037 $as_echo "$hardcode_action" >&6; }
13038
13039 if test "$hardcode_action" = relink ||
13040    test "$inherit_rpath" = yes; then
13041   # Fast installation is not supported
13042   enable_fast_install=no
13043 elif test "$shlibpath_overrides_runpath" = yes ||
13044      test "$enable_shared" = no; then
13045   # Fast installation is not necessary
13046   enable_fast_install=needless
13047 fi
13048
13049
13050
13051
13052
13053
13054   if test "x$enable_dlopen" != xyes; then
13055   enable_dlopen=unknown
13056   enable_dlopen_self=unknown
13057   enable_dlopen_self_static=unknown
13058 else
13059   lt_cv_dlopen=no
13060   lt_cv_dlopen_libs=
13061
13062   case $host_os in
13063   beos*)
13064     lt_cv_dlopen="load_add_on"
13065     lt_cv_dlopen_libs=
13066     lt_cv_dlopen_self=yes
13067     ;;
13068
13069   mingw* | pw32* | cegcc*)
13070     lt_cv_dlopen="LoadLibrary"
13071     lt_cv_dlopen_libs=
13072     ;;
13073
13074   cygwin*)
13075     lt_cv_dlopen="dlopen"
13076     lt_cv_dlopen_libs=
13077     ;;
13078
13079   darwin*)
13080   # if libdl is installed we need to link against it
13081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13082 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13083 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-ldl  $LIBS"
13088 if test x$gcc_no_link = xyes; then
13089   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13090 fi
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h.  */
13093
13094 /* Override any GCC internal prototype to avoid an error.
13095    Use char because int might match the return type of a GCC
13096    builtin and then its argument prototype would still apply.  */
13097 #ifdef __cplusplus
13098 extern "C"
13099 #endif
13100 char dlopen ();
13101 int
13102 main ()
13103 {
13104 return dlopen ();
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 if ac_fn_c_try_link "$LINENO"; then :
13110   ac_cv_lib_dl_dlopen=yes
13111 else
13112   ac_cv_lib_dl_dlopen=no
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext \
13115     conftest$ac_exeext conftest.$ac_ext
13116 LIBS=$ac_check_lib_save_LIBS
13117 fi
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13120 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13122 else
13123
13124     lt_cv_dlopen="dyld"
13125     lt_cv_dlopen_libs=
13126     lt_cv_dlopen_self=yes
13127
13128 fi
13129
13130     ;;
13131
13132   *)
13133     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13134 if test "x$ac_cv_func_shl_load" = x""yes; then :
13135   lt_cv_dlopen="shl_load"
13136 else
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13138 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13139 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13140   $as_echo_n "(cached) " >&6
13141 else
13142   ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-ldld  $LIBS"
13144 if test x$gcc_no_link = xyes; then
13145   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13146 fi
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h.  */
13149
13150 /* Override any GCC internal prototype to avoid an error.
13151    Use char because int might match the return type of a GCC
13152    builtin and then its argument prototype would still apply.  */
13153 #ifdef __cplusplus
13154 extern "C"
13155 #endif
13156 char shl_load ();
13157 int
13158 main ()
13159 {
13160 return shl_load ();
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166   ac_cv_lib_dld_shl_load=yes
13167 else
13168   ac_cv_lib_dld_shl_load=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171     conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13175 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13176 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13177   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13178 else
13179   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13180 if test "x$ac_cv_func_dlopen" = x""yes; then :
13181   lt_cv_dlopen="dlopen"
13182 else
13183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-ldl  $LIBS"
13190 if test x$gcc_no_link = xyes; then
13191   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13192 fi
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h.  */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197    Use char because int might match the return type of a GCC
13198    builtin and then its argument prototype would still apply.  */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char dlopen ();
13203 int
13204 main ()
13205 {
13206 return dlopen ();
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212   ac_cv_lib_dl_dlopen=yes
13213 else
13214   ac_cv_lib_dl_dlopen=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217     conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13222 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13223   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13226 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13227 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13228   $as_echo_n "(cached) " >&6
13229 else
13230   ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-lsvld  $LIBS"
13232 if test x$gcc_no_link = xyes; then
13233   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13234 fi
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h.  */
13237
13238 /* Override any GCC internal prototype to avoid an error.
13239    Use char because int might match the return type of a GCC
13240    builtin and then its argument prototype would still apply.  */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char dlopen ();
13245 int
13246 main ()
13247 {
13248 return dlopen ();
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 if ac_fn_c_try_link "$LINENO"; then :
13254   ac_cv_lib_svld_dlopen=yes
13255 else
13256   ac_cv_lib_svld_dlopen=no
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext \
13259     conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13264 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13265   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13266 else
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13270   $as_echo_n "(cached) " >&6
13271 else
13272   ac_check_lib_save_LIBS=$LIBS
13273 LIBS="-ldld  $LIBS"
13274 if test x$gcc_no_link = xyes; then
13275   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13276 fi
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h.  */
13279
13280 /* Override any GCC internal prototype to avoid an error.
13281    Use char because int might match the return type of a GCC
13282    builtin and then its argument prototype would still apply.  */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char dld_link ();
13287 int
13288 main ()
13289 {
13290 return dld_link ();
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296   ac_cv_lib_dld_dld_link=yes
13297 else
13298   ac_cv_lib_dld_dld_link=no
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301     conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13305 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13306 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13307   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13308 fi
13309
13310
13311 fi
13312
13313
13314 fi
13315
13316
13317 fi
13318
13319
13320 fi
13321
13322
13323 fi
13324
13325     ;;
13326   esac
13327
13328   if test "x$lt_cv_dlopen" != xno; then
13329     enable_dlopen=yes
13330   else
13331     enable_dlopen=no
13332   fi
13333
13334   case $lt_cv_dlopen in
13335   dlopen)
13336     save_CPPFLAGS="$CPPFLAGS"
13337     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13338
13339     save_LDFLAGS="$LDFLAGS"
13340     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13341
13342     save_LIBS="$LIBS"
13343     LIBS="$lt_cv_dlopen_libs $LIBS"
13344
13345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13346 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13347 if test "${lt_cv_dlopen_self+set}" = set; then :
13348   $as_echo_n "(cached) " >&6
13349 else
13350           if test "$cross_compiling" = yes; then :
13351   lt_cv_dlopen_self=cross
13352 else
13353   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13354   lt_status=$lt_dlunknown
13355   cat > conftest.$ac_ext <<_LT_EOF
13356 #line 13356 "configure"
13357 #include "confdefs.h"
13358
13359 #if HAVE_DLFCN_H
13360 #include <dlfcn.h>
13361 #endif
13362
13363 #include <stdio.h>
13364
13365 #ifdef RTLD_GLOBAL
13366 #  define LT_DLGLOBAL           RTLD_GLOBAL
13367 #else
13368 #  ifdef DL_GLOBAL
13369 #    define LT_DLGLOBAL         DL_GLOBAL
13370 #  else
13371 #    define LT_DLGLOBAL         0
13372 #  endif
13373 #endif
13374
13375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13376    find out it does not work in some platform. */
13377 #ifndef LT_DLLAZY_OR_NOW
13378 #  ifdef RTLD_LAZY
13379 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13380 #  else
13381 #    ifdef DL_LAZY
13382 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13383 #    else
13384 #      ifdef RTLD_NOW
13385 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13386 #      else
13387 #        ifdef DL_NOW
13388 #          define LT_DLLAZY_OR_NOW      DL_NOW
13389 #        else
13390 #          define LT_DLLAZY_OR_NOW      0
13391 #        endif
13392 #      endif
13393 #    endif
13394 #  endif
13395 #endif
13396
13397 /* When -fvisbility=hidden is used, assume the code has been annotated
13398    correspondingly for the symbols needed.  */
13399 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13400 void fnord () __attribute__((visibility("default")));
13401 #endif
13402
13403 void fnord () { int i=42; }
13404 int main ()
13405 {
13406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13407   int status = $lt_dlunknown;
13408
13409   if (self)
13410     {
13411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13412       else
13413         {
13414           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13415           else puts (dlerror ());
13416         }
13417       /* dlclose (self); */
13418     }
13419   else
13420     puts (dlerror ());
13421
13422   return status;
13423 }
13424 _LT_EOF
13425   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13426   (eval $ac_link) 2>&5
13427   ac_status=$?
13428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13429   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13430     (./conftest; exit; ) >&5 2>/dev/null
13431     lt_status=$?
13432     case x$lt_status in
13433       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13434       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13435       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13436     esac
13437   else :
13438     # compilation failed
13439     lt_cv_dlopen_self=no
13440   fi
13441 fi
13442 rm -fr conftest*
13443
13444
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13447 $as_echo "$lt_cv_dlopen_self" >&6; }
13448
13449     if test "x$lt_cv_dlopen_self" = xyes; then
13450       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13451       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13452 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13453 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456           if test "$cross_compiling" = yes; then :
13457   lt_cv_dlopen_self_static=cross
13458 else
13459   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13460   lt_status=$lt_dlunknown
13461   cat > conftest.$ac_ext <<_LT_EOF
13462 #line 13462 "configure"
13463 #include "confdefs.h"
13464
13465 #if HAVE_DLFCN_H
13466 #include <dlfcn.h>
13467 #endif
13468
13469 #include <stdio.h>
13470
13471 #ifdef RTLD_GLOBAL
13472 #  define LT_DLGLOBAL           RTLD_GLOBAL
13473 #else
13474 #  ifdef DL_GLOBAL
13475 #    define LT_DLGLOBAL         DL_GLOBAL
13476 #  else
13477 #    define LT_DLGLOBAL         0
13478 #  endif
13479 #endif
13480
13481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13482    find out it does not work in some platform. */
13483 #ifndef LT_DLLAZY_OR_NOW
13484 #  ifdef RTLD_LAZY
13485 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13486 #  else
13487 #    ifdef DL_LAZY
13488 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13489 #    else
13490 #      ifdef RTLD_NOW
13491 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13492 #      else
13493 #        ifdef DL_NOW
13494 #          define LT_DLLAZY_OR_NOW      DL_NOW
13495 #        else
13496 #          define LT_DLLAZY_OR_NOW      0
13497 #        endif
13498 #      endif
13499 #    endif
13500 #  endif
13501 #endif
13502
13503 /* When -fvisbility=hidden is used, assume the code has been annotated
13504    correspondingly for the symbols needed.  */
13505 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13506 void fnord () __attribute__((visibility("default")));
13507 #endif
13508
13509 void fnord () { int i=42; }
13510 int main ()
13511 {
13512   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13513   int status = $lt_dlunknown;
13514
13515   if (self)
13516     {
13517       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13518       else
13519         {
13520           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13521           else puts (dlerror ());
13522         }
13523       /* dlclose (self); */
13524     }
13525   else
13526     puts (dlerror ());
13527
13528   return status;
13529 }
13530 _LT_EOF
13531   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13532   (eval $ac_link) 2>&5
13533   ac_status=$?
13534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13536     (./conftest; exit; ) >&5 2>/dev/null
13537     lt_status=$?
13538     case x$lt_status in
13539       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13540       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13541       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13542     esac
13543   else :
13544     # compilation failed
13545     lt_cv_dlopen_self_static=no
13546   fi
13547 fi
13548 rm -fr conftest*
13549
13550
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13553 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13554     fi
13555
13556     CPPFLAGS="$save_CPPFLAGS"
13557     LDFLAGS="$save_LDFLAGS"
13558     LIBS="$save_LIBS"
13559     ;;
13560   esac
13561
13562   case $lt_cv_dlopen_self in
13563   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13564   *) enable_dlopen_self=unknown ;;
13565   esac
13566
13567   case $lt_cv_dlopen_self_static in
13568   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13569   *) enable_dlopen_self_static=unknown ;;
13570   esac
13571 fi
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589 striplib=
13590 old_striplib=
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13592 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13593 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13594   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13595   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13597 $as_echo "yes" >&6; }
13598 else
13599 # FIXME - insert some real tests, host_os isn't really good enough
13600   case $host_os in
13601   darwin*)
13602     if test -n "$STRIP" ; then
13603       striplib="$STRIP -x"
13604       old_striplib="$STRIP -S"
13605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13607     else
13608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610     fi
13611     ;;
13612   *)
13613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13615     ;;
13616   esac
13617 fi
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630   # Report which library types will actually be built
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13632 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13634 $as_echo "$can_build_shared" >&6; }
13635
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13637 $as_echo_n "checking whether to build shared libraries... " >&6; }
13638   test "$can_build_shared" = "no" && enable_shared=no
13639
13640   # On AIX, shared libraries and static libraries use the same namespace, and
13641   # are all built from PIC.
13642   case $host_os in
13643   aix3*)
13644     test "$enable_shared" = yes && enable_static=no
13645     if test -n "$RANLIB"; then
13646       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13647       postinstall_cmds='$RANLIB $lib'
13648     fi
13649     ;;
13650
13651   aix[4-9]*)
13652     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13653       test "$enable_shared" = yes && enable_static=no
13654     fi
13655     ;;
13656   esac
13657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13658 $as_echo "$enable_shared" >&6; }
13659
13660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13661 $as_echo_n "checking whether to build static libraries... " >&6; }
13662   # Make sure either enable_shared or enable_static is yes.
13663   test "$enable_shared" = yes || enable_static=yes
13664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13665 $as_echo "$enable_static" >&6; }
13666
13667
13668
13669
13670 fi
13671 ac_ext=c
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13676
13677 CC="$lt_save_CC"
13678
13679       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13680     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13681     (test "X$CXX" != "Xg++"))) ; then
13682   ac_ext=cpp
13683 ac_cpp='$CXXCPP $CPPFLAGS'
13684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13688 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13689 if test -z "$CXXCPP"; then
13690   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693       # Double quotes because CXXCPP needs to be expanded
13694     for CXXCPP in "$CXX -E" "/lib/cpp"
13695     do
13696       ac_preproc_ok=false
13697 for ac_cxx_preproc_warn_flag in '' yes
13698 do
13699   # Use a header file that comes with gcc, so configuring glibc
13700   # with a fresh cross-compiler works.
13701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13702   # <limits.h> exists even on freestanding compilers.
13703   # On the NeXT, cc -E runs the code through the compiler's parser,
13704   # not just through cpp. "Syntax error" is here to catch this case.
13705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h.  */
13707 #ifdef __STDC__
13708 # include <limits.h>
13709 #else
13710 # include <assert.h>
13711 #endif
13712                      Syntax error
13713 _ACEOF
13714 if ac_fn_cxx_try_cpp "$LINENO"; then :
13715
13716 else
13717   # Broken: fails on valid input.
13718 continue
13719 fi
13720 rm -f conftest.err conftest.$ac_ext
13721
13722   # OK, works on sane cases.  Now check whether nonexistent headers
13723   # can be detected and how.
13724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h.  */
13726 #include <ac_nonexistent.h>
13727 _ACEOF
13728 if ac_fn_cxx_try_cpp "$LINENO"; then :
13729   # Broken: success on invalid input.
13730 continue
13731 else
13732   # Passes both tests.
13733 ac_preproc_ok=:
13734 break
13735 fi
13736 rm -f conftest.err conftest.$ac_ext
13737
13738 done
13739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13740 rm -f conftest.err conftest.$ac_ext
13741 if $ac_preproc_ok; then :
13742   break
13743 fi
13744
13745     done
13746     ac_cv_prog_CXXCPP=$CXXCPP
13747
13748 fi
13749   CXXCPP=$ac_cv_prog_CXXCPP
13750 else
13751   ac_cv_prog_CXXCPP=$CXXCPP
13752 fi
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13754 $as_echo "$CXXCPP" >&6; }
13755 ac_preproc_ok=false
13756 for ac_cxx_preproc_warn_flag in '' yes
13757 do
13758   # Use a header file that comes with gcc, so configuring glibc
13759   # with a fresh cross-compiler works.
13760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13761   # <limits.h> exists even on freestanding compilers.
13762   # On the NeXT, cc -E runs the code through the compiler's parser,
13763   # not just through cpp. "Syntax error" is here to catch this case.
13764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766 #ifdef __STDC__
13767 # include <limits.h>
13768 #else
13769 # include <assert.h>
13770 #endif
13771                      Syntax error
13772 _ACEOF
13773 if ac_fn_cxx_try_cpp "$LINENO"; then :
13774
13775 else
13776   # Broken: fails on valid input.
13777 continue
13778 fi
13779 rm -f conftest.err conftest.$ac_ext
13780
13781   # OK, works on sane cases.  Now check whether nonexistent headers
13782   # can be detected and how.
13783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785 #include <ac_nonexistent.h>
13786 _ACEOF
13787 if ac_fn_cxx_try_cpp "$LINENO"; then :
13788   # Broken: success on invalid input.
13789 continue
13790 else
13791   # Passes both tests.
13792 ac_preproc_ok=:
13793 break
13794 fi
13795 rm -f conftest.err conftest.$ac_ext
13796
13797 done
13798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13799 rm -f conftest.err conftest.$ac_ext
13800 if $ac_preproc_ok; then :
13801
13802 else
13803   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13805 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13806 See \`config.log' for more details." "$LINENO" 5; }
13807 fi
13808
13809 ac_ext=c
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814
13815 else
13816   _lt_caught_CXX_error=yes
13817 fi
13818
13819 ac_ext=cpp
13820 ac_cpp='$CXXCPP $CPPFLAGS'
13821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13824
13825 archive_cmds_need_lc_CXX=no
13826 allow_undefined_flag_CXX=
13827 always_export_symbols_CXX=no
13828 archive_expsym_cmds_CXX=
13829 compiler_needs_object_CXX=no
13830 export_dynamic_flag_spec_CXX=
13831 hardcode_direct_CXX=no
13832 hardcode_direct_absolute_CXX=no
13833 hardcode_libdir_flag_spec_CXX=
13834 hardcode_libdir_flag_spec_ld_CXX=
13835 hardcode_libdir_separator_CXX=
13836 hardcode_minus_L_CXX=no
13837 hardcode_shlibpath_var_CXX=unsupported
13838 hardcode_automatic_CXX=no
13839 inherit_rpath_CXX=no
13840 module_cmds_CXX=
13841 module_expsym_cmds_CXX=
13842 link_all_deplibs_CXX=unknown
13843 old_archive_cmds_CXX=$old_archive_cmds
13844 reload_flag_CXX=$reload_flag
13845 reload_cmds_CXX=$reload_cmds
13846 no_undefined_flag_CXX=
13847 whole_archive_flag_spec_CXX=
13848 enable_shared_with_static_runtimes_CXX=no
13849
13850 # Source file extension for C++ test sources.
13851 ac_ext=cpp
13852
13853 # Object file extension for compiled C++ test sources.
13854 objext=o
13855 objext_CXX=$objext
13856
13857 # No sense in running all these tests if we already determined that
13858 # the CXX compiler isn't working.  Some variables (like enable_shared)
13859 # are currently assumed to apply to all compilers on this platform,
13860 # and will be corrupted by setting them based on a non-working compiler.
13861 if test "$_lt_caught_CXX_error" != yes; then
13862   # Code to be used in simple compile tests
13863   lt_simple_compile_test_code="int some_variable = 0;"
13864
13865   # Code to be used in simple link tests
13866   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13867
13868   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13869
13870
13871
13872
13873
13874
13875 # If no C compiler was specified, use CC.
13876 LTCC=${LTCC-"$CC"}
13877
13878 # If no C compiler flags were specified, use CFLAGS.
13879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13880
13881 # Allow CC to be a program name with arguments.
13882 compiler=$CC
13883
13884
13885   # save warnings/boilerplate of simple test code
13886   ac_outfile=conftest.$ac_objext
13887 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13888 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13889 _lt_compiler_boilerplate=`cat conftest.err`
13890 $RM conftest*
13891
13892   ac_outfile=conftest.$ac_objext
13893 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13894 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13895 _lt_linker_boilerplate=`cat conftest.err`
13896 $RM -r conftest*
13897
13898
13899   # Allow CC to be a program name with arguments.
13900   lt_save_CC=$CC
13901   lt_save_LD=$LD
13902   lt_save_GCC=$GCC
13903   GCC=$GXX
13904   lt_save_with_gnu_ld=$with_gnu_ld
13905   lt_save_path_LD=$lt_cv_path_LD
13906   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13907     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13908   else
13909     $as_unset lt_cv_prog_gnu_ld
13910   fi
13911   if test -n "${lt_cv_path_LDCXX+set}"; then
13912     lt_cv_path_LD=$lt_cv_path_LDCXX
13913   else
13914     $as_unset lt_cv_path_LD
13915   fi
13916   test -z "${LDCXX+set}" || LD=$LDCXX
13917   CC=${CXX-"c++"}
13918   compiler=$CC
13919   compiler_CXX=$CC
13920   for cc_temp in $compiler""; do
13921   case $cc_temp in
13922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13924     \-*) ;;
13925     *) break;;
13926   esac
13927 done
13928 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13929
13930
13931   if test -n "$compiler"; then
13932     # We don't want -fno-exception when compiling C++ code, so set the
13933     # no_builtin_flag separately
13934     if test "$GXX" = yes; then
13935       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13936     else
13937       lt_prog_compiler_no_builtin_flag_CXX=
13938     fi
13939
13940     if test "$GXX" = yes; then
13941       # Set up default GNU C++ configuration
13942
13943
13944
13945 # Check whether --with-gnu-ld was given.
13946 if test "${with_gnu_ld+set}" = set; then :
13947   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13948 else
13949   with_gnu_ld=no
13950 fi
13951
13952 ac_prog=ld
13953 if test "$GCC" = yes; then
13954   # Check if gcc -print-prog-name=ld gives a path.
13955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13956 $as_echo_n "checking for ld used by $CC... " >&6; }
13957   case $host in
13958   *-*-mingw*)
13959     # gcc leaves a trailing carriage return which upsets mingw
13960     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13961   *)
13962     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13963   esac
13964   case $ac_prog in
13965     # Accept absolute paths.
13966     [\\/]* | ?:[\\/]*)
13967       re_direlt='/[^/][^/]*/\.\./'
13968       # Canonicalize the pathname of ld
13969       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13970       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13971         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13972       done
13973       test -z "$LD" && LD="$ac_prog"
13974       ;;
13975   "")
13976     # If it fails, then pretend we aren't using GCC.
13977     ac_prog=ld
13978     ;;
13979   *)
13980     # If it is relative, then search for the first ld in PATH.
13981     with_gnu_ld=unknown
13982     ;;
13983   esac
13984 elif test "$with_gnu_ld" = yes; then
13985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13986 $as_echo_n "checking for GNU ld... " >&6; }
13987 else
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13989 $as_echo_n "checking for non-GNU ld... " >&6; }
13990 fi
13991 if test "${lt_cv_path_LD+set}" = set; then :
13992   $as_echo_n "(cached) " >&6
13993 else
13994   if test -z "$LD"; then
13995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996   for ac_dir in $PATH; do
13997     IFS="$lt_save_ifs"
13998     test -z "$ac_dir" && ac_dir=.
13999     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14000       lt_cv_path_LD="$ac_dir/$ac_prog"
14001       # Check to see if the program is GNU ld.  I'd rather use --version,
14002       # but apparently some variants of GNU ld only accept -v.
14003       # Break only if it was the GNU/non-GNU ld that we prefer.
14004       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14005       *GNU* | *'with BFD'*)
14006         test "$with_gnu_ld" != no && break
14007         ;;
14008       *)
14009         test "$with_gnu_ld" != yes && break
14010         ;;
14011       esac
14012     fi
14013   done
14014   IFS="$lt_save_ifs"
14015 else
14016   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14017 fi
14018 fi
14019
14020 LD="$lt_cv_path_LD"
14021 if test -n "$LD"; then
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14023 $as_echo "$LD" >&6; }
14024 else
14025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14027 fi
14028 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14030 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14031 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14032   $as_echo_n "(cached) " >&6
14033 else
14034   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14035 case `$LD -v 2>&1 </dev/null` in
14036 *GNU* | *'with BFD'*)
14037   lt_cv_prog_gnu_ld=yes
14038   ;;
14039 *)
14040   lt_cv_prog_gnu_ld=no
14041   ;;
14042 esac
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14045 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14046 with_gnu_ld=$lt_cv_prog_gnu_ld
14047
14048
14049
14050
14051
14052
14053
14054       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14055       # archiving commands below assume that GNU ld is being used.
14056       if test "$with_gnu_ld" = yes; then
14057         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14058         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'
14059
14060         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14061         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14062
14063         # If archive_cmds runs LD, not CC, wlarc should be empty
14064         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14065         #     investigate it a little bit more. (MM)
14066         wlarc='${wl}'
14067
14068         # ancient GNU ld didn't support --whole-archive et. al.
14069         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14070           $GREP 'no-whole-archive' > /dev/null; then
14071           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14072         else
14073           whole_archive_flag_spec_CXX=
14074         fi
14075       else
14076         with_gnu_ld=no
14077         wlarc=
14078
14079         # A generic and very simple default shared library creation
14080         # command for GNU C++ for the case where it uses the native
14081         # linker, instead of GNU ld.  If possible, this setting should
14082         # overridden to take advantage of the native linker features on
14083         # the platform it is being used on.
14084         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14085       fi
14086
14087       # Commands to make compiler produce verbose output that lists
14088       # what "hidden" libraries, object files and flags are used when
14089       # linking a shared library.
14090       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14091
14092     else
14093       GXX=no
14094       with_gnu_ld=no
14095       wlarc=
14096     fi
14097
14098     # PORTME: fill in a description of your system's C++ link characteristics
14099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14100 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14101     ld_shlibs_CXX=yes
14102     case $host_os in
14103       aix3*)
14104         # FIXME: insert proper C++ library support
14105         ld_shlibs_CXX=no
14106         ;;
14107       aix[4-9]*)
14108         if test "$host_cpu" = ia64; then
14109           # On IA64, the linker does run time linking by default, so we don't
14110           # have to do anything special.
14111           aix_use_runtimelinking=no
14112           exp_sym_flag='-Bexport'
14113           no_entry_flag=""
14114         else
14115           aix_use_runtimelinking=no
14116
14117           # Test if we are trying to use run time linking or normal
14118           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14119           # need to do runtime linking.
14120           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14121             for ld_flag in $LDFLAGS; do
14122               case $ld_flag in
14123               *-brtl*)
14124                 aix_use_runtimelinking=yes
14125                 break
14126                 ;;
14127               esac
14128             done
14129             ;;
14130           esac
14131
14132           exp_sym_flag='-bexport'
14133           no_entry_flag='-bnoentry'
14134         fi
14135
14136         # When large executables or shared objects are built, AIX ld can
14137         # have problems creating the table of contents.  If linking a library
14138         # or program results in "error TOC overflow" add -mminimal-toc to
14139         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14140         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14141
14142         archive_cmds_CXX=''
14143         hardcode_direct_CXX=yes
14144         hardcode_direct_absolute_CXX=yes
14145         hardcode_libdir_separator_CXX=':'
14146         link_all_deplibs_CXX=yes
14147         file_list_spec_CXX='${wl}-f,'
14148
14149         if test "$GXX" = yes; then
14150           case $host_os in aix4.[012]|aix4.[012].*)
14151           # We only want to do this on AIX 4.2 and lower, the check
14152           # below for broken collect2 doesn't work under 4.3+
14153           collect2name=`${CC} -print-prog-name=collect2`
14154           if test -f "$collect2name" &&
14155              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14156           then
14157             # We have reworked collect2
14158             :
14159           else
14160             # We have old collect2
14161             hardcode_direct_CXX=unsupported
14162             # It fails to find uninstalled libraries when the uninstalled
14163             # path is not listed in the libpath.  Setting hardcode_minus_L
14164             # to unsupported forces relinking
14165             hardcode_minus_L_CXX=yes
14166             hardcode_libdir_flag_spec_CXX='-L$libdir'
14167             hardcode_libdir_separator_CXX=
14168           fi
14169           esac
14170           shared_flag='-shared'
14171           if test "$aix_use_runtimelinking" = yes; then
14172             shared_flag="$shared_flag "'${wl}-G'
14173           fi
14174         else
14175           # not using gcc
14176           if test "$host_cpu" = ia64; then
14177           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14178           # chokes on -Wl,-G. The following line is correct:
14179           shared_flag='-G'
14180           else
14181             if test "$aix_use_runtimelinking" = yes; then
14182               shared_flag='${wl}-G'
14183             else
14184               shared_flag='${wl}-bM:SRE'
14185             fi
14186           fi
14187         fi
14188
14189         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14190         # It seems that -bexpall does not export symbols beginning with
14191         # underscore (_), so it is better to generate a list of symbols to
14192         # export.
14193         always_export_symbols_CXX=yes
14194         if test "$aix_use_runtimelinking" = yes; then
14195           # Warning - without using the other runtime loading flags (-brtl),
14196           # -berok will link without error, but may produce a broken library.
14197           allow_undefined_flag_CXX='-berok'
14198           # Determine the default libpath from the value encoded in an empty
14199           # executable.
14200           if test x$gcc_no_link = xyes; then
14201   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14202 fi
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205
14206 int
14207 main ()
14208 {
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_cxx_try_link "$LINENO"; then :
14215
14216 lt_aix_libpath_sed='
14217     /Import File Strings/,/^$/ {
14218         /^0/ {
14219             s/^0  *\(.*\)$/\1/
14220             p
14221         }
14222     }'
14223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14224 # Check for a 64-bit object if we didn't find anything.
14225 if test -z "$aix_libpath"; then
14226   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14227 fi
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext \
14230     conftest$ac_exeext conftest.$ac_ext
14231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14232
14233           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14234
14235           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"
14236         else
14237           if test "$host_cpu" = ia64; then
14238             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14239             allow_undefined_flag_CXX="-z nodefs"
14240             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"
14241           else
14242             # Determine the default libpath from the value encoded in an
14243             # empty executable.
14244             if test x$gcc_no_link = xyes; then
14245   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14246 fi
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h.  */
14249
14250 int
14251 main ()
14252 {
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 if ac_fn_cxx_try_link "$LINENO"; then :
14259
14260 lt_aix_libpath_sed='
14261     /Import File Strings/,/^$/ {
14262         /^0/ {
14263             s/^0  *\(.*\)$/\1/
14264             p
14265         }
14266     }'
14267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14268 # Check for a 64-bit object if we didn't find anything.
14269 if test -z "$aix_libpath"; then
14270   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14271 fi
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext \
14274     conftest$ac_exeext conftest.$ac_ext
14275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14276
14277             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14278             # Warning - without using the other run time loading flags,
14279             # -berok will link without error, but may produce a broken library.
14280             no_undefined_flag_CXX=' ${wl}-bernotok'
14281             allow_undefined_flag_CXX=' ${wl}-berok'
14282             if test "$with_gnu_ld" = yes; then
14283               # We only use this code for GNU lds that support --whole-archive.
14284               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14285             else
14286               # Exported symbols can be pulled into shared objects from archives
14287               whole_archive_flag_spec_CXX='$convenience'
14288             fi
14289             archive_cmds_need_lc_CXX=yes
14290             # This is similar to how AIX traditionally builds its shared
14291             # libraries.
14292             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'
14293           fi
14294         fi
14295         ;;
14296
14297       beos*)
14298         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14299           allow_undefined_flag_CXX=unsupported
14300           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14301           # support --undefined.  This deserves some investigation.  FIXME
14302           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303         else
14304           ld_shlibs_CXX=no
14305         fi
14306         ;;
14307
14308       chorus*)
14309         case $cc_basename in
14310           *)
14311           # FIXME: insert proper C++ library support
14312           ld_shlibs_CXX=no
14313           ;;
14314         esac
14315         ;;
14316
14317       cygwin* | mingw* | pw32* | cegcc*)
14318         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14319         # as there is no search path for DLLs.
14320         hardcode_libdir_flag_spec_CXX='-L$libdir'
14321         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14322         allow_undefined_flag_CXX=unsupported
14323         always_export_symbols_CXX=no
14324         enable_shared_with_static_runtimes_CXX=yes
14325
14326         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14327           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'
14328           # If the export-symbols file already is a .def file (1st line
14329           # is EXPORTS), use it as is; otherwise, prepend...
14330           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14331             cp $export_symbols $output_objdir/$soname.def;
14332           else
14333             echo EXPORTS > $output_objdir/$soname.def;
14334             cat $export_symbols >> $output_objdir/$soname.def;
14335           fi~
14336           $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'
14337         else
14338           ld_shlibs_CXX=no
14339         fi
14340         ;;
14341       darwin* | rhapsody*)
14342
14343
14344   archive_cmds_need_lc_CXX=no
14345   hardcode_direct_CXX=no
14346   hardcode_automatic_CXX=yes
14347   hardcode_shlibpath_var_CXX=unsupported
14348   if test "$lt_cv_ld_force_load" = "yes"; then
14349     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\"`'
14350   else
14351     whole_archive_flag_spec_CXX=''
14352   fi
14353   link_all_deplibs_CXX=yes
14354   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14355   case $cc_basename in
14356      ifort*) _lt_dar_can_shared=yes ;;
14357      *) _lt_dar_can_shared=$GCC ;;
14358   esac
14359   if test "$_lt_dar_can_shared" = "yes"; then
14360     output_verbose_link_cmd=func_echo_all
14361     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}"
14362     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14363     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}"
14364     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}"
14365        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14366       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}"
14367       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}"
14368     fi
14369
14370   else
14371   ld_shlibs_CXX=no
14372   fi
14373
14374         ;;
14375
14376       dgux*)
14377         case $cc_basename in
14378           ec++*)
14379             # FIXME: insert proper C++ library support
14380             ld_shlibs_CXX=no
14381             ;;
14382           ghcx*)
14383             # Green Hills C++ Compiler
14384             # FIXME: insert proper C++ library support
14385             ld_shlibs_CXX=no
14386             ;;
14387           *)
14388             # FIXME: insert proper C++ library support
14389             ld_shlibs_CXX=no
14390             ;;
14391         esac
14392         ;;
14393
14394       freebsd[12]*)
14395         # C++ shared libraries reported to be fairly broken before
14396         # switch to ELF
14397         ld_shlibs_CXX=no
14398         ;;
14399
14400       freebsd-elf*)
14401         archive_cmds_need_lc_CXX=no
14402         ;;
14403
14404       freebsd* | dragonfly*)
14405         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14406         # conventions
14407         ld_shlibs_CXX=yes
14408         ;;
14409
14410       gnu*)
14411         ;;
14412
14413       haiku*)
14414         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415         link_all_deplibs_CXX=yes
14416         ;;
14417
14418       hpux9*)
14419         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14420         hardcode_libdir_separator_CXX=:
14421         export_dynamic_flag_spec_CXX='${wl}-E'
14422         hardcode_direct_CXX=yes
14423         hardcode_minus_L_CXX=yes # Not in the search PATH,
14424                                              # but as the default
14425                                              # location of the library.
14426
14427         case $cc_basename in
14428           CC*)
14429             # FIXME: insert proper C++ library support
14430             ld_shlibs_CXX=no
14431             ;;
14432           aCC*)
14433             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'
14434             # Commands to make compiler produce verbose output that lists
14435             # what "hidden" libraries, object files and flags are used when
14436             # linking a shared library.
14437             #
14438             # There doesn't appear to be a way to prevent this compiler from
14439             # explicitly linking system object files so we need to strip them
14440             # from the output so that they don't get included in the library
14441             # dependencies.
14442             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"'
14443             ;;
14444           *)
14445             if test "$GXX" = yes; then
14446               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'
14447             else
14448               # FIXME: insert proper C++ library support
14449               ld_shlibs_CXX=no
14450             fi
14451             ;;
14452         esac
14453         ;;
14454
14455       hpux10*|hpux11*)
14456         if test $with_gnu_ld = no; then
14457           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14458           hardcode_libdir_separator_CXX=:
14459
14460           case $host_cpu in
14461             hppa*64*|ia64*)
14462               ;;
14463             *)
14464               export_dynamic_flag_spec_CXX='${wl}-E'
14465               ;;
14466           esac
14467         fi
14468         case $host_cpu in
14469           hppa*64*|ia64*)
14470             hardcode_direct_CXX=no
14471             hardcode_shlibpath_var_CXX=no
14472             ;;
14473           *)
14474             hardcode_direct_CXX=yes
14475             hardcode_direct_absolute_CXX=yes
14476             hardcode_minus_L_CXX=yes # Not in the search PATH,
14477                                                  # but as the default
14478                                                  # location of the library.
14479             ;;
14480         esac
14481
14482         case $cc_basename in
14483           CC*)
14484             # FIXME: insert proper C++ library support
14485             ld_shlibs_CXX=no
14486             ;;
14487           aCC*)
14488             case $host_cpu in
14489               hppa*64*)
14490                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14491                 ;;
14492               ia64*)
14493                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14494                 ;;
14495               *)
14496                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14497                 ;;
14498             esac
14499             # Commands to make compiler produce verbose output that lists
14500             # what "hidden" libraries, object files and flags are used when
14501             # linking a shared library.
14502             #
14503             # There doesn't appear to be a way to prevent this compiler from
14504             # explicitly linking system object files so we need to strip them
14505             # from the output so that they don't get included in the library
14506             # dependencies.
14507             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"'
14508             ;;
14509           *)
14510             if test "$GXX" = yes; then
14511               if test $with_gnu_ld = no; then
14512                 case $host_cpu in
14513                   hppa*64*)
14514                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14515                     ;;
14516                   ia64*)
14517                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14518                     ;;
14519                   *)
14520                     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'
14521                     ;;
14522                 esac
14523               fi
14524             else
14525               # FIXME: insert proper C++ library support
14526               ld_shlibs_CXX=no
14527             fi
14528             ;;
14529         esac
14530         ;;
14531
14532       interix[3-9]*)
14533         hardcode_direct_CXX=no
14534         hardcode_shlibpath_var_CXX=no
14535         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14536         export_dynamic_flag_spec_CXX='${wl}-E'
14537         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14538         # Instead, shared libraries are loaded at an image base (0x10000000 by
14539         # default) and relocated if they conflict, which is a slow very memory
14540         # consuming and fragmenting process.  To avoid this, we pick a random,
14541         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14542         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14543         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'
14544         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'
14545         ;;
14546       irix5* | irix6*)
14547         case $cc_basename in
14548           CC*)
14549             # SGI C++
14550             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'
14551
14552             # Archives containing C++ object files must be created using
14553             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14554             # necessary to make sure instantiated templates are included
14555             # in the archive.
14556             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14557             ;;
14558           *)
14559             if test "$GXX" = yes; then
14560               if test "$with_gnu_ld" = no; then
14561                 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'
14562               else
14563                 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'
14564               fi
14565             fi
14566             link_all_deplibs_CXX=yes
14567             ;;
14568         esac
14569         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14570         hardcode_libdir_separator_CXX=:
14571         inherit_rpath_CXX=yes
14572         ;;
14573
14574       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14575         case $cc_basename in
14576           KCC*)
14577             # Kuck and Associates, Inc. (KAI) C++ Compiler
14578
14579             # KCC will only create a shared library if the output file
14580             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14581             # to its proper name (with version) after linking.
14582             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'
14583             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'
14584             # Commands to make compiler produce verbose output that lists
14585             # what "hidden" libraries, object files and flags are used when
14586             # linking a shared library.
14587             #
14588             # There doesn't appear to be a way to prevent this compiler from
14589             # explicitly linking system object files so we need to strip them
14590             # from the output so that they don't get included in the library
14591             # dependencies.
14592             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"'
14593
14594             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14595             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14596
14597             # Archives containing C++ object files must be created using
14598             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14599             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14600             ;;
14601           icpc* | ecpc* )
14602             # Intel C++
14603             with_gnu_ld=yes
14604             # version 8.0 and above of icpc choke on multiply defined symbols
14605             # if we add $predep_objects and $postdep_objects, however 7.1 and
14606             # earlier do not add the objects themselves.
14607             case `$CC -V 2>&1` in
14608               *"Version 7."*)
14609                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610                 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'
14611                 ;;
14612               *)  # Version 8.0 or newer
14613                 tmp_idyn=
14614                 case $host_cpu in
14615                   ia64*) tmp_idyn=' -i_dynamic';;
14616                 esac
14617                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618                 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'
14619                 ;;
14620             esac
14621             archive_cmds_need_lc_CXX=no
14622             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14623             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14624             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14625             ;;
14626           pgCC* | pgcpp*)
14627             # Portland Group C++ compiler
14628             case `$CC -V` in
14629             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14630               prelink_cmds_CXX='tpldir=Template.dir~
14631                 rm -rf $tpldir~
14632                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14633                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14634               old_archive_cmds_CXX='tpldir=Template.dir~
14635                 rm -rf $tpldir~
14636                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14637                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14638                 $RANLIB $oldlib'
14639               archive_cmds_CXX='tpldir=Template.dir~
14640                 rm -rf $tpldir~
14641                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14642                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14643               archive_expsym_cmds_CXX='tpldir=Template.dir~
14644                 rm -rf $tpldir~
14645                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14646                 $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'
14647               ;;
14648             *) # Version 6 and above use weak symbols
14649               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14650               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'
14651               ;;
14652             esac
14653
14654             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14655             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14656             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'
14657             ;;
14658           cxx*)
14659             # Compaq C++
14660             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14661             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'
14662
14663             runpath_var=LD_RUN_PATH
14664             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14665             hardcode_libdir_separator_CXX=:
14666
14667             # Commands to make compiler produce verbose output that lists
14668             # what "hidden" libraries, object files and flags are used when
14669             # linking a shared library.
14670             #
14671             # There doesn't appear to be a way to prevent this compiler from
14672             # explicitly linking system object files so we need to strip them
14673             # from the output so that they don't get included in the library
14674             # dependencies.
14675             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'
14676             ;;
14677           xl* | mpixl* | bgxl*)
14678             # IBM XL 8.0 on PPC, with GNU ld
14679             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14680             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14681             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14682             if test "x$supports_anon_versioning" = xyes; then
14683               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14684                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14685                 echo "local: *; };" >> $output_objdir/$libname.ver~
14686                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14687             fi
14688             ;;
14689           *)
14690             case `$CC -V 2>&1 | sed 5q` in
14691             *Sun\ C*)
14692               # Sun C++ 5.9
14693               no_undefined_flag_CXX=' -zdefs'
14694               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14695               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'
14696               hardcode_libdir_flag_spec_CXX='-R$libdir'
14697               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'
14698               compiler_needs_object_CXX=yes
14699
14700               # Not sure whether something based on
14701               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14702               # would be better.
14703               output_verbose_link_cmd='func_echo_all'
14704
14705               # Archives containing C++ object files must be created using
14706               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14707               # necessary to make sure instantiated templates are included
14708               # in the archive.
14709               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14710               ;;
14711             esac
14712             ;;
14713         esac
14714         ;;
14715
14716       lynxos*)
14717         # FIXME: insert proper C++ library support
14718         ld_shlibs_CXX=no
14719         ;;
14720
14721       m88k*)
14722         # FIXME: insert proper C++ library support
14723         ld_shlibs_CXX=no
14724         ;;
14725
14726       mvs*)
14727         case $cc_basename in
14728           cxx*)
14729             # FIXME: insert proper C++ library support
14730             ld_shlibs_CXX=no
14731             ;;
14732           *)
14733             # FIXME: insert proper C++ library support
14734             ld_shlibs_CXX=no
14735             ;;
14736         esac
14737         ;;
14738
14739       netbsd*)
14740         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14741           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14742           wlarc=
14743           hardcode_libdir_flag_spec_CXX='-R$libdir'
14744           hardcode_direct_CXX=yes
14745           hardcode_shlibpath_var_CXX=no
14746         fi
14747         # Workaround some broken pre-1.5 toolchains
14748         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14749         ;;
14750
14751       *nto* | *qnx*)
14752         ld_shlibs_CXX=yes
14753         ;;
14754
14755       openbsd2*)
14756         # C++ shared libraries are fairly broken
14757         ld_shlibs_CXX=no
14758         ;;
14759
14760       openbsd*)
14761         if test -f /usr/libexec/ld.so; then
14762           hardcode_direct_CXX=yes
14763           hardcode_shlibpath_var_CXX=no
14764           hardcode_direct_absolute_CXX=yes
14765           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14766           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14767           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14768             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14769             export_dynamic_flag_spec_CXX='${wl}-E'
14770             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14771           fi
14772           output_verbose_link_cmd=func_echo_all
14773         else
14774           ld_shlibs_CXX=no
14775         fi
14776         ;;
14777
14778       osf3* | osf4* | osf5*)
14779         case $cc_basename in
14780           KCC*)
14781             # Kuck and Associates, Inc. (KAI) C++ Compiler
14782
14783             # KCC will only create a shared library if the output file
14784             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14785             # to its proper name (with version) after linking.
14786             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'
14787
14788             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14789             hardcode_libdir_separator_CXX=:
14790
14791             # Archives containing C++ object files must be created using
14792             # the KAI C++ compiler.
14793             case $host in
14794               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14795               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14796             esac
14797             ;;
14798           RCC*)
14799             # Rational C++ 2.4.1
14800             # FIXME: insert proper C++ library support
14801             ld_shlibs_CXX=no
14802             ;;
14803           cxx*)
14804             case $host in
14805               osf3*)
14806                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14807                 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'
14808                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14809                 ;;
14810               *)
14811                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14812                 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'
14813                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14814                   echo "-hidden">> $lib.exp~
14815                   $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~
14816                   $RM $lib.exp'
14817                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14818                 ;;
14819             esac
14820
14821             hardcode_libdir_separator_CXX=:
14822
14823             # Commands to make compiler produce verbose output that lists
14824             # what "hidden" libraries, object files and flags are used when
14825             # linking a shared library.
14826             #
14827             # There doesn't appear to be a way to prevent this compiler from
14828             # explicitly linking system object files so we need to strip them
14829             # from the output so that they don't get included in the library
14830             # dependencies.
14831             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"'
14832             ;;
14833           *)
14834             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14835               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14836               case $host in
14837                 osf3*)
14838                   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'
14839                   ;;
14840                 *)
14841                   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'
14842                   ;;
14843               esac
14844
14845               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14846               hardcode_libdir_separator_CXX=:
14847
14848               # Commands to make compiler produce verbose output that lists
14849               # what "hidden" libraries, object files and flags are used when
14850               # linking a shared library.
14851               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14852
14853             else
14854               # FIXME: insert proper C++ library support
14855               ld_shlibs_CXX=no
14856             fi
14857             ;;
14858         esac
14859         ;;
14860
14861       psos*)
14862         # FIXME: insert proper C++ library support
14863         ld_shlibs_CXX=no
14864         ;;
14865
14866       sunos4*)
14867         case $cc_basename in
14868           CC*)
14869             # Sun C++ 4.x
14870             # FIXME: insert proper C++ library support
14871             ld_shlibs_CXX=no
14872             ;;
14873           lcc*)
14874             # Lucid
14875             # FIXME: insert proper C++ library support
14876             ld_shlibs_CXX=no
14877             ;;
14878           *)
14879             # FIXME: insert proper C++ library support
14880             ld_shlibs_CXX=no
14881             ;;
14882         esac
14883         ;;
14884
14885       solaris*)
14886         case $cc_basename in
14887           CC*)
14888             # Sun C++ 4.2, 5.x and Centerline C++
14889             archive_cmds_need_lc_CXX=yes
14890             no_undefined_flag_CXX=' -zdefs'
14891             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14892             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14893               $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'
14894
14895             hardcode_libdir_flag_spec_CXX='-R$libdir'
14896             hardcode_shlibpath_var_CXX=no
14897             case $host_os in
14898               solaris2.[0-5] | solaris2.[0-5].*) ;;
14899               *)
14900                 # The compiler driver will combine and reorder linker options,
14901                 # but understands `-z linker_flag'.
14902                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14903                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14904                 ;;
14905             esac
14906             link_all_deplibs_CXX=yes
14907
14908             output_verbose_link_cmd='func_echo_all'
14909
14910             # Archives containing C++ object files must be created using
14911             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14912             # necessary to make sure instantiated templates are included
14913             # in the archive.
14914             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14915             ;;
14916           gcx*)
14917             # Green Hills C++ Compiler
14918             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14919
14920             # The C++ compiler must be used to create the archive.
14921             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14922             ;;
14923           *)
14924             # GNU C++ compiler with Solaris linker
14925             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14926               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14927               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14928                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14929                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14930                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14931
14932                 # Commands to make compiler produce verbose output that lists
14933                 # what "hidden" libraries, object files and flags are used when
14934                 # linking a shared library.
14935                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14936               else
14937                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14938                 # platform.
14939                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14940                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14941                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14942
14943                 # Commands to make compiler produce verbose output that lists
14944                 # what "hidden" libraries, object files and flags are used when
14945                 # linking a shared library.
14946                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14947               fi
14948
14949               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14950               case $host_os in
14951                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14952                 *)
14953                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14954                   ;;
14955               esac
14956             fi
14957             ;;
14958         esac
14959         ;;
14960
14961     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14962       no_undefined_flag_CXX='${wl}-z,text'
14963       archive_cmds_need_lc_CXX=no
14964       hardcode_shlibpath_var_CXX=no
14965       runpath_var='LD_RUN_PATH'
14966
14967       case $cc_basename in
14968         CC*)
14969           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14971           ;;
14972         *)
14973           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14974           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975           ;;
14976       esac
14977       ;;
14978
14979       sysv5* | sco3.2v5* | sco5v6*)
14980         # Note: We can NOT use -z defs as we might desire, because we do not
14981         # link with -lc, and that would cause any symbols used from libc to
14982         # always be unresolved, which means just about no library would
14983         # ever link correctly.  If we're not using GNU ld we use -z text
14984         # though, which does catch some bad symbols but isn't as heavy-handed
14985         # as -z defs.
14986         no_undefined_flag_CXX='${wl}-z,text'
14987         allow_undefined_flag_CXX='${wl}-z,nodefs'
14988         archive_cmds_need_lc_CXX=no
14989         hardcode_shlibpath_var_CXX=no
14990         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14991         hardcode_libdir_separator_CXX=':'
14992         link_all_deplibs_CXX=yes
14993         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14994         runpath_var='LD_RUN_PATH'
14995
14996         case $cc_basename in
14997           CC*)
14998             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15001               '"$old_archive_cmds_CXX"
15002             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15003               '"$reload_cmds_CXX"
15004             ;;
15005           *)
15006             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008             ;;
15009         esac
15010       ;;
15011
15012       tandem*)
15013         case $cc_basename in
15014           NCC*)
15015             # NonStop-UX NCC 3.20
15016             # FIXME: insert proper C++ library support
15017             ld_shlibs_CXX=no
15018             ;;
15019           *)
15020             # FIXME: insert proper C++ library support
15021             ld_shlibs_CXX=no
15022             ;;
15023         esac
15024         ;;
15025
15026       vxworks*)
15027         # FIXME: insert proper C++ library support
15028         ld_shlibs_CXX=no
15029         ;;
15030
15031       *)
15032         # FIXME: insert proper C++ library support
15033         ld_shlibs_CXX=no
15034         ;;
15035     esac
15036
15037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15038 $as_echo "$ld_shlibs_CXX" >&6; }
15039     test "$ld_shlibs_CXX" = no && can_build_shared=no
15040
15041     GCC_CXX="$GXX"
15042     LD_CXX="$LD"
15043
15044     ## CAVEAT EMPTOR:
15045     ## There is no encapsulation within the following macros, do not change
15046     ## the running order or otherwise move them around unless you know exactly
15047     ## what you are doing...
15048     # Dependencies to place before and after the object being linked:
15049 predep_objects_CXX=
15050 postdep_objects_CXX=
15051 predeps_CXX=
15052 postdeps_CXX=
15053 compiler_lib_search_path_CXX=
15054
15055 cat > conftest.$ac_ext <<_LT_EOF
15056 class Foo
15057 {
15058 public:
15059   Foo (void) { a = 0; }
15060 private:
15061   int a;
15062 };
15063 _LT_EOF
15064
15065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15066   (eval $ac_compile) 2>&5
15067   ac_status=$?
15068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069   test $ac_status = 0; }; then
15070   # Parse the compiler output and extract the necessary
15071   # objects, libraries and library flags.
15072
15073   # Sentinel used to keep track of whether or not we are before
15074   # the conftest object file.
15075   pre_test_object_deps_done=no
15076
15077   for p in `eval "$output_verbose_link_cmd"`; do
15078     case $p in
15079
15080     -L* | -R* | -l*)
15081        # Some compilers place space between "-{L,R}" and the path.
15082        # Remove the space.
15083        if test $p = "-L" ||
15084           test $p = "-R"; then
15085          prev=$p
15086          continue
15087        else
15088          prev=
15089        fi
15090
15091        if test "$pre_test_object_deps_done" = no; then
15092          case $p in
15093          -L* | -R*)
15094            # Internal compiler library paths should come after those
15095            # provided the user.  The postdeps already come after the
15096            # user supplied libs so there is no need to process them.
15097            if test -z "$compiler_lib_search_path_CXX"; then
15098              compiler_lib_search_path_CXX="${prev}${p}"
15099            else
15100              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15101            fi
15102            ;;
15103          # The "-l" case would never come before the object being
15104          # linked, so don't bother handling this case.
15105          esac
15106        else
15107          if test -z "$postdeps_CXX"; then
15108            postdeps_CXX="${prev}${p}"
15109          else
15110            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15111          fi
15112        fi
15113        ;;
15114
15115     *.$objext)
15116        # This assumes that the test object file only shows up
15117        # once in the compiler output.
15118        if test "$p" = "conftest.$objext"; then
15119          pre_test_object_deps_done=yes
15120          continue
15121        fi
15122
15123        if test "$pre_test_object_deps_done" = no; then
15124          if test -z "$predep_objects_CXX"; then
15125            predep_objects_CXX="$p"
15126          else
15127            predep_objects_CXX="$predep_objects_CXX $p"
15128          fi
15129        else
15130          if test -z "$postdep_objects_CXX"; then
15131            postdep_objects_CXX="$p"
15132          else
15133            postdep_objects_CXX="$postdep_objects_CXX $p"
15134          fi
15135        fi
15136        ;;
15137
15138     *) ;; # Ignore the rest.
15139
15140     esac
15141   done
15142
15143   # Clean up.
15144   rm -f a.out a.exe
15145 else
15146   echo "libtool.m4: error: problem compiling CXX test program"
15147 fi
15148
15149 $RM -f confest.$objext
15150
15151 # PORTME: override above test on systems where it is broken
15152 case $host_os in
15153 interix[3-9]*)
15154   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15155   # hack all around it, let's just trust "g++" to DTRT.
15156   predep_objects_CXX=
15157   postdep_objects_CXX=
15158   postdeps_CXX=
15159   ;;
15160
15161 linux*)
15162   case `$CC -V 2>&1 | sed 5q` in
15163   *Sun\ C*)
15164     # Sun C++ 5.9
15165
15166     # The more standards-conforming stlport4 library is
15167     # incompatible with the Cstd library. Avoid specifying
15168     # it if it's in CXXFLAGS. Ignore libCrun as
15169     # -library=stlport4 depends on it.
15170     case " $CXX $CXXFLAGS " in
15171     *" -library=stlport4 "*)
15172       solaris_use_stlport4=yes
15173       ;;
15174     esac
15175
15176     if test "$solaris_use_stlport4" != yes; then
15177       postdeps_CXX='-library=Cstd -library=Crun'
15178     fi
15179     ;;
15180   esac
15181   ;;
15182
15183 solaris*)
15184   case $cc_basename in
15185   CC*)
15186     # The more standards-conforming stlport4 library is
15187     # incompatible with the Cstd library. Avoid specifying
15188     # it if it's in CXXFLAGS. Ignore libCrun as
15189     # -library=stlport4 depends on it.
15190     case " $CXX $CXXFLAGS " in
15191     *" -library=stlport4 "*)
15192       solaris_use_stlport4=yes
15193       ;;
15194     esac
15195
15196     # Adding this requires a known-good setup of shared libraries for
15197     # Sun compiler versions before 5.6, else PIC objects from an old
15198     # archive will be linked into the output, leading to subtle bugs.
15199     if test "$solaris_use_stlport4" != yes; then
15200       postdeps_CXX='-library=Cstd -library=Crun'
15201     fi
15202     ;;
15203   esac
15204   ;;
15205 esac
15206
15207
15208 case " $postdeps_CXX " in
15209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15210 esac
15211  compiler_lib_search_dirs_CXX=
15212 if test -n "${compiler_lib_search_path_CXX}"; then
15213  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15214 fi
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246     lt_prog_compiler_wl_CXX=
15247 lt_prog_compiler_pic_CXX=
15248 lt_prog_compiler_static_CXX=
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15251 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15252
15253   # C++ specific cases for pic, static, wl, etc.
15254   if test "$GXX" = yes; then
15255     lt_prog_compiler_wl_CXX='-Wl,'
15256     lt_prog_compiler_static_CXX='-static'
15257
15258     case $host_os in
15259     aix*)
15260       # All AIX code is PIC.
15261       if test "$host_cpu" = ia64; then
15262         # AIX 5 now supports IA64 processor
15263         lt_prog_compiler_static_CXX='-Bstatic'
15264       fi
15265       ;;
15266
15267     amigaos*)
15268       case $host_cpu in
15269       powerpc)
15270             # see comment about AmigaOS4 .so support
15271             lt_prog_compiler_pic_CXX='-fPIC'
15272         ;;
15273       m68k)
15274             # FIXME: we need at least 68020 code to build shared libraries, but
15275             # adding the `-m68020' flag to GCC prevents building anything better,
15276             # like `-m68040'.
15277             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15278         ;;
15279       esac
15280       ;;
15281
15282     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15283       # PIC is the default for these OSes.
15284       ;;
15285     mingw* | cygwin* | os2* | pw32* | cegcc*)
15286       # This hack is so that the source file can tell whether it is being
15287       # built for inclusion in a dll (and should export symbols for example).
15288       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15289       # (--disable-auto-import) libraries
15290       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15291       ;;
15292     darwin* | rhapsody*)
15293       # PIC is the default on this platform
15294       # Common symbols not allowed in MH_DYLIB files
15295       lt_prog_compiler_pic_CXX='-fno-common'
15296       ;;
15297     *djgpp*)
15298       # DJGPP does not support shared libraries at all
15299       lt_prog_compiler_pic_CXX=
15300       ;;
15301     haiku*)
15302       # PIC is the default for Haiku.
15303       # The "-static" flag exists, but is broken.
15304       lt_prog_compiler_static_CXX=
15305       ;;
15306     interix[3-9]*)
15307       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15308       # Instead, we relocate shared libraries at runtime.
15309       ;;
15310     sysv4*MP*)
15311       if test -d /usr/nec; then
15312         lt_prog_compiler_pic_CXX=-Kconform_pic
15313       fi
15314       ;;
15315     hpux*)
15316       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15317       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15318       # sets the default TLS model and affects inlining.
15319       case $host_cpu in
15320       hppa*64*)
15321         ;;
15322       *)
15323         lt_prog_compiler_pic_CXX='-fPIC'
15324         ;;
15325       esac
15326       ;;
15327     *qnx* | *nto*)
15328       # QNX uses GNU C++, but need to define -shared option too, otherwise
15329       # it will coredump.
15330       lt_prog_compiler_pic_CXX='-fPIC -shared'
15331       ;;
15332     *)
15333       lt_prog_compiler_pic_CXX='-fPIC'
15334       ;;
15335     esac
15336   else
15337     case $host_os in
15338       aix[4-9]*)
15339         # All AIX code is PIC.
15340         if test "$host_cpu" = ia64; then
15341           # AIX 5 now supports IA64 processor
15342           lt_prog_compiler_static_CXX='-Bstatic'
15343         else
15344           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15345         fi
15346         ;;
15347       chorus*)
15348         case $cc_basename in
15349         cxch68*)
15350           # Green Hills C++ Compiler
15351           # _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"
15352           ;;
15353         esac
15354         ;;
15355       dgux*)
15356         case $cc_basename in
15357           ec++*)
15358             lt_prog_compiler_pic_CXX='-KPIC'
15359             ;;
15360           ghcx*)
15361             # Green Hills C++ Compiler
15362             lt_prog_compiler_pic_CXX='-pic'
15363             ;;
15364           *)
15365             ;;
15366         esac
15367         ;;
15368       freebsd* | dragonfly*)
15369         # FreeBSD uses GNU C++
15370         ;;
15371       hpux9* | hpux10* | hpux11*)
15372         case $cc_basename in
15373           CC*)
15374             lt_prog_compiler_wl_CXX='-Wl,'
15375             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15376             if test "$host_cpu" != ia64; then
15377               lt_prog_compiler_pic_CXX='+Z'
15378             fi
15379             ;;
15380           aCC*)
15381             lt_prog_compiler_wl_CXX='-Wl,'
15382             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15383             case $host_cpu in
15384             hppa*64*|ia64*)
15385               # +Z the default
15386               ;;
15387             *)
15388               lt_prog_compiler_pic_CXX='+Z'
15389               ;;
15390             esac
15391             ;;
15392           *)
15393             ;;
15394         esac
15395         ;;
15396       interix*)
15397         # This is c89, which is MS Visual C++ (no shared libs)
15398         # Anyone wants to do a port?
15399         ;;
15400       irix5* | irix6* | nonstopux*)
15401         case $cc_basename in
15402           CC*)
15403             lt_prog_compiler_wl_CXX='-Wl,'
15404             lt_prog_compiler_static_CXX='-non_shared'
15405             # CC pic flag -KPIC is the default.
15406             ;;
15407           *)
15408             ;;
15409         esac
15410         ;;
15411       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15412         case $cc_basename in
15413           KCC*)
15414             # KAI C++ Compiler
15415             lt_prog_compiler_wl_CXX='--backend -Wl,'
15416             lt_prog_compiler_pic_CXX='-fPIC'
15417             ;;
15418           ecpc* )
15419             # old Intel C++ for x86_64 which still supported -KPIC.
15420             lt_prog_compiler_wl_CXX='-Wl,'
15421             lt_prog_compiler_pic_CXX='-KPIC'
15422             lt_prog_compiler_static_CXX='-static'
15423             ;;
15424           icpc* )
15425             # Intel C++, used to be incompatible with GCC.
15426             # ICC 10 doesn't accept -KPIC any more.
15427             lt_prog_compiler_wl_CXX='-Wl,'
15428             lt_prog_compiler_pic_CXX='-fPIC'
15429             lt_prog_compiler_static_CXX='-static'
15430             ;;
15431           pgCC* | pgcpp*)
15432             # Portland Group C++ compiler
15433             lt_prog_compiler_wl_CXX='-Wl,'
15434             lt_prog_compiler_pic_CXX='-fpic'
15435             lt_prog_compiler_static_CXX='-Bstatic'
15436             ;;
15437           cxx*)
15438             # Compaq C++
15439             # Make sure the PIC flag is empty.  It appears that all Alpha
15440             # Linux and Compaq Tru64 Unix objects are PIC.
15441             lt_prog_compiler_pic_CXX=
15442             lt_prog_compiler_static_CXX='-non_shared'
15443             ;;
15444           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15445             # IBM XL 8.0, 9.0 on PPC and BlueGene
15446             lt_prog_compiler_wl_CXX='-Wl,'
15447             lt_prog_compiler_pic_CXX='-qpic'
15448             lt_prog_compiler_static_CXX='-qstaticlink'
15449             ;;
15450           *)
15451             case `$CC -V 2>&1 | sed 5q` in
15452             *Sun\ C*)
15453               # Sun C++ 5.9
15454               lt_prog_compiler_pic_CXX='-KPIC'
15455               lt_prog_compiler_static_CXX='-Bstatic'
15456               lt_prog_compiler_wl_CXX='-Qoption ld '
15457               ;;
15458             esac
15459             ;;
15460         esac
15461         ;;
15462       lynxos*)
15463         ;;
15464       m88k*)
15465         ;;
15466       mvs*)
15467         case $cc_basename in
15468           cxx*)
15469             lt_prog_compiler_pic_CXX='-W c,exportall'
15470             ;;
15471           *)
15472             ;;
15473         esac
15474         ;;
15475       netbsd*)
15476         ;;
15477       *qnx* | *nto*)
15478         # QNX uses GNU C++, but need to define -shared option too, otherwise
15479         # it will coredump.
15480         lt_prog_compiler_pic_CXX='-fPIC -shared'
15481         ;;
15482       osf3* | osf4* | osf5*)
15483         case $cc_basename in
15484           KCC*)
15485             lt_prog_compiler_wl_CXX='--backend -Wl,'
15486             ;;
15487           RCC*)
15488             # Rational C++ 2.4.1
15489             lt_prog_compiler_pic_CXX='-pic'
15490             ;;
15491           cxx*)
15492             # Digital/Compaq C++
15493             lt_prog_compiler_wl_CXX='-Wl,'
15494             # Make sure the PIC flag is empty.  It appears that all Alpha
15495             # Linux and Compaq Tru64 Unix objects are PIC.
15496             lt_prog_compiler_pic_CXX=
15497             lt_prog_compiler_static_CXX='-non_shared'
15498             ;;
15499           *)
15500             ;;
15501         esac
15502         ;;
15503       psos*)
15504         ;;
15505       solaris*)
15506         case $cc_basename in
15507           CC*)
15508             # Sun C++ 4.2, 5.x and Centerline C++
15509             lt_prog_compiler_pic_CXX='-KPIC'
15510             lt_prog_compiler_static_CXX='-Bstatic'
15511             lt_prog_compiler_wl_CXX='-Qoption ld '
15512             ;;
15513           gcx*)
15514             # Green Hills C++ Compiler
15515             lt_prog_compiler_pic_CXX='-PIC'
15516             ;;
15517           *)
15518             ;;
15519         esac
15520         ;;
15521       sunos4*)
15522         case $cc_basename in
15523           CC*)
15524             # Sun C++ 4.x
15525             lt_prog_compiler_pic_CXX='-pic'
15526             lt_prog_compiler_static_CXX='-Bstatic'
15527             ;;
15528           lcc*)
15529             # Lucid
15530             lt_prog_compiler_pic_CXX='-pic'
15531             ;;
15532           *)
15533             ;;
15534         esac
15535         ;;
15536       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15537         case $cc_basename in
15538           CC*)
15539             lt_prog_compiler_wl_CXX='-Wl,'
15540             lt_prog_compiler_pic_CXX='-KPIC'
15541             lt_prog_compiler_static_CXX='-Bstatic'
15542             ;;
15543         esac
15544         ;;
15545       tandem*)
15546         case $cc_basename in
15547           NCC*)
15548             # NonStop-UX NCC 3.20
15549             lt_prog_compiler_pic_CXX='-KPIC'
15550             ;;
15551           *)
15552             ;;
15553         esac
15554         ;;
15555       vxworks*)
15556         ;;
15557       *)
15558         lt_prog_compiler_can_build_shared_CXX=no
15559         ;;
15560     esac
15561   fi
15562
15563 case $host_os in
15564   # For platforms which do not support PIC, -DPIC is meaningless:
15565   *djgpp*)
15566     lt_prog_compiler_pic_CXX=
15567     ;;
15568   *)
15569     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15570     ;;
15571 esac
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15573 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15574
15575
15576
15577 #
15578 # Check to make sure the PIC flag actually works.
15579 #
15580 if test -n "$lt_prog_compiler_pic_CXX"; then
15581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15583 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15584   $as_echo_n "(cached) " >&6
15585 else
15586   lt_cv_prog_compiler_pic_works_CXX=no
15587    ac_outfile=conftest.$ac_objext
15588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15589    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15590    # Insert the option either (1) after the last *FLAGS variable, or
15591    # (2) before a word containing "conftest.", or (3) at the end.
15592    # Note that $ac_compile itself does not contain backslashes and begins
15593    # with a dollar sign (not a hyphen), so the echo should work correctly.
15594    # The option is referenced via a variable to avoid confusing sed.
15595    lt_compile=`echo "$ac_compile" | $SED \
15596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598    -e 's:$: $lt_compiler_flag:'`
15599    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15600    (eval "$lt_compile" 2>conftest.err)
15601    ac_status=$?
15602    cat conftest.err >&5
15603    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604    if (exit $ac_status) && test -s "$ac_outfile"; then
15605      # The compiler can only warn and ignore the option if not recognized
15606      # So say no if there are warnings other than the usual output.
15607      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15608      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15609      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15610        lt_cv_prog_compiler_pic_works_CXX=yes
15611      fi
15612    fi
15613    $RM conftest*
15614
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15617 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15618
15619 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15620     case $lt_prog_compiler_pic_CXX in
15621      "" | " "*) ;;
15622      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15623      esac
15624 else
15625     lt_prog_compiler_pic_CXX=
15626      lt_prog_compiler_can_build_shared_CXX=no
15627 fi
15628
15629 fi
15630
15631
15632
15633 #
15634 # Check to make sure the static flag actually works.
15635 #
15636 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15639 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   lt_cv_prog_compiler_static_works_CXX=no
15643    save_LDFLAGS="$LDFLAGS"
15644    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15645    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15647      # The linker can only warn and ignore the option if not recognized
15648      # So say no if there are warnings
15649      if test -s conftest.err; then
15650        # Append any errors to the config.log.
15651        cat conftest.err 1>&5
15652        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15654        if diff conftest.exp conftest.er2 >/dev/null; then
15655          lt_cv_prog_compiler_static_works_CXX=yes
15656        fi
15657      else
15658        lt_cv_prog_compiler_static_works_CXX=yes
15659      fi
15660    fi
15661    $RM -r conftest*
15662    LDFLAGS="$save_LDFLAGS"
15663
15664 fi
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15666 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15667
15668 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15669     :
15670 else
15671     lt_prog_compiler_static_CXX=
15672 fi
15673
15674
15675
15676
15677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15680   $as_echo_n "(cached) " >&6
15681 else
15682   lt_cv_prog_compiler_c_o_CXX=no
15683    $RM -r conftest 2>/dev/null
15684    mkdir conftest
15685    cd conftest
15686    mkdir out
15687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15688
15689    lt_compiler_flag="-o out/conftest2.$ac_objext"
15690    # Insert the option either (1) after the last *FLAGS variable, or
15691    # (2) before a word containing "conftest.", or (3) at the end.
15692    # Note that $ac_compile itself does not contain backslashes and begins
15693    # with a dollar sign (not a hyphen), so the echo should work correctly.
15694    lt_compile=`echo "$ac_compile" | $SED \
15695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15697    -e 's:$: $lt_compiler_flag:'`
15698    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15699    (eval "$lt_compile" 2>out/conftest.err)
15700    ac_status=$?
15701    cat out/conftest.err >&5
15702    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15704    then
15705      # The compiler can only warn and ignore the option if not recognized
15706      # So say no if there are warnings
15707      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15708      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15709      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15710        lt_cv_prog_compiler_c_o_CXX=yes
15711      fi
15712    fi
15713    chmod u+w . 2>&5
15714    $RM conftest*
15715    # SGI C++ compiler will create directory out/ii_files/ for
15716    # template instantiation
15717    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15718    $RM out/* && rmdir out
15719    cd ..
15720    $RM -r conftest
15721    $RM conftest*
15722
15723 fi
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15726
15727
15728
15729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15731 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15732   $as_echo_n "(cached) " >&6
15733 else
15734   lt_cv_prog_compiler_c_o_CXX=no
15735    $RM -r conftest 2>/dev/null
15736    mkdir conftest
15737    cd conftest
15738    mkdir out
15739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15740
15741    lt_compiler_flag="-o out/conftest2.$ac_objext"
15742    # Insert the option either (1) after the last *FLAGS variable, or
15743    # (2) before a word containing "conftest.", or (3) at the end.
15744    # Note that $ac_compile itself does not contain backslashes and begins
15745    # with a dollar sign (not a hyphen), so the echo should work correctly.
15746    lt_compile=`echo "$ac_compile" | $SED \
15747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749    -e 's:$: $lt_compiler_flag:'`
15750    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15751    (eval "$lt_compile" 2>out/conftest.err)
15752    ac_status=$?
15753    cat out/conftest.err >&5
15754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15756    then
15757      # The compiler can only warn and ignore the option if not recognized
15758      # So say no if there are warnings
15759      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15760      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15761      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15762        lt_cv_prog_compiler_c_o_CXX=yes
15763      fi
15764    fi
15765    chmod u+w . 2>&5
15766    $RM conftest*
15767    # SGI C++ compiler will create directory out/ii_files/ for
15768    # template instantiation
15769    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15770    $RM out/* && rmdir out
15771    cd ..
15772    $RM -r conftest
15773    $RM conftest*
15774
15775 fi
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15777 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15778
15779
15780
15781
15782 hard_links="nottested"
15783 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15784   # do not overwrite the value of need_locks provided by the user
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15786 $as_echo_n "checking if we can lock with hard links... " >&6; }
15787   hard_links=yes
15788   $RM conftest*
15789   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15790   touch conftest.a
15791   ln conftest.a conftest.b 2>&5 || hard_links=no
15792   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15794 $as_echo "$hard_links" >&6; }
15795   if test "$hard_links" = no; then
15796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15798     need_locks=warn
15799   fi
15800 else
15801   need_locks=no
15802 fi
15803
15804
15805
15806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15808
15809   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15810   case $host_os in
15811   aix[4-9]*)
15812     # If we're using GNU nm, then we don't want the "-C" option.
15813     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15814     # Also, AIX nm treats weak defined symbols like other global defined
15815     # symbols, whereas GNU nm marks them as "W".
15816     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15817       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'
15818     else
15819       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'
15820     fi
15821     ;;
15822   pw32*)
15823     export_symbols_cmds_CXX="$ltdll_cmds"
15824   ;;
15825   cygwin* | mingw* | cegcc*)
15826     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'
15827   ;;
15828   *)
15829     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15830   ;;
15831   esac
15832   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15833
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15835 $as_echo "$ld_shlibs_CXX" >&6; }
15836 test "$ld_shlibs_CXX" = no && can_build_shared=no
15837
15838 with_gnu_ld_CXX=$with_gnu_ld
15839
15840
15841
15842
15843
15844
15845 #
15846 # Do we need to explicitly link libc?
15847 #
15848 case "x$archive_cmds_need_lc_CXX" in
15849 x|xyes)
15850   # Assume -lc should be added
15851   archive_cmds_need_lc_CXX=yes
15852
15853   if test "$enable_shared" = yes && test "$GCC" = yes; then
15854     case $archive_cmds_CXX in
15855     *'~'*)
15856       # FIXME: we may have to deal with multi-command sequences.
15857       ;;
15858     '$CC '*)
15859       # Test whether the compiler implicitly links with -lc since on some
15860       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15861       # to ld, don't add -lc before -lgcc.
15862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15864 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15865   $as_echo_n "(cached) " >&6
15866 else
15867   $RM conftest*
15868         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15869
15870         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15871   (eval $ac_compile) 2>&5
15872   ac_status=$?
15873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874   test $ac_status = 0; } 2>conftest.err; then
15875           soname=conftest
15876           lib=conftest
15877           libobjs=conftest.$ac_objext
15878           deplibs=
15879           wl=$lt_prog_compiler_wl_CXX
15880           pic_flag=$lt_prog_compiler_pic_CXX
15881           compiler_flags=-v
15882           linker_flags=-v
15883           verstring=
15884           output_objdir=.
15885           libname=conftest
15886           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15887           allow_undefined_flag_CXX=
15888           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15889   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15890   ac_status=$?
15891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892   test $ac_status = 0; }
15893           then
15894             lt_cv_archive_cmds_need_lc_CXX=no
15895           else
15896             lt_cv_archive_cmds_need_lc_CXX=yes
15897           fi
15898           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15899         else
15900           cat conftest.err 1>&5
15901         fi
15902         $RM conftest*
15903
15904 fi
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15906 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15907       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15908       ;;
15909     esac
15910   fi
15911   ;;
15912 esac
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
15969
15970
15971
15972
15973
15974
15975
15976
15977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15978 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15979
15980 library_names_spec=
15981 libname_spec='lib$name'
15982 soname_spec=
15983 shrext_cmds=".so"
15984 postinstall_cmds=
15985 postuninstall_cmds=
15986 finish_cmds=
15987 finish_eval=
15988 shlibpath_var=
15989 shlibpath_overrides_runpath=unknown
15990 version_type=none
15991 dynamic_linker="$host_os ld.so"
15992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15993 need_lib_prefix=unknown
15994 hardcode_into_libs=no
15995
15996 # when you set need_version to no, make sure it does not cause -set_version
15997 # flags to be left without arguments
15998 need_version=unknown
15999
16000 case $host_os in
16001 aix3*)
16002   version_type=linux
16003   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16004   shlibpath_var=LIBPATH
16005
16006   # AIX 3 has no versioning support, so we append a major version to the name.
16007   soname_spec='${libname}${release}${shared_ext}$major'
16008   ;;
16009
16010 aix[4-9]*)
16011   version_type=linux
16012   need_lib_prefix=no
16013   need_version=no
16014   hardcode_into_libs=yes
16015   if test "$host_cpu" = ia64; then
16016     # AIX 5 supports IA64
16017     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16018     shlibpath_var=LD_LIBRARY_PATH
16019   else
16020     # With GCC up to 2.95.x, collect2 would create an import file
16021     # for dependence libraries.  The import file would start with
16022     # the line `#! .'.  This would cause the generated library to
16023     # depend on `.', always an invalid library.  This was fixed in
16024     # development snapshots of GCC prior to 3.0.
16025     case $host_os in
16026       aix4 | aix4.[01] | aix4.[01].*)
16027       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16028            echo ' yes '
16029            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16030         :
16031       else
16032         can_build_shared=no
16033       fi
16034       ;;
16035     esac
16036     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16037     # soname into executable. Probably we can add versioning support to
16038     # collect2, so additional links can be useful in future.
16039     if test "$aix_use_runtimelinking" = yes; then
16040       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16041       # instead of lib<name>.a to let people know that these are not
16042       # typical AIX shared libraries.
16043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044     else
16045       # We preserve .a as extension for shared libraries through AIX4.2
16046       # and later when we are not doing run time linking.
16047       library_names_spec='${libname}${release}.a $libname.a'
16048       soname_spec='${libname}${release}${shared_ext}$major'
16049     fi
16050     shlibpath_var=LIBPATH
16051   fi
16052   ;;
16053
16054 amigaos*)
16055   case $host_cpu in
16056   powerpc)
16057     # Since July 2007 AmigaOS4 officially supports .so libraries.
16058     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060     ;;
16061   m68k)
16062     library_names_spec='$libname.ixlibrary $libname.a'
16063     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16064     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'
16065     ;;
16066   esac
16067   ;;
16068
16069 beos*)
16070   library_names_spec='${libname}${shared_ext}'
16071   dynamic_linker="$host_os ld.so"
16072   shlibpath_var=LIBRARY_PATH
16073   ;;
16074
16075 bsdi[45]*)
16076   version_type=linux
16077   need_version=no
16078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079   soname_spec='${libname}${release}${shared_ext}$major'
16080   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16083   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16084   # the default ld.so.conf also contains /usr/contrib/lib and
16085   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16086   # libtool to hard-code these into programs
16087   ;;
16088
16089 cygwin* | mingw* | pw32* | cegcc*)
16090   version_type=windows
16091   shrext_cmds=".dll"
16092   need_version=no
16093   need_lib_prefix=no
16094
16095   case $GCC,$host_os in
16096   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16097     library_names_spec='$libname.dll.a'
16098     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16099     postinstall_cmds='base_file=`basename \${file}`~
16100       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16101       dldir=$destdir/`dirname \$dlpath`~
16102       test -d \$dldir || mkdir -p \$dldir~
16103       $install_prog $dir/$dlname \$dldir/$dlname~
16104       chmod a+x \$dldir/$dlname~
16105       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16106         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16107       fi'
16108     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16109       dlpath=$dir/\$dldll~
16110        $RM \$dlpath'
16111     shlibpath_overrides_runpath=yes
16112
16113     case $host_os in
16114     cygwin*)
16115       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16116       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117
16118       ;;
16119     mingw* | cegcc*)
16120       # MinGW DLLs use traditional 'lib' prefix
16121       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122       ;;
16123     pw32*)
16124       # pw32 DLLs use 'pw' prefix rather than 'lib'
16125       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16126       ;;
16127     esac
16128     ;;
16129
16130   *)
16131     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16132     ;;
16133   esac
16134   dynamic_linker='Win32 ld.exe'
16135   # FIXME: first we should search . and the directory the executable is in
16136   shlibpath_var=PATH
16137   ;;
16138
16139 darwin* | rhapsody*)
16140   dynamic_linker="$host_os dyld"
16141   version_type=darwin
16142   need_lib_prefix=no
16143   need_version=no
16144   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16145   soname_spec='${libname}${release}${major}$shared_ext'
16146   shlibpath_overrides_runpath=yes
16147   shlibpath_var=DYLD_LIBRARY_PATH
16148   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16149
16150   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16151   ;;
16152
16153 dgux*)
16154   version_type=linux
16155   need_lib_prefix=no
16156   need_version=no
16157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16158   soname_spec='${libname}${release}${shared_ext}$major'
16159   shlibpath_var=LD_LIBRARY_PATH
16160   ;;
16161
16162 freebsd1*)
16163   dynamic_linker=no
16164   ;;
16165
16166 freebsd* | dragonfly*)
16167   # DragonFly does not have aout.  When/if they implement a new
16168   # versioning mechanism, adjust this.
16169   if test -x /usr/bin/objformat; then
16170     objformat=`/usr/bin/objformat`
16171   else
16172     case $host_os in
16173     freebsd[123]*) objformat=aout ;;
16174     *) objformat=elf ;;
16175     esac
16176   fi
16177   version_type=freebsd-$objformat
16178   case $version_type in
16179     freebsd-elf*)
16180       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16181       need_version=no
16182       need_lib_prefix=no
16183       ;;
16184     freebsd-*)
16185       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16186       need_version=yes
16187       ;;
16188   esac
16189   shlibpath_var=LD_LIBRARY_PATH
16190   case $host_os in
16191   freebsd2*)
16192     shlibpath_overrides_runpath=yes
16193     ;;
16194   freebsd3.[01]* | freebsdelf3.[01]*)
16195     shlibpath_overrides_runpath=yes
16196     hardcode_into_libs=yes
16197     ;;
16198   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16199   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16200     shlibpath_overrides_runpath=no
16201     hardcode_into_libs=yes
16202     ;;
16203   *) # from 4.6 on, and DragonFly
16204     shlibpath_overrides_runpath=yes
16205     hardcode_into_libs=yes
16206     ;;
16207   esac
16208   ;;
16209
16210 gnu*)
16211   version_type=linux
16212   need_lib_prefix=no
16213   need_version=no
16214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16215   soname_spec='${libname}${release}${shared_ext}$major'
16216   shlibpath_var=LD_LIBRARY_PATH
16217   hardcode_into_libs=yes
16218   ;;
16219
16220 haiku*)
16221   version_type=linux
16222   need_lib_prefix=no
16223   need_version=no
16224   dynamic_linker="$host_os runtime_loader"
16225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16226   soname_spec='${libname}${release}${shared_ext}$major'
16227   shlibpath_var=LIBRARY_PATH
16228   shlibpath_overrides_runpath=yes
16229   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16230   hardcode_into_libs=yes
16231   ;;
16232
16233 hpux9* | hpux10* | hpux11*)
16234   # Give a soname corresponding to the major version so that dld.sl refuses to
16235   # link against other versions.
16236   version_type=sunos
16237   need_lib_prefix=no
16238   need_version=no
16239   case $host_cpu in
16240   ia64*)
16241     shrext_cmds='.so'
16242     hardcode_into_libs=yes
16243     dynamic_linker="$host_os dld.so"
16244     shlibpath_var=LD_LIBRARY_PATH
16245     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247     soname_spec='${libname}${release}${shared_ext}$major'
16248     if test "X$HPUX_IA64_MODE" = X32; then
16249       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16250     else
16251       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16252     fi
16253     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16254     ;;
16255   hppa*64*)
16256     shrext_cmds='.sl'
16257     hardcode_into_libs=yes
16258     dynamic_linker="$host_os dld.sl"
16259     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262     soname_spec='${libname}${release}${shared_ext}$major'
16263     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16264     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16265     ;;
16266   *)
16267     shrext_cmds='.sl'
16268     dynamic_linker="$host_os dld.sl"
16269     shlibpath_var=SHLIB_PATH
16270     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272     soname_spec='${libname}${release}${shared_ext}$major'
16273     ;;
16274   esac
16275   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16276   postinstall_cmds='chmod 555 $lib'
16277   # or fails outright, so override atomically:
16278   install_override_mode=555
16279   ;;
16280
16281 interix[3-9]*)
16282   version_type=linux
16283   need_lib_prefix=no
16284   need_version=no
16285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16286   soname_spec='${libname}${release}${shared_ext}$major'
16287   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16288   shlibpath_var=LD_LIBRARY_PATH
16289   shlibpath_overrides_runpath=no
16290   hardcode_into_libs=yes
16291   ;;
16292
16293 irix5* | irix6* | nonstopux*)
16294   case $host_os in
16295     nonstopux*) version_type=nonstopux ;;
16296     *)
16297         if test "$lt_cv_prog_gnu_ld" = yes; then
16298                 version_type=linux
16299         else
16300                 version_type=irix
16301         fi ;;
16302   esac
16303   need_lib_prefix=no
16304   need_version=no
16305   soname_spec='${libname}${release}${shared_ext}$major'
16306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16307   case $host_os in
16308   irix5* | nonstopux*)
16309     libsuff= shlibsuff=
16310     ;;
16311   *)
16312     case $LD in # libtool.m4 will add one of these switches to LD
16313     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16314       libsuff= shlibsuff= libmagic=32-bit;;
16315     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16316       libsuff=32 shlibsuff=N32 libmagic=N32;;
16317     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16318       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16319     *) libsuff= shlibsuff= libmagic=never-match;;
16320     esac
16321     ;;
16322   esac
16323   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16324   shlibpath_overrides_runpath=no
16325   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16326   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16327   hardcode_into_libs=yes
16328   ;;
16329
16330 # No shared lib support for Linux oldld, aout, or coff.
16331 linux*oldld* | linux*aout* | linux*coff*)
16332   dynamic_linker=no
16333   ;;
16334
16335 # This must be Linux ELF.
16336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16337   version_type=linux
16338   need_lib_prefix=no
16339   need_version=no
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341   soname_spec='${libname}${release}${shared_ext}$major'
16342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16343   shlibpath_var=LD_LIBRARY_PATH
16344   shlibpath_overrides_runpath=no
16345
16346   # Some binutils ld are patched to set DT_RUNPATH
16347   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16348   $as_echo_n "(cached) " >&6
16349 else
16350   lt_cv_shlibpath_overrides_runpath=no
16351     save_LDFLAGS=$LDFLAGS
16352     save_libdir=$libdir
16353     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16354          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16355     if test x$gcc_no_link = xyes; then
16356   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16357 fi
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h.  */
16360
16361 int
16362 main ()
16363 {
16364
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 if ac_fn_cxx_try_link "$LINENO"; then :
16370   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16371   lt_cv_shlibpath_overrides_runpath=yes
16372 fi
16373 fi
16374 rm -f core conftest.err conftest.$ac_objext \
16375     conftest$ac_exeext conftest.$ac_ext
16376     LDFLAGS=$save_LDFLAGS
16377     libdir=$save_libdir
16378
16379 fi
16380
16381   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16382
16383   # This implies no fast_install, which is unacceptable.
16384   # Some rework will be needed to allow for fast_install
16385   # before this can be enabled.
16386   hardcode_into_libs=yes
16387
16388   # Append ld.so.conf contents to the search path
16389   if test -f /etc/ld.so.conf; then
16390     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' ' '`
16391     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16392   fi
16393
16394   # We used to test for /lib/ld.so.1 and disable shared libraries on
16395   # powerpc, because MkLinux only supported shared libraries with the
16396   # GNU dynamic linker.  Since this was broken with cross compilers,
16397   # most powerpc-linux boxes support dynamic linking these days and
16398   # people can always --disable-shared, the test was removed, and we
16399   # assume the GNU/Linux dynamic linker is in use.
16400   dynamic_linker='GNU/Linux ld.so'
16401   ;;
16402
16403 netbsd*)
16404   version_type=sunos
16405   need_lib_prefix=no
16406   need_version=no
16407   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16409     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16410     dynamic_linker='NetBSD (a.out) ld.so'
16411   else
16412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16413     soname_spec='${libname}${release}${shared_ext}$major'
16414     dynamic_linker='NetBSD ld.elf_so'
16415   fi
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=yes
16418   hardcode_into_libs=yes
16419   ;;
16420
16421 newsos6)
16422   version_type=linux
16423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424   shlibpath_var=LD_LIBRARY_PATH
16425   shlibpath_overrides_runpath=yes
16426   ;;
16427
16428 *nto* | *qnx*)
16429   version_type=qnx
16430   need_lib_prefix=no
16431   need_version=no
16432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433   soname_spec='${libname}${release}${shared_ext}$major'
16434   shlibpath_var=LD_LIBRARY_PATH
16435   shlibpath_overrides_runpath=no
16436   hardcode_into_libs=yes
16437   dynamic_linker='ldqnx.so'
16438   ;;
16439
16440 openbsd*)
16441   version_type=sunos
16442   sys_lib_dlsearch_path_spec="/usr/lib"
16443   need_lib_prefix=no
16444   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16445   case $host_os in
16446     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16447     *)                          need_version=no  ;;
16448   esac
16449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16451   shlibpath_var=LD_LIBRARY_PATH
16452   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16453     case $host_os in
16454       openbsd2.[89] | openbsd2.[89].*)
16455         shlibpath_overrides_runpath=no
16456         ;;
16457       *)
16458         shlibpath_overrides_runpath=yes
16459         ;;
16460       esac
16461   else
16462     shlibpath_overrides_runpath=yes
16463   fi
16464   ;;
16465
16466 os2*)
16467   libname_spec='$name'
16468   shrext_cmds=".dll"
16469   need_lib_prefix=no
16470   library_names_spec='$libname${shared_ext} $libname.a'
16471   dynamic_linker='OS/2 ld.exe'
16472   shlibpath_var=LIBPATH
16473   ;;
16474
16475 osf3* | osf4* | osf5*)
16476   version_type=osf
16477   need_lib_prefix=no
16478   need_version=no
16479   soname_spec='${libname}${release}${shared_ext}$major'
16480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481   shlibpath_var=LD_LIBRARY_PATH
16482   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16483   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16484   ;;
16485
16486 rdos*)
16487   dynamic_linker=no
16488   ;;
16489
16490 solaris*)
16491   version_type=linux
16492   need_lib_prefix=no
16493   need_version=no
16494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495   soname_spec='${libname}${release}${shared_ext}$major'
16496   shlibpath_var=LD_LIBRARY_PATH
16497   shlibpath_overrides_runpath=yes
16498   hardcode_into_libs=yes
16499   # ldd complains unless libraries are executable
16500   postinstall_cmds='chmod +x $lib'
16501   ;;
16502
16503 sunos4*)
16504   version_type=sunos
16505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16506   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16507   shlibpath_var=LD_LIBRARY_PATH
16508   shlibpath_overrides_runpath=yes
16509   if test "$with_gnu_ld" = yes; then
16510     need_lib_prefix=no
16511   fi
16512   need_version=yes
16513   ;;
16514
16515 sysv4 | sysv4.3*)
16516   version_type=linux
16517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518   soname_spec='${libname}${release}${shared_ext}$major'
16519   shlibpath_var=LD_LIBRARY_PATH
16520   case $host_vendor in
16521     sni)
16522       shlibpath_overrides_runpath=no
16523       need_lib_prefix=no
16524       runpath_var=LD_RUN_PATH
16525       ;;
16526     siemens)
16527       need_lib_prefix=no
16528       ;;
16529     motorola)
16530       need_lib_prefix=no
16531       need_version=no
16532       shlibpath_overrides_runpath=no
16533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16534       ;;
16535   esac
16536   ;;
16537
16538 sysv4*MP*)
16539   if test -d /usr/nec ;then
16540     version_type=linux
16541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16542     soname_spec='$libname${shared_ext}.$major'
16543     shlibpath_var=LD_LIBRARY_PATH
16544   fi
16545   ;;
16546
16547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16548   version_type=freebsd-elf
16549   need_lib_prefix=no
16550   need_version=no
16551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16552   soname_spec='${libname}${release}${shared_ext}$major'
16553   shlibpath_var=LD_LIBRARY_PATH
16554   shlibpath_overrides_runpath=yes
16555   hardcode_into_libs=yes
16556   if test "$with_gnu_ld" = yes; then
16557     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16558   else
16559     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16560     case $host_os in
16561       sco3.2v5*)
16562         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16563         ;;
16564     esac
16565   fi
16566   sys_lib_dlsearch_path_spec='/usr/lib'
16567   ;;
16568
16569 tpf*)
16570   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16571   version_type=linux
16572   need_lib_prefix=no
16573   need_version=no
16574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575   shlibpath_var=LD_LIBRARY_PATH
16576   shlibpath_overrides_runpath=no
16577   hardcode_into_libs=yes
16578   ;;
16579
16580 uts4*)
16581   version_type=linux
16582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583   soname_spec='${libname}${release}${shared_ext}$major'
16584   shlibpath_var=LD_LIBRARY_PATH
16585   ;;
16586
16587 *)
16588   dynamic_linker=no
16589   ;;
16590 esac
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16592 $as_echo "$dynamic_linker" >&6; }
16593 test "$dynamic_linker" = no && can_build_shared=no
16594
16595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16596 if test "$GCC" = yes; then
16597   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16598 fi
16599
16600 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16601   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16602 fi
16603 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16604   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16605 fi
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
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16646 hardcode_action_CXX=
16647 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16648    test -n "$runpath_var_CXX" ||
16649    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16650
16651   # We can hardcode non-existent directories.
16652   if test "$hardcode_direct_CXX" != no &&
16653      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16654      # have to relink, otherwise we might link with an installed library
16655      # when we should be linking with a yet-to-be-installed one
16656      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16657      test "$hardcode_minus_L_CXX" != no; then
16658     # Linking always hardcodes the temporary library directory.
16659     hardcode_action_CXX=relink
16660   else
16661     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16662     hardcode_action_CXX=immediate
16663   fi
16664 else
16665   # We cannot hardcode anything, or else we can only hardcode existing
16666   # directories.
16667   hardcode_action_CXX=unsupported
16668 fi
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16670 $as_echo "$hardcode_action_CXX" >&6; }
16671
16672 if test "$hardcode_action_CXX" = relink ||
16673    test "$inherit_rpath_CXX" = yes; then
16674   # Fast installation is not supported
16675   enable_fast_install=no
16676 elif test "$shlibpath_overrides_runpath" = yes ||
16677      test "$enable_shared" = no; then
16678   # Fast installation is not necessary
16679   enable_fast_install=needless
16680 fi
16681
16682
16683
16684
16685
16686
16687
16688   fi # test -n "$compiler"
16689
16690   CC=$lt_save_CC
16691   LDCXX=$LD
16692   LD=$lt_save_LD
16693   GCC=$lt_save_GCC
16694   with_gnu_ld=$lt_save_with_gnu_ld
16695   lt_cv_path_LDCXX=$lt_cv_path_LD
16696   lt_cv_path_LD=$lt_save_path_LD
16697   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16698   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16699 fi # test "$_lt_caught_CXX_error" != yes
16700
16701 ac_ext=c
16702 ac_cpp='$CPP $CPPFLAGS'
16703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719         ac_config_commands="$ac_config_commands libtool"
16720
16721
16722
16723
16724 # Only expand once:
16725
16726
16727
16728 if test -n "$ac_tool_prefix"; then
16729   for ac_prog in gcj
16730   do
16731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if test "${ac_cv_prog_GCJ+set}" = set; then :
16736   $as_echo_n "(cached) " >&6
16737 else
16738   if test -n "$GCJ"; then
16739   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16740 else
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16743 do
16744   IFS=$as_save_IFS
16745   test -z "$as_dir" && as_dir=.
16746     for ac_exec_ext in '' $ac_executable_extensions; do
16747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16748     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750     break 2
16751   fi
16752 done
16753   done
16754 IFS=$as_save_IFS
16755
16756 fi
16757 fi
16758 GCJ=$ac_cv_prog_GCJ
16759 if test -n "$GCJ"; then
16760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16761 $as_echo "$GCJ" >&6; }
16762 else
16763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16765 fi
16766
16767
16768     test -n "$GCJ" && break
16769   done
16770 fi
16771 if test -z "$GCJ"; then
16772   ac_ct_GCJ=$GCJ
16773   for ac_prog in gcj
16774 do
16775   # Extract the first word of "$ac_prog", so it can be a program name with args.
16776 set dummy $ac_prog; ac_word=$2
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16778 $as_echo_n "checking for $ac_word... " >&6; }
16779 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16780   $as_echo_n "(cached) " >&6
16781 else
16782   if test -n "$ac_ct_GCJ"; then
16783   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16784 else
16785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16787 do
16788   IFS=$as_save_IFS
16789   test -z "$as_dir" && as_dir=.
16790     for ac_exec_ext in '' $ac_executable_extensions; do
16791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16792     ac_cv_prog_ac_ct_GCJ="$ac_prog"
16793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16794     break 2
16795   fi
16796 done
16797   done
16798 IFS=$as_save_IFS
16799
16800 fi
16801 fi
16802 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16803 if test -n "$ac_ct_GCJ"; then
16804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16805 $as_echo "$ac_ct_GCJ" >&6; }
16806 else
16807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808 $as_echo "no" >&6; }
16809 fi
16810
16811
16812   test -n "$ac_ct_GCJ" && break
16813 done
16814
16815   if test "x$ac_ct_GCJ" = x; then
16816     GCJ="gcj"
16817   else
16818     case $cross_compiling:$ac_tool_warned in
16819 yes:)
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16822 ac_tool_warned=yes ;;
16823 esac
16824     GCJ=$ac_ct_GCJ
16825   fi
16826 fi
16827
16828 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16829 if test "x${GCJFLAGS-unset}" = xunset; then
16830    GCJFLAGS="-g -O2"
16831 fi
16832
16833
16834 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16837 $as_echo_n "checking dependency style of $depcc... " >&6; }
16838 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16839   $as_echo_n "(cached) " >&6
16840 else
16841   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16842   # We make a subdir and do the tests there.  Otherwise we can end up
16843   # making bogus files that we don't know about and never remove.  For
16844   # instance it was reported that on HP-UX the gcc test will end up
16845   # making a dummy file named `D' -- because `-MD' means `put the output
16846   # in D'.
16847   mkdir conftest.dir
16848   # Copy depcomp to subdir because otherwise we won't find it if we're
16849   # using a relative directory.
16850   cp "$am_depcomp" conftest.dir
16851   cd conftest.dir
16852   # We will build objects and dependencies in a subdirectory because
16853   # it helps to detect inapplicable dependency modes.  For instance
16854   # both Tru64's cc and ICC support -MD to output dependencies as a
16855   # side effect of compilation, but ICC will put the dependencies in
16856   # the current directory while Tru64 will put them in the object
16857   # directory.
16858   mkdir sub
16859
16860   am_cv_GCJ_dependencies_compiler_type=none
16861   if test "$am_compiler_list" = ""; then
16862      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16863   fi
16864   am__universal=false
16865
16866
16867   for depmode in $am_compiler_list; do
16868     # Setup a source with many dependencies, because some compilers
16869     # like to wrap large dependency lists on column 80 (with \), and
16870     # we should not choose a depcomp mode which is confused by this.
16871     #
16872     # We need to recreate these files for each test, as the compiler may
16873     # overwrite some of them when testing with obscure command lines.
16874     # This happens at least with the AIX C compiler.
16875     : > sub/conftest.c
16876     for i in 1 2 3 4 5 6; do
16877       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16878       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16879       # Solaris 8's {/usr,}/bin/sh.
16880       touch sub/conftst$i.h
16881     done
16882     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16883
16884     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16885     # mode.  It turns out that the SunPro C++ compiler does not properly
16886     # handle `-M -o', and we need to detect this.  Also, some Intel
16887     # versions had trouble with output in subdirs
16888     am__obj=sub/conftest.${OBJEXT-o}
16889     am__minus_obj="-o $am__obj"
16890     case $depmode in
16891     gcc)
16892       # This depmode causes a compiler race in universal mode.
16893       test "$am__universal" = false || continue
16894       ;;
16895     nosideeffect)
16896       # after this tag, mechanisms are not by side-effect, so they'll
16897       # only be used when explicitly requested
16898       if test "x$enable_dependency_tracking" = xyes; then
16899         continue
16900       else
16901         break
16902       fi
16903       ;;
16904     msvisualcpp | msvcmsys)
16905       # This compiler won't grok `-c -o', but also, the minuso test has
16906       # not run yet.  These depmodes are late enough in the game, and
16907       # so weak that their functioning should not be impacted.
16908       am__obj=conftest.${OBJEXT-o}
16909       am__minus_obj=
16910       ;;
16911     none) break ;;
16912     esac
16913     if depmode=$depmode \
16914        source=sub/conftest.c object=$am__obj \
16915        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16916        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16917          >/dev/null 2>conftest.err &&
16918        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16919        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16920        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16921        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16922       # icc doesn't choke on unknown options, it will just issue warnings
16923       # or remarks (even with -Werror).  So we grep stderr for any message
16924       # that says an option was ignored or not supported.
16925       # When given -MP, icc 7.0 and 7.1 complain thusly:
16926       #   icc: Command line warning: ignoring option '-M'; no argument required
16927       # The diagnosis changed in icc 8.0:
16928       #   icc: Command line remark: option '-MP' not supported
16929       if (grep 'ignoring option' conftest.err ||
16930           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16931         am_cv_GCJ_dependencies_compiler_type=$depmode
16932         break
16933       fi
16934     fi
16935   done
16936
16937   cd ..
16938   rm -rf conftest.dir
16939 else
16940   am_cv_GCJ_dependencies_compiler_type=none
16941 fi
16942
16943 fi
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16945 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16946 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16947
16948  if
16949   test "x$enable_dependency_tracking" != xno \
16950   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16951   am__fastdepGCJ_TRUE=
16952   am__fastdepGCJ_FALSE='#'
16953 else
16954   am__fastdepGCJ_TRUE='#'
16955   am__fastdepGCJ_FALSE=
16956 fi
16957
16958
16959
16960 if test -n "$ac_tool_prefix"; then
16961   for ac_prog in gcj
16962   do
16963     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16966 $as_echo_n "checking for $ac_word... " >&6; }
16967 if test "${ac_cv_prog_GCJ+set}" = set; then :
16968   $as_echo_n "(cached) " >&6
16969 else
16970   if test -n "$GCJ"; then
16971   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16972 else
16973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16974 for as_dir in $PATH
16975 do
16976   IFS=$as_save_IFS
16977   test -z "$as_dir" && as_dir=.
16978     for ac_exec_ext in '' $ac_executable_extensions; do
16979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16980     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16982     break 2
16983   fi
16984 done
16985   done
16986 IFS=$as_save_IFS
16987
16988 fi
16989 fi
16990 GCJ=$ac_cv_prog_GCJ
16991 if test -n "$GCJ"; then
16992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16993 $as_echo "$GCJ" >&6; }
16994 else
16995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996 $as_echo "no" >&6; }
16997 fi
16998
16999
17000     test -n "$GCJ" && break
17001   done
17002 fi
17003 if test -z "$GCJ"; then
17004   ac_ct_GCJ=$GCJ
17005   for ac_prog in gcj
17006 do
17007   # Extract the first word of "$ac_prog", so it can be a program name with args.
17008 set dummy $ac_prog; ac_word=$2
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17010 $as_echo_n "checking for $ac_word... " >&6; }
17011 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17012   $as_echo_n "(cached) " >&6
17013 else
17014   if test -n "$ac_ct_GCJ"; then
17015   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17016 else
17017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018 for as_dir in $PATH
17019 do
17020   IFS=$as_save_IFS
17021   test -z "$as_dir" && as_dir=.
17022     for ac_exec_ext in '' $ac_executable_extensions; do
17023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17024     ac_cv_prog_ac_ct_GCJ="$ac_prog"
17025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17026     break 2
17027   fi
17028 done
17029   done
17030 IFS=$as_save_IFS
17031
17032 fi
17033 fi
17034 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17035 if test -n "$ac_ct_GCJ"; then
17036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17037 $as_echo "$ac_ct_GCJ" >&6; }
17038 else
17039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 $as_echo "no" >&6; }
17041 fi
17042
17043
17044   test -n "$ac_ct_GCJ" && break
17045 done
17046
17047   if test "x$ac_ct_GCJ" = x; then
17048     GCJ="gcj"
17049   else
17050     case $cross_compiling:$ac_tool_warned in
17051 yes:)
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17054 ac_tool_warned=yes ;;
17055 esac
17056     GCJ=$ac_ct_GCJ
17057   fi
17058 fi
17059
17060 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17061 if test "x${GCJFLAGS-unset}" = xunset; then
17062    GCJFLAGS="-g -O2"
17063 fi
17064
17065
17066 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17069 $as_echo_n "checking dependency style of $depcc... " >&6; }
17070 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17071   $as_echo_n "(cached) " >&6
17072 else
17073   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17074   # We make a subdir and do the tests there.  Otherwise we can end up
17075   # making bogus files that we don't know about and never remove.  For
17076   # instance it was reported that on HP-UX the gcc test will end up
17077   # making a dummy file named `D' -- because `-MD' means `put the output
17078   # in D'.
17079   mkdir conftest.dir
17080   # Copy depcomp to subdir because otherwise we won't find it if we're
17081   # using a relative directory.
17082   cp "$am_depcomp" conftest.dir
17083   cd conftest.dir
17084   # We will build objects and dependencies in a subdirectory because
17085   # it helps to detect inapplicable dependency modes.  For instance
17086   # both Tru64's cc and ICC support -MD to output dependencies as a
17087   # side effect of compilation, but ICC will put the dependencies in
17088   # the current directory while Tru64 will put them in the object
17089   # directory.
17090   mkdir sub
17091
17092   am_cv_GCJ_dependencies_compiler_type=none
17093   if test "$am_compiler_list" = ""; then
17094      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17095   fi
17096   am__universal=false
17097
17098
17099   for depmode in $am_compiler_list; do
17100     # Setup a source with many dependencies, because some compilers
17101     # like to wrap large dependency lists on column 80 (with \), and
17102     # we should not choose a depcomp mode which is confused by this.
17103     #
17104     # We need to recreate these files for each test, as the compiler may
17105     # overwrite some of them when testing with obscure command lines.
17106     # This happens at least with the AIX C compiler.
17107     : > sub/conftest.c
17108     for i in 1 2 3 4 5 6; do
17109       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17110       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17111       # Solaris 8's {/usr,}/bin/sh.
17112       touch sub/conftst$i.h
17113     done
17114     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17115
17116     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17117     # mode.  It turns out that the SunPro C++ compiler does not properly
17118     # handle `-M -o', and we need to detect this.  Also, some Intel
17119     # versions had trouble with output in subdirs
17120     am__obj=sub/conftest.${OBJEXT-o}
17121     am__minus_obj="-o $am__obj"
17122     case $depmode in
17123     gcc)
17124       # This depmode causes a compiler race in universal mode.
17125       test "$am__universal" = false || continue
17126       ;;
17127     nosideeffect)
17128       # after this tag, mechanisms are not by side-effect, so they'll
17129       # only be used when explicitly requested
17130       if test "x$enable_dependency_tracking" = xyes; then
17131         continue
17132       else
17133         break
17134       fi
17135       ;;
17136     msvisualcpp | msvcmsys)
17137       # This compiler won't grok `-c -o', but also, the minuso test has
17138       # not run yet.  These depmodes are late enough in the game, and
17139       # so weak that their functioning should not be impacted.
17140       am__obj=conftest.${OBJEXT-o}
17141       am__minus_obj=
17142       ;;
17143     none) break ;;
17144     esac
17145     if depmode=$depmode \
17146        source=sub/conftest.c object=$am__obj \
17147        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17148        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17149          >/dev/null 2>conftest.err &&
17150        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17152        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17154       # icc doesn't choke on unknown options, it will just issue warnings
17155       # or remarks (even with -Werror).  So we grep stderr for any message
17156       # that says an option was ignored or not supported.
17157       # When given -MP, icc 7.0 and 7.1 complain thusly:
17158       #   icc: Command line warning: ignoring option '-M'; no argument required
17159       # The diagnosis changed in icc 8.0:
17160       #   icc: Command line remark: option '-MP' not supported
17161       if (grep 'ignoring option' conftest.err ||
17162           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17163         am_cv_GCJ_dependencies_compiler_type=$depmode
17164         break
17165       fi
17166     fi
17167   done
17168
17169   cd ..
17170   rm -rf conftest.dir
17171 else
17172   am_cv_GCJ_dependencies_compiler_type=none
17173 fi
17174
17175 fi
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17177 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17178 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17179
17180  if
17181   test "x$enable_dependency_tracking" != xno \
17182   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17183   am__fastdepGCJ_TRUE=
17184   am__fastdepGCJ_FALSE='#'
17185 else
17186   am__fastdepGCJ_TRUE='#'
17187   am__fastdepGCJ_FALSE=
17188 fi
17189
17190
17191
17192
17193
17194 # Source file extension for Java test sources.
17195 ac_ext=c
17196
17197 # Object file extension for compiled Java test sources.
17198 objext=o
17199 objext_GCJ=$objext
17200
17201 # Code to be used in simple compile tests
17202 lt_simple_compile_test_code="int some_variable = 0;"
17203
17204 # Code to be used in simple link tests
17205 lt_simple_link_test_code='int main(){return(0);}'
17206
17207 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17208
17209
17210
17211
17212
17213
17214 # If no C compiler was specified, use CC.
17215 LTCC=${LTCC-"$CC"}
17216
17217 # If no C compiler flags were specified, use CFLAGS.
17218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17219
17220 # Allow CC to be a program name with arguments.
17221 compiler=$CC
17222
17223
17224 # save warnings/boilerplate of simple test code
17225 ac_outfile=conftest.$ac_objext
17226 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17228 _lt_compiler_boilerplate=`cat conftest.err`
17229 $RM conftest*
17230
17231 ac_outfile=conftest.$ac_objext
17232 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17234 _lt_linker_boilerplate=`cat conftest.err`
17235 $RM -r conftest*
17236
17237
17238 # Allow CC to be a program name with arguments.
17239 GCC=yes
17240 compiler=$CC
17241 compiler_GCJ=$CC
17242 for cc_temp in $compiler""; do
17243   case $cc_temp in
17244     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17245     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17246     \-*) ;;
17247     *) break;;
17248   esac
17249 done
17250 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17251
17252
17253 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17254 archive_cmds_need_lc_GCJ=no
17255
17256 old_archive_cmds_GCJ=$old_archive_cmds
17257
17258 ## CAVEAT EMPTOR:
17259 ## There is no encapsulation within the following macros, do not change
17260 ## the running order or otherwise move them around unless you know exactly
17261 ## what you are doing...
17262 if test -n "$compiler"; then
17263
17264 lt_prog_compiler_no_builtin_flag_GCJ=
17265
17266 if test "$GCC" = yes; then
17267   case $cc_basename in
17268   nvcc*)
17269     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17270   *)
17271     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17272   esac
17273
17274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17275 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17277   $as_echo_n "(cached) " >&6
17278 else
17279   lt_cv_prog_compiler_rtti_exceptions=no
17280    ac_outfile=conftest.$ac_objext
17281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17282    lt_compiler_flag="-fno-rtti -fno-exceptions"
17283    # Insert the option either (1) after the last *FLAGS variable, or
17284    # (2) before a word containing "conftest.", or (3) at the end.
17285    # Note that $ac_compile itself does not contain backslashes and begins
17286    # with a dollar sign (not a hyphen), so the echo should work correctly.
17287    # The option is referenced via a variable to avoid confusing sed.
17288    lt_compile=`echo "$ac_compile" | $SED \
17289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17291    -e 's:$: $lt_compiler_flag:'`
17292    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17293    (eval "$lt_compile" 2>conftest.err)
17294    ac_status=$?
17295    cat conftest.err >&5
17296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297    if (exit $ac_status) && test -s "$ac_outfile"; then
17298      # The compiler can only warn and ignore the option if not recognized
17299      # So say no if there are warnings other than the usual output.
17300      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17301      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17302      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17303        lt_cv_prog_compiler_rtti_exceptions=yes
17304      fi
17305    fi
17306    $RM conftest*
17307
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17310 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17311
17312 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17313     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17314 else
17315     :
17316 fi
17317
17318 fi
17319
17320
17321
17322   lt_prog_compiler_wl_GCJ=
17323 lt_prog_compiler_pic_GCJ=
17324 lt_prog_compiler_static_GCJ=
17325
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17327 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17328
17329   if test "$GCC" = yes; then
17330     lt_prog_compiler_wl_GCJ='-Wl,'
17331     lt_prog_compiler_static_GCJ='-static'
17332
17333     case $host_os in
17334       aix*)
17335       # All AIX code is PIC.
17336       if test "$host_cpu" = ia64; then
17337         # AIX 5 now supports IA64 processor
17338         lt_prog_compiler_static_GCJ='-Bstatic'
17339       fi
17340       ;;
17341
17342     amigaos*)
17343       case $host_cpu in
17344       powerpc)
17345             # see comment about AmigaOS4 .so support
17346             lt_prog_compiler_pic_GCJ='-fPIC'
17347         ;;
17348       m68k)
17349             # FIXME: we need at least 68020 code to build shared libraries, but
17350             # adding the `-m68020' flag to GCC prevents building anything better,
17351             # like `-m68040'.
17352             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17353         ;;
17354       esac
17355       ;;
17356
17357     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17358       # PIC is the default for these OSes.
17359       ;;
17360
17361     mingw* | cygwin* | pw32* | os2* | cegcc*)
17362       # This hack is so that the source file can tell whether it is being
17363       # built for inclusion in a dll (and should export symbols for example).
17364       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17365       # (--disable-auto-import) libraries
17366
17367       ;;
17368
17369     darwin* | rhapsody*)
17370       # PIC is the default on this platform
17371       # Common symbols not allowed in MH_DYLIB files
17372       lt_prog_compiler_pic_GCJ='-fno-common'
17373       ;;
17374
17375     haiku*)
17376       # PIC is the default for Haiku.
17377       # The "-static" flag exists, but is broken.
17378       lt_prog_compiler_static_GCJ=
17379       ;;
17380
17381     hpux*)
17382       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17383       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17384       # sets the default TLS model and affects inlining.
17385       case $host_cpu in
17386       hppa*64*)
17387         # +Z the default
17388         ;;
17389       *)
17390         lt_prog_compiler_pic_GCJ='-fPIC'
17391         ;;
17392       esac
17393       ;;
17394
17395     interix[3-9]*)
17396       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17397       # Instead, we relocate shared libraries at runtime.
17398       ;;
17399
17400     msdosdjgpp*)
17401       # Just because we use GCC doesn't mean we suddenly get shared libraries
17402       # on systems that don't support them.
17403       lt_prog_compiler_can_build_shared_GCJ=no
17404       enable_shared=no
17405       ;;
17406
17407     *nto* | *qnx*)
17408       # QNX uses GNU C++, but need to define -shared option too, otherwise
17409       # it will coredump.
17410       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17411       ;;
17412
17413     sysv4*MP*)
17414       if test -d /usr/nec; then
17415         lt_prog_compiler_pic_GCJ=-Kconform_pic
17416       fi
17417       ;;
17418
17419     *)
17420       lt_prog_compiler_pic_GCJ='-fPIC'
17421       ;;
17422     esac
17423
17424     case $cc_basename in
17425     nvcc*) # Cuda Compiler Driver 2.2
17426       lt_prog_compiler_wl_GCJ='-Xlinker '
17427       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17428       ;;
17429     esac
17430   else
17431     # PORTME Check for flag to pass linker flags through the system compiler.
17432     case $host_os in
17433     aix*)
17434       lt_prog_compiler_wl_GCJ='-Wl,'
17435       if test "$host_cpu" = ia64; then
17436         # AIX 5 now supports IA64 processor
17437         lt_prog_compiler_static_GCJ='-Bstatic'
17438       else
17439         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17440       fi
17441       ;;
17442
17443     mingw* | cygwin* | pw32* | os2* | cegcc*)
17444       # This hack is so that the source file can tell whether it is being
17445       # built for inclusion in a dll (and should export symbols for example).
17446
17447       ;;
17448
17449     hpux9* | hpux10* | hpux11*)
17450       lt_prog_compiler_wl_GCJ='-Wl,'
17451       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17452       # not for PA HP-UX.
17453       case $host_cpu in
17454       hppa*64*|ia64*)
17455         # +Z the default
17456         ;;
17457       *)
17458         lt_prog_compiler_pic_GCJ='+Z'
17459         ;;
17460       esac
17461       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17462       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17463       ;;
17464
17465     irix5* | irix6* | nonstopux*)
17466       lt_prog_compiler_wl_GCJ='-Wl,'
17467       # PIC (with -KPIC) is the default.
17468       lt_prog_compiler_static_GCJ='-non_shared'
17469       ;;
17470
17471     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17472       case $cc_basename in
17473       # old Intel for x86_64 which still supported -KPIC.
17474       ecc*)
17475         lt_prog_compiler_wl_GCJ='-Wl,'
17476         lt_prog_compiler_pic_GCJ='-KPIC'
17477         lt_prog_compiler_static_GCJ='-static'
17478         ;;
17479       # icc used to be incompatible with GCC.
17480       # ICC 10 doesn't accept -KPIC any more.
17481       icc* | ifort*)
17482         lt_prog_compiler_wl_GCJ='-Wl,'
17483         lt_prog_compiler_pic_GCJ='-fPIC'
17484         lt_prog_compiler_static_GCJ='-static'
17485         ;;
17486       # Lahey Fortran 8.1.
17487       lf95*)
17488         lt_prog_compiler_wl_GCJ='-Wl,'
17489         lt_prog_compiler_pic_GCJ='--shared'
17490         lt_prog_compiler_static_GCJ='--static'
17491         ;;
17492       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17493         # Portland Group compilers (*not* the Pentium gcc compiler,
17494         # which looks to be a dead project)
17495         lt_prog_compiler_wl_GCJ='-Wl,'
17496         lt_prog_compiler_pic_GCJ='-fpic'
17497         lt_prog_compiler_static_GCJ='-Bstatic'
17498         ;;
17499       ccc*)
17500         lt_prog_compiler_wl_GCJ='-Wl,'
17501         # All Alpha code is PIC.
17502         lt_prog_compiler_static_GCJ='-non_shared'
17503         ;;
17504       xl* | bgxl* | bgf* | mpixl*)
17505         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17506         lt_prog_compiler_wl_GCJ='-Wl,'
17507         lt_prog_compiler_pic_GCJ='-qpic'
17508         lt_prog_compiler_static_GCJ='-qstaticlink'
17509         ;;
17510       *)
17511         case `$CC -V 2>&1 | sed 5q` in
17512         *Sun\ F* | *Sun*Fortran*)
17513           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17514           lt_prog_compiler_pic_GCJ='-KPIC'
17515           lt_prog_compiler_static_GCJ='-Bstatic'
17516           lt_prog_compiler_wl_GCJ=''
17517           ;;
17518         *Sun\ C*)
17519           # Sun C 5.9
17520           lt_prog_compiler_pic_GCJ='-KPIC'
17521           lt_prog_compiler_static_GCJ='-Bstatic'
17522           lt_prog_compiler_wl_GCJ='-Wl,'
17523           ;;
17524         esac
17525         ;;
17526       esac
17527       ;;
17528
17529     newsos6)
17530       lt_prog_compiler_pic_GCJ='-KPIC'
17531       lt_prog_compiler_static_GCJ='-Bstatic'
17532       ;;
17533
17534     *nto* | *qnx*)
17535       # QNX uses GNU C++, but need to define -shared option too, otherwise
17536       # it will coredump.
17537       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17538       ;;
17539
17540     osf3* | osf4* | osf5*)
17541       lt_prog_compiler_wl_GCJ='-Wl,'
17542       # All OSF/1 code is PIC.
17543       lt_prog_compiler_static_GCJ='-non_shared'
17544       ;;
17545
17546     rdos*)
17547       lt_prog_compiler_static_GCJ='-non_shared'
17548       ;;
17549
17550     solaris*)
17551       lt_prog_compiler_pic_GCJ='-KPIC'
17552       lt_prog_compiler_static_GCJ='-Bstatic'
17553       case $cc_basename in
17554       f77* | f90* | f95*)
17555         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17556       *)
17557         lt_prog_compiler_wl_GCJ='-Wl,';;
17558       esac
17559       ;;
17560
17561     sunos4*)
17562       lt_prog_compiler_wl_GCJ='-Qoption ld '
17563       lt_prog_compiler_pic_GCJ='-PIC'
17564       lt_prog_compiler_static_GCJ='-Bstatic'
17565       ;;
17566
17567     sysv4 | sysv4.2uw2* | sysv4.3*)
17568       lt_prog_compiler_wl_GCJ='-Wl,'
17569       lt_prog_compiler_pic_GCJ='-KPIC'
17570       lt_prog_compiler_static_GCJ='-Bstatic'
17571       ;;
17572
17573     sysv4*MP*)
17574       if test -d /usr/nec ;then
17575         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17576         lt_prog_compiler_static_GCJ='-Bstatic'
17577       fi
17578       ;;
17579
17580     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17581       lt_prog_compiler_wl_GCJ='-Wl,'
17582       lt_prog_compiler_pic_GCJ='-KPIC'
17583       lt_prog_compiler_static_GCJ='-Bstatic'
17584       ;;
17585
17586     unicos*)
17587       lt_prog_compiler_wl_GCJ='-Wl,'
17588       lt_prog_compiler_can_build_shared_GCJ=no
17589       ;;
17590
17591     uts4*)
17592       lt_prog_compiler_pic_GCJ='-pic'
17593       lt_prog_compiler_static_GCJ='-Bstatic'
17594       ;;
17595
17596     *)
17597       lt_prog_compiler_can_build_shared_GCJ=no
17598       ;;
17599     esac
17600   fi
17601
17602 case $host_os in
17603   # For platforms which do not support PIC, -DPIC is meaningless:
17604   *djgpp*)
17605     lt_prog_compiler_pic_GCJ=
17606     ;;
17607   *)
17608     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17609     ;;
17610 esac
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17612 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17613
17614
17615
17616 #
17617 # Check to make sure the PIC flag actually works.
17618 #
17619 if test -n "$lt_prog_compiler_pic_GCJ"; then
17620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17622 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17623   $as_echo_n "(cached) " >&6
17624 else
17625   lt_cv_prog_compiler_pic_works_GCJ=no
17626    ac_outfile=conftest.$ac_objext
17627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17628    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17629    # Insert the option either (1) after the last *FLAGS variable, or
17630    # (2) before a word containing "conftest.", or (3) at the end.
17631    # Note that $ac_compile itself does not contain backslashes and begins
17632    # with a dollar sign (not a hyphen), so the echo should work correctly.
17633    # The option is referenced via a variable to avoid confusing sed.
17634    lt_compile=`echo "$ac_compile" | $SED \
17635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17637    -e 's:$: $lt_compiler_flag:'`
17638    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17639    (eval "$lt_compile" 2>conftest.err)
17640    ac_status=$?
17641    cat conftest.err >&5
17642    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643    if (exit $ac_status) && test -s "$ac_outfile"; then
17644      # The compiler can only warn and ignore the option if not recognized
17645      # So say no if there are warnings other than the usual output.
17646      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17647      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17648      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17649        lt_cv_prog_compiler_pic_works_GCJ=yes
17650      fi
17651    fi
17652    $RM conftest*
17653
17654 fi
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17656 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17657
17658 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17659     case $lt_prog_compiler_pic_GCJ in
17660      "" | " "*) ;;
17661      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17662      esac
17663 else
17664     lt_prog_compiler_pic_GCJ=
17665      lt_prog_compiler_can_build_shared_GCJ=no
17666 fi
17667
17668 fi
17669
17670
17671
17672 #
17673 # Check to make sure the static flag actually works.
17674 #
17675 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17677 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17678 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17679   $as_echo_n "(cached) " >&6
17680 else
17681   lt_cv_prog_compiler_static_works_GCJ=no
17682    save_LDFLAGS="$LDFLAGS"
17683    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17684    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17685    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17686      # The linker can only warn and ignore the option if not recognized
17687      # So say no if there are warnings
17688      if test -s conftest.err; then
17689        # Append any errors to the config.log.
17690        cat conftest.err 1>&5
17691        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17692        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17693        if diff conftest.exp conftest.er2 >/dev/null; then
17694          lt_cv_prog_compiler_static_works_GCJ=yes
17695        fi
17696      else
17697        lt_cv_prog_compiler_static_works_GCJ=yes
17698      fi
17699    fi
17700    $RM -r conftest*
17701    LDFLAGS="$save_LDFLAGS"
17702
17703 fi
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17705 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17706
17707 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17708     :
17709 else
17710     lt_prog_compiler_static_GCJ=
17711 fi
17712
17713
17714
17715
17716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17718 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17719   $as_echo_n "(cached) " >&6
17720 else
17721   lt_cv_prog_compiler_c_o_GCJ=no
17722    $RM -r conftest 2>/dev/null
17723    mkdir conftest
17724    cd conftest
17725    mkdir out
17726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17727
17728    lt_compiler_flag="-o out/conftest2.$ac_objext"
17729    # Insert the option either (1) after the last *FLAGS variable, or
17730    # (2) before a word containing "conftest.", or (3) at the end.
17731    # Note that $ac_compile itself does not contain backslashes and begins
17732    # with a dollar sign (not a hyphen), so the echo should work correctly.
17733    lt_compile=`echo "$ac_compile" | $SED \
17734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17736    -e 's:$: $lt_compiler_flag:'`
17737    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17738    (eval "$lt_compile" 2>out/conftest.err)
17739    ac_status=$?
17740    cat out/conftest.err >&5
17741    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17743    then
17744      # The compiler can only warn and ignore the option if not recognized
17745      # So say no if there are warnings
17746      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17747      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17748      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17749        lt_cv_prog_compiler_c_o_GCJ=yes
17750      fi
17751    fi
17752    chmod u+w . 2>&5
17753    $RM conftest*
17754    # SGI C++ compiler will create directory out/ii_files/ for
17755    # template instantiation
17756    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17757    $RM out/* && rmdir out
17758    cd ..
17759    $RM -r conftest
17760    $RM conftest*
17761
17762 fi
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17764 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17765
17766
17767
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17769 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17770 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17771   $as_echo_n "(cached) " >&6
17772 else
17773   lt_cv_prog_compiler_c_o_GCJ=no
17774    $RM -r conftest 2>/dev/null
17775    mkdir conftest
17776    cd conftest
17777    mkdir out
17778    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17779
17780    lt_compiler_flag="-o out/conftest2.$ac_objext"
17781    # Insert the option either (1) after the last *FLAGS variable, or
17782    # (2) before a word containing "conftest.", or (3) at the end.
17783    # Note that $ac_compile itself does not contain backslashes and begins
17784    # with a dollar sign (not a hyphen), so the echo should work correctly.
17785    lt_compile=`echo "$ac_compile" | $SED \
17786    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17788    -e 's:$: $lt_compiler_flag:'`
17789    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17790    (eval "$lt_compile" 2>out/conftest.err)
17791    ac_status=$?
17792    cat out/conftest.err >&5
17793    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17795    then
17796      # The compiler can only warn and ignore the option if not recognized
17797      # So say no if there are warnings
17798      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17799      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17800      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17801        lt_cv_prog_compiler_c_o_GCJ=yes
17802      fi
17803    fi
17804    chmod u+w . 2>&5
17805    $RM conftest*
17806    # SGI C++ compiler will create directory out/ii_files/ for
17807    # template instantiation
17808    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17809    $RM out/* && rmdir out
17810    cd ..
17811    $RM -r conftest
17812    $RM conftest*
17813
17814 fi
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17816 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17817
17818
17819
17820
17821 hard_links="nottested"
17822 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17823   # do not overwrite the value of need_locks provided by the user
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17825 $as_echo_n "checking if we can lock with hard links... " >&6; }
17826   hard_links=yes
17827   $RM conftest*
17828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17829   touch conftest.a
17830   ln conftest.a conftest.b 2>&5 || hard_links=no
17831   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17833 $as_echo "$hard_links" >&6; }
17834   if test "$hard_links" = no; then
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17836 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17837     need_locks=warn
17838   fi
17839 else
17840   need_locks=no
17841 fi
17842
17843
17844
17845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17846 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17847
17848   runpath_var=
17849   allow_undefined_flag_GCJ=
17850   always_export_symbols_GCJ=no
17851   archive_cmds_GCJ=
17852   archive_expsym_cmds_GCJ=
17853   compiler_needs_object_GCJ=no
17854   enable_shared_with_static_runtimes_GCJ=no
17855   export_dynamic_flag_spec_GCJ=
17856   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17857   hardcode_automatic_GCJ=no
17858   hardcode_direct_GCJ=no
17859   hardcode_direct_absolute_GCJ=no
17860   hardcode_libdir_flag_spec_GCJ=
17861   hardcode_libdir_flag_spec_ld_GCJ=
17862   hardcode_libdir_separator_GCJ=
17863   hardcode_minus_L_GCJ=no
17864   hardcode_shlibpath_var_GCJ=unsupported
17865   inherit_rpath_GCJ=no
17866   link_all_deplibs_GCJ=unknown
17867   module_cmds_GCJ=
17868   module_expsym_cmds_GCJ=
17869   old_archive_from_new_cmds_GCJ=
17870   old_archive_from_expsyms_cmds_GCJ=
17871   thread_safe_flag_spec_GCJ=
17872   whole_archive_flag_spec_GCJ=
17873   # include_expsyms should be a list of space-separated symbols to be *always*
17874   # included in the symbol list
17875   include_expsyms_GCJ=
17876   # exclude_expsyms can be an extended regexp of symbols to exclude
17877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17879   # as well as any symbol that contains `d'.
17880   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17882   # platforms (ab)use it in PIC code, but their linkers get confused if
17883   # the symbol is explicitly referenced.  Since portable code cannot
17884   # rely on this symbol name, it's probably fine to never include it in
17885   # preloaded symbol tables.
17886   # Exclude shared library initialization/finalization symbols.
17887   extract_expsyms_cmds=
17888
17889   case $host_os in
17890   cygwin* | mingw* | pw32* | cegcc*)
17891     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17892     # When not using gcc, we currently assume that we are using
17893     # Microsoft Visual C++.
17894     if test "$GCC" != yes; then
17895       with_gnu_ld=no
17896     fi
17897     ;;
17898   interix*)
17899     # we just hope/assume this is gcc and not c89 (= MSVC++)
17900     with_gnu_ld=yes
17901     ;;
17902   openbsd*)
17903     with_gnu_ld=no
17904     ;;
17905   esac
17906
17907   ld_shlibs_GCJ=yes
17908
17909   # On some targets, GNU ld is compatible enough with the native linker
17910   # that we're better off using the native interface for both.
17911   lt_use_gnu_ld_interface=no
17912   if test "$with_gnu_ld" = yes; then
17913     case $host_os in
17914       aix*)
17915         # The AIX port of GNU ld has always aspired to compatibility
17916         # with the native linker.  However, as the warning in the GNU ld
17917         # block says, versions before 2.19.5* couldn't really create working
17918         # shared libraries, regardless of the interface used.
17919         case `$LD -v 2>&1` in
17920           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17921           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17922           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17923           *)
17924             lt_use_gnu_ld_interface=yes
17925             ;;
17926         esac
17927         ;;
17928       *)
17929         lt_use_gnu_ld_interface=yes
17930         ;;
17931     esac
17932   fi
17933
17934   if test "$lt_use_gnu_ld_interface" = yes; then
17935     # If archive_cmds runs LD, not CC, wlarc should be empty
17936     wlarc='${wl}'
17937
17938     # Set some defaults for GNU ld with shared library support. These
17939     # are reset later if shared libraries are not supported. Putting them
17940     # here allows them to be overridden if necessary.
17941     runpath_var=LD_RUN_PATH
17942     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17944     # ancient GNU ld didn't support --whole-archive et. al.
17945     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17946       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17947     else
17948       whole_archive_flag_spec_GCJ=
17949     fi
17950     supports_anon_versioning=no
17951     case `$LD -v 2>&1` in
17952       *GNU\ gold*) supports_anon_versioning=yes ;;
17953       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17954       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17955       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17956       *\ 2.11.*) ;; # other 2.11 versions
17957       *) supports_anon_versioning=yes ;;
17958     esac
17959
17960     # See if GNU ld supports shared libraries.
17961     case $host_os in
17962     aix[3-9]*)
17963       # On AIX/PPC, the GNU linker is very broken
17964       if test "$host_cpu" != ia64; then
17965         ld_shlibs_GCJ=no
17966         cat <<_LT_EOF 1>&2
17967
17968 *** Warning: the GNU linker, at least up to release 2.19, is reported
17969 *** to be unable to reliably create shared libraries on AIX.
17970 *** Therefore, libtool is disabling shared libraries support.  If you
17971 *** really care for shared libraries, you may want to install binutils
17972 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17973 *** You will then need to restart the configuration process.
17974
17975 _LT_EOF
17976       fi
17977       ;;
17978
17979     amigaos*)
17980       case $host_cpu in
17981       powerpc)
17982             # see comment about AmigaOS4 .so support
17983             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17984             archive_expsym_cmds_GCJ=''
17985         ;;
17986       m68k)
17987             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)'
17988             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17989             hardcode_minus_L_GCJ=yes
17990         ;;
17991       esac
17992       ;;
17993
17994     beos*)
17995       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17996         allow_undefined_flag_GCJ=unsupported
17997         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17998         # support --undefined.  This deserves some investigation.  FIXME
17999         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18000       else
18001         ld_shlibs_GCJ=no
18002       fi
18003       ;;
18004
18005     cygwin* | mingw* | pw32* | cegcc*)
18006       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18007       # as there is no search path for DLLs.
18008       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18009       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18010       allow_undefined_flag_GCJ=unsupported
18011       always_export_symbols_GCJ=no
18012       enable_shared_with_static_runtimes_GCJ=yes
18013       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18014
18015       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18016         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18017         # If the export-symbols file already is a .def file (1st line
18018         # is EXPORTS), use it as is; otherwise, prepend...
18019         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18020           cp $export_symbols $output_objdir/$soname.def;
18021         else
18022           echo EXPORTS > $output_objdir/$soname.def;
18023           cat $export_symbols >> $output_objdir/$soname.def;
18024         fi~
18025         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18026       else
18027         ld_shlibs_GCJ=no
18028       fi
18029       ;;
18030
18031     haiku*)
18032       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18033       link_all_deplibs_GCJ=yes
18034       ;;
18035
18036     interix[3-9]*)
18037       hardcode_direct_GCJ=no
18038       hardcode_shlibpath_var_GCJ=no
18039       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18040       export_dynamic_flag_spec_GCJ='${wl}-E'
18041       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18042       # Instead, shared libraries are loaded at an image base (0x10000000 by
18043       # default) and relocated if they conflict, which is a slow very memory
18044       # consuming and fragmenting process.  To avoid this, we pick a random,
18045       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18046       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18047       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'
18048       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'
18049       ;;
18050
18051     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18052       tmp_diet=no
18053       if test "$host_os" = linux-dietlibc; then
18054         case $cc_basename in
18055           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18056         esac
18057       fi
18058       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18059          && test "$tmp_diet" = no
18060       then
18061         tmp_addflag=
18062         tmp_sharedflag='-shared'
18063         case $cc_basename,$host_cpu in
18064         pgcc*)                          # Portland Group C compiler
18065           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'
18066           tmp_addflag=' $pic_flag'
18067           ;;
18068         pgf77* | pgf90* | pgf95* | pgfortran*)
18069                                         # Portland Group f77 and f90 compilers
18070           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'
18071           tmp_addflag=' $pic_flag -Mnomain' ;;
18072         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18073           tmp_addflag=' -i_dynamic' ;;
18074         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18075           tmp_addflag=' -i_dynamic -nofor_main' ;;
18076         ifc* | ifort*)                  # Intel Fortran compiler
18077           tmp_addflag=' -nofor_main' ;;
18078         lf95*)                          # Lahey Fortran 8.1
18079           whole_archive_flag_spec_GCJ=
18080           tmp_sharedflag='--shared' ;;
18081         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18082           tmp_sharedflag='-qmkshrobj'
18083           tmp_addflag= ;;
18084         nvcc*)  # Cuda Compiler Driver 2.2
18085           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'
18086           compiler_needs_object_GCJ=yes
18087           ;;
18088         esac
18089         case `$CC -V 2>&1 | sed 5q` in
18090         *Sun\ C*)                       # Sun C 5.9
18091           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'
18092           compiler_needs_object_GCJ=yes
18093           tmp_sharedflag='-G' ;;
18094         *Sun\ F*)                       # Sun Fortran 8.3
18095           tmp_sharedflag='-G' ;;
18096         esac
18097         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18098
18099         if test "x$supports_anon_versioning" = xyes; then
18100           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18101             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18102             echo "local: *; };" >> $output_objdir/$libname.ver~
18103             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18104         fi
18105
18106         case $cc_basename in
18107         xlf* | bgf* | bgxlf* | mpixlf*)
18108           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18109           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18110           hardcode_libdir_flag_spec_GCJ=
18111           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18112           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18113           if test "x$supports_anon_versioning" = xyes; then
18114             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18115               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18116               echo "local: *; };" >> $output_objdir/$libname.ver~
18117               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18118           fi
18119           ;;
18120         esac
18121       else
18122         ld_shlibs_GCJ=no
18123       fi
18124       ;;
18125
18126     netbsd*)
18127       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18128         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18129         wlarc=
18130       else
18131         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18132         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18133       fi
18134       ;;
18135
18136     solaris*)
18137       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18138         ld_shlibs_GCJ=no
18139         cat <<_LT_EOF 1>&2
18140
18141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18142 *** create shared libraries on Solaris systems.  Therefore, libtool
18143 *** is disabling shared libraries support.  We urge you to upgrade GNU
18144 *** binutils to release 2.9.1 or newer.  Another option is to modify
18145 *** your PATH or compiler configuration so that the native linker is
18146 *** used, and then restart.
18147
18148 _LT_EOF
18149       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18150         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18151         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18152       else
18153         ld_shlibs_GCJ=no
18154       fi
18155       ;;
18156
18157     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18158       case `$LD -v 2>&1` in
18159         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18160         ld_shlibs_GCJ=no
18161         cat <<_LT_EOF 1>&2
18162
18163 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18164 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18165 *** is disabling shared libraries support.  We urge you to upgrade GNU
18166 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18167 *** your PATH or compiler configuration so that the native linker is
18168 *** used, and then restart.
18169
18170 _LT_EOF
18171         ;;
18172         *)
18173           # For security reasons, it is highly recommended that you always
18174           # use absolute paths for naming shared libraries, and exclude the
18175           # DT_RUNPATH tag from executables and libraries.  But doing so
18176           # requires that you compile everything twice, which is a pain.
18177           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18178             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18179             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18180             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18181           else
18182             ld_shlibs_GCJ=no
18183           fi
18184         ;;
18185       esac
18186       ;;
18187
18188     sunos4*)
18189       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18190       wlarc=
18191       hardcode_direct_GCJ=yes
18192       hardcode_shlibpath_var_GCJ=no
18193       ;;
18194
18195     *)
18196       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18197         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18198         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18199       else
18200         ld_shlibs_GCJ=no
18201       fi
18202       ;;
18203     esac
18204
18205     if test "$ld_shlibs_GCJ" = no; then
18206       runpath_var=
18207       hardcode_libdir_flag_spec_GCJ=
18208       export_dynamic_flag_spec_GCJ=
18209       whole_archive_flag_spec_GCJ=
18210     fi
18211   else
18212     # PORTME fill in a description of your system's linker (not GNU ld)
18213     case $host_os in
18214     aix3*)
18215       allow_undefined_flag_GCJ=unsupported
18216       always_export_symbols_GCJ=yes
18217       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'
18218       # Note: this linker hardcodes the directories in LIBPATH if there
18219       # are no directories specified by -L.
18220       hardcode_minus_L_GCJ=yes
18221       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18222         # Neither direct hardcoding nor static linking is supported with a
18223         # broken collect2.
18224         hardcode_direct_GCJ=unsupported
18225       fi
18226       ;;
18227
18228     aix[4-9]*)
18229       if test "$host_cpu" = ia64; then
18230         # On IA64, the linker does run time linking by default, so we don't
18231         # have to do anything special.
18232         aix_use_runtimelinking=no
18233         exp_sym_flag='-Bexport'
18234         no_entry_flag=""
18235       else
18236         # If we're using GNU nm, then we don't want the "-C" option.
18237         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18238         # Also, AIX nm treats weak defined symbols like other global
18239         # defined symbols, whereas GNU nm marks them as "W".
18240         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18241           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'
18242         else
18243           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'
18244         fi
18245         aix_use_runtimelinking=no
18246
18247         # Test if we are trying to use run time linking or normal
18248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18249         # need to do runtime linking.
18250         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18251           for ld_flag in $LDFLAGS; do
18252           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18253             aix_use_runtimelinking=yes
18254             break
18255           fi
18256           done
18257           ;;
18258         esac
18259
18260         exp_sym_flag='-bexport'
18261         no_entry_flag='-bnoentry'
18262       fi
18263
18264       # When large executables or shared objects are built, AIX ld can
18265       # have problems creating the table of contents.  If linking a library
18266       # or program results in "error TOC overflow" add -mminimal-toc to
18267       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18268       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18269
18270       archive_cmds_GCJ=''
18271       hardcode_direct_GCJ=yes
18272       hardcode_direct_absolute_GCJ=yes
18273       hardcode_libdir_separator_GCJ=':'
18274       link_all_deplibs_GCJ=yes
18275       file_list_spec_GCJ='${wl}-f,'
18276
18277       if test "$GCC" = yes; then
18278         case $host_os in aix4.[012]|aix4.[012].*)
18279         # We only want to do this on AIX 4.2 and lower, the check
18280         # below for broken collect2 doesn't work under 4.3+
18281           collect2name=`${CC} -print-prog-name=collect2`
18282           if test -f "$collect2name" &&
18283            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18284           then
18285           # We have reworked collect2
18286           :
18287           else
18288           # We have old collect2
18289           hardcode_direct_GCJ=unsupported
18290           # It fails to find uninstalled libraries when the uninstalled
18291           # path is not listed in the libpath.  Setting hardcode_minus_L
18292           # to unsupported forces relinking
18293           hardcode_minus_L_GCJ=yes
18294           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18295           hardcode_libdir_separator_GCJ=
18296           fi
18297           ;;
18298         esac
18299         shared_flag='-shared'
18300         if test "$aix_use_runtimelinking" = yes; then
18301           shared_flag="$shared_flag "'${wl}-G'
18302         fi
18303       else
18304         # not using gcc
18305         if test "$host_cpu" = ia64; then
18306         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18307         # chokes on -Wl,-G. The following line is correct:
18308           shared_flag='-G'
18309         else
18310           if test "$aix_use_runtimelinking" = yes; then
18311             shared_flag='${wl}-G'
18312           else
18313             shared_flag='${wl}-bM:SRE'
18314           fi
18315         fi
18316       fi
18317
18318       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18319       # It seems that -bexpall does not export symbols beginning with
18320       # underscore (_), so it is better to generate a list of symbols to export.
18321       always_export_symbols_GCJ=yes
18322       if test "$aix_use_runtimelinking" = yes; then
18323         # Warning - without using the other runtime loading flags (-brtl),
18324         # -berok will link without error, but may produce a broken library.
18325         allow_undefined_flag_GCJ='-berok'
18326         # Determine the default libpath from the value encoded in an
18327         # empty executable.
18328         if test x$gcc_no_link = xyes; then
18329   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18330 fi
18331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h.  */
18333
18334 int
18335 main ()
18336 {
18337
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 if ac_fn_c_try_link "$LINENO"; then :
18343
18344 lt_aix_libpath_sed='
18345     /Import File Strings/,/^$/ {
18346         /^0/ {
18347             s/^0  *\(.*\)$/\1/
18348             p
18349         }
18350     }'
18351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18352 # Check for a 64-bit object if we didn't find anything.
18353 if test -z "$aix_libpath"; then
18354   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18355 fi
18356 fi
18357 rm -f core conftest.err conftest.$ac_objext \
18358     conftest$ac_exeext conftest.$ac_ext
18359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18360
18361         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18362         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"
18363       else
18364         if test "$host_cpu" = ia64; then
18365           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18366           allow_undefined_flag_GCJ="-z nodefs"
18367           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"
18368         else
18369          # Determine the default libpath from the value encoded in an
18370          # empty executable.
18371          if test x$gcc_no_link = xyes; then
18372   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18373 fi
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h.  */
18376
18377 int
18378 main ()
18379 {
18380
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 if ac_fn_c_try_link "$LINENO"; then :
18386
18387 lt_aix_libpath_sed='
18388     /Import File Strings/,/^$/ {
18389         /^0/ {
18390             s/^0  *\(.*\)$/\1/
18391             p
18392         }
18393     }'
18394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18395 # Check for a 64-bit object if we didn't find anything.
18396 if test -z "$aix_libpath"; then
18397   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18398 fi
18399 fi
18400 rm -f core conftest.err conftest.$ac_objext \
18401     conftest$ac_exeext conftest.$ac_ext
18402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18403
18404          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18405           # Warning - without using the other run time loading flags,
18406           # -berok will link without error, but may produce a broken library.
18407           no_undefined_flag_GCJ=' ${wl}-bernotok'
18408           allow_undefined_flag_GCJ=' ${wl}-berok'
18409           if test "$with_gnu_ld" = yes; then
18410             # We only use this code for GNU lds that support --whole-archive.
18411             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18412           else
18413             # Exported symbols can be pulled into shared objects from archives
18414             whole_archive_flag_spec_GCJ='$convenience'
18415           fi
18416           archive_cmds_need_lc_GCJ=yes
18417           # This is similar to how AIX traditionally builds its shared libraries.
18418           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'
18419         fi
18420       fi
18421       ;;
18422
18423     amigaos*)
18424       case $host_cpu in
18425       powerpc)
18426             # see comment about AmigaOS4 .so support
18427             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18428             archive_expsym_cmds_GCJ=''
18429         ;;
18430       m68k)
18431             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)'
18432             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18433             hardcode_minus_L_GCJ=yes
18434         ;;
18435       esac
18436       ;;
18437
18438     bsdi[45]*)
18439       export_dynamic_flag_spec_GCJ=-rdynamic
18440       ;;
18441
18442     cygwin* | mingw* | pw32* | cegcc*)
18443       # When not using gcc, we currently assume that we are using
18444       # Microsoft Visual C++.
18445       # hardcode_libdir_flag_spec is actually meaningless, as there is
18446       # no search path for DLLs.
18447       hardcode_libdir_flag_spec_GCJ=' '
18448       allow_undefined_flag_GCJ=unsupported
18449       # Tell ltmain to make .lib files, not .a files.
18450       libext=lib
18451       # Tell ltmain to make .dll files, not .so files.
18452       shrext_cmds=".dll"
18453       # FIXME: Setting linknames here is a bad hack.
18454       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18455       # The linker will automatically build a .lib file if we build a DLL.
18456       old_archive_from_new_cmds_GCJ='true'
18457       # FIXME: Should let the user specify the lib program.
18458       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18459       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18460       enable_shared_with_static_runtimes_GCJ=yes
18461       ;;
18462
18463     darwin* | rhapsody*)
18464
18465
18466   archive_cmds_need_lc_GCJ=no
18467   hardcode_direct_GCJ=no
18468   hardcode_automatic_GCJ=yes
18469   hardcode_shlibpath_var_GCJ=unsupported
18470   if test "$lt_cv_ld_force_load" = "yes"; then
18471     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\"`'
18472   else
18473     whole_archive_flag_spec_GCJ=''
18474   fi
18475   link_all_deplibs_GCJ=yes
18476   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18477   case $cc_basename in
18478      ifort*) _lt_dar_can_shared=yes ;;
18479      *) _lt_dar_can_shared=$GCC ;;
18480   esac
18481   if test "$_lt_dar_can_shared" = "yes"; then
18482     output_verbose_link_cmd=func_echo_all
18483     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}"
18484     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18485     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}"
18486     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}"
18487
18488   else
18489   ld_shlibs_GCJ=no
18490   fi
18491
18492       ;;
18493
18494     dgux*)
18495       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18496       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18497       hardcode_shlibpath_var_GCJ=no
18498       ;;
18499
18500     freebsd1*)
18501       ld_shlibs_GCJ=no
18502       ;;
18503
18504     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18505     # support.  Future versions do this automatically, but an explicit c++rt0.o
18506     # does not break anything, and helps significantly (at the cost of a little
18507     # extra space).
18508     freebsd2.2*)
18509       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18510       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18511       hardcode_direct_GCJ=yes
18512       hardcode_shlibpath_var_GCJ=no
18513       ;;
18514
18515     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18516     freebsd2*)
18517       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18518       hardcode_direct_GCJ=yes
18519       hardcode_minus_L_GCJ=yes
18520       hardcode_shlibpath_var_GCJ=no
18521       ;;
18522
18523     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18524     freebsd* | dragonfly*)
18525       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18526       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18527       hardcode_direct_GCJ=yes
18528       hardcode_shlibpath_var_GCJ=no
18529       ;;
18530
18531     hpux9*)
18532       if test "$GCC" = yes; then
18533         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'
18534       else
18535         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'
18536       fi
18537       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18538       hardcode_libdir_separator_GCJ=:
18539       hardcode_direct_GCJ=yes
18540
18541       # hardcode_minus_L: Not really in the search PATH,
18542       # but as the default location of the library.
18543       hardcode_minus_L_GCJ=yes
18544       export_dynamic_flag_spec_GCJ='${wl}-E'
18545       ;;
18546
18547     hpux10*)
18548       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18549         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18550       else
18551         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18552       fi
18553       if test "$with_gnu_ld" = no; then
18554         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18555         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18556         hardcode_libdir_separator_GCJ=:
18557         hardcode_direct_GCJ=yes
18558         hardcode_direct_absolute_GCJ=yes
18559         export_dynamic_flag_spec_GCJ='${wl}-E'
18560         # hardcode_minus_L: Not really in the search PATH,
18561         # but as the default location of the library.
18562         hardcode_minus_L_GCJ=yes
18563       fi
18564       ;;
18565
18566     hpux11*)
18567       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18568         case $host_cpu in
18569         hppa*64*)
18570           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18571           ;;
18572         ia64*)
18573           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18574           ;;
18575         *)
18576           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18577           ;;
18578         esac
18579       else
18580         case $host_cpu in
18581         hppa*64*)
18582           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18583           ;;
18584         ia64*)
18585           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18586           ;;
18587         *)
18588         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18589           ;;
18590         esac
18591       fi
18592       if test "$with_gnu_ld" = no; then
18593         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18594         hardcode_libdir_separator_GCJ=:
18595
18596         case $host_cpu in
18597         hppa*64*|ia64*)
18598           hardcode_direct_GCJ=no
18599           hardcode_shlibpath_var_GCJ=no
18600           ;;
18601         *)
18602           hardcode_direct_GCJ=yes
18603           hardcode_direct_absolute_GCJ=yes
18604           export_dynamic_flag_spec_GCJ='${wl}-E'
18605
18606           # hardcode_minus_L: Not really in the search PATH,
18607           # but as the default location of the library.
18608           hardcode_minus_L_GCJ=yes
18609           ;;
18610         esac
18611       fi
18612       ;;
18613
18614     irix5* | irix6* | nonstopux*)
18615       if test "$GCC" = yes; then
18616         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'
18617         # Try to use the -exported_symbol ld option, if it does not
18618         # work, assume that -exports_file does not work either and
18619         # implicitly export all symbols.
18620         save_LDFLAGS="$LDFLAGS"
18621         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18622         if test x$gcc_no_link = xyes; then
18623   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18624 fi
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h.  */
18627 int foo(void) {}
18628 _ACEOF
18629 if ac_fn_c_try_link "$LINENO"; then :
18630   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'
18631
18632 fi
18633 rm -f core conftest.err conftest.$ac_objext \
18634     conftest$ac_exeext conftest.$ac_ext
18635         LDFLAGS="$save_LDFLAGS"
18636       else
18637         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'
18638         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'
18639       fi
18640       archive_cmds_need_lc_GCJ='no'
18641       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18642       hardcode_libdir_separator_GCJ=:
18643       inherit_rpath_GCJ=yes
18644       link_all_deplibs_GCJ=yes
18645       ;;
18646
18647     netbsd*)
18648       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18649         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18650       else
18651         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18652       fi
18653       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18654       hardcode_direct_GCJ=yes
18655       hardcode_shlibpath_var_GCJ=no
18656       ;;
18657
18658     newsos6)
18659       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18660       hardcode_direct_GCJ=yes
18661       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18662       hardcode_libdir_separator_GCJ=:
18663       hardcode_shlibpath_var_GCJ=no
18664       ;;
18665
18666     *nto* | *qnx*)
18667       ;;
18668
18669     openbsd*)
18670       if test -f /usr/libexec/ld.so; then
18671         hardcode_direct_GCJ=yes
18672         hardcode_shlibpath_var_GCJ=no
18673         hardcode_direct_absolute_GCJ=yes
18674         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18675           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18676           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18677           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18678           export_dynamic_flag_spec_GCJ='${wl}-E'
18679         else
18680           case $host_os in
18681            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18682              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18683              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18684              ;;
18685            *)
18686              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18687              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18688              ;;
18689           esac
18690         fi
18691       else
18692         ld_shlibs_GCJ=no
18693       fi
18694       ;;
18695
18696     os2*)
18697       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18698       hardcode_minus_L_GCJ=yes
18699       allow_undefined_flag_GCJ=unsupported
18700       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'
18701       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18702       ;;
18703
18704     osf3*)
18705       if test "$GCC" = yes; then
18706         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18707         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'
18708       else
18709         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18710         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'
18711       fi
18712       archive_cmds_need_lc_GCJ='no'
18713       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18714       hardcode_libdir_separator_GCJ=:
18715       ;;
18716
18717     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18718       if test "$GCC" = yes; then
18719         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18720         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'
18721         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18722       else
18723         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18724         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'
18725         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~
18726         $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'
18727
18728         # Both c and cxx compiler support -rpath directly
18729         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18730       fi
18731       archive_cmds_need_lc_GCJ='no'
18732       hardcode_libdir_separator_GCJ=:
18733       ;;
18734
18735     solaris*)
18736       no_undefined_flag_GCJ=' -z defs'
18737       if test "$GCC" = yes; then
18738         wlarc='${wl}'
18739         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18740         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18741           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18742       else
18743         case `$CC -V 2>&1` in
18744         *"Compilers 5.0"*)
18745           wlarc=''
18746           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18747           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18748           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18749           ;;
18750         *)
18751           wlarc='${wl}'
18752           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18753           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18754           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18755           ;;
18756         esac
18757       fi
18758       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18759       hardcode_shlibpath_var_GCJ=no
18760       case $host_os in
18761       solaris2.[0-5] | solaris2.[0-5].*) ;;
18762       *)
18763         # The compiler driver will combine and reorder linker options,
18764         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18765         # but is careful enough not to reorder.
18766         # Supported since Solaris 2.6 (maybe 2.5.1?)
18767         if test "$GCC" = yes; then
18768           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18769         else
18770           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18771         fi
18772         ;;
18773       esac
18774       link_all_deplibs_GCJ=yes
18775       ;;
18776
18777     sunos4*)
18778       if test "x$host_vendor" = xsequent; then
18779         # Use $CC to link under sequent, because it throws in some extra .o
18780         # files that make .init and .fini sections work.
18781         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18782       else
18783         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18784       fi
18785       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18786       hardcode_direct_GCJ=yes
18787       hardcode_minus_L_GCJ=yes
18788       hardcode_shlibpath_var_GCJ=no
18789       ;;
18790
18791     sysv4)
18792       case $host_vendor in
18793         sni)
18794           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18795           hardcode_direct_GCJ=yes # is this really true???
18796         ;;
18797         siemens)
18798           ## LD is ld it makes a PLAMLIB
18799           ## CC just makes a GrossModule.
18800           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18801           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18802           hardcode_direct_GCJ=no
18803         ;;
18804         motorola)
18805           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18806           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18807         ;;
18808       esac
18809       runpath_var='LD_RUN_PATH'
18810       hardcode_shlibpath_var_GCJ=no
18811       ;;
18812
18813     sysv4.3*)
18814       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18815       hardcode_shlibpath_var_GCJ=no
18816       export_dynamic_flag_spec_GCJ='-Bexport'
18817       ;;
18818
18819     sysv4*MP*)
18820       if test -d /usr/nec; then
18821         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18822         hardcode_shlibpath_var_GCJ=no
18823         runpath_var=LD_RUN_PATH
18824         hardcode_runpath_var=yes
18825         ld_shlibs_GCJ=yes
18826       fi
18827       ;;
18828
18829     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18830       no_undefined_flag_GCJ='${wl}-z,text'
18831       archive_cmds_need_lc_GCJ=no
18832       hardcode_shlibpath_var_GCJ=no
18833       runpath_var='LD_RUN_PATH'
18834
18835       if test "$GCC" = yes; then
18836         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18837         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18838       else
18839         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18840         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18841       fi
18842       ;;
18843
18844     sysv5* | sco3.2v5* | sco5v6*)
18845       # Note: We can NOT use -z defs as we might desire, because we do not
18846       # link with -lc, and that would cause any symbols used from libc to
18847       # always be unresolved, which means just about no library would
18848       # ever link correctly.  If we're not using GNU ld we use -z text
18849       # though, which does catch some bad symbols but isn't as heavy-handed
18850       # as -z defs.
18851       no_undefined_flag_GCJ='${wl}-z,text'
18852       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18853       archive_cmds_need_lc_GCJ=no
18854       hardcode_shlibpath_var_GCJ=no
18855       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18856       hardcode_libdir_separator_GCJ=':'
18857       link_all_deplibs_GCJ=yes
18858       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18859       runpath_var='LD_RUN_PATH'
18860
18861       if test "$GCC" = yes; then
18862         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18863         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18864       else
18865         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18867       fi
18868       ;;
18869
18870     uts4*)
18871       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18872       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18873       hardcode_shlibpath_var_GCJ=no
18874       ;;
18875
18876     *)
18877       ld_shlibs_GCJ=no
18878       ;;
18879     esac
18880
18881     if test x$host_vendor = xsni; then
18882       case $host in
18883       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18884         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18885         ;;
18886       esac
18887     fi
18888   fi
18889
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18891 $as_echo "$ld_shlibs_GCJ" >&6; }
18892 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18893
18894 with_gnu_ld_GCJ=$with_gnu_ld
18895
18896
18897
18898
18899
18900
18901 #
18902 # Do we need to explicitly link libc?
18903 #
18904 case "x$archive_cmds_need_lc_GCJ" in
18905 x|xyes)
18906   # Assume -lc should be added
18907   archive_cmds_need_lc_GCJ=yes
18908
18909   if test "$enable_shared" = yes && test "$GCC" = yes; then
18910     case $archive_cmds_GCJ in
18911     *'~'*)
18912       # FIXME: we may have to deal with multi-command sequences.
18913       ;;
18914     '$CC '*)
18915       # Test whether the compiler implicitly links with -lc since on some
18916       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18917       # to ld, don't add -lc before -lgcc.
18918       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18919 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18920 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18921   $as_echo_n "(cached) " >&6
18922 else
18923   $RM conftest*
18924         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18925
18926         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18927   (eval $ac_compile) 2>&5
18928   ac_status=$?
18929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18930   test $ac_status = 0; } 2>conftest.err; then
18931           soname=conftest
18932           lib=conftest
18933           libobjs=conftest.$ac_objext
18934           deplibs=
18935           wl=$lt_prog_compiler_wl_GCJ
18936           pic_flag=$lt_prog_compiler_pic_GCJ
18937           compiler_flags=-v
18938           linker_flags=-v
18939           verstring=
18940           output_objdir=.
18941           libname=conftest
18942           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18943           allow_undefined_flag_GCJ=
18944           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18945   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18946   ac_status=$?
18947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948   test $ac_status = 0; }
18949           then
18950             lt_cv_archive_cmds_need_lc_GCJ=no
18951           else
18952             lt_cv_archive_cmds_need_lc_GCJ=yes
18953           fi
18954           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18955         else
18956           cat conftest.err 1>&5
18957         fi
18958         $RM conftest*
18959
18960 fi
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18962 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18963       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18964       ;;
18965     esac
18966   fi
18967   ;;
18968 esac
18969
18970
18971
18972
18973
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19035 hardcode_action_GCJ=
19036 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19037    test -n "$runpath_var_GCJ" ||
19038    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19039
19040   # We can hardcode non-existent directories.
19041   if test "$hardcode_direct_GCJ" != no &&
19042      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19043      # have to relink, otherwise we might link with an installed library
19044      # when we should be linking with a yet-to-be-installed one
19045      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19046      test "$hardcode_minus_L_GCJ" != no; then
19047     # Linking always hardcodes the temporary library directory.
19048     hardcode_action_GCJ=relink
19049   else
19050     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19051     hardcode_action_GCJ=immediate
19052   fi
19053 else
19054   # We cannot hardcode anything, or else we can only hardcode existing
19055   # directories.
19056   hardcode_action_GCJ=unsupported
19057 fi
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19059 $as_echo "$hardcode_action_GCJ" >&6; }
19060
19061 if test "$hardcode_action_GCJ" = relink ||
19062    test "$inherit_rpath_GCJ" = yes; then
19063   # Fast installation is not supported
19064   enable_fast_install=no
19065 elif test "$shlibpath_overrides_runpath" = yes ||
19066      test "$enable_shared" = no; then
19067   # Fast installation is not necessary
19068   enable_fast_install=needless
19069 fi
19070
19071
19072
19073
19074
19075
19076
19077 fi
19078
19079 compiler_GCJ=${GCJ-gcj}
19080 ac_ext=c
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19085
19086
19087 if test "x$CC" != xcc; then
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19089 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19090 else
19091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19092 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19093 fi
19094 set dummy $CC; ac_cc=`$as_echo "$2" |
19095                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19096 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19097   $as_echo_n "(cached) " >&6
19098 else
19099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h.  */
19101
19102 int
19103 main ()
19104 {
19105
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 # Make sure it works both with $CC and with simple cc.
19111 # We do the test twice because some compilers refuse to overwrite an
19112 # existing .o file with -o, though they will create one.
19113 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19114 rm -f conftest2.*
19115 if { { case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19120 $as_echo "$ac_try_echo"; } >&5
19121   (eval "$ac_try") 2>&5
19122   ac_status=$?
19123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19124   test $ac_status = 0; } &&
19125    test -f conftest2.$ac_objext && { { case "(($ac_try" in
19126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127   *) ac_try_echo=$ac_try;;
19128 esac
19129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19130 $as_echo "$ac_try_echo"; } >&5
19131   (eval "$ac_try") 2>&5
19132   ac_status=$?
19133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134   test $ac_status = 0; };
19135 then
19136   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19137   if test "x$CC" != xcc; then
19138     # Test first that cc exists at all.
19139     if { ac_try='cc -c conftest.$ac_ext >&5'
19140   { { case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19145 $as_echo "$ac_try_echo"; } >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19149   test $ac_status = 0; }; }; then
19150       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19151       rm -f conftest2.*
19152       if { { case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19157 $as_echo "$ac_try_echo"; } >&5
19158   (eval "$ac_try") 2>&5
19159   ac_status=$?
19160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19161   test $ac_status = 0; } &&
19162          test -f conftest2.$ac_objext && { { case "(($ac_try" in
19163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164   *) ac_try_echo=$ac_try;;
19165 esac
19166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19167 $as_echo "$ac_try_echo"; } >&5
19168   (eval "$ac_try") 2>&5
19169   ac_status=$?
19170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19171   test $ac_status = 0; };
19172       then
19173         # cc works too.
19174         :
19175       else
19176         # cc exists but doesn't like -o.
19177         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19178       fi
19179     fi
19180   fi
19181 else
19182   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19183 fi
19184 rm -f core conftest*
19185
19186 fi
19187 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189 $as_echo "yes" >&6; }
19190 else
19191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192 $as_echo "no" >&6; }
19193
19194 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19195
19196 fi
19197
19198 # FIXME: we rely on the cache variable name because
19199 # there is no other way.
19200 set dummy $CC
19201 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19202 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19203 if test "$am_t" != yes; then
19204    # Losing compiler, so override with the script.
19205    # FIXME: It is wrong to rewrite CC.
19206    # But if we don't then we get into trouble of one sort or another.
19207    # A longer-term fix would be to have automake use am__CC in this case,
19208    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19209    CC="$am_aux_dir/compile $CC"
19210 fi
19211
19212
19213
19214
19215
19216 subdirs="$subdirs classpath libltdl"
19217
19218
19219 # The -no-testsuite modules omit the test subdir.
19220  if test -d $srcdir/testsuite; then
19221   TESTSUBDIR_TRUE=
19222   TESTSUBDIR_FALSE='#'
19223 else
19224   TESTSUBDIR_TRUE='#'
19225   TESTSUBDIR_FALSE=
19226 fi
19227
19228
19229 # Should the runtime set system properties by examining the
19230 # environment variable GCJ_PROPERTIES?
19231 # Check whether --enable-getenv-properties was given.
19232 if test "${enable_getenv_properties+set}" = set; then :
19233   enableval=$enable_getenv_properties;
19234 fi
19235
19236
19237 # Whether GCJ_PROPERTIES is used depends on the target.
19238 if test -z "$enable_getenv_properties"; then
19239    enable_getenv_properties=${enable_getenv_properties_default-yes}
19240 fi
19241 if test "$enable_getenv_properties" = no; then
19242
19243 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19244
19245 fi
19246
19247 # Whether we should use arguments to main()
19248 if test -z "$enable_main_args"; then
19249    enable_main_args=${enable_main_args_default-yes}
19250 fi
19251 if test "$enable_main_args" = no; then
19252
19253 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19254
19255 fi
19256
19257
19258 # Should we use hashtable-based synchronization?
19259 # Currently works only for Linux X86/ia64
19260 # Typically faster and more space-efficient
19261 # Check whether --enable-hash-synchronization was given.
19262 if test "${enable_hash_synchronization+set}" = set; then :
19263   enableval=$enable_hash_synchronization;
19264 fi
19265
19266
19267 if test -z "$enable_hash_synchronization"; then
19268    enable_hash_synchronization=$enable_hash_synchronization_default
19269 fi
19270
19271
19272 install_ecj_jar=no
19273 ECJ_BUILD_JAR=
19274 ECJ_JAR=
19275
19276 # Check whether --with-ecj-jar was given.
19277 if test "${with_ecj_jar+set}" = set; then :
19278   withval=$with_ecj_jar; ECJ_JAR=$withval
19279 else
19280   if test -f $multi_basedir/ecj.jar; then
19281            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19282            ECJ_JAR='$(jardir)/ecj.jar'
19283            install_ecj_jar=yes
19284          fi
19285 fi
19286
19287
19288
19289  if test "$ECJ_JAR" != ""; then
19290   BUILD_ECJ1_TRUE=
19291   BUILD_ECJ1_FALSE='#'
19292 else
19293   BUILD_ECJ1_TRUE='#'
19294   BUILD_ECJ1_FALSE=
19295 fi
19296
19297  if test $install_ecj_jar = yes; then
19298   INSTALL_ECJ_JAR_TRUE=
19299   INSTALL_ECJ_JAR_FALSE='#'
19300 else
19301   INSTALL_ECJ_JAR_TRUE='#'
19302   INSTALL_ECJ_JAR_FALSE=
19303 fi
19304
19305
19306
19307 # Check whether --with-java-home was given.
19308 if test "${with_java_home+set}" = set; then :
19309   withval=$with_java_home; JAVA_HOME="${withval}"
19310 else
19311   JAVA_HOME=""
19312 fi
19313
19314  if test ! -z "$JAVA_HOME"; then
19315   JAVA_HOME_SET_TRUE=
19316   JAVA_HOME_SET_FALSE='#'
19317 else
19318   JAVA_HOME_SET_TRUE='#'
19319   JAVA_HOME_SET_FALSE=
19320 fi
19321
19322
19323
19324 suppress_libgcj_bc=no
19325 # Check whether --enable-libgcj-bc was given.
19326 if test "${enable_libgcj_bc+set}" = set; then :
19327   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19328      suppress_libgcj_bc=yes
19329    fi
19330 fi
19331
19332  if test "$suppress_libgcj_bc" = "yes"; then
19333   SUPPRESS_LIBGCJ_BC_TRUE=
19334   SUPPRESS_LIBGCJ_BC_FALSE='#'
19335 else
19336   SUPPRESS_LIBGCJ_BC_TRUE='#'
19337   SUPPRESS_LIBGCJ_BC_FALSE=
19338 fi
19339
19340
19341 build_libgcj_reduced_reflection=no
19342 # Check whether --enable-reduced-reflection was given.
19343 if test "${enable_reduced_reflection+set}" = set; then :
19344   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19345      build_libgcj_reduced_reflection=yes
19346    fi
19347 fi
19348
19349  if test "$build_libgcj_reduced_reflection" = "yes"; then
19350   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19351   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19352 else
19353   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19354   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19355 fi
19356
19357
19358 # What is the native OS API for MinGW?
19359
19360 # Check whether --with-win32-nlsapi was given.
19361 if test "${with_win32_nlsapi+set}" = set; then :
19362   withval=$with_win32_nlsapi; case "${withval}" in
19363   ansi) with_win32_nlsapi=ansi ;;
19364   unicows) with_win32_nlsapi=unicows ;;
19365   unicode) with_win32_nlsapi=unicode ;;
19366   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19367 esac
19368 else
19369   with_win32_nlsapi=ansi
19370 fi
19371
19372
19373 case "${with_win32_nlsapi}" in
19374   unicows | unicode)
19375
19376 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19377
19378     ;;
19379 esac
19380
19381 # configure.host sets slow_pthread_self if the synchronization code should
19382 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19383 if test "${slow_pthread_self}" = "yes"; then
19384
19385 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19386
19387 fi
19388
19389 # Check for gc debugging.  This option is handled both here and in the GC.
19390 # Check whether --enable-gc-debug was given.
19391 if test "${enable_gc_debug+set}" = set; then :
19392   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19393
19394 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19395
19396   fi
19397 fi
19398
19399
19400 # See if the user has the interpreter included.
19401 # Check whether --enable-interpreter was given.
19402 if test "${enable_interpreter+set}" = set; then :
19403   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19404     # This can also be set in configure.host.
19405     libgcj_interpreter=yes
19406   elif test "$enable_interpreter" = no; then
19407     libgcj_interpreter=no
19408   fi
19409 fi
19410
19411
19412 if test "$libgcj_interpreter" = yes; then
19413
19414 $as_echo "#define INTERPRETER 1" >>confdefs.h
19415
19416 fi
19417 INTERPRETER="$libgcj_interpreter"
19418
19419  if test "$libgcj_interpreter" = yes; then
19420   INTERPRETER_TRUE=
19421   INTERPRETER_FALSE='#'
19422 else
19423   INTERPRETER_TRUE='#'
19424   INTERPRETER_FALSE=
19425 fi
19426
19427
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19429 $as_echo_n "checking for exception model to use... " >&6; }
19430 ac_ext=cpp
19431 ac_cpp='$CXXCPP $CPPFLAGS'
19432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19435
19436 # Check whether --enable-sjlj-exceptions was given.
19437 if test "${enable_sjlj_exceptions+set}" = set; then :
19438   enableval=$enable_sjlj_exceptions; :
19439 else
19440   cat > conftest.$ac_ext << EOF
19441 #line 19441 "configure"
19442 struct S { ~S(); };
19443 void bar();
19444 void foo()
19445 {
19446   S s;
19447   bar();
19448 }
19449 EOF
19450 old_CXXFLAGS="$CXXFLAGS"
19451 CXXFLAGS=-S
19452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19453   (eval $ac_compile) 2>&5
19454   ac_status=$?
19455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19456   test $ac_status = 0; }; then
19457   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19458     enable_sjlj_exceptions=yes
19459   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19460     enable_sjlj_exceptions=no
19461   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19462     # ARM EH ABI.
19463     enable_sjlj_exceptions=no
19464   fi
19465 fi
19466 CXXFLAGS="$old_CXXFLAGS"
19467 rm -f conftest*
19468 fi
19469
19470 if test x$enable_sjlj_exceptions = xyes; then
19471
19472 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19473
19474   ac_exception_model_name=sjlj
19475 elif test x$enable_sjlj_exceptions = xno; then
19476   ac_exception_model_name="call frame"
19477 else
19478   as_fn_error "unable to detect exception model" "$LINENO" 5
19479 fi
19480 ac_ext=c
19481 ac_cpp='$CPP $CPPFLAGS'
19482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19487 $as_echo "$ac_exception_model_name" >&6; }
19488
19489 # If we are non using SJLJ exceptions, and this host does not have support
19490 # for unwinding from a signal handler, enable checked dereferences and divides.
19491 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19492   CHECKREFSPEC=-fcheck-references
19493   DIVIDESPEC=-fuse-divide-subroutine
19494   EXCEPTIONSPEC=
19495 fi
19496
19497 # See if the user wants to disable java.net.  This is the mildly
19498 # ugly way that we admit that target-side configuration sucks.
19499 # Check whether --enable-java-net was given.
19500 if test "${enable_java_net+set}" = set; then :
19501   enableval=$enable_java_net;
19502 fi
19503
19504
19505 # Whether java.net is built by default can depend on the target.
19506 if test -z "$enable_java_net"; then
19507    enable_java_net=${enable_java_net_default-yes}
19508 fi
19509 if test "$enable_java_net" = no; then
19510
19511 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19512
19513 fi
19514
19515 # See if the user wants to configure without libffi.  Some
19516 # architectures don't support it, and default values are set in
19517 # configure.host.
19518
19519 # Check whether --with-libffi was given.
19520 if test "${with_libffi+set}" = set; then :
19521   withval=$with_libffi; :
19522 else
19523   with_libffi=${with_libffi_default-yes}
19524 fi
19525
19526
19527 LIBFFI=
19528 LIBFFIINCS=
19529 if test "$with_libffi" != no; then
19530
19531 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19532
19533    LIBFFI=../libffi/libffi_convenience.la
19534    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19535 fi
19536
19537
19538
19539 # See if the user wants to disable JVMPI support.
19540 # Check whether --enable-jvmpi was given.
19541 if test "${enable_jvmpi+set}" = set; then :
19542   enableval=$enable_jvmpi;
19543 fi
19544
19545
19546 if test "$enable_jvmpi" != no; then
19547
19548 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19549
19550 fi
19551
19552 # If the target is an eCos system, use the appropriate eCos
19553 # I/O routines.
19554 # FIXME: this should not be a local option but a global target
19555 # system; at present there is no eCos target.
19556 TARGET_ECOS=${PROCESS-"no"}
19557
19558 # Check whether --with-ecos was given.
19559 if test "${with_ecos+set}" = set; then :
19560   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19561
19562 fi
19563
19564
19565 case "$TARGET_ECOS" in
19566    no) case "$host" in
19567       *mingw*)
19568             PLATFORM=Win32
19569             PLATFORMNET=Win32
19570             PLATFORMH=win32.h
19571
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19573 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19574 LD_PROG=`$CC --print-prog-name=ld`
19575 LD_VERSION=`$LD_PROG --version`
19576 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19577 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19578 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19579   LD_OK="ok"
19580 else
19581   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19582     LD_OK="ok"
19583   fi
19584 fi
19585 if test "x$LD_OK" != x; then
19586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19587 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19588 else
19589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19590 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19591   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19592 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19593
19594 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19595
19596 fi
19597       ;;
19598       *)
19599             PLATFORM=Posix
19600             PLATFORMNET=Posix
19601             PLATFORMH=posix.h
19602       ;;
19603       esac
19604       ;;
19605    *)
19606       PLATFORM=Ecos
19607       PLATFORMNET=NoNet
19608
19609 $as_echo "#define ECOS 1" >>confdefs.h
19610
19611       PLATFORMH=posix.h
19612       ;;
19613 esac
19614
19615 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19616
19617
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h.  */
19620 #include <stdint.h>
19621
19622 _ACEOF
19623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19624   $EGREP "uint32_t" >/dev/null 2>&1; then :
19625
19626 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19627
19628 fi
19629 rm -f conftest*
19630
19631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632 /* end confdefs.h.  */
19633 #include <inttypes.h>
19634
19635 _ACEOF
19636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19637   $EGREP "uint32_t" >/dev/null 2>&1; then :
19638
19639 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19640
19641 fi
19642 rm -f conftest*
19643
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h.  */
19646 #include <sys/types.h>
19647
19648 _ACEOF
19649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19650   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19651
19652 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19653
19654 fi
19655 rm -f conftest*
19656
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h.  */
19659 #include <sys/config.h>
19660
19661 _ACEOF
19662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19663   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19664
19665 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19666
19667 fi
19668 rm -f conftest*
19669
19670
19671  if test "$PLATFORM" = Win32; then
19672   USING_WIN32_PLATFORM_TRUE=
19673   USING_WIN32_PLATFORM_FALSE='#'
19674 else
19675   USING_WIN32_PLATFORM_TRUE='#'
19676   USING_WIN32_PLATFORM_FALSE=
19677 fi
19678
19679  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19680   USING_POSIX_PLATFORM_TRUE=
19681   USING_POSIX_PLATFORM_FALSE='#'
19682 else
19683   USING_POSIX_PLATFORM_TRUE='#'
19684   USING_POSIX_PLATFORM_FALSE=
19685 fi
19686
19687
19688 case "$host" in
19689   *-darwin*) DARWIN_CRT=true ;;
19690   *) DARWIN_CRT=false ;;
19691 esac
19692  if $DARWIN_CRT; then
19693   USING_DARWIN_CRT_TRUE=
19694   USING_DARWIN_CRT_FALSE='#'
19695 else
19696   USING_DARWIN_CRT_TRUE='#'
19697   USING_DARWIN_CRT_FALSE=
19698 fi
19699
19700
19701 # This may not be defined in a non-ANS conformant embedded system.
19702 # FIXME: Should these case a runtime exception in that case?
19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h.  */
19705 #include <time.h>
19706
19707 _ACEOF
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709   $EGREP "localtime" >/dev/null 2>&1; then :
19710
19711 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19712
19713 fi
19714 rm -f conftest*
19715
19716
19717 # Create the subdirectory for natFile.cc, or the attempt
19718 # to create the link will fail.
19719 test -d java || mkdir java
19720 test -d java/io || mkdir java/io
19721 test -d gnu || mkdir gnu
19722 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19723
19724
19725 # Likewise for natConcreteProcess.cc.
19726 test -d java/lang || mkdir java/lang
19727 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19728
19729
19730 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19731 test -d java/net || mkdir java/net
19732 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19733
19734 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19735
19736
19737 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19738 test -d gnu/java || mkdir gnu/java
19739 test -d gnu/java/net || mkdir gnu/java/net
19740 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19741
19742 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19743
19744
19745 # Likewise for natVMPipe.cc and natVMSelector.cc.
19746 test -d gnu/java/nio || mkdir gnu/java/nio
19747 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19748
19749 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19750
19751
19752 # Likewise for natFileChannelImpl.cc
19753 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19754 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19755
19756
19757 # Likewise for natVMSecureRandom.cc
19758 test -d gnu/java/security || mkdir gnu/java/security
19759 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19760 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19761 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19762
19763
19764 case "${host}" in
19765     *mingw*)
19766       SYSTEMSPEC="-lgdi32 -lws2_32"
19767       if test "${with_win32_nlsapi}" = "unicows"; then
19768         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19769       fi
19770     ;;
19771     *-*-darwin[912]*)
19772       SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19773     ;;
19774     *)
19775       SYSTEMSPEC=
19776     ;;
19777 esac
19778
19779
19780
19781 # Check whether --with-system-zlib was given.
19782 if test "${with_system_zlib+set}" = set; then :
19783   withval=$with_system_zlib;
19784 fi
19785
19786 ZLIBSPEC=
19787
19788 ZLIBTESTSPEC=
19789
19790
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19792 $as_echo_n "checking for X... " >&6; }
19793
19794
19795 # Check whether --with-x was given.
19796 if test "${with_x+set}" = set; then :
19797   withval=$with_x;
19798 fi
19799
19800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19801 if test "x$with_x" = xno; then
19802   # The user explicitly disabled X.
19803   have_x=disabled
19804 else
19805   case $x_includes,$x_libraries in #(
19806     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19807     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19808   $as_echo_n "(cached) " >&6
19809 else
19810   # One or both of the vars are not set, and there is no cached value.
19811 ac_x_includes=no ac_x_libraries=no
19812 rm -f -r conftest.dir
19813 if mkdir conftest.dir; then
19814   cd conftest.dir
19815   cat >Imakefile <<'_ACEOF'
19816 incroot:
19817         @echo incroot='${INCROOT}'
19818 usrlibdir:
19819         @echo usrlibdir='${USRLIBDIR}'
19820 libdir:
19821         @echo libdir='${LIBDIR}'
19822 _ACEOF
19823   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19824     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19825     for ac_var in incroot usrlibdir libdir; do
19826       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19827     done
19828     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19829     for ac_extension in a so sl dylib la dll; do
19830       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19831          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19832         ac_im_usrlibdir=$ac_im_libdir; break
19833       fi
19834     done
19835     # Screen out bogus values from the imake configuration.  They are
19836     # bogus both because they are the default anyway, and because
19837     # using them would break gcc on systems where it needs fixed includes.
19838     case $ac_im_incroot in
19839         /usr/include) ac_x_includes= ;;
19840         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19841     esac
19842     case $ac_im_usrlibdir in
19843         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19844         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19845     esac
19846   fi
19847   cd ..
19848   rm -f -r conftest.dir
19849 fi
19850
19851 # Standard set of common directories for X headers.
19852 # Check X11 before X11Rn because it is often a symlink to the current release.
19853 ac_x_header_dirs='
19854 /usr/X11/include
19855 /usr/X11R7/include
19856 /usr/X11R6/include
19857 /usr/X11R5/include
19858 /usr/X11R4/include
19859
19860 /usr/include/X11
19861 /usr/include/X11R7
19862 /usr/include/X11R6
19863 /usr/include/X11R5
19864 /usr/include/X11R4
19865
19866 /usr/local/X11/include
19867 /usr/local/X11R7/include
19868 /usr/local/X11R6/include
19869 /usr/local/X11R5/include
19870 /usr/local/X11R4/include
19871
19872 /usr/local/include/X11
19873 /usr/local/include/X11R7
19874 /usr/local/include/X11R6
19875 /usr/local/include/X11R5
19876 /usr/local/include/X11R4
19877
19878 /usr/X386/include
19879 /usr/x386/include
19880 /usr/XFree86/include/X11
19881
19882 /usr/include
19883 /usr/local/include
19884 /usr/unsupported/include
19885 /usr/athena/include
19886 /usr/local/x11r5/include
19887 /usr/lpp/Xamples/include
19888
19889 /usr/openwin/include
19890 /usr/openwin/share/include'
19891
19892 if test "$ac_x_includes" = no; then
19893   # Guess where to find include files, by looking for Xlib.h.
19894   # First, try using that file with no special directory specified.
19895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19896 /* end confdefs.h.  */
19897 #include <X11/Xlib.h>
19898 _ACEOF
19899 if ac_fn_c_try_cpp "$LINENO"; then :
19900   # We can compile using X headers with no special include directory.
19901 ac_x_includes=
19902 else
19903   for ac_dir in $ac_x_header_dirs; do
19904   if test -r "$ac_dir/X11/Xlib.h"; then
19905     ac_x_includes=$ac_dir
19906     break
19907   fi
19908 done
19909 fi
19910 rm -f conftest.err conftest.$ac_ext
19911 fi # $ac_x_includes = no
19912
19913 if test "$ac_x_libraries" = no; then
19914   # Check for the libraries.
19915   # See if we find them without any special options.
19916   # Don't add to $LIBS permanently.
19917   ac_save_LIBS=$LIBS
19918   LIBS="-lX11 $LIBS"
19919   if test x$gcc_no_link = xyes; then
19920   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19921 fi
19922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19923 /* end confdefs.h.  */
19924 #include <X11/Xlib.h>
19925 int
19926 main ()
19927 {
19928 XrmInitialize ()
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 if ac_fn_c_try_link "$LINENO"; then :
19934   LIBS=$ac_save_LIBS
19935 # We can link X programs with no special library path.
19936 ac_x_libraries=
19937 else
19938   LIBS=$ac_save_LIBS
19939 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19940 do
19941   # Don't even attempt the hair of trying to link an X program!
19942   for ac_extension in a so sl dylib la dll; do
19943     if test -r "$ac_dir/libX11.$ac_extension"; then
19944       ac_x_libraries=$ac_dir
19945       break 2
19946     fi
19947   done
19948 done
19949 fi
19950 rm -f core conftest.err conftest.$ac_objext \
19951     conftest$ac_exeext conftest.$ac_ext
19952 fi # $ac_x_libraries = no
19953
19954 case $ac_x_includes,$ac_x_libraries in #(
19955   no,* | *,no | *\'*)
19956     # Didn't find X, or a directory has "'" in its name.
19957     ac_cv_have_x="have_x=no";; #(
19958   *)
19959     # Record where we found X for the cache.
19960     ac_cv_have_x="have_x=yes\
19961         ac_x_includes='$ac_x_includes'\
19962         ac_x_libraries='$ac_x_libraries'"
19963 esac
19964 fi
19965 ;; #(
19966     *) have_x=yes;;
19967   esac
19968   eval "$ac_cv_have_x"
19969 fi # $with_x != no
19970
19971 if test "$have_x" != yes; then
19972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19973 $as_echo "$have_x" >&6; }
19974   no_x=yes
19975 else
19976   # If each of the values was on the command line, it overrides each guess.
19977   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19978   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19979   # Update the cache value to reflect the command line values.
19980   ac_cv_have_x="have_x=yes\
19981         ac_x_includes='$x_includes'\
19982         ac_x_libraries='$x_libraries'"
19983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19984 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19985 fi
19986
19987 if test "$no_x" = yes; then
19988   # Not all programs may use this symbol, but it does not hurt to define it.
19989
19990 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19991
19992   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19993 else
19994   if test -n "$x_includes"; then
19995     X_CFLAGS="$X_CFLAGS -I$x_includes"
19996   fi
19997
19998   # It would also be nice to do this for all -L options, not just this one.
19999   if test -n "$x_libraries"; then
20000     X_LIBS="$X_LIBS -L$x_libraries"
20001     # For Solaris; some versions of Sun CC require a space after -R and
20002     # others require no space.  Words are not sufficient . . . .
20003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20004 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20005     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20006     ac_xsave_c_werror_flag=$ac_c_werror_flag
20007     ac_c_werror_flag=yes
20008     if test x$gcc_no_link = xyes; then
20009   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20010 fi
20011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h.  */
20013
20014 int
20015 main ()
20016 {
20017
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 if ac_fn_c_try_link "$LINENO"; then :
20023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20024 $as_echo "no" >&6; }
20025        X_LIBS="$X_LIBS -R$x_libraries"
20026 else
20027   LIBS="$ac_xsave_LIBS -R $x_libraries"
20028        if test x$gcc_no_link = xyes; then
20029   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20030 fi
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h.  */
20033
20034 int
20035 main ()
20036 {
20037
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 if ac_fn_c_try_link "$LINENO"; then :
20043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20045           X_LIBS="$X_LIBS -R $x_libraries"
20046 else
20047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20048 $as_echo "neither works" >&6; }
20049 fi
20050 rm -f core conftest.err conftest.$ac_objext \
20051     conftest$ac_exeext conftest.$ac_ext
20052 fi
20053 rm -f core conftest.err conftest.$ac_objext \
20054     conftest$ac_exeext conftest.$ac_ext
20055     ac_c_werror_flag=$ac_xsave_c_werror_flag
20056     LIBS=$ac_xsave_LIBS
20057   fi
20058
20059   # Check for system-dependent libraries X programs must link with.
20060   # Do this before checking for the system-independent R6 libraries
20061   # (-lICE), since we may need -lsocket or whatever for X linking.
20062
20063   if test "$ISC" = yes; then
20064     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20065   else
20066     # Martyn Johnson says this is needed for Ultrix, if the X
20067     # libraries were built with DECnet support.  And Karl Berry says
20068     # the Alpha needs dnet_stub (dnet does not exist).
20069     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20070     if test x$gcc_no_link = xyes; then
20071   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20072 fi
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h.  */
20075
20076 /* Override any GCC internal prototype to avoid an error.
20077    Use char because int might match the return type of a GCC
20078    builtin and then its argument prototype would still apply.  */
20079 #ifdef __cplusplus
20080 extern "C"
20081 #endif
20082 char XOpenDisplay ();
20083 int
20084 main ()
20085 {
20086 return XOpenDisplay ();
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 if ac_fn_c_try_link "$LINENO"; then :
20092
20093 else
20094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20095 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20096 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20097   $as_echo_n "(cached) " >&6
20098 else
20099   ac_check_lib_save_LIBS=$LIBS
20100 LIBS="-ldnet  $LIBS"
20101 if test x$gcc_no_link = xyes; then
20102   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20103 fi
20104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20105 /* end confdefs.h.  */
20106
20107 /* Override any GCC internal prototype to avoid an error.
20108    Use char because int might match the return type of a GCC
20109    builtin and then its argument prototype would still apply.  */
20110 #ifdef __cplusplus
20111 extern "C"
20112 #endif
20113 char dnet_ntoa ();
20114 int
20115 main ()
20116 {
20117 return dnet_ntoa ();
20118   ;
20119   return 0;
20120 }
20121 _ACEOF
20122 if ac_fn_c_try_link "$LINENO"; then :
20123   ac_cv_lib_dnet_dnet_ntoa=yes
20124 else
20125   ac_cv_lib_dnet_dnet_ntoa=no
20126 fi
20127 rm -f core conftest.err conftest.$ac_objext \
20128     conftest$ac_exeext conftest.$ac_ext
20129 LIBS=$ac_check_lib_save_LIBS
20130 fi
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20132 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20133 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20134   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20135 fi
20136
20137     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20139 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20140 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20141   $as_echo_n "(cached) " >&6
20142 else
20143   ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-ldnet_stub  $LIBS"
20145 if test x$gcc_no_link = xyes; then
20146   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20147 fi
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h.  */
20150
20151 /* Override any GCC internal prototype to avoid an error.
20152    Use char because int might match the return type of a GCC
20153    builtin and then its argument prototype would still apply.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char dnet_ntoa ();
20158 int
20159 main ()
20160 {
20161 return dnet_ntoa ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"; then :
20167   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20168 else
20169   ac_cv_lib_dnet_stub_dnet_ntoa=no
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext \
20172     conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20174 fi
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20176 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20177 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20178   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20179 fi
20180
20181     fi
20182 fi
20183 rm -f core conftest.err conftest.$ac_objext \
20184     conftest$ac_exeext conftest.$ac_ext
20185     LIBS="$ac_xsave_LIBS"
20186
20187     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20188     # to get the SysV transport functions.
20189     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20190     # needs -lnsl.
20191     # The nsl library prevents programs from opening the X display
20192     # on Irix 5.2, according to T.E. Dickey.
20193     # The functions gethostbyname, getservbyname, and inet_addr are
20194     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20195     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20196 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20197
20198 fi
20199
20200     if test $ac_cv_func_gethostbyname = no; then
20201       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20202 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20203 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20204   $as_echo_n "(cached) " >&6
20205 else
20206   ac_check_lib_save_LIBS=$LIBS
20207 LIBS="-lnsl  $LIBS"
20208 if test x$gcc_no_link = xyes; then
20209   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20210 fi
20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h.  */
20213
20214 /* Override any GCC internal prototype to avoid an error.
20215    Use char because int might match the return type of a GCC
20216    builtin and then its argument prototype would still apply.  */
20217 #ifdef __cplusplus
20218 extern "C"
20219 #endif
20220 char gethostbyname ();
20221 int
20222 main ()
20223 {
20224 return gethostbyname ();
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 if ac_fn_c_try_link "$LINENO"; then :
20230   ac_cv_lib_nsl_gethostbyname=yes
20231 else
20232   ac_cv_lib_nsl_gethostbyname=no
20233 fi
20234 rm -f core conftest.err conftest.$ac_objext \
20235     conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20237 fi
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20239 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20240 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20241   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20242 fi
20243
20244       if test $ac_cv_lib_nsl_gethostbyname = no; then
20245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20246 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20247 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20248   $as_echo_n "(cached) " >&6
20249 else
20250   ac_check_lib_save_LIBS=$LIBS
20251 LIBS="-lbsd  $LIBS"
20252 if test x$gcc_no_link = xyes; then
20253   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20254 fi
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h.  */
20257
20258 /* Override any GCC internal prototype to avoid an error.
20259    Use char because int might match the return type of a GCC
20260    builtin and then its argument prototype would still apply.  */
20261 #ifdef __cplusplus
20262 extern "C"
20263 #endif
20264 char gethostbyname ();
20265 int
20266 main ()
20267 {
20268 return gethostbyname ();
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 if ac_fn_c_try_link "$LINENO"; then :
20274   ac_cv_lib_bsd_gethostbyname=yes
20275 else
20276   ac_cv_lib_bsd_gethostbyname=no
20277 fi
20278 rm -f core conftest.err conftest.$ac_objext \
20279     conftest$ac_exeext conftest.$ac_ext
20280 LIBS=$ac_check_lib_save_LIBS
20281 fi
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20283 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20284 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20285   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20286 fi
20287
20288       fi
20289     fi
20290
20291     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20292     # socket/setsockopt and other routines are undefined under SCO ODT
20293     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20294     # on later versions), says Simon Leinen: it contains gethostby*
20295     # variants that don't use the name server (or something).  -lsocket
20296     # must be given before -lnsl if both are needed.  We assume that
20297     # if connect needs -lnsl, so does gethostbyname.
20298     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20299 if test "x$ac_cv_func_connect" = x""yes; then :
20300
20301 fi
20302
20303     if test $ac_cv_func_connect = no; then
20304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20305 $as_echo_n "checking for connect in -lsocket... " >&6; }
20306 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20307   $as_echo_n "(cached) " >&6
20308 else
20309   ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20311 if test x$gcc_no_link = xyes; then
20312   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20313 fi
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20315 /* end confdefs.h.  */
20316
20317 /* Override any GCC internal prototype to avoid an error.
20318    Use char because int might match the return type of a GCC
20319    builtin and then its argument prototype would still apply.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 char connect ();
20324 int
20325 main ()
20326 {
20327 return connect ();
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 if ac_fn_c_try_link "$LINENO"; then :
20333   ac_cv_lib_socket_connect=yes
20334 else
20335   ac_cv_lib_socket_connect=no
20336 fi
20337 rm -f core conftest.err conftest.$ac_objext \
20338     conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20340 fi
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20342 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20343 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20344   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20345 fi
20346
20347     fi
20348
20349     # Guillermo Gomez says -lposix is necessary on A/UX.
20350     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20351 if test "x$ac_cv_func_remove" = x""yes; then :
20352
20353 fi
20354
20355     if test $ac_cv_func_remove = no; then
20356       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20357 $as_echo_n "checking for remove in -lposix... " >&6; }
20358 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20359   $as_echo_n "(cached) " >&6
20360 else
20361   ac_check_lib_save_LIBS=$LIBS
20362 LIBS="-lposix  $LIBS"
20363 if test x$gcc_no_link = xyes; then
20364   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20365 fi
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h.  */
20368
20369 /* Override any GCC internal prototype to avoid an error.
20370    Use char because int might match the return type of a GCC
20371    builtin and then its argument prototype would still apply.  */
20372 #ifdef __cplusplus
20373 extern "C"
20374 #endif
20375 char remove ();
20376 int
20377 main ()
20378 {
20379 return remove ();
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 if ac_fn_c_try_link "$LINENO"; then :
20385   ac_cv_lib_posix_remove=yes
20386 else
20387   ac_cv_lib_posix_remove=no
20388 fi
20389 rm -f core conftest.err conftest.$ac_objext \
20390     conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20392 fi
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20394 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20395 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20396   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20397 fi
20398
20399     fi
20400
20401     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20402     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20403 if test "x$ac_cv_func_shmat" = x""yes; then :
20404
20405 fi
20406
20407     if test $ac_cv_func_shmat = no; then
20408       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20409 $as_echo_n "checking for shmat in -lipc... " >&6; }
20410 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20411   $as_echo_n "(cached) " >&6
20412 else
20413   ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-lipc  $LIBS"
20415 if test x$gcc_no_link = xyes; then
20416   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20417 fi
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h.  */
20420
20421 /* Override any GCC internal prototype to avoid an error.
20422    Use char because int might match the return type of a GCC
20423    builtin and then its argument prototype would still apply.  */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 char shmat ();
20428 int
20429 main ()
20430 {
20431 return shmat ();
20432   ;
20433   return 0;
20434 }
20435 _ACEOF
20436 if ac_fn_c_try_link "$LINENO"; then :
20437   ac_cv_lib_ipc_shmat=yes
20438 else
20439   ac_cv_lib_ipc_shmat=no
20440 fi
20441 rm -f core conftest.err conftest.$ac_objext \
20442     conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20444 fi
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20446 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20447 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20448   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20449 fi
20450
20451     fi
20452   fi
20453
20454   # Check for libraries that X11R6 Xt/Xaw programs need.
20455   ac_save_LDFLAGS=$LDFLAGS
20456   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20457   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20458   # check for ICE first), but we must link in the order -lSM -lICE or
20459   # we get undefined symbols.  So assume we have SM if we have ICE.
20460   # These have to be linked with before -lX11, unlike the other
20461   # libraries we check for below, so use a different variable.
20462   # John Interrante, Karl Berry
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20464 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20465 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20466   $as_echo_n "(cached) " >&6
20467 else
20468   ac_check_lib_save_LIBS=$LIBS
20469 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20470 if test x$gcc_no_link = xyes; then
20471   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20472 fi
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h.  */
20475
20476 /* Override any GCC internal prototype to avoid an error.
20477    Use char because int might match the return type of a GCC
20478    builtin and then its argument prototype would still apply.  */
20479 #ifdef __cplusplus
20480 extern "C"
20481 #endif
20482 char IceConnectionNumber ();
20483 int
20484 main ()
20485 {
20486 return IceConnectionNumber ();
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 if ac_fn_c_try_link "$LINENO"; then :
20492   ac_cv_lib_ICE_IceConnectionNumber=yes
20493 else
20494   ac_cv_lib_ICE_IceConnectionNumber=no
20495 fi
20496 rm -f core conftest.err conftest.$ac_objext \
20497     conftest$ac_exeext conftest.$ac_ext
20498 LIBS=$ac_check_lib_save_LIBS
20499 fi
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20501 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20502 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20503   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20504 fi
20505
20506   LDFLAGS=$ac_save_LDFLAGS
20507
20508 fi
20509
20510
20511 # FIXME: this should be _libs on some hosts.
20512 libsubdir=.libs
20513
20514 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20515
20516 LIBSTDCXXSPEC=
20517 # extra LD Flags which are required for targets
20518 case "${host}" in
20519 *-*-darwin[0-7].*)
20520     # For now we have to disable it on darwin[8-9] because it slows down
20521     # the linking phase. A possible bug in ld?
20522     # on Darwin -single_module speeds up loading of the dynamic libraries.
20523     extra_ldflags_libjava=-Wl,-single_module
20524     ;;
20525 arm*linux*eabi)
20526     # Some of the ARM unwinder code is actually in libstdc++.  We
20527     # could in principle replicate it in libgcj, but it's better to
20528     # have a dependency on libstdc++.
20529     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20530     LIBSTDCXXSPEC=-lstdc++
20531     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20532     ;;
20533 *-*-cygwin)
20534     extra_ldflags_libjava=-liconv
20535     ;;
20536 esac
20537
20538 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20540 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20541 if test "${libgcj_cv_exidx+set}" = set; then :
20542   $as_echo_n "(cached) " >&6
20543 else
20544   saved_ldflags="$LDFLAGS"
20545    LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20546    # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20547    # warns about unknown options, which breaks the testsuite.  So enable
20548    # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20549    # it off again.  As a workaround, save and restore werror flag like
20550    # AC_PATH_XTRA.
20551    ac_xsave_c_werror_flag=$ac_c_werror_flag
20552
20553 ac_c_werror_flag=yes
20554    if test x$gcc_no_link = xyes; then
20555   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20556 fi
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h.  */
20559 int main(void){ return 0;}
20560 _ACEOF
20561 if ac_fn_c_try_link "$LINENO"; then :
20562   eval "libgcj_cv_exidx=yes"
20563 else
20564   eval "libgcj_cv_exidx=no"
20565 fi
20566 rm -f core conftest.err conftest.$ac_objext \
20567     conftest$ac_exeext conftest.$ac_ext
20568    ac_c_werror_flag=$ac_xsave_c_werror_flag
20569    LDFLAGS="${saved_ldflags}"
20570
20571 fi
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20573 $as_echo "$libgcj_cv_exidx" >&6; }
20574 if test "${libgcj_cv_exidx}" = "yes"; then
20575   SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20576   extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20577 fi
20578
20579
20580
20581
20582
20583
20584
20585 # Allow the GC to be disabled.  Can be useful when debugging.
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20587 $as_echo_n "checking for garbage collector to use... " >&6; }
20588 # Check whether --enable-java-gc was given.
20589 if test "${enable_java_gc+set}" = set; then :
20590   enableval=$enable_java_gc; GC=$enableval
20591 else
20592   GC=boehm
20593 fi
20594
20595 GCLIBS=
20596 GCINCS=
20597 GCDEPS=
20598 GCSPEC=
20599 JC1GCSPEC=
20600 GCTESTSPEC=
20601 case "$GC" in
20602  boehm)
20603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20604 $as_echo "boehm" >&6; }
20605     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20606     JC1GCSPEC='-fuse-boehm-gc'
20607     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20608     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20609     GCOBJS=boehm.lo
20610     GCHDR=boehm-gc.h
20611     # The POSIX thread support needs to know this.
20612
20613 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20614
20615     ;;
20616  no)
20617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20618 $as_echo "none" >&6; }
20619     GCHDR=no-gc.h
20620     ;;
20621  *)
20622     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20623     ;;
20624 esac
20625
20626
20627
20628
20629
20630
20631 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20632
20633  if test "$GC" = boehm; then
20634   USING_BOEHMGC_TRUE=
20635   USING_BOEHMGC_FALSE='#'
20636 else
20637   USING_BOEHMGC_TRUE='#'
20638   USING_BOEHMGC_FALSE=
20639 fi
20640
20641  if test "$GC" = no; then
20642   USING_NOGC_TRUE=
20643   USING_NOGC_FALSE='#'
20644 else
20645   USING_NOGC_TRUE='#'
20646   USING_NOGC_FALSE=
20647 fi
20648
20649
20650
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20652 $as_echo_n "checking for thread model used by GCC... " >&6; }
20653 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20655 $as_echo "$THREADS" >&6; }
20656
20657 case "$THREADS" in
20658  no | none | single)
20659     THREADS=none
20660     ;;
20661  aix | posix | posix95 | pthreads)
20662     THREADS=posix
20663     case "$host" in
20664      *-*-linux*)
20665
20666 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20667
20668         ;;
20669     esac
20670     ;;
20671  win32)
20672     ;;
20673  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20674     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20675     ;;
20676  *)
20677     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20678     ;;
20679 esac
20680
20681 THREADCXXFLAGS=
20682 THREADLDFLAGS=
20683 THREADLIBS=
20684 THREADINCS=
20685 THREADDEPS=
20686 THREADH=
20687 THREADSPEC=
20688 THREADSTARTFILESPEC=
20689 case "$THREADS" in
20690  posix)
20691     case "$host" in
20692      *-*-cygwin*)
20693         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20694         ;;
20695      *-*-freebsd[1234]*)
20696         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20697         # merely adds pthread_* functions) but it does have a -pthread switch
20698         # which is required at link-time to select -lc_r *instead* of -lc.
20699         THREADLDFLAGS=-pthread
20700         # Don't set THREADSPEC here as might be expected since -pthread is
20701         # not processed when found within a spec file, it must come from
20702         # the command line.  For now, the user must provide the -pthread
20703         # switch to link code compiled with gcj.  In future, consider adding
20704         # support for weak references to pthread_* functions ala gthr.h API.
20705         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20706         ;;
20707      *-*-freebsd*)
20708         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20709         # systems which support threads and -lpthread.
20710         THREADLDFLAGS=-pthread
20711         THREADSPEC=-lpthread
20712         ;;
20713      alpha*-dec-osf* | hppa*-hp-hpux*)
20714         THREADCXXFLAGS=-pthread
20715         # boehm-gc needs some functions from librt, so link that too.
20716         THREADLIBS='-lpthread -lrt'
20717         THREADSPEC='-lpthread -lrt'
20718         ;;
20719      *-*-solaris2.8)
20720         # Always use alternate thread library on Solaris 8.  Need libthread
20721         # for TLS support.
20722         # Need -Wl,-R to get it through libtool ...
20723         THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20724         # ... while ld only accepts -R.
20725         THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20726         ;;
20727      *-*-solaris2.9)
20728         # As on Solaris 8, need libthread for TLS support.
20729         THREADLIBS='-lpthread -lthread'
20730         THREADSPEC='-lpthread -lthread'
20731         ;;
20732      *-*-darwin*)
20733         # Don't set THREADLIBS or THREADSPEC as Darwin already
20734         # provides pthread via libSystem.
20735         ;;
20736      *)
20737         THREADLIBS=-lpthread
20738         THREADSPEC=-lpthread
20739         ;;
20740     esac
20741     THREADH=posix-threads.h
20742     # MIT pthreads doesn't seem to have the mutexattr functions.
20743     # But for now we don't check for it.  We just assume you aren't
20744     # using MIT pthreads.
20745
20746 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20747
20748
20749     # If we're using the Boehm GC, then we happen to know that it
20750     # defines _REENTRANT, so we don't bother.  Eww.
20751     if test "$GC" != boehm; then
20752
20753 $as_echo "#define _REENTRANT 1" >>confdefs.h
20754
20755     fi
20756
20757 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20758
20759     ;;
20760
20761  win32)
20762     THREADH=win32-threads.h
20763     THREADCXXFLAGS=-mthreads
20764     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20765     # But we do not want the executables created to be dependent on
20766     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20767     # exception handling contexts.  The following kludge achieves this effect
20768     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20769     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20770     # A workaround is to explicitly use -mthreads while linking Java programs.
20771     # See PR libgcj/28263.
20772     #
20773     # FIXME: In Java we are able to detect thread death at the end of
20774     # Thread.run() so we should be able to clean up the exception handling
20775     # contexts ourselves.
20776     THREADSTARTFILESPEC='crtmt%O%s'
20777     ;;
20778
20779  none)
20780     THREADH=no-threads.h
20781     ;;
20782 esac
20783 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20784
20785
20786
20787
20788
20789
20790
20791
20792  if test "$THREADS" = posix; then
20793   USING_POSIX_THREADS_TRUE=
20794   USING_POSIX_THREADS_FALSE='#'
20795 else
20796   USING_POSIX_THREADS_TRUE='#'
20797   USING_POSIX_THREADS_FALSE=
20798 fi
20799
20800  if test "$THREADS" = win32; then
20801   USING_WIN32_THREADS_TRUE=
20802   USING_WIN32_THREADS_FALSE='#'
20803 else
20804   USING_WIN32_THREADS_TRUE='#'
20805   USING_WIN32_THREADS_FALSE=
20806 fi
20807
20808  if test "$THREADS" = none; then
20809   USING_NO_THREADS_TRUE=
20810   USING_NO_THREADS_FALSE='#'
20811 else
20812   USING_NO_THREADS_TRUE='#'
20813   USING_NO_THREADS_FALSE=
20814 fi
20815
20816 if test "$enable_shared" != yes; then
20817   use_libgcj_bc=no
20818 fi
20819  if test "$use_libgcj_bc" = yes; then
20820   USE_LIBGCJ_BC_TRUE=
20821   USE_LIBGCJ_BC_FALSE='#'
20822 else
20823   USE_LIBGCJ_BC_TRUE='#'
20824   USE_LIBGCJ_BC_FALSE=
20825 fi
20826
20827
20828 if test -d sysdep; then true; else mkdir sysdep; fi
20829 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20830
20831 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20832
20833 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20834
20835
20836 LIBGCJ_SPEC_LGCJ=-lgcj
20837 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20838 if test x"$libgcj_spec_lgcj_override" != x ; then
20839   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20840 fi
20841 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20842   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20843 fi
20844 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20845 if test "$use_libgcj_bc" = yes; then
20846   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20847   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20848 fi
20849
20850
20851
20852 HASH_SYNC_SPEC=
20853 # Hash synchronization is only useful with posix threads right now.
20854 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20855    HASH_SYNC_SPEC=-fhash-synchronization
20856
20857 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20858
20859 fi
20860
20861
20862  if test "$GCC" = yes; then
20863   USING_GCC_TRUE=
20864   USING_GCC_FALSE='#'
20865 else
20866   USING_GCC_TRUE='#'
20867   USING_GCC_FALSE=
20868 fi
20869
20870
20871 # We're in the tree with gcc, and need to include some of its headers.
20872 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20873
20874 if test "x${with_newlib}" = "xyes"; then
20875    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20876    # may not work correctly, because the compiler may not be able to
20877    # link executables.
20878
20879    # We assume newlib.  This lets us hard-code the functions we know
20880    # we'll have.
20881
20882 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20883
20884
20885 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20886
20887
20888 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20889
20890
20891 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20892
20893
20894 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20895
20896
20897 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20898
20899    # This is only for POSIX threads.
20900
20901 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20902
20903
20904    # Assume we do not have getuid and friends.
20905
20906 $as_echo "#define NO_GETUID 1" >>confdefs.h
20907
20908    PLATFORMNET=NoNet
20909 else
20910    for ac_func in strerror_r select fstat open fsync sleep opendir \
20911                    localtime_r getpwuid_r getcwd \
20912                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20913                    nl_langinfo setlocale \
20914                    inet_pton uname inet_ntoa \
20915                    getrlimit sigaction ftruncate mmap \
20916                    getifaddrs
20917 do :
20918   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20920 eval as_val=\$$as_ac_var
20921    if test "x$as_val" = x""yes; then :
20922   cat >>confdefs.h <<_ACEOF
20923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20924 _ACEOF
20925
20926 fi
20927 done
20928
20929    for ac_func in inet_aton inet_addr
20930 do :
20931   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20933 eval as_val=\$$as_ac_var
20934    if test "x$as_val" = x""yes; then :
20935   cat >>confdefs.h <<_ACEOF
20936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20937 _ACEOF
20938  break
20939 fi
20940 done
20941
20942    for ac_header in unistd.h dlfcn.h sys/resource.h
20943 do :
20944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20946 eval as_val=\$$as_ac_Header
20947    if test "x$as_val" = x""yes; then :
20948   cat >>confdefs.h <<_ACEOF
20949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20950 _ACEOF
20951
20952 fi
20953
20954 done
20955
20956    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20958 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20959 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20960   $as_echo_n "(cached) " >&6
20961 else
20962   ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-ldl  $LIBS"
20964 if test x$gcc_no_link = xyes; then
20965   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20966 fi
20967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968 /* end confdefs.h.  */
20969
20970 /* Override any GCC internal prototype to avoid an error.
20971    Use char because int might match the return type of a GCC
20972    builtin and then its argument prototype would still apply.  */
20973 #ifdef __cplusplus
20974 extern "C"
20975 #endif
20976 char dladdr ();
20977 int
20978 main ()
20979 {
20980 return dladdr ();
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 if ac_fn_c_try_link "$LINENO"; then :
20986   ac_cv_lib_dl_dladdr=yes
20987 else
20988   ac_cv_lib_dl_dladdr=no
20989 fi
20990 rm -f core conftest.err conftest.$ac_objext \
20991     conftest$ac_exeext conftest.$ac_ext
20992 LIBS=$ac_check_lib_save_LIBS
20993 fi
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20995 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20996 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20997
20998
20999 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21000
21001 else
21002
21003        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21004 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21005 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21006   $as_echo_n "(cached) " >&6
21007 else
21008   ac_check_lib_save_LIBS=$LIBS
21009 LIBS="-ldld  $LIBS"
21010 if test x$gcc_no_link = xyes; then
21011   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21012 fi
21013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014 /* end confdefs.h.  */
21015
21016 /* Override any GCC internal prototype to avoid an error.
21017    Use char because int might match the return type of a GCC
21018    builtin and then its argument prototype would still apply.  */
21019 #ifdef __cplusplus
21020 extern "C"
21021 #endif
21022 char dladdr ();
21023 int
21024 main ()
21025 {
21026 return dladdr ();
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 if ac_fn_c_try_link "$LINENO"; then :
21032   ac_cv_lib_dld_dladdr=yes
21033 else
21034   ac_cv_lib_dld_dladdr=no
21035 fi
21036 rm -f core conftest.err conftest.$ac_objext \
21037     conftest$ac_exeext conftest.$ac_ext
21038 LIBS=$ac_check_lib_save_LIBS
21039 fi
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21041 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21042 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21043
21044
21045 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21046
21047 fi
21048
21049 fi
21050
21051
21052    if test x"$cross_compiling" = x"no"; then
21053      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21054 $as_echo_n "checking for /proc/self/exe... " >&6; }
21055 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21056   $as_echo_n "(cached) " >&6
21057 else
21058   test "$cross_compiling" = yes &&
21059   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21060 if test -r "/proc/self/exe"; then
21061   ac_cv_file__proc_self_exe=yes
21062 else
21063   ac_cv_file__proc_self_exe=no
21064 fi
21065 fi
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21067 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21068 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21069
21070 cat >>confdefs.h <<_ACEOF
21071 #define HAVE__PROC_SELF_EXE 1
21072 _ACEOF
21073
21074
21075 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21076
21077 fi
21078
21079      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21080 $as_echo_n "checking for /proc/self/maps... " >&6; }
21081 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21082   $as_echo_n "(cached) " >&6
21083 else
21084   test "$cross_compiling" = yes &&
21085   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21086 if test -r "/proc/self/maps"; then
21087   ac_cv_file__proc_self_maps=yes
21088 else
21089   ac_cv_file__proc_self_maps=no
21090 fi
21091 fi
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21093 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21094 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21095
21096 cat >>confdefs.h <<_ACEOF
21097 #define HAVE__PROC_SELF_MAPS 1
21098 _ACEOF
21099
21100
21101 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21102
21103 fi
21104
21105    else
21106      case $host in
21107      *-linux*)
21108
21109 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21110
21111
21112 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21113
21114        ;;
21115      esac
21116    fi
21117
21118
21119       if test "X$prefix" = "XNONE"; then
21120     acl_final_prefix="$ac_default_prefix"
21121   else
21122     acl_final_prefix="$prefix"
21123   fi
21124   if test "X$exec_prefix" = "XNONE"; then
21125     acl_final_exec_prefix='${prefix}'
21126   else
21127     acl_final_exec_prefix="$exec_prefix"
21128   fi
21129   acl_save_prefix="$prefix"
21130   prefix="$acl_final_prefix"
21131   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21132   prefix="$acl_save_prefix"
21133
21134
21135 # Check whether --with-gnu-ld was given.
21136 if test "${with_gnu_ld+set}" = set; then :
21137   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21138 else
21139   with_gnu_ld=no
21140 fi
21141
21142 # Prepare PATH_SEPARATOR.
21143 # The user is always right.
21144 if test "${PATH_SEPARATOR+set}" != set; then
21145   echo "#! /bin/sh" >conf$$.sh
21146   echo  "exit 0"   >>conf$$.sh
21147   chmod +x conf$$.sh
21148   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21149     PATH_SEPARATOR=';'
21150   else
21151     PATH_SEPARATOR=:
21152   fi
21153   rm -f conf$$.sh
21154 fi
21155 ac_prog=ld
21156 if test "$GCC" = yes; then
21157   # Check if gcc -print-prog-name=ld gives a path.
21158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21159 $as_echo_n "checking for ld used by GCC... " >&6; }
21160   case $host in
21161   *-*-mingw*)
21162     # gcc leaves a trailing carriage return which upsets mingw
21163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21164   *)
21165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21166   esac
21167   case $ac_prog in
21168     # Accept absolute paths.
21169     [\\/]* | [A-Za-z]:[\\/]*)
21170       re_direlt='/[^/][^/]*/\.\./'
21171       # Canonicalize the path of ld
21172       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21174         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21175       done
21176       test -z "$LD" && LD="$ac_prog"
21177       ;;
21178   "")
21179     # If it fails, then pretend we aren't using GCC.
21180     ac_prog=ld
21181     ;;
21182   *)
21183     # If it is relative, then search for the first ld in PATH.
21184     with_gnu_ld=unknown
21185     ;;
21186   esac
21187 elif test "$with_gnu_ld" = yes; then
21188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21189 $as_echo_n "checking for GNU ld... " >&6; }
21190 else
21191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21192 $as_echo_n "checking for non-GNU ld... " >&6; }
21193 fi
21194 if test "${acl_cv_path_LD+set}" = set; then :
21195   $as_echo_n "(cached) " >&6
21196 else
21197   if test -z "$LD"; then
21198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21199   for ac_dir in $PATH; do
21200     test -z "$ac_dir" && ac_dir=.
21201     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21202       acl_cv_path_LD="$ac_dir/$ac_prog"
21203       # Check to see if the program is GNU ld.  I'd rather use --version,
21204       # but apparently some GNU ld's only accept -v.
21205       # Break only if it was the GNU/non-GNU ld that we prefer.
21206       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21207         test "$with_gnu_ld" != no && break
21208       else
21209         test "$with_gnu_ld" != yes && break
21210       fi
21211     fi
21212   done
21213   IFS="$ac_save_ifs"
21214 else
21215   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21216 fi
21217 fi
21218
21219 LD="$acl_cv_path_LD"
21220 if test -n "$LD"; then
21221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21222 $as_echo "$LD" >&6; }
21223 else
21224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21225 $as_echo "no" >&6; }
21226 fi
21227 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21229 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21230 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21231   $as_echo_n "(cached) " >&6
21232 else
21233   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21234 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21235   acl_cv_prog_gnu_ld=yes
21236 else
21237   acl_cv_prog_gnu_ld=no
21238 fi
21239 fi
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21241 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21242 with_gnu_ld=$acl_cv_prog_gnu_ld
21243
21244
21245
21246                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21247 $as_echo_n "checking for shared library run path origin... " >&6; }
21248 if test "${acl_cv_rpath+set}" = set; then :
21249   $as_echo_n "(cached) " >&6
21250 else
21251
21252     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21253     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21254     . ./conftest.sh
21255     rm -f ./conftest.sh
21256     acl_cv_rpath=done
21257
21258 fi
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21260 $as_echo "$acl_cv_rpath" >&6; }
21261   wl="$acl_cv_wl"
21262   libext="$acl_cv_libext"
21263   shlibext="$acl_cv_shlibext"
21264   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21265   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21266   hardcode_direct="$acl_cv_hardcode_direct"
21267   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21268     # Check whether --enable-rpath was given.
21269 if test "${enable_rpath+set}" = set; then :
21270   enableval=$enable_rpath; :
21271 else
21272   enable_rpath=yes
21273 fi
21274
21275
21276
21277
21278
21279
21280
21281
21282     use_additional=yes
21283
21284   acl_save_prefix="$prefix"
21285   prefix="$acl_final_prefix"
21286   acl_save_exec_prefix="$exec_prefix"
21287   exec_prefix="$acl_final_exec_prefix"
21288
21289     eval additional_includedir=\"$includedir\"
21290     eval additional_libdir=\"$libdir\"
21291
21292   exec_prefix="$acl_save_exec_prefix"
21293   prefix="$acl_save_prefix"
21294
21295
21296 # Check whether --with-libiconv-prefix was given.
21297 if test "${with_libiconv_prefix+set}" = set; then :
21298   withval=$with_libiconv_prefix;
21299     if test "X$withval" = "Xno"; then
21300       use_additional=no
21301     else
21302       if test "X$withval" = "X"; then
21303
21304   acl_save_prefix="$prefix"
21305   prefix="$acl_final_prefix"
21306   acl_save_exec_prefix="$exec_prefix"
21307   exec_prefix="$acl_final_exec_prefix"
21308
21309           eval additional_includedir=\"$includedir\"
21310           eval additional_libdir=\"$libdir\"
21311
21312   exec_prefix="$acl_save_exec_prefix"
21313   prefix="$acl_save_prefix"
21314
21315       else
21316         additional_includedir="$withval/include"
21317         additional_libdir="$withval/lib"
21318       fi
21319     fi
21320
21321 fi
21322
21323       LIBICONV=
21324   LTLIBICONV=
21325   INCICONV=
21326   rpathdirs=
21327   ltrpathdirs=
21328   names_already_handled=
21329   names_next_round='iconv '
21330   while test -n "$names_next_round"; do
21331     names_this_round="$names_next_round"
21332     names_next_round=
21333     for name in $names_this_round; do
21334       already_handled=
21335       for n in $names_already_handled; do
21336         if test "$n" = "$name"; then
21337           already_handled=yes
21338           break
21339         fi
21340       done
21341       if test -z "$already_handled"; then
21342         names_already_handled="$names_already_handled $name"
21343                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21344         eval value=\"\$HAVE_LIB$uppername\"
21345         if test -n "$value"; then
21346           if test "$value" = yes; then
21347             eval value=\"\$LIB$uppername\"
21348             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21349             eval value=\"\$LTLIB$uppername\"
21350             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21351           else
21352                                     :
21353           fi
21354         else
21355                               found_dir=
21356           found_la=
21357           found_so=
21358           found_a=
21359           if test $use_additional = yes; then
21360             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21361               found_dir="$additional_libdir"
21362               found_so="$additional_libdir/lib$name.$shlibext"
21363               if test -f "$additional_libdir/lib$name.la"; then
21364                 found_la="$additional_libdir/lib$name.la"
21365               fi
21366             else
21367               if test -f "$additional_libdir/lib$name.$libext"; then
21368                 found_dir="$additional_libdir"
21369                 found_a="$additional_libdir/lib$name.$libext"
21370                 if test -f "$additional_libdir/lib$name.la"; then
21371                   found_la="$additional_libdir/lib$name.la"
21372                 fi
21373               fi
21374             fi
21375           fi
21376           if test "X$found_dir" = "X"; then
21377             for x in $LDFLAGS $LTLIBICONV; do
21378
21379   acl_save_prefix="$prefix"
21380   prefix="$acl_final_prefix"
21381   acl_save_exec_prefix="$exec_prefix"
21382   exec_prefix="$acl_final_exec_prefix"
21383   eval x=\"$x\"
21384   exec_prefix="$acl_save_exec_prefix"
21385   prefix="$acl_save_prefix"
21386
21387               case "$x" in
21388                 -L*)
21389                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21390                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21391                     found_dir="$dir"
21392                     found_so="$dir/lib$name.$shlibext"
21393                     if test -f "$dir/lib$name.la"; then
21394                       found_la="$dir/lib$name.la"
21395                     fi
21396                   else
21397                     if test -f "$dir/lib$name.$libext"; then
21398                       found_dir="$dir"
21399                       found_a="$dir/lib$name.$libext"
21400                       if test -f "$dir/lib$name.la"; then
21401                         found_la="$dir/lib$name.la"
21402                       fi
21403                     fi
21404                   fi
21405                   ;;
21406               esac
21407               if test "X$found_dir" != "X"; then
21408                 break
21409               fi
21410             done
21411           fi
21412           if test "X$found_dir" != "X"; then
21413                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21414             if test "X$found_so" != "X"; then
21415                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21416                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21417               else
21418                                                                                 haveit=
21419                 for x in $ltrpathdirs; do
21420                   if test "X$x" = "X$found_dir"; then
21421                     haveit=yes
21422                     break
21423                   fi
21424                 done
21425                 if test -z "$haveit"; then
21426                   ltrpathdirs="$ltrpathdirs $found_dir"
21427                 fi
21428                                 if test "$hardcode_direct" = yes; then
21429                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21430                 else
21431                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21432                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21433                                                             haveit=
21434                     for x in $rpathdirs; do
21435                       if test "X$x" = "X$found_dir"; then
21436                         haveit=yes
21437                         break
21438                       fi
21439                     done
21440                     if test -z "$haveit"; then
21441                       rpathdirs="$rpathdirs $found_dir"
21442                     fi
21443                   else
21444                                                                                 haveit=
21445                     for x in $LDFLAGS $LIBICONV; do
21446
21447   acl_save_prefix="$prefix"
21448   prefix="$acl_final_prefix"
21449   acl_save_exec_prefix="$exec_prefix"
21450   exec_prefix="$acl_final_exec_prefix"
21451   eval x=\"$x\"
21452   exec_prefix="$acl_save_exec_prefix"
21453   prefix="$acl_save_prefix"
21454
21455                       if test "X$x" = "X-L$found_dir"; then
21456                         haveit=yes
21457                         break
21458                       fi
21459                     done
21460                     if test -z "$haveit"; then
21461                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21462                     fi
21463                     if test "$hardcode_minus_L" != no; then
21464                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21465                     else
21466                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21467                     fi
21468                   fi
21469                 fi
21470               fi
21471             else
21472               if test "X$found_a" != "X"; then
21473                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21474               else
21475                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21476               fi
21477             fi
21478                         additional_includedir=
21479             case "$found_dir" in
21480               */lib | */lib/)
21481                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21482                 additional_includedir="$basedir/include"
21483                 ;;
21484             esac
21485             if test "X$additional_includedir" != "X"; then
21486                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21487                 haveit=
21488                 if test "X$additional_includedir" = "X/usr/local/include"; then
21489                   if test -n "$GCC"; then
21490                     case $host_os in
21491                       linux*) haveit=yes;;
21492                     esac
21493                   fi
21494                 fi
21495                 if test -z "$haveit"; then
21496                   for x in $CPPFLAGS $INCICONV; do
21497
21498   acl_save_prefix="$prefix"
21499   prefix="$acl_final_prefix"
21500   acl_save_exec_prefix="$exec_prefix"
21501   exec_prefix="$acl_final_exec_prefix"
21502   eval x=\"$x\"
21503   exec_prefix="$acl_save_exec_prefix"
21504   prefix="$acl_save_prefix"
21505
21506                     if test "X$x" = "X-I$additional_includedir"; then
21507                       haveit=yes
21508                       break
21509                     fi
21510                   done
21511                   if test -z "$haveit"; then
21512                     if test -d "$additional_includedir"; then
21513                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21514                     fi
21515                   fi
21516                 fi
21517               fi
21518             fi
21519                         if test -n "$found_la"; then
21520                                                         save_libdir="$libdir"
21521               case "$found_la" in
21522                 */* | *\\*) . "$found_la" ;;
21523                 *) . "./$found_la" ;;
21524               esac
21525               libdir="$save_libdir"
21526                             for dep in $dependency_libs; do
21527                 case "$dep" in
21528                   -L*)
21529                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21530                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21531                       haveit=
21532                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21533                         if test -n "$GCC"; then
21534                           case $host_os in
21535                             linux*) haveit=yes;;
21536                           esac
21537                         fi
21538                       fi
21539                       if test -z "$haveit"; then
21540                         haveit=
21541                         for x in $LDFLAGS $LIBICONV; do
21542
21543   acl_save_prefix="$prefix"
21544   prefix="$acl_final_prefix"
21545   acl_save_exec_prefix="$exec_prefix"
21546   exec_prefix="$acl_final_exec_prefix"
21547   eval x=\"$x\"
21548   exec_prefix="$acl_save_exec_prefix"
21549   prefix="$acl_save_prefix"
21550
21551                           if test "X$x" = "X-L$additional_libdir"; then
21552                             haveit=yes
21553                             break
21554                           fi
21555                         done
21556                         if test -z "$haveit"; then
21557                           if test -d "$additional_libdir"; then
21558                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21559                           fi
21560                         fi
21561                         haveit=
21562                         for x in $LDFLAGS $LTLIBICONV; do
21563
21564   acl_save_prefix="$prefix"
21565   prefix="$acl_final_prefix"
21566   acl_save_exec_prefix="$exec_prefix"
21567   exec_prefix="$acl_final_exec_prefix"
21568   eval x=\"$x\"
21569   exec_prefix="$acl_save_exec_prefix"
21570   prefix="$acl_save_prefix"
21571
21572                           if test "X$x" = "X-L$additional_libdir"; then
21573                             haveit=yes
21574                             break
21575                           fi
21576                         done
21577                         if test -z "$haveit"; then
21578                           if test -d "$additional_libdir"; then
21579                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21580                           fi
21581                         fi
21582                       fi
21583                     fi
21584                     ;;
21585                   -R*)
21586                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21587                     if test "$enable_rpath" != no; then
21588                                                                   haveit=
21589                       for x in $rpathdirs; do
21590                         if test "X$x" = "X$dir"; then
21591                           haveit=yes
21592                           break
21593                         fi
21594                       done
21595                       if test -z "$haveit"; then
21596                         rpathdirs="$rpathdirs $dir"
21597                       fi
21598                                                                   haveit=
21599                       for x in $ltrpathdirs; do
21600                         if test "X$x" = "X$dir"; then
21601                           haveit=yes
21602                           break
21603                         fi
21604                       done
21605                       if test -z "$haveit"; then
21606                         ltrpathdirs="$ltrpathdirs $dir"
21607                       fi
21608                     fi
21609                     ;;
21610                   -l*)
21611                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21612                     ;;
21613                   *.la)
21614                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21615                     ;;
21616                   *)
21617                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21618                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21619                     ;;
21620                 esac
21621               done
21622             fi
21623           else
21624                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21625             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21626           fi
21627         fi
21628       fi
21629     done
21630   done
21631   if test "X$rpathdirs" != "X"; then
21632     if test -n "$hardcode_libdir_separator"; then
21633                         alldirs=
21634       for found_dir in $rpathdirs; do
21635         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21636       done
21637             acl_save_libdir="$libdir"
21638       libdir="$alldirs"
21639       eval flag=\"$hardcode_libdir_flag_spec\"
21640       libdir="$acl_save_libdir"
21641       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21642     else
21643             for found_dir in $rpathdirs; do
21644         acl_save_libdir="$libdir"
21645         libdir="$found_dir"
21646         eval flag=\"$hardcode_libdir_flag_spec\"
21647         libdir="$acl_save_libdir"
21648         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21649       done
21650     fi
21651   fi
21652   if test "X$ltrpathdirs" != "X"; then
21653             for found_dir in $ltrpathdirs; do
21654       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21655     done
21656   fi
21657
21658
21659
21660
21661
21662
21663
21664           am_save_CPPFLAGS="$CPPFLAGS"
21665
21666   for element in $INCICONV; do
21667     haveit=
21668     for x in $CPPFLAGS; do
21669
21670   acl_save_prefix="$prefix"
21671   prefix="$acl_final_prefix"
21672   acl_save_exec_prefix="$exec_prefix"
21673   exec_prefix="$acl_final_exec_prefix"
21674   eval x=\"$x\"
21675   exec_prefix="$acl_save_exec_prefix"
21676   prefix="$acl_save_prefix"
21677
21678       if test "X$x" = "X$element"; then
21679         haveit=yes
21680         break
21681       fi
21682     done
21683     if test -z "$haveit"; then
21684       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21685     fi
21686   done
21687
21688
21689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21690 $as_echo_n "checking for iconv... " >&6; }
21691 if test "${am_cv_func_iconv+set}" = set; then :
21692   $as_echo_n "(cached) " >&6
21693 else
21694
21695     am_cv_func_iconv="no, consider installing GNU libiconv"
21696     am_cv_lib_iconv=no
21697     if test x$gcc_no_link = xyes; then
21698   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21699 fi
21700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h.  */
21702 #include <stdlib.h>
21703 #include <iconv.h>
21704 int
21705 main ()
21706 {
21707 iconv_t cd = iconv_open("","");
21708        iconv(cd,NULL,NULL,NULL,NULL);
21709        iconv_close(cd);
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 if ac_fn_c_try_link "$LINENO"; then :
21715   am_cv_func_iconv=yes
21716 fi
21717 rm -f core conftest.err conftest.$ac_objext \
21718     conftest$ac_exeext conftest.$ac_ext
21719     if test "$am_cv_func_iconv" != yes; then
21720       am_save_LIBS="$LIBS"
21721       LIBS="$LIBS $LIBICONV"
21722       if test x$gcc_no_link = xyes; then
21723   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21724 fi
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h.  */
21727 #include <stdlib.h>
21728 #include <iconv.h>
21729 int
21730 main ()
21731 {
21732 iconv_t cd = iconv_open("","");
21733          iconv(cd,NULL,NULL,NULL,NULL);
21734          iconv_close(cd);
21735   ;
21736   return 0;
21737 }
21738 _ACEOF
21739 if ac_fn_c_try_link "$LINENO"; then :
21740   am_cv_lib_iconv=yes
21741         am_cv_func_iconv=yes
21742 fi
21743 rm -f core conftest.err conftest.$ac_objext \
21744     conftest$ac_exeext conftest.$ac_ext
21745       LIBS="$am_save_LIBS"
21746     fi
21747
21748 fi
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21750 $as_echo "$am_cv_func_iconv" >&6; }
21751   if test "$am_cv_func_iconv" = yes; then
21752
21753 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21754
21755   fi
21756   if test "$am_cv_lib_iconv" = yes; then
21757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21758 $as_echo_n "checking how to link with libiconv... " >&6; }
21759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21760 $as_echo "$LIBICONV" >&6; }
21761   else
21762             CPPFLAGS="$am_save_CPPFLAGS"
21763     LIBICONV=
21764     LTLIBICONV=
21765   fi
21766
21767
21768
21769   if test "$am_cv_func_iconv" = yes; then
21770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21771 $as_echo_n "checking for iconv declaration... " >&6; }
21772     if test "${am_cv_proto_iconv+set}" = set; then :
21773   $as_echo_n "(cached) " >&6
21774 else
21775
21776       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h.  */
21778
21779 #include <stdlib.h>
21780 #include <iconv.h>
21781 extern
21782 #ifdef __cplusplus
21783 "C"
21784 #endif
21785 #if defined(__STDC__) || defined(__cplusplus)
21786 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21787 #else
21788 size_t iconv();
21789 #endif
21790
21791 int
21792 main ()
21793 {
21794
21795   ;
21796   return 0;
21797 }
21798 _ACEOF
21799 if ac_fn_c_try_compile "$LINENO"; then :
21800   am_cv_proto_iconv_arg1=""
21801 else
21802   am_cv_proto_iconv_arg1="const"
21803 fi
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805       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);"
21806 fi
21807
21808     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21810          }$am_cv_proto_iconv" >&5
21811 $as_echo "${ac_t:-
21812          }$am_cv_proto_iconv" >&6; }
21813
21814 cat >>confdefs.h <<_ACEOF
21815 #define ICONV_CONST $am_cv_proto_iconv_arg1
21816 _ACEOF
21817
21818   fi
21819
21820
21821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21822 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21823 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21824   $as_echo_n "(cached) " >&6
21825 else
21826   if test x$gcc_no_link = xyes; then
21827   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21828 fi
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h.  */
21831 #include <locale.h>
21832 int
21833 main ()
21834 {
21835 return LC_MESSAGES
21836   ;
21837   return 0;
21838 }
21839 _ACEOF
21840 if ac_fn_c_try_link "$LINENO"; then :
21841   am_cv_val_LC_MESSAGES=yes
21842 else
21843   am_cv_val_LC_MESSAGES=no
21844 fi
21845 rm -f core conftest.err conftest.$ac_objext \
21846     conftest$ac_exeext conftest.$ac_ext
21847 fi
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21849 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21850   if test $am_cv_val_LC_MESSAGES = yes; then
21851
21852 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21853
21854   fi
21855
21856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21857 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21858 if test "${ac_cv_struct_tm+set}" = set; then :
21859   $as_echo_n "(cached) " >&6
21860 else
21861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h.  */
21863 #include <sys/types.h>
21864 #include <time.h>
21865
21866 int
21867 main ()
21868 {
21869 struct tm tm;
21870                                      int *p = &tm.tm_sec;
21871                                      return !p;
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 if ac_fn_c_try_compile "$LINENO"; then :
21877   ac_cv_struct_tm=time.h
21878 else
21879   ac_cv_struct_tm=sys/time.h
21880 fi
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 fi
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21884 $as_echo "$ac_cv_struct_tm" >&6; }
21885 if test $ac_cv_struct_tm = sys/time.h; then
21886
21887 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21888
21889 fi
21890
21891 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21892 #include <$ac_cv_struct_tm>
21893
21894 "
21895 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21896
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_STRUCT_TM_TM_ZONE 1
21899 _ACEOF
21900
21901
21902 fi
21903
21904 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21905
21906 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21907
21908 else
21909   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21910 "
21911 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21912   ac_have_decl=1
21913 else
21914   ac_have_decl=0
21915 fi
21916
21917 cat >>confdefs.h <<_ACEOF
21918 #define HAVE_DECL_TZNAME $ac_have_decl
21919 _ACEOF
21920
21921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21922 $as_echo_n "checking for tzname... " >&6; }
21923 if test "${ac_cv_var_tzname+set}" = set; then :
21924   $as_echo_n "(cached) " >&6
21925 else
21926   if test x$gcc_no_link = xyes; then
21927   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21928 fi
21929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21930 /* end confdefs.h.  */
21931 #include <time.h>
21932 #if !HAVE_DECL_TZNAME
21933 extern char *tzname[];
21934 #endif
21935
21936 int
21937 main ()
21938 {
21939 return tzname[0][0];
21940   ;
21941   return 0;
21942 }
21943 _ACEOF
21944 if ac_fn_c_try_link "$LINENO"; then :
21945   ac_cv_var_tzname=yes
21946 else
21947   ac_cv_var_tzname=no
21948 fi
21949 rm -f core conftest.err conftest.$ac_objext \
21950     conftest$ac_exeext conftest.$ac_ext
21951 fi
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21953 $as_echo "$ac_cv_var_tzname" >&6; }
21954   if test $ac_cv_var_tzname = yes; then
21955
21956 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21957
21958   fi
21959 fi
21960
21961
21962    for ac_func in gethostbyname_r
21963 do :
21964   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21965 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21966   cat >>confdefs.h <<_ACEOF
21967 #define HAVE_GETHOSTBYNAME_R 1
21968 _ACEOF
21969
21970
21971 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21972
21973      # There are two different kinds of gethostbyname_r.
21974      # We look for the one that returns `int'.
21975      # Hopefully this check is robust enough.
21976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h.  */
21978 #include <netdb.h>
21979
21980 _ACEOF
21981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21982   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21983
21984
21985 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21986
21987 fi
21988 rm -f conftest*
21989
21990
21991      case " $GCINCS " in
21992      *" -D_REENTRANT "*) ;;
21993      *)
21994                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21995 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21996 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21997   $as_echo_n "(cached) " >&6
21998 else
21999    ac_ext=cpp
22000 ac_cpp='$CXXCPP $CPPFLAGS'
22001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22004
22005           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h.  */
22007 #include <netdb.h>
22008 int
22009 main ()
22010 {
22011 gethostbyname_r("", 0, 0);
22012   ;
22013   return 0;
22014 }
22015 _ACEOF
22016 if ac_fn_cxx_try_compile "$LINENO"; then :
22017   libjava_cv_gethostbyname_r_needs_reentrant=no
22018 else
22019                 CPPFLAGS_SAVE="$CPPFLAGS"
22020                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22021                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h.  */
22023 #include <netdb.h>
22024 int
22025 main ()
22026 {
22027 gethostbyname_r("", 0, 0);
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 if ac_fn_cxx_try_compile "$LINENO"; then :
22033   libjava_cv_gethostbyname_r_needs_reentrant=yes
22034 else
22035   libjava_cv_gethostbyname_r_needs_reentrant=fail
22036 fi
22037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038                 CPPFLAGS="$CPPFLAGS_SAVE"
22039
22040 fi
22041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042           ac_ext=c
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22047
22048
22049 fi
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22051 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22052         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22053
22054 $as_echo "#define _REENTRANT 1" >>confdefs.h
22055
22056         fi
22057      ;;
22058      esac
22059
22060      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22061 $as_echo_n "checking for struct hostent_data... " >&6; }
22062 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22063   $as_echo_n "(cached) " >&6
22064 else
22065         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h.  */
22067
22068 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22069 # define _REENTRANT 1
22070 #endif
22071 #include <netdb.h>
22072 int
22073 main ()
22074 {
22075 struct hostent_data data;
22076   ;
22077   return 0;
22078 }
22079 _ACEOF
22080 if ac_fn_c_try_compile "$LINENO"; then :
22081   libjava_cv_struct_hostent_data=yes
22082 else
22083   libjava_cv_struct_hostent_data=no
22084 fi
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 fi
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22088 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22089      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22090
22091 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22092
22093      fi
22094
22095 fi
22096 done
22097
22098
22099    # FIXME: libjava source code expects to find a prototype for
22100    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22101    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22102    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22103    # linkage check is enough, yet C++ code requires proper prototypes.)
22104    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h.  */
22106 #include <netdb.h>
22107
22108 _ACEOF
22109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22110   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22111
22112    for ac_func in gethostbyaddr_r
22113 do :
22114   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22115 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22116   cat >>confdefs.h <<_ACEOF
22117 #define HAVE_GETHOSTBYADDR_R 1
22118 _ACEOF
22119
22120
22121 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22122
22123      # There are two different kinds of gethostbyaddr_r.
22124      # We look for the one that returns `int'.
22125      # Hopefully this check is robust enough.
22126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22127 /* end confdefs.h.  */
22128 #include <netdb.h>
22129
22130 _ACEOF
22131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22132   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22133
22134
22135 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22136
22137 fi
22138 rm -f conftest*
22139
22140 fi
22141 done
22142
22143 fi
22144 rm -f conftest*
22145
22146
22147    for ac_func in gethostname
22148 do :
22149   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22150 if test "x$ac_cv_func_gethostname" = x""yes; then :
22151   cat >>confdefs.h <<_ACEOF
22152 #define HAVE_GETHOSTNAME 1
22153 _ACEOF
22154
22155
22156 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22157
22158      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h.  */
22160 #include <unistd.h>
22161
22162 _ACEOF
22163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22164   $EGREP "gethostname" >/dev/null 2>&1; then :
22165
22166
22167 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22168
22169 fi
22170 rm -f conftest*
22171
22172 fi
22173 done
22174
22175
22176    for ac_func in usleep
22177 do :
22178   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22179 if test "x$ac_cv_func_usleep" = x""yes; then :
22180   cat >>confdefs.h <<_ACEOF
22181 #define HAVE_USLEEP 1
22182 _ACEOF
22183
22184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h.  */
22186 #include <unistd.h>
22187
22188 _ACEOF
22189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22190   $EGREP "usleep" >/dev/null 2>&1; then :
22191
22192
22193 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22194
22195 fi
22196 rm -f conftest*
22197
22198 fi
22199 done
22200
22201
22202    # Look for these functions in the thread library, but only bother
22203    # if using POSIX threads.
22204    if test "$THREADS" = posix; then
22205       save_LIBS="$LIBS"
22206       LIBS="$LIBS $THREADLIBS"
22207
22208       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
22209       # Solaris 7 the name librt is preferred.
22210       for ac_func in sched_yield
22211 do :
22212   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22213 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22214   cat >>confdefs.h <<_ACEOF
22215 #define HAVE_SCHED_YIELD 1
22216 _ACEOF
22217
22218 else
22219
22220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22221 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22222 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22223   $as_echo_n "(cached) " >&6
22224 else
22225   ac_check_lib_save_LIBS=$LIBS
22226 LIBS="-lrt  $LIBS"
22227 if test x$gcc_no_link = xyes; then
22228   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22229 fi
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h.  */
22232
22233 /* Override any GCC internal prototype to avoid an error.
22234    Use char because int might match the return type of a GCC
22235    builtin and then its argument prototype would still apply.  */
22236 #ifdef __cplusplus
22237 extern "C"
22238 #endif
22239 char sched_yield ();
22240 int
22241 main ()
22242 {
22243 return sched_yield ();
22244   ;
22245   return 0;
22246 }
22247 _ACEOF
22248 if ac_fn_c_try_link "$LINENO"; then :
22249   ac_cv_lib_rt_sched_yield=yes
22250 else
22251   ac_cv_lib_rt_sched_yield=no
22252 fi
22253 rm -f core conftest.err conftest.$ac_objext \
22254     conftest$ac_exeext conftest.$ac_ext
22255 LIBS=$ac_check_lib_save_LIBS
22256 fi
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22258 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22259 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22260
22261           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22262
22263           THREADLIBS="$THREADLIBS -lrt"
22264           THREADSPEC="$THREADSPEC -lrt"
22265 else
22266
22267           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22268 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22269 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22270   $as_echo_n "(cached) " >&6
22271 else
22272   ac_check_lib_save_LIBS=$LIBS
22273 LIBS="-lposix4  $LIBS"
22274 if test x$gcc_no_link = xyes; then
22275   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22276 fi
22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h.  */
22279
22280 /* Override any GCC internal prototype to avoid an error.
22281    Use char because int might match the return type of a GCC
22282    builtin and then its argument prototype would still apply.  */
22283 #ifdef __cplusplus
22284 extern "C"
22285 #endif
22286 char sched_yield ();
22287 int
22288 main ()
22289 {
22290 return sched_yield ();
22291   ;
22292   return 0;
22293 }
22294 _ACEOF
22295 if ac_fn_c_try_link "$LINENO"; then :
22296   ac_cv_lib_posix4_sched_yield=yes
22297 else
22298   ac_cv_lib_posix4_sched_yield=no
22299 fi
22300 rm -f core conftest.err conftest.$ac_objext \
22301     conftest$ac_exeext conftest.$ac_ext
22302 LIBS=$ac_check_lib_save_LIBS
22303 fi
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22305 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22306 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22307
22308             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22309
22310             THREADLIBS="$THREADLIBS -lposix4"
22311             THREADSPEC="$THREADSPEC -lposix4"
22312 fi
22313
22314 fi
22315
22316 fi
22317 done
22318
22319
22320       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22321 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22322 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22323   $as_echo_n "(cached) " >&6
22324 else
22325   ac_check_lib_save_LIBS=$LIBS
22326 LIBS="-lrt  $LIBS"
22327 if test x$gcc_no_link = xyes; then
22328   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22329 fi
22330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h.  */
22332
22333 /* Override any GCC internal prototype to avoid an error.
22334    Use char because int might match the return type of a GCC
22335    builtin and then its argument prototype would still apply.  */
22336 #ifdef __cplusplus
22337 extern "C"
22338 #endif
22339 char clock_gettime ();
22340 int
22341 main ()
22342 {
22343 return clock_gettime ();
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 if ac_fn_c_try_link "$LINENO"; then :
22349   ac_cv_lib_rt_clock_gettime=yes
22350 else
22351   ac_cv_lib_rt_clock_gettime=no
22352 fi
22353 rm -f core conftest.err conftest.$ac_objext \
22354     conftest$ac_exeext conftest.$ac_ext
22355 LIBS=$ac_check_lib_save_LIBS
22356 fi
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22358 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22359 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22360
22361
22362 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22363
22364          case "$THREADSPEC" in
22365            *-lrt*) ;;
22366            *)
22367              THREADSPEC="$THREADSPEC -lrt"
22368              THREADLIBS="$THREADLIBS -lrt"
22369              ;;
22370          esac
22371 fi
22372
22373
22374       LIBS="$save_LIBS"
22375
22376       # We can save a little space at runtime if the mutex has m_count
22377       # or __m_count.  This is a nice hack for Linux.
22378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h.  */
22380 #include <pthread.h>
22381 int
22382 main ()
22383 {
22384
22385           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22386
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 if ac_fn_c_try_compile "$LINENO"; then :
22392
22393 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22394
22395 else
22396
22397         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h.  */
22399 #include <pthread.h>
22400 int
22401 main ()
22402 {
22403
22404             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22405
22406   ;
22407   return 0;
22408 }
22409 _ACEOF
22410 if ac_fn_c_try_compile "$LINENO"; then :
22411
22412 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22413
22414 fi
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 fi
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418    fi
22419
22420    # We require a way to get the time.
22421    time_found=no
22422    for ac_func in gettimeofday time ftime
22423 do :
22424   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22426 eval as_val=\$$as_ac_var
22427    if test "x$as_val" = x""yes; then :
22428   cat >>confdefs.h <<_ACEOF
22429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22430 _ACEOF
22431  time_found=yes
22432 fi
22433 done
22434
22435    if test "$time_found" = no; then
22436       as_fn_error "no function found to get the time" "$LINENO" 5
22437    fi
22438
22439    for ac_func in memmove
22440 do :
22441   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22442 if test "x$ac_cv_func_memmove" = x""yes; then :
22443   cat >>confdefs.h <<_ACEOF
22444 #define HAVE_MEMMOVE 1
22445 _ACEOF
22446
22447 fi
22448 done
22449
22450
22451    # We require memcpy.
22452    memcpy_found=no
22453    for ac_func in memcpy
22454 do :
22455   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22456 if test "x$ac_cv_func_memcpy" = x""yes; then :
22457   cat >>confdefs.h <<_ACEOF
22458 #define HAVE_MEMCPY 1
22459 _ACEOF
22460  memcpy_found=yes
22461 fi
22462 done
22463
22464    if test "$memcpy_found" = no; then
22465       as_fn_error "memcpy is required" "$LINENO" 5
22466    fi
22467    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22469 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22471   $as_echo_n "(cached) " >&6
22472 else
22473   ac_check_lib_save_LIBS=$LIBS
22474 LIBS="-ldl  $LIBS"
22475 if test x$gcc_no_link = xyes; then
22476   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22477 fi
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h.  */
22480
22481 /* Override any GCC internal prototype to avoid an error.
22482    Use char because int might match the return type of a GCC
22483    builtin and then its argument prototype would still apply.  */
22484 #ifdef __cplusplus
22485 extern "C"
22486 #endif
22487 char dlopen ();
22488 int
22489 main ()
22490 {
22491 return dlopen ();
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 if ac_fn_c_try_link "$LINENO"; then :
22497   ac_cv_lib_dl_dlopen=yes
22498 else
22499   ac_cv_lib_dl_dlopen=no
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext \
22502     conftest$ac_exeext conftest.$ac_ext
22503 LIBS=$ac_check_lib_save_LIBS
22504 fi
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22507 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22508
22509
22510 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22511
22512 else
22513
22514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22515 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22516 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519   ac_check_lib_save_LIBS=$LIBS
22520 LIBS="-ldld  $LIBS"
22521 if test x$gcc_no_link = xyes; then
22522   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22523 fi
22524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h.  */
22526
22527 /* Override any GCC internal prototype to avoid an error.
22528    Use char because int might match the return type of a GCC
22529    builtin and then its argument prototype would still apply.  */
22530 #ifdef __cplusplus
22531 extern "C"
22532 #endif
22533 char dlopen ();
22534 int
22535 main ()
22536 {
22537 return dlopen ();
22538   ;
22539   return 0;
22540 }
22541 _ACEOF
22542 if ac_fn_c_try_link "$LINENO"; then :
22543   ac_cv_lib_dld_dlopen=yes
22544 else
22545   ac_cv_lib_dld_dlopen=no
22546 fi
22547 rm -f core conftest.err conftest.$ac_objext \
22548     conftest$ac_exeext conftest.$ac_ext
22549 LIBS=$ac_check_lib_save_LIBS
22550 fi
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22552 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22553 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22554
22555
22556 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22557
22558 fi
22559
22560 fi
22561
22562
22563    # Some library-finding code we stole from Tcl.
22564    #--------------------------------------------------------------------
22565    #    Check for the existence of the -lsocket and -lnsl libraries.
22566    #    The order here is important, so that they end up in the right
22567    #    order in the command line generated by make.  Here are some
22568    #    special considerations:
22569    #    1. Use "connect" and "accept" to check for -lsocket, and
22570    #       "gethostbyname" to check for -lnsl.
22571    #    2. Use each function name only once:  can't redo a check because
22572    #       autoconf caches the results of the last check and won't redo it.
22573    #    3. Use -lnsl and -lsocket only if they supply procedures that
22574    #       aren't already present in the normal libraries.  This is because
22575    #       IRIX 5.2 has libraries, but they aren't needed and they're
22576    #       bogus:  they goof up name resolution if used.
22577    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22578    #       To get around this problem, check for both libraries together
22579    #       if -lsocket doesn't work by itself.
22580    #--------------------------------------------------------------------
22581
22582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22583 $as_echo_n "checking for socket libraries... " >&6; }
22584 if test "${gcj_cv_lib_sockets+set}" = set; then :
22585   $as_echo_n "(cached) " >&6
22586 else
22587   gcj_cv_lib_sockets=
22588      gcj_checkBoth=0
22589      unset ac_cv_func_connect
22590      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22591 if test "x$ac_cv_func_connect" = x""yes; then :
22592   gcj_checkSocket=0
22593 else
22594   gcj_checkSocket=1
22595 fi
22596
22597      if test "$gcj_checkSocket" = 1; then
22598          unset ac_cv_func_connect
22599          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22600 $as_echo_n "checking for main in -lsocket... " >&6; }
22601 if test "${ac_cv_lib_socket_main+set}" = set; then :
22602   $as_echo_n "(cached) " >&6
22603 else
22604   ac_check_lib_save_LIBS=$LIBS
22605 LIBS="-lsocket  $LIBS"
22606 if test x$gcc_no_link = xyes; then
22607   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22608 fi
22609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22610 /* end confdefs.h.  */
22611
22612
22613 int
22614 main ()
22615 {
22616 return main ();
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 if ac_fn_c_try_link "$LINENO"; then :
22622   ac_cv_lib_socket_main=yes
22623 else
22624   ac_cv_lib_socket_main=no
22625 fi
22626 rm -f core conftest.err conftest.$ac_objext \
22627     conftest$ac_exeext conftest.$ac_ext
22628 LIBS=$ac_check_lib_save_LIBS
22629 fi
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22631 $as_echo "$ac_cv_lib_socket_main" >&6; }
22632 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22633   gcj_cv_lib_sockets="-lsocket"
22634 else
22635   gcj_checkBoth=1
22636 fi
22637
22638      fi
22639      if test "$gcj_checkBoth" = 1; then
22640          gcj_oldLibs=$LIBS
22641          LIBS="$LIBS -lsocket -lnsl"
22642          unset ac_cv_func_accept
22643          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22644 if test "x$ac_cv_func_accept" = x""yes; then :
22645   gcj_checkNsl=0
22646                         gcj_cv_lib_sockets="-lsocket -lnsl"
22647 fi
22648
22649          unset ac_cv_func_accept
22650          LIBS=$gcj_oldLibs
22651      fi
22652      unset ac_cv_func_gethostbyname
22653      gcj_oldLibs=$LIBS
22654      LIBS="$LIBS $gcj_cv_lib_sockets"
22655      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22656 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22657
22658 else
22659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22660 $as_echo_n "checking for main in -lnsl... " >&6; }
22661 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22662   $as_echo_n "(cached) " >&6
22663 else
22664   ac_check_lib_save_LIBS=$LIBS
22665 LIBS="-lnsl  $LIBS"
22666 if test x$gcc_no_link = xyes; then
22667   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22668 fi
22669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670 /* end confdefs.h.  */
22671
22672
22673 int
22674 main ()
22675 {
22676 return main ();
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 if ac_fn_c_try_link "$LINENO"; then :
22682   ac_cv_lib_nsl_main=yes
22683 else
22684   ac_cv_lib_nsl_main=no
22685 fi
22686 rm -f core conftest.err conftest.$ac_objext \
22687     conftest$ac_exeext conftest.$ac_ext
22688 LIBS=$ac_check_lib_save_LIBS
22689 fi
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22691 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22692 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22693   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22694 fi
22695
22696 fi
22697
22698      unset ac_cv_func_gethostbyname
22699      LIBS=$gcj_oldLIBS
22700
22701 fi
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22703 $as_echo "$gcj_cv_lib_sockets" >&6; }
22704    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22705
22706    if test "$with_system_zlib" = yes; then
22707       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22708 $as_echo_n "checking for deflate in -lz... " >&6; }
22709 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22710   $as_echo_n "(cached) " >&6
22711 else
22712   ac_check_lib_save_LIBS=$LIBS
22713 LIBS="-lz  $LIBS"
22714 if test x$gcc_no_link = xyes; then
22715   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22716 fi
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h.  */
22719
22720 /* Override any GCC internal prototype to avoid an error.
22721    Use char because int might match the return type of a GCC
22722    builtin and then its argument prototype would still apply.  */
22723 #ifdef __cplusplus
22724 extern "C"
22725 #endif
22726 char deflate ();
22727 int
22728 main ()
22729 {
22730 return deflate ();
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 if ac_fn_c_try_link "$LINENO"; then :
22736   ac_cv_lib_z_deflate=yes
22737 else
22738   ac_cv_lib_z_deflate=no
22739 fi
22740 rm -f core conftest.err conftest.$ac_objext \
22741     conftest$ac_exeext conftest.$ac_ext
22742 LIBS=$ac_check_lib_save_LIBS
22743 fi
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22745 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22746 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22747   ZLIBSPEC=-lz
22748 else
22749   ZLIBSPEC=
22750 fi
22751
22752    fi
22753
22754    # Test for Gtk stuff, if asked for.
22755    if test "$use_gtk_awt" = yes; then
22756
22757   succeeded=no
22758
22759   if test -z "$PKG_CONFIG"; then
22760     # Extract the first word of "pkg-config", so it can be a program name with args.
22761 set dummy pkg-config; ac_word=$2
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22763 $as_echo_n "checking for $ac_word... " >&6; }
22764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22765   $as_echo_n "(cached) " >&6
22766 else
22767   case $PKG_CONFIG in
22768   [\\/]* | ?:[\\/]*)
22769   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22770   ;;
22771   *)
22772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22773 for as_dir in $PATH
22774 do
22775   IFS=$as_save_IFS
22776   test -z "$as_dir" && as_dir=.
22777     for ac_exec_ext in '' $ac_executable_extensions; do
22778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22779     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22781     break 2
22782   fi
22783 done
22784   done
22785 IFS=$as_save_IFS
22786
22787   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22788   ;;
22789 esac
22790 fi
22791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22792 if test -n "$PKG_CONFIG"; then
22793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22794 $as_echo "$PKG_CONFIG" >&6; }
22795 else
22796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22797 $as_echo "no" >&6; }
22798 fi
22799
22800
22801   fi
22802
22803   if test "$PKG_CONFIG" = "no" ; then
22804      echo "*** The pkg-config script could not be found. Make sure it is"
22805      echo "*** in your path, or set the PKG_CONFIG environment variable"
22806      echo "*** to the full path to pkg-config."
22807      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22808   else
22809      PKG_CONFIG_MIN_VERSION=0.9.0
22810      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22812 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22813
22814         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22816 $as_echo "yes" >&6; }
22817             succeeded=yes
22818
22819             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22820 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22821             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22822             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22823 $as_echo "$GTK_CFLAGS" >&6; }
22824
22825             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22826 $as_echo_n "checking GTK_LIBS... " >&6; }
22827             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22828             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22829 $as_echo "$GTK_LIBS" >&6; }
22830         else
22831             GTK_CFLAGS=""
22832             GTK_LIBS=""
22833             ## If we have a custom action on failure, don't print errors, but
22834             ## do set a variable so people can do so.
22835             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22836             echo $GTK_PKG_ERRORS
22837         fi
22838
22839
22840
22841      else
22842         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22843         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22844      fi
22845   fi
22846
22847   if test $succeeded = yes; then
22848      :
22849   else
22850      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
22851   fi
22852
22853
22854
22855
22856
22857   succeeded=no
22858
22859   if test -z "$PKG_CONFIG"; then
22860     # Extract the first word of "pkg-config", so it can be a program name with args.
22861 set dummy pkg-config; ac_word=$2
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22863 $as_echo_n "checking for $ac_word... " >&6; }
22864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22865   $as_echo_n "(cached) " >&6
22866 else
22867   case $PKG_CONFIG in
22868   [\\/]* | ?:[\\/]*)
22869   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22870   ;;
22871   *)
22872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22873 for as_dir in $PATH
22874 do
22875   IFS=$as_save_IFS
22876   test -z "$as_dir" && as_dir=.
22877     for ac_exec_ext in '' $ac_executable_extensions; do
22878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22879     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22881     break 2
22882   fi
22883 done
22884   done
22885 IFS=$as_save_IFS
22886
22887   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22888   ;;
22889 esac
22890 fi
22891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22892 if test -n "$PKG_CONFIG"; then
22893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22894 $as_echo "$PKG_CONFIG" >&6; }
22895 else
22896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22897 $as_echo "no" >&6; }
22898 fi
22899
22900
22901   fi
22902
22903   if test "$PKG_CONFIG" = "no" ; then
22904      echo "*** The pkg-config script could not be found. Make sure it is"
22905      echo "*** in your path, or set the PKG_CONFIG environment variable"
22906      echo "*** to the full path to pkg-config."
22907      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22908   else
22909      PKG_CONFIG_MIN_VERSION=0.9.0
22910      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22912 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22913
22914         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22916 $as_echo "yes" >&6; }
22917             succeeded=yes
22918
22919             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22920 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22921             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22923 $as_echo "$GLIB_CFLAGS" >&6; }
22924
22925             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22926 $as_echo_n "checking GLIB_LIBS... " >&6; }
22927             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22929 $as_echo "$GLIB_LIBS" >&6; }
22930         else
22931             GLIB_CFLAGS=""
22932             GLIB_LIBS=""
22933             ## If we have a custom action on failure, don't print errors, but
22934             ## do set a variable so people can do so.
22935             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22936             echo $GLIB_PKG_ERRORS
22937         fi
22938
22939
22940
22941      else
22942         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22943         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22944      fi
22945   fi
22946
22947   if test $succeeded = yes; then
22948      :
22949   else
22950      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
22951   fi
22952
22953
22954
22955
22956
22957   succeeded=no
22958
22959   if test -z "$PKG_CONFIG"; then
22960     # Extract the first word of "pkg-config", so it can be a program name with args.
22961 set dummy pkg-config; ac_word=$2
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22963 $as_echo_n "checking for $ac_word... " >&6; }
22964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22965   $as_echo_n "(cached) " >&6
22966 else
22967   case $PKG_CONFIG in
22968   [\\/]* | ?:[\\/]*)
22969   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22970   ;;
22971   *)
22972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22973 for as_dir in $PATH
22974 do
22975   IFS=$as_save_IFS
22976   test -z "$as_dir" && as_dir=.
22977     for ac_exec_ext in '' $ac_executable_extensions; do
22978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22979     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22981     break 2
22982   fi
22983 done
22984   done
22985 IFS=$as_save_IFS
22986
22987   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22988   ;;
22989 esac
22990 fi
22991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22992 if test -n "$PKG_CONFIG"; then
22993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22994 $as_echo "$PKG_CONFIG" >&6; }
22995 else
22996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22997 $as_echo "no" >&6; }
22998 fi
22999
23000
23001   fi
23002
23003   if test "$PKG_CONFIG" = "no" ; then
23004      echo "*** The pkg-config script could not be found. Make sure it is"
23005      echo "*** in your path, or set the PKG_CONFIG environment variable"
23006      echo "*** to the full path to pkg-config."
23007      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23008   else
23009      PKG_CONFIG_MIN_VERSION=0.9.0
23010      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23012 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23013
23014         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23015             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23016 $as_echo "yes" >&6; }
23017             succeeded=yes
23018
23019             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23020 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23021             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23022             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23023 $as_echo "$LIBART_CFLAGS" >&6; }
23024
23025             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23026 $as_echo_n "checking LIBART_LIBS... " >&6; }
23027             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23028             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23029 $as_echo "$LIBART_LIBS" >&6; }
23030         else
23031             LIBART_CFLAGS=""
23032             LIBART_LIBS=""
23033             ## If we have a custom action on failure, don't print errors, but
23034             ## do set a variable so people can do so.
23035             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23036             echo $LIBART_PKG_ERRORS
23037         fi
23038
23039
23040
23041      else
23042         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23043         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23044      fi
23045   fi
23046
23047   if test $succeeded = yes; then
23048      :
23049   else
23050      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
23051   fi
23052
23053
23054
23055
23056       # We require the XTest Extension to support java.awt.Robot.
23057       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23058 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23059 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23060   $as_echo_n "(cached) " >&6
23061 else
23062   ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-lXtst ${X_LIBS} $LIBS"
23064 if test x$gcc_no_link = xyes; then
23065   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23066 fi
23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068 /* end confdefs.h.  */
23069
23070 /* Override any GCC internal prototype to avoid an error.
23071    Use char because int might match the return type of a GCC
23072    builtin and then its argument prototype would still apply.  */
23073 #ifdef __cplusplus
23074 extern "C"
23075 #endif
23076 char XTestQueryExtension ();
23077 int
23078 main ()
23079 {
23080 return XTestQueryExtension ();
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 if ac_fn_c_try_link "$LINENO"; then :
23086   ac_cv_lib_Xtst_XTestQueryExtension=yes
23087 else
23088   ac_cv_lib_Xtst_XTestQueryExtension=no
23089 fi
23090 rm -f core conftest.err conftest.$ac_objext \
23091     conftest$ac_exeext conftest.$ac_ext
23092 LIBS=$ac_check_lib_save_LIBS
23093 fi
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23095 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23096 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23097   true
23098 else
23099   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23100 fi
23101
23102    fi
23103
23104    # On Solaris, and maybe other architectures, the Boehm collector
23105    # requires -ldl.
23106    if test "$GC" = boehm; then
23107       case "${host}" in
23108           mips-sgi-irix6*)
23109             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23110             # libgcj.spec is used, so override here
23111             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23112           ;;
23113           *-*-darwin*)
23114           ;;
23115           *)
23116             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23117 $as_echo_n "checking for main in -ldl... " >&6; }
23118 if test "${ac_cv_lib_dl_main+set}" = set; then :
23119   $as_echo_n "(cached) " >&6
23120 else
23121   ac_check_lib_save_LIBS=$LIBS
23122 LIBS="-ldl  $LIBS"
23123 if test x$gcc_no_link = xyes; then
23124   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23125 fi
23126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23127 /* end confdefs.h.  */
23128
23129
23130 int
23131 main ()
23132 {
23133 return main ();
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 if ac_fn_c_try_link "$LINENO"; then :
23139   ac_cv_lib_dl_main=yes
23140 else
23141   ac_cv_lib_dl_main=no
23142 fi
23143 rm -f core conftest.err conftest.$ac_objext \
23144     conftest$ac_exeext conftest.$ac_ext
23145 LIBS=$ac_check_lib_save_LIBS
23146 fi
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23148 $as_echo "$ac_cv_lib_dl_main" >&6; }
23149 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23150   SYSTEMSPEC="$SYSTEMSPEC -ldl"
23151 fi
23152
23153           ;;
23154       esac
23155    fi
23156 fi
23157
23158 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23159 case $build in
23160     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23161     *)         CLASSPATH_SEPARATOR=':' ;;
23162 esac
23163
23164
23165 # We must search the source tree for java.lang, since we still don't
23166 # have libgcj.jar nor java/lang/*.class
23167 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23168 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23169
23170 # Since some classes depend on this one, we need its source available
23171 # before we can do any GCJ compilation test :-(
23172 if test ! -f gnu/classpath/Configuration.java; then
23173   test -d gnu || mkdir gnu
23174   test -d gnu/classpath || mkdir gnu/classpath
23175   # Note that it is not crucial that all the values here be correct.
23176   sed -e "s,@prefix@,$expanded_prefix," \
23177       -e "s,@VERSION@,$VERSION," \
23178       -e "s,@LIBDEBUG@,false," \
23179       -e "s,@INIT_LOAD_LIBRARY@,false," \
23180       -e "s,@@,$LIBGCJDEBUG," \
23181       -e "s,@default_toolkit@,$TOOLKIT," \
23182       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23183       -e "s,@GTK_CAIRO_ENABLED@,false," \
23184       -e "s,@ECJ_JAR@,," \
23185       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23186         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23187         > gnu/classpath/Configuration.java
23188   # We do not want to redirect the output of the grep below to /dev/null,
23189   # but we add /dev/null to the input list so that grep will print the
23190   # filename of Configuration.java in case it finds any matches.
23191   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23192     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23193   fi
23194 fi
23195
23196
23197 if test -n "$ac_tool_prefix"; then
23198   for ac_prog in gcj
23199   do
23200     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23203 $as_echo_n "checking for $ac_word... " >&6; }
23204 if test "${ac_cv_prog_GCJ+set}" = set; then :
23205   $as_echo_n "(cached) " >&6
23206 else
23207   if test -n "$GCJ"; then
23208   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23209 else
23210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23211 for as_dir in $PATH
23212 do
23213   IFS=$as_save_IFS
23214   test -z "$as_dir" && as_dir=.
23215     for ac_exec_ext in '' $ac_executable_extensions; do
23216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23217     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23219     break 2
23220   fi
23221 done
23222   done
23223 IFS=$as_save_IFS
23224
23225 fi
23226 fi
23227 GCJ=$ac_cv_prog_GCJ
23228 if test -n "$GCJ"; then
23229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23230 $as_echo "$GCJ" >&6; }
23231 else
23232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23233 $as_echo "no" >&6; }
23234 fi
23235
23236
23237     test -n "$GCJ" && break
23238   done
23239 fi
23240 if test -z "$GCJ"; then
23241   ac_ct_GCJ=$GCJ
23242   for ac_prog in gcj
23243 do
23244   # Extract the first word of "$ac_prog", so it can be a program name with args.
23245 set dummy $ac_prog; ac_word=$2
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23247 $as_echo_n "checking for $ac_word... " >&6; }
23248 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23249   $as_echo_n "(cached) " >&6
23250 else
23251   if test -n "$ac_ct_GCJ"; then
23252   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23253 else
23254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23255 for as_dir in $PATH
23256 do
23257   IFS=$as_save_IFS
23258   test -z "$as_dir" && as_dir=.
23259     for ac_exec_ext in '' $ac_executable_extensions; do
23260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23261     ac_cv_prog_ac_ct_GCJ="$ac_prog"
23262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23263     break 2
23264   fi
23265 done
23266   done
23267 IFS=$as_save_IFS
23268
23269 fi
23270 fi
23271 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23272 if test -n "$ac_ct_GCJ"; then
23273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23274 $as_echo "$ac_ct_GCJ" >&6; }
23275 else
23276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23277 $as_echo "no" >&6; }
23278 fi
23279
23280
23281   test -n "$ac_ct_GCJ" && break
23282 done
23283
23284   if test "x$ac_ct_GCJ" = x; then
23285     GCJ="gcj"
23286   else
23287     case $cross_compiling:$ac_tool_warned in
23288 yes:)
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23291 ac_tool_warned=yes ;;
23292 esac
23293     GCJ=$ac_ct_GCJ
23294   fi
23295 fi
23296
23297 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23298 if test "x${GCJFLAGS-unset}" = xunset; then
23299    GCJFLAGS="-g -O2"
23300 fi
23301
23302
23303 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23304
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23306 $as_echo_n "checking dependency style of $depcc... " >&6; }
23307 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23308   $as_echo_n "(cached) " >&6
23309 else
23310   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23311   # We make a subdir and do the tests there.  Otherwise we can end up
23312   # making bogus files that we don't know about and never remove.  For
23313   # instance it was reported that on HP-UX the gcc test will end up
23314   # making a dummy file named `D' -- because `-MD' means `put the output
23315   # in D'.
23316   mkdir conftest.dir
23317   # Copy depcomp to subdir because otherwise we won't find it if we're
23318   # using a relative directory.
23319   cp "$am_depcomp" conftest.dir
23320   cd conftest.dir
23321   # We will build objects and dependencies in a subdirectory because
23322   # it helps to detect inapplicable dependency modes.  For instance
23323   # both Tru64's cc and ICC support -MD to output dependencies as a
23324   # side effect of compilation, but ICC will put the dependencies in
23325   # the current directory while Tru64 will put them in the object
23326   # directory.
23327   mkdir sub
23328
23329   am_cv_GCJ_dependencies_compiler_type=none
23330   if test "$am_compiler_list" = ""; then
23331      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23332   fi
23333   am__universal=false
23334
23335
23336   for depmode in $am_compiler_list; do
23337     # Setup a source with many dependencies, because some compilers
23338     # like to wrap large dependency lists on column 80 (with \), and
23339     # we should not choose a depcomp mode which is confused by this.
23340     #
23341     # We need to recreate these files for each test, as the compiler may
23342     # overwrite some of them when testing with obscure command lines.
23343     # This happens at least with the AIX C compiler.
23344     : > sub/conftest.c
23345     for i in 1 2 3 4 5 6; do
23346       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23347       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23348       # Solaris 8's {/usr,}/bin/sh.
23349       touch sub/conftst$i.h
23350     done
23351     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23352
23353     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23354     # mode.  It turns out that the SunPro C++ compiler does not properly
23355     # handle `-M -o', and we need to detect this.  Also, some Intel
23356     # versions had trouble with output in subdirs
23357     am__obj=sub/conftest.${OBJEXT-o}
23358     am__minus_obj="-o $am__obj"
23359     case $depmode in
23360     gcc)
23361       # This depmode causes a compiler race in universal mode.
23362       test "$am__universal" = false || continue
23363       ;;
23364     nosideeffect)
23365       # after this tag, mechanisms are not by side-effect, so they'll
23366       # only be used when explicitly requested
23367       if test "x$enable_dependency_tracking" = xyes; then
23368         continue
23369       else
23370         break
23371       fi
23372       ;;
23373     msvisualcpp | msvcmsys)
23374       # This compiler won't grok `-c -o', but also, the minuso test has
23375       # not run yet.  These depmodes are late enough in the game, and
23376       # so weak that their functioning should not be impacted.
23377       am__obj=conftest.${OBJEXT-o}
23378       am__minus_obj=
23379       ;;
23380     none) break ;;
23381     esac
23382     if depmode=$depmode \
23383        source=sub/conftest.c object=$am__obj \
23384        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23385        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23386          >/dev/null 2>conftest.err &&
23387        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23388        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23389        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23390        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23391       # icc doesn't choke on unknown options, it will just issue warnings
23392       # or remarks (even with -Werror).  So we grep stderr for any message
23393       # that says an option was ignored or not supported.
23394       # When given -MP, icc 7.0 and 7.1 complain thusly:
23395       #   icc: Command line warning: ignoring option '-M'; no argument required
23396       # The diagnosis changed in icc 8.0:
23397       #   icc: Command line remark: option '-MP' not supported
23398       if (grep 'ignoring option' conftest.err ||
23399           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23400         am_cv_GCJ_dependencies_compiler_type=$depmode
23401         break
23402       fi
23403     fi
23404   done
23405
23406   cd ..
23407   rm -rf conftest.dir
23408 else
23409   am_cv_GCJ_dependencies_compiler_type=none
23410 fi
23411
23412 fi
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23414 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23415 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23416
23417  if
23418   test "x$enable_dependency_tracking" != xno \
23419   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23420   am__fastdepGCJ_TRUE=
23421   am__fastdepGCJ_FALSE='#'
23422 else
23423   am__fastdepGCJ_TRUE='#'
23424   am__fastdepGCJ_FALSE=
23425 fi
23426
23427
23428
23429
23430 # Now remove it.
23431 rm -f gnu/classpath/Configuration.java
23432
23433 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23434
23435 # The cast to long int works around a bug in the HP C Compiler
23436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23438 # This bug is HP SR number 8606223364.
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23440 $as_echo_n "checking size of void *... " >&6; }
23441 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23442   $as_echo_n "(cached) " >&6
23443 else
23444   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23445
23446 else
23447   if test "$ac_cv_type_void_p" = yes; then
23448      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23450 { as_fn_set_status 77
23451 as_fn_error "cannot compute sizeof (void *)
23452 See \`config.log' for more details." "$LINENO" 5; }; }
23453    else
23454      ac_cv_sizeof_void_p=0
23455    fi
23456 fi
23457
23458 fi
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23460 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23461
23462
23463
23464 cat >>confdefs.h <<_ACEOF
23465 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23466 _ACEOF
23467
23468
23469
23470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23471 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23472 if test "${ac_cv_c_bigendian+set}" = set; then :
23473   $as_echo_n "(cached) " >&6
23474 else
23475   ac_cv_c_bigendian=unknown
23476     # See if we're dealing with a universal compiler.
23477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h.  */
23479 #ifndef __APPLE_CC__
23480                not a universal capable compiler
23481              #endif
23482              typedef int dummy;
23483
23484 _ACEOF
23485 if ac_fn_c_try_compile "$LINENO"; then :
23486
23487         # Check for potential -arch flags.  It is not universal unless
23488         # there are at least two -arch flags with different values.
23489         ac_arch=
23490         ac_prev=
23491         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23492          if test -n "$ac_prev"; then
23493            case $ac_word in
23494              i?86 | x86_64 | ppc | ppc64)
23495                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23496                  ac_arch=$ac_word
23497                else
23498                  ac_cv_c_bigendian=universal
23499                  break
23500                fi
23501                ;;
23502            esac
23503            ac_prev=
23504          elif test "x$ac_word" = "x-arch"; then
23505            ac_prev=arch
23506          fi
23507        done
23508 fi
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510     if test $ac_cv_c_bigendian = unknown; then
23511       # See if sys/param.h defines the BYTE_ORDER macro.
23512       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h.  */
23514 #include <sys/types.h>
23515              #include <sys/param.h>
23516
23517 int
23518 main ()
23519 {
23520 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23521                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23522                      && LITTLE_ENDIAN)
23523               bogus endian macros
23524              #endif
23525
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 if ac_fn_c_try_compile "$LINENO"; then :
23531   # It does; now see whether it defined to BIG_ENDIAN or not.
23532          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h.  */
23534 #include <sys/types.h>
23535                 #include <sys/param.h>
23536
23537 int
23538 main ()
23539 {
23540 #if BYTE_ORDER != BIG_ENDIAN
23541                  not big endian
23542                 #endif
23543
23544   ;
23545   return 0;
23546 }
23547 _ACEOF
23548 if ac_fn_c_try_compile "$LINENO"; then :
23549   ac_cv_c_bigendian=yes
23550 else
23551   ac_cv_c_bigendian=no
23552 fi
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554 fi
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556     fi
23557     if test $ac_cv_c_bigendian = unknown; then
23558       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h.  */
23561 #include <limits.h>
23562
23563 int
23564 main ()
23565 {
23566 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23567               bogus endian macros
23568              #endif
23569
23570   ;
23571   return 0;
23572 }
23573 _ACEOF
23574 if ac_fn_c_try_compile "$LINENO"; then :
23575   # It does; now see whether it defined to _BIG_ENDIAN or not.
23576          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h.  */
23578 #include <limits.h>
23579
23580 int
23581 main ()
23582 {
23583 #ifndef _BIG_ENDIAN
23584                  not big endian
23585                 #endif
23586
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 if ac_fn_c_try_compile "$LINENO"; then :
23592   ac_cv_c_bigendian=yes
23593 else
23594   ac_cv_c_bigendian=no
23595 fi
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 fi
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599     fi
23600     if test $ac_cv_c_bigendian = unknown; then
23601       # Compile a test program.
23602       if test "$cross_compiling" = yes; then :
23603   # Try to guess by grepping values from an object file.
23604          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h.  */
23606 short int ascii_mm[] =
23607                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23608                 short int ascii_ii[] =
23609                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23610                 int use_ascii (int i) {
23611                   return ascii_mm[i] + ascii_ii[i];
23612                 }
23613                 short int ebcdic_ii[] =
23614                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23615                 short int ebcdic_mm[] =
23616                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23617                 int use_ebcdic (int i) {
23618                   return ebcdic_mm[i] + ebcdic_ii[i];
23619                 }
23620                 extern int foo;
23621
23622 int
23623 main ()
23624 {
23625 return use_ascii (foo) == use_ebcdic (foo);
23626   ;
23627   return 0;
23628 }
23629 _ACEOF
23630 if ac_fn_c_try_compile "$LINENO"; then :
23631   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23632               ac_cv_c_bigendian=yes
23633             fi
23634             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23635               if test "$ac_cv_c_bigendian" = unknown; then
23636                 ac_cv_c_bigendian=no
23637               else
23638                 # finding both strings is unlikely to happen, but who knows?
23639                 ac_cv_c_bigendian=unknown
23640               fi
23641             fi
23642 fi
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644 else
23645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h.  */
23647 $ac_includes_default
23648 int
23649 main ()
23650 {
23651
23652              /* Are we little or big endian?  From Harbison&Steele.  */
23653              union
23654              {
23655                long int l;
23656                char c[sizeof (long int)];
23657              } u;
23658              u.l = 1;
23659              return u.c[sizeof (long int) - 1] == 1;
23660
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 if ac_fn_c_try_run "$LINENO"; then :
23666   ac_cv_c_bigendian=no
23667 else
23668   ac_cv_c_bigendian=yes
23669 fi
23670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23671   conftest.$ac_objext conftest.beam conftest.$ac_ext
23672 fi
23673
23674     fi
23675 fi
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23677 $as_echo "$ac_cv_c_bigendian" >&6; }
23678  case $ac_cv_c_bigendian in #(
23679    yes)
23680      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23681 ;; #(
23682    no)
23683       ;; #(
23684    universal)
23685
23686 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23687
23688      ;; #(
23689    *)
23690      as_fn_error "unknown endianness
23691  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23692  esac
23693
23694
23695 ZLIBS=
23696 SYS_ZLIBS=
23697 ZINCS=
23698
23699 if test -z "$ZLIBSPEC"; then
23700    # Use zlib from the GCC tree.
23701    ZINCS='-I$(top_srcdir)/../zlib'
23702    ZLIBS=../zlib/libzgcj_convenience.la
23703 else
23704    # System's zlib.
23705    SYS_ZLIBS="$ZLIBSPEC"
23706 fi
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717  if test "$NATIVE" = yes; then
23718   NATIVE_TRUE=
23719   NATIVE_FALSE='#'
23720 else
23721   NATIVE_TRUE='#'
23722   NATIVE_FALSE=
23723 fi
23724
23725  if test "$enable_shared" = yes; then
23726   ENABLE_SHARED_TRUE=
23727   ENABLE_SHARED_FALSE='#'
23728 else
23729   ENABLE_SHARED_TRUE='#'
23730   ENABLE_SHARED_FALSE=
23731 fi
23732
23733  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23734   NEEDS_DATA_START_TRUE=
23735   NEEDS_DATA_START_FALSE='#'
23736 else
23737   NEEDS_DATA_START_TRUE='#'
23738   NEEDS_DATA_START_FALSE=
23739 fi
23740
23741  if test -z "${with_multisubdir}"; then
23742   INSTALL_BINARIES_TRUE=
23743   INSTALL_BINARIES_FALSE='#'
23744 else
23745   INSTALL_BINARIES_TRUE='#'
23746   INSTALL_BINARIES_FALSE=
23747 fi
23748
23749
23750
23751 # Process the option "--enable-version-specific-runtime-libs"
23752 # Calculate toolexeclibdir
23753 case ${version_specific_libs} in
23754   yes)
23755     # Need the gcc compiler version to know where to install libraries
23756     # and header files if --enable-version-specific-runtime-libs option
23757     # is selected.
23758     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23759     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23760     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23761     toolexeclibdir=$toolexecmainlibdir
23762     ;;
23763   no)
23764     if test -n "$with_cross_host" &&
23765        test x"$with_cross_host" != x"no"; then
23766       # Install a library built with a cross compiler in tooldir, not libdir.
23767       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23768       toolexecmainlibdir='$(toolexecdir)/lib'
23769     else
23770       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23771       toolexecmainlibdir='$(libdir)'
23772     fi
23773     multi_os_directory=`$CC -print-multi-os-directory`
23774     case $multi_os_directory in
23775       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23776       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23777     esac
23778     ;;
23779 esac
23780
23781
23782
23783
23784 # Determine gcj and libgcj version number.
23785 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23786 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23787 GCJVERSION=$gcjversion
23788
23789
23790 cat >>confdefs.h <<_ACEOF
23791 #define GCJVERSION "$GCJVERSION"
23792 _ACEOF
23793
23794
23795 # Determine where the standard .db file and GNU Classpath JNI
23796 # libraries are found.
23797 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23798 multi_os_directory=`$CC -print-multi-os-directory`
23799 case $multi_os_directory in
23800   .)
23801    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23802    ;;
23803   *)
23804    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23805    ;;
23806 esac
23807
23808
23809
23810
23811 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23812
23813
23814 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23815
23816
23817
23818 case "${with_gxx_include_dir}" in
23819   yes)
23820     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23821     ;;
23822   no | "")
23823     case "${enable_version_specific_runtime_libs}" in
23824       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23825       *)
23826         libstdcxx_incdir='c++/$(gcc_version)'
23827         gxx_include_dir='include/$(libstdcxx_incdir)'
23828         if test -n "$with_cross_host" &&
23829            test x"$with_cross_host" != x"no"; then
23830           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23831         else
23832           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23833         fi;;
23834     esac ;;
23835   *) gxx_include_dir=${with_gxx_include_dir} ;;
23836 esac
23837
23838
23839
23840
23841 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23842 # On that system, sys/ioctl.h will not include sys/filio.h unless
23843 # BSD_COMP is defined; just including sys/filio.h is simpler.
23844 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23845 # for now.  If you change this, you also must update natFile.cc.
23846 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23847                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23848                   sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23849                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23850                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23851 do :
23852   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23854 eval as_val=\$$as_ac_Header
23855    if test "x$as_val" = x""yes; then :
23856   cat >>confdefs.h <<_ACEOF
23857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23858 _ACEOF
23859
23860 fi
23861
23862 done
23863
23864
23865 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23866 for ac_header in net/if.h
23867 do :
23868   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23869 #ifdef HAVE_SYS_SOCKET_H
23870 #include <sys/socket.h>
23871 #endif
23872
23873 "
23874 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23875   cat >>confdefs.h <<_ACEOF
23876 #define HAVE_NET_IF_H 1
23877 _ACEOF
23878
23879 fi
23880
23881 done
23882
23883
23884 for ac_header in inttypes.h
23885 do :
23886   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23887 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23888   cat >>confdefs.h <<_ACEOF
23889 #define HAVE_INTTYPES_H 1
23890 _ACEOF
23891
23892
23893 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23894
23895
23896 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23897
23898
23899 fi
23900
23901 done
23902
23903
23904 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23905 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23906
23907 else
23908
23909 cat >>confdefs.h <<_ACEOF
23910 #define ssize_t int
23911 _ACEOF
23912
23913 fi
23914
23915 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23916 #ifdef HAVE_MAGIC_H
23917 #include <magic.h>
23918 #endif
23919 "
23920 if test "x$ac_cv_type_magic_t" = x""yes; then :
23921
23922
23923 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23924
23925 fi
23926
23927
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23929 $as_echo_n "checking for in_addr_t... " >&6; }
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h.  */
23932 #include <sys/types.h>
23933 #if STDC_HEADERS
23934 #include <stdlib.h>
23935 #include <stddef.h>
23936 #endif
23937 #if HAVE_NETINET_IN_H
23938 #include <netinet/in.h>
23939 #endif
23940 int
23941 main ()
23942 {
23943 in_addr_t foo;
23944   ;
23945   return 0;
23946 }
23947 _ACEOF
23948 if ac_fn_c_try_compile "$LINENO"; then :
23949
23950 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23951
23952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23953 $as_echo "yes" >&6; }
23954 else
23955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957 fi
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23961 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23963 /* end confdefs.h.  */
23964 #include <netinet/in.h>
23965 int
23966 main ()
23967 {
23968 struct ip_mreq mreq;
23969   ;
23970   return 0;
23971 }
23972 _ACEOF
23973 if ac_fn_c_try_compile "$LINENO"; then :
23974
23975 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23976
23977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23978 $as_echo "yes" >&6; }
23979 else
23980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23981 $as_echo "no" >&6; }
23982 fi
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23986 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h.  */
23989 #include <netinet/in.h>
23990 int
23991 main ()
23992 {
23993 struct ipv6_mreq mreq6;
23994   ;
23995   return 0;
23996 }
23997 _ACEOF
23998 if ac_fn_c_try_compile "$LINENO"; then :
23999
24000 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24001
24002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24003 $as_echo "yes" >&6; }
24004 else
24005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24006 $as_echo "no" >&6; }
24007 fi
24008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24011 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013 /* end confdefs.h.  */
24014 #include <netinet/in.h>
24015 int
24016 main ()
24017 {
24018 struct sockaddr_in6 addr6;
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 if ac_fn_c_try_compile "$LINENO"; then :
24024
24025 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24026
24027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24028 $as_echo "yes" >&6; }
24029 else
24030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24031 $as_echo "no" >&6; }
24032 fi
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24036 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h.  */
24039 #define _POSIX_PII_SOCKET
24040 #include <sys/types.h>
24041 #include <sys/socket.h>
24042 int
24043 main ()
24044 {
24045 socklen_t x = 5;
24046   ;
24047   return 0;
24048 }
24049 _ACEOF
24050 if ac_fn_c_try_compile "$LINENO"; then :
24051
24052 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24053
24054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24055 $as_echo "yes" >&6; }
24056 else
24057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24058 $as_echo "no" >&6; }
24059 fi
24060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24061
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24063 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24065 /* end confdefs.h.  */
24066 #include <time.h>
24067 int
24068 main ()
24069 {
24070 struct tm tim; tim.tm_gmtoff = 0;
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 if ac_fn_c_try_compile "$LINENO"; then :
24076
24077 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24078
24079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24080 $as_echo "yes" >&6; }
24081 else
24082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24083 $as_echo "no" >&6; }
24084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24085 $as_echo_n "checking for global timezone variable... " >&6; }
24086                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h.  */
24088 #include <time.h>
24089 int
24090 main ()
24091 {
24092 void i(){long z2 = 2*timezone;}
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 if ac_fn_c_try_compile "$LINENO"; then :
24098
24099 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24100
24101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24102 $as_echo "yes" >&6; }
24103 else
24104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24105 $as_echo "no" >&6; }
24106        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24107 $as_echo_n "checking for global _timezone variable... " >&6; }
24108               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24109 /* end confdefs.h.  */
24110 #include <time.h>
24111 int
24112 main ()
24113 {
24114 long z2 = _timezone;
24115   ;
24116   return 0;
24117 }
24118 _ACEOF
24119 if ac_fn_c_try_compile "$LINENO"; then :
24120
24121 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24122
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24124 $as_echo "yes" >&6; }
24125 else
24126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24127 $as_echo "no" >&6; }
24128 fi
24129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24130 fi
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132 fi
24133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134
24135 for ac_prog in perl
24136 do
24137   # Extract the first word of "$ac_prog", so it can be a program name with args.
24138 set dummy $ac_prog; ac_word=$2
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24140 $as_echo_n "checking for $ac_word... " >&6; }
24141 if test "${ac_cv_prog_PERL+set}" = set; then :
24142   $as_echo_n "(cached) " >&6
24143 else
24144   if test -n "$PERL"; then
24145   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24146 else
24147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24148 for as_dir in $PATH
24149 do
24150   IFS=$as_save_IFS
24151   test -z "$as_dir" && as_dir=.
24152     for ac_exec_ext in '' $ac_executable_extensions; do
24153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24154     ac_cv_prog_PERL="$ac_prog"
24155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24156     break 2
24157   fi
24158 done
24159   done
24160 IFS=$as_save_IFS
24161
24162 fi
24163 fi
24164 PERL=$ac_cv_prog_PERL
24165 if test -n "$PERL"; then
24166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24167 $as_echo "$PERL" >&6; }
24168 else
24169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170 $as_echo "no" >&6; }
24171 fi
24172
24173
24174   test -n "$PERL" && break
24175 done
24176 test -n "$PERL" || PERL="false"
24177
24178
24179 SYSDEP_SOURCES=
24180 SIGNAL_HANDLER_AUX=
24181
24182 case "${host}" in
24183  i?86-*-linux*)
24184     SIGNAL_HANDLER=include/i386-signal.h
24185     ;;
24186  *-*-solaris2*)
24187     SIGNAL_HANDLER=include/solaris-signal.h
24188     ;;
24189 # ia64-*)
24190 #    SYSDEP_SOURCES=sysdep/ia64.c
24191 #    test -d sysdep || mkdir sysdep
24192 #    ;;
24193  hppa*-*-linux*)
24194     SIGNAL_HANDLER=include/pa-signal.h
24195     ;;
24196  hppa*-hp-hpux*)
24197     SIGNAL_HANDLER=include/hppa-signal.h
24198     ;;
24199  ia64-*-linux*)
24200     SIGNAL_HANDLER=include/dwarf2-signal.h
24201     ;;
24202  powerpc*-*-linux*)
24203     SIGNAL_HANDLER=include/powerpc-signal.h
24204     ;;
24205  alpha*-*-linux*)
24206     SIGNAL_HANDLER=include/dwarf2-signal.h
24207     ;;
24208  s390*-*-linux*)
24209     SIGNAL_HANDLER=include/s390-signal.h
24210     ;;
24211  x86_64*-*-linux*)
24212     SIGNAL_HANDLER=include/x86_64-signal.h
24213     SIGNAL_HANDLER_AUX=include/i386-signal.h
24214     ;;
24215  sparc*-*-linux*)
24216     SIGNAL_HANDLER=include/dwarf2-signal.h
24217     ;;
24218  sh*-*-linux*)
24219     SIGNAL_HANDLER=include/sh-signal.h
24220     ;;
24221  *mingw*)
24222     SIGNAL_HANDLER=include/win32-signal.h
24223     ;;
24224  mips*-*-linux*)
24225     SIGNAL_HANDLER=include/mips-signal.h
24226     ;;
24227  m68*-*-linux*)
24228     SIGNAL_HANDLER=include/dwarf2-signal.h
24229     ;;
24230  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24231     SIGNAL_HANDLER=include/darwin-signal.h
24232     ;;
24233  powerpc*-*-aix*)
24234     SIGNAL_HANDLER=include/aix-signal.h
24235     ;;
24236  *)
24237     SIGNAL_HANDLER=include/default-signal.h
24238     ;;
24239 esac
24240
24241 # If we're using sjlj exceptions, forget what we just learned.
24242 if test "$enable_sjlj_exceptions" = yes; then
24243    SIGNAL_HANDLER=include/default-signal.h
24244    SIGNAL_HANDLER_AUX=
24245 fi
24246
24247
24248
24249 if test -z "$SIGNAL_HANDLER_AUX"; then
24250   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24251 fi
24252
24253 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24254
24255
24256 if test "${multilib}" = "yes"; then
24257   multilib_arg="--enable-multilib"
24258 else
24259   multilib_arg=
24260 fi
24261
24262 # See if we support thread-local storage.
24263
24264
24265    # Check whether --enable-tls was given.
24266 if test "${enable_tls+set}" = set; then :
24267   enableval=$enable_tls;
24268       case "$enableval" in
24269        yes|no) ;;
24270        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24271       esac
24272
24273 else
24274   enable_tls=yes
24275 fi
24276
24277
24278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24279 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24280 if test "${gcc_cv_have_tls+set}" = set; then :
24281   $as_echo_n "(cached) " >&6
24282 else
24283
24284     if test "$cross_compiling" = yes; then :
24285                 if test x$gcc_no_link = xyes; then
24286   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24287 fi
24288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24289 /* end confdefs.h.  */
24290 __thread int a; int b; int main() { return a = b; }
24291 _ACEOF
24292 if ac_fn_c_try_link "$LINENO"; then :
24293   chktls_save_LDFLAGS="$LDFLAGS"
24294                           case $host in
24295             *-*-linux*)
24296               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24297               ;;
24298           esac
24299           chktls_save_CFLAGS="$CFLAGS"
24300           CFLAGS="-fPIC $CFLAGS"
24301                   if test x$gcc_no_link = xyes; then
24302   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24303 fi
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h.  */
24306 int f() { return 0; }
24307 _ACEOF
24308 if ac_fn_c_try_link "$LINENO"; then :
24309   if test x$gcc_no_link = xyes; then
24310   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24311 fi
24312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24313 /* end confdefs.h.  */
24314 __thread int a; int b; int f() { return a = b; }
24315 _ACEOF
24316 if ac_fn_c_try_link "$LINENO"; then :
24317   gcc_cv_have_tls=yes
24318 else
24319   gcc_cv_have_tls=no
24320 fi
24321 rm -f core conftest.err conftest.$ac_objext \
24322     conftest$ac_exeext conftest.$ac_ext
24323 else
24324   gcc_cv_have_tls=yes
24325 fi
24326 rm -f core conftest.err conftest.$ac_objext \
24327     conftest$ac_exeext conftest.$ac_ext
24328           CFLAGS="$chktls_save_CFLAGS"
24329           LDFLAGS="$chktls_save_LDFLAGS"
24330 else
24331   gcc_cv_have_tls=no
24332 fi
24333 rm -f core conftest.err conftest.$ac_objext \
24334     conftest$ac_exeext conftest.$ac_ext
24335
24336
24337 else
24338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h.  */
24340 __thread int a; int b; int main() { return a = b; }
24341 _ACEOF
24342 if ac_fn_c_try_run "$LINENO"; then :
24343                       chktls_save_LDFLAGS="$LDFLAGS"
24344       LDFLAGS="-static $LDFLAGS"
24345       if test x$gcc_no_link = xyes; then
24346   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24347 fi
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h.  */
24350 int main() { return 0; }
24351 _ACEOF
24352 if ac_fn_c_try_link "$LINENO"; then :
24353   if test "$cross_compiling" = yes; then :
24354   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24356 as_fn_error "cannot run test program while cross compiling
24357 See \`config.log' for more details." "$LINENO" 5; }
24358 else
24359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h.  */
24361 __thread int a; int b; int main() { return a = b; }
24362 _ACEOF
24363 if ac_fn_c_try_run "$LINENO"; then :
24364   gcc_cv_have_tls=yes
24365 else
24366   gcc_cv_have_tls=no
24367 fi
24368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24369   conftest.$ac_objext conftest.beam conftest.$ac_ext
24370 fi
24371
24372 else
24373   gcc_cv_have_tls=yes
24374 fi
24375 rm -f core conftest.err conftest.$ac_objext \
24376     conftest$ac_exeext conftest.$ac_ext
24377       LDFLAGS="$chktls_save_LDFLAGS"
24378       if test $gcc_cv_have_tls = yes; then
24379                                                 chktls_save_CFLAGS="$CFLAGS"
24380         thread_CFLAGS=failed
24381         for flag in '' '-pthread' '-lpthread'; do
24382           CFLAGS="$flag $chktls_save_CFLAGS"
24383           if test x$gcc_no_link = xyes; then
24384   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24385 fi
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h.  */
24388 #include <pthread.h>
24389                 void *g(void *d) { return NULL; }
24390 int
24391 main ()
24392 {
24393 pthread_t t; pthread_create(&t,NULL,g,NULL);
24394   ;
24395   return 0;
24396 }
24397 _ACEOF
24398 if ac_fn_c_try_link "$LINENO"; then :
24399   thread_CFLAGS="$flag"
24400 fi
24401 rm -f core conftest.err conftest.$ac_objext \
24402     conftest$ac_exeext conftest.$ac_ext
24403           if test "X$thread_CFLAGS" != Xfailed; then
24404             break
24405           fi
24406         done
24407         CFLAGS="$chktls_save_CFLAGS"
24408         if test "X$thread_CFLAGS" != Xfailed; then
24409           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24410                                                   if test "$cross_compiling" = yes; then :
24411   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24413 as_fn_error "cannot run test program while cross compiling
24414 See \`config.log' for more details." "$LINENO" 5; }
24415 else
24416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24417 /* end confdefs.h.  */
24418 #include <pthread.h>
24419                 __thread int a;
24420                 static int *volatile a_in_other_thread;
24421                 static void *
24422                 thread_func (void *arg)
24423                 {
24424                   a_in_other_thread = &a;
24425                   return (void *)0;
24426                 }
24427 int
24428 main ()
24429 {
24430 pthread_t thread;
24431                 void *thread_retval;
24432                 int *volatile a_in_main_thread;
24433                 a_in_main_thread = &a;
24434                 if (pthread_create (&thread, (pthread_attr_t *)0,
24435                                     thread_func, (void *)0))
24436                   return 0;
24437                 if (pthread_join (thread, &thread_retval))
24438                   return 0;
24439                 return (a_in_other_thread == a_in_main_thread);
24440   ;
24441   return 0;
24442 }
24443 _ACEOF
24444 if ac_fn_c_try_run "$LINENO"; then :
24445   gcc_cv_have_tls=yes
24446 else
24447   gcc_cv_have_tls=no
24448 fi
24449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24450   conftest.$ac_objext conftest.beam conftest.$ac_ext
24451 fi
24452
24453           CFLAGS="$chktls_save_CFLAGS"
24454         fi
24455       fi
24456 else
24457   gcc_cv_have_tls=no
24458 fi
24459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24460   conftest.$ac_objext conftest.beam conftest.$ac_ext
24461 fi
24462
24463 fi
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24465 $as_echo "$gcc_cv_have_tls" >&6; }
24466   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24467
24468 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24469
24470   fi
24471
24472 # For _Unwind_GetIPInfo.
24473
24474
24475 # Check whether --with-system-libunwind was given.
24476 if test "${with_system_libunwind+set}" = set; then :
24477   withval=$with_system_libunwind;
24478 fi
24479
24480   # If system-libunwind was not specifically set, pick a default setting.
24481   if test x$with_system_libunwind = x; then
24482     case ${target} in
24483       ia64-*-hpux*) with_system_libunwind=yes ;;
24484       *) with_system_libunwind=no ;;
24485     esac
24486   fi
24487   # Based on system-libunwind and target, do we have ipinfo?
24488   if  test x$with_system_libunwind = xyes; then
24489     case ${target} in
24490       ia64-*-*) have_unwind_getipinfo=no ;;
24491       *) have_unwind_getipinfo=yes ;;
24492     esac
24493   else
24494     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24495
24496     case ${target} in
24497       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24498       *) have_unwind_getipinfo=yes ;;
24499     esac
24500
24501   fi
24502
24503   if test x$have_unwind_getipinfo = xyes; then
24504
24505 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24506
24507   fi
24508
24509
24510 # See if linker supports anonymous version scripts.
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24512 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24513 if test "${libjava_cv_anon_version_script+set}" = set; then :
24514   $as_echo_n "(cached) " >&6
24515 else
24516   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24517    libjava_cv_anon_version_script=no
24518    CFLAGS="$CFLAGS -fPIC";
24519    LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24520    echo '{ global: globalsymb*; local: *; };' > conftest.map
24521    if test x$gcc_no_link = xyes; then
24522   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24523 fi
24524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h.  */
24526 void globalsymbol (void) {} void localsymbol (void) {}
24527 int
24528 main ()
24529 {
24530
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 if ac_fn_c_try_link "$LINENO"; then :
24536   libjava_cv_anon_version_script=gnu
24537 fi
24538 rm -f core conftest.err conftest.$ac_objext \
24539     conftest$ac_exeext conftest.$ac_ext
24540    if test x$libjava_cv_anon_version_script = xno; then
24541      case "$target_os" in
24542        solaris2*)
24543          LDFLAGS="$save_LDFLAGS"
24544          LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24545          # Sun ld doesn't understand wildcards here.
24546          echo '{ global: globalsymbol; local: *; };' > conftest.map
24547          if test x$gcc_no_link = xyes; then
24548   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24549 fi
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h.  */
24552 void globalsymbol (void) {} void localsymbol (void) {}
24553 int
24554 main ()
24555 {
24556
24557   ;
24558   return 0;
24559 }
24560 _ACEOF
24561 if ac_fn_c_try_link "$LINENO"; then :
24562   libjava_cv_anon_version_script=sun
24563 fi
24564 rm -f core conftest.err conftest.$ac_objext \
24565     conftest$ac_exeext conftest.$ac_ext
24566          ;;
24567      esac
24568    fi
24569    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24570
24571 fi
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24573 $as_echo "$libjava_cv_anon_version_script" >&6; }
24574  if test "$libjava_cv_anon_version_script" != no; then
24575   ANONVERSCRIPT_TRUE=
24576   ANONVERSCRIPT_FALSE='#'
24577 else
24578   ANONVERSCRIPT_TRUE='#'
24579   ANONVERSCRIPT_FALSE=
24580 fi
24581
24582  if test "$libjava_cv_anon_version_script" = gnu; then
24583   ANONVERSCRIPT_GNU_TRUE=
24584   ANONVERSCRIPT_GNU_FALSE='#'
24585 else
24586   ANONVERSCRIPT_GNU_TRUE='#'
24587   ANONVERSCRIPT_GNU_FALSE=
24588 fi
24589
24590  if test "$libjava_cv_anon_version_script" = sun; then
24591   ANONVERSCRIPT_SUN_TRUE=
24592   ANONVERSCRIPT_SUN_FALSE='#'
24593 else
24594   ANONVERSCRIPT_SUN_TRUE='#'
24595   ANONVERSCRIPT_SUN_FALSE=
24596 fi
24597
24598
24599 # Check if linker supports static linking on a per library basis
24600 LD_START_STATIC_SPEC=
24601 LD_FINISH_STATIC_SPEC=
24602 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24603   if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24604     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24605     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24606   fi
24607 fi
24608
24609
24610
24611 here=`${PWDCMD-pwd}`
24612
24613
24614 # We get this from the environment.
24615
24616
24617
24618 # Check whether --with-python-dir was given.
24619 if test "${with_python_dir+set}" = set; then :
24620   withval=$with_python_dir; with_python_dir=$withval
24621 else
24622   with_python_dir=""
24623 fi
24624
24625
24626 if test "x${with_python_dir}" = "x"
24627 then
24628   # Needed for installing Python modules during make install.
24629   python_mod_dir="\${prefix}/share/python"
24630   # Needed for substituting into aot-compile*
24631   python_mod_dir_expanded="${expanded_prefix}/share/python"
24632 else
24633   python_mod_dir="\${prefix}${with_python_dir}"
24634   python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24637 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24638
24639
24640
24641 # needed for aot-compile-rpm
24642 MAKE=`which make`
24643
24644
24645 # Check whether --enable-aot-compile-rpm was given.
24646 if test "${enable_aot_compile_rpm+set}" = set; then :
24647   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24648     yes) AOT_RPM_ENABLED=yes ;;
24649     no)  AOT_RPM_ENABLED=no ;;
24650     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24651   esac
24652 else
24653   AOT_RPM_ENABLED=no
24654
24655 fi
24656
24657  if test "x${AOT_RPM_ENABLED}" = xyes; then
24658   INSTALL_AOT_RPM_TRUE=
24659   INSTALL_AOT_RPM_FALSE='#'
24660 else
24661   INSTALL_AOT_RPM_TRUE='#'
24662   INSTALL_AOT_RPM_FALSE=
24663 fi
24664
24665
24666 # Check whether --enable-java-home was given.
24667 if test "${enable_java_home+set}" = set; then :
24668   enableval=$enable_java_home; case "${enableval}" in
24669     yes) JAVA_HOME_ENABLED=yes ;;
24670     no)  JAVA_HOME_ENABLED=no ;;
24671     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24672   esac
24673 else
24674   JAVA_HOME_ENABLED=no
24675
24676 fi
24677
24678  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24679   CREATE_JAVA_HOME_TRUE=
24680   CREATE_JAVA_HOME_FALSE='#'
24681 else
24682   CREATE_JAVA_HOME_TRUE='#'
24683   CREATE_JAVA_HOME_FALSE=
24684 fi
24685
24686
24687 # Only do these checks if java-home above is enabled.
24688 if test "x${JAVA_HOME_ENABLED}" = xyes
24689 then
24690
24691
24692 # Check whether --with-gcc-suffix was given.
24693 if test "${with_gcc_suffix+set}" = set; then :
24694   withval=$with_gcc_suffix; gcc_suffix=$withval
24695 else
24696   gcc_suffix=""
24697 fi
24698
24699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24700 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24701
24702
24703
24704 # Check whether --with-arch-directory was given.
24705 if test "${with_arch_directory+set}" = set; then :
24706   withval=$with_arch_directory; host_cpu=$withval
24707 else
24708   host_cpu=""
24709 fi
24710
24711
24712
24713 # Check whether --with-os-directory was given.
24714 if test "${with_os_directory+set}" = set; then :
24715   withval=$with_os_directory; host_os=$withval
24716 else
24717   host_os=""
24718 fi
24719
24720
24721
24722 # Check whether --with-origin-name was given.
24723 if test "${with_origin_name+set}" = set; then :
24724   withval=$with_origin_name; origin_name=$withval
24725 else
24726   origin_name=gcj${gcc_suffix}
24727 fi
24728
24729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24730 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24731
24732
24733 # Check whether --with-arch-suffix was given.
24734 if test "${with_arch_suffix+set}" = set; then :
24735   withval=$with_arch_suffix; arch_suffix=$withval
24736 else
24737   arch_suffix=""
24738 fi
24739
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24741 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24742
24743
24744 # Check whether --with-jvm-root-dir was given.
24745 if test "${with_jvm_root_dir+set}" = set; then :
24746   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24747 else
24748   jvm_root_dir="\${prefix}/lib/jvm"
24749 fi
24750
24751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24752 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24753
24754
24755 # Check whether --with-jvm-jar-dir was given.
24756 if test "${with_jvm_jar_dir+set}" = set; then :
24757   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24758 else
24759   jvm_jar_dir=\${prefix}/lib/jvm-exports
24760 fi
24761
24762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24763 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24764
24765   JAVA_VERSION=1.5.0
24766   BUILD_VERSION=0
24767
24768
24769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24770 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24771
24772   jre_dir=jre
24773   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24774   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24775
24776   JVM_ROOT_DIR=${jvm_root_dir}
24777
24778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24779 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24780
24781   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24782
24783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24784 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24785
24786   JVM_JAR_DIR=${jvm_jar_dir}
24787
24788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24789 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24790
24791   JRE_DIR=${jre_dir}
24792
24793
24794   JRE_LNK=${jre_lnk}
24795
24796
24797   SDK_LNK=${sdk_lnk}
24798
24799
24800   SDK_BIN_DIR=${jvm_root_dir}/bin
24801
24802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24803 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24804
24805   SDK_LIB_DIR=${jvm_root_dir}/lib
24806
24807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24808 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24809
24810   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24811
24812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24813 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24814
24815   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24816
24817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24818 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24819
24820   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24821
24822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24823 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24824
24825   # Find gcj prefix using gcj found in PATH.
24826   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24827
24828   # Where do the gcj binaries live?
24829   # For jhbuild based builds, they all live in a sibling of bin called
24830   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24831   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24832
24833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24834 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24835
24836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24837 $as_echo "host is ${host}" >&6; }
24838   if test "x${host_cpu}" = "x"
24839   then
24840     case ${host} in
24841       *-mingw* | *-cygwin*)
24842         host_cpu=x86;;
24843       i486-* | i586-* | i686-*)
24844         host_cpu=i386;;
24845       x86_64-*)
24846         host_cpu=amd64;;
24847       *)
24848         host_cpu=${host_cpu};;
24849     esac
24850   fi
24851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24852 $as_echo "arch directory: ${host_cpu}" >&6; }
24853   CPU=${host_cpu}
24854
24855
24856   if test "x${host_os}" = "x"
24857   then
24858     case ${host} in
24859       *-mingw* | *-cygwin*)
24860         host_os=win32;;
24861       *-linux*)
24862         host_os=linux;;
24863       *)
24864         host_os=${host_os};;
24865     esac
24866   fi
24867   echo os directory: ${host_os}
24868   OS=${host_os}
24869
24870
24871   # make an expanded $libdir, for substituting into
24872   # scripts (and other non-Makefile things).
24873   LIBDIR=$libdir
24874   if test "x${exec_prefix}" = "xNONE"
24875   then
24876       lib_exec_prefix=$expanded_prefix
24877   else
24878       lib_exec_prefix=$exec_prefix
24879   fi
24880   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24881
24882 fi
24883
24884 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"
24885
24886
24887 if test ${multilib} = yes; then
24888   multilib_arg="--enable-multilib"
24889 else
24890   multilib_arg=
24891 fi
24892
24893 ac_config_files="$ac_config_files scripts/jar"
24894
24895 cat >confcache <<\_ACEOF
24896 # This file is a shell script that caches the results of configure
24897 # tests run on this system so they can be shared between configure
24898 # scripts and configure runs, see configure's option --config-cache.
24899 # It is not useful on other systems.  If it contains results you don't
24900 # want to keep, you may remove or edit it.
24901 #
24902 # config.status only pays attention to the cache file if you give it
24903 # the --recheck option to rerun configure.
24904 #
24905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24907 # following values.
24908
24909 _ACEOF
24910
24911 # The following way of writing the cache mishandles newlines in values,
24912 # but we know of no workaround that is simple, portable, and efficient.
24913 # So, we kill variables containing newlines.
24914 # Ultrix sh set writes to stderr and can't be redirected directly,
24915 # and sets the high bit in the cache file unless we assign to the vars.
24916 (
24917   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24918     eval ac_val=\$$ac_var
24919     case $ac_val in #(
24920     *${as_nl}*)
24921       case $ac_var in #(
24922       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24924       esac
24925       case $ac_var in #(
24926       _ | IFS | as_nl) ;; #(
24927       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24928       *) { eval $ac_var=; unset $ac_var;} ;;
24929       esac ;;
24930     esac
24931   done
24932
24933   (set) 2>&1 |
24934     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24935     *${as_nl}ac_space=\ *)
24936       # `set' does not quote correctly, so add quotes: double-quote
24937       # substitution turns \\\\ into \\, and sed turns \\ into \.
24938       sed -n \
24939         "s/'/'\\\\''/g;
24940           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24941       ;; #(
24942     *)
24943       # `set' quotes correctly as required by POSIX, so do not add quotes.
24944       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24945       ;;
24946     esac |
24947     sort
24948 ) |
24949   sed '
24950      /^ac_cv_env_/b end
24951      t clear
24952      :clear
24953      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24954      t end
24955      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24956      :end' >>confcache
24957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24958   if test -w "$cache_file"; then
24959     test "x$cache_file" != "x/dev/null" &&
24960       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24961 $as_echo "$as_me: updating cache $cache_file" >&6;}
24962     cat confcache >$cache_file
24963   else
24964     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24966   fi
24967 fi
24968 rm -f confcache
24969
24970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24971 # Let make expand exec_prefix.
24972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24973
24974 DEFS=-DHAVE_CONFIG_H
24975
24976 ac_libobjs=
24977 ac_ltlibobjs=
24978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24979   # 1. Remove the extension, and $U if already installed.
24980   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24981   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24982   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24983   #    will be set to the directory where LIBOBJS objects are built.
24984   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24985   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24986 done
24987 LIBOBJS=$ac_libobjs
24988
24989 LTLIBOBJS=$ac_ltlibobjs
24990
24991
24992 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24993   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24995 fi
24996 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24997   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24999 fi
25000 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25001   as_fn_error "conditional \"AMDEP\" was never defined.
25002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25003 fi
25004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25005   as_fn_error "conditional \"am__fastdepCC\" was never defined.
25006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25007 fi
25008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25009   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25011 fi
25012  if test -n "$EXEEXT"; then
25013   am__EXEEXT_TRUE=
25014   am__EXEEXT_FALSE='#'
25015 else
25016   am__EXEEXT_TRUE='#'
25017   am__EXEEXT_FALSE=
25018 fi
25019
25020 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25021   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25023 fi
25024 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25025   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25027 fi
25028 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25029   as_fn_error "conditional \"XLIB_AWT\" was never defined.
25030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25031 fi
25032 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25033   as_fn_error "conditional \"X_AWT\" was never defined.
25034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25035 fi
25036 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25037   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25039 fi
25040 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25041   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25043 fi
25044 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25045   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25047 fi
25048 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25049   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25051 fi
25052 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25053   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25055 fi
25056 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25057   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25059 fi
25060 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25061   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25063 fi
25064 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25065   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25067 fi
25068 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25069   as_fn_error "conditional \"INTERPRETER\" was never defined.
25070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25071 fi
25072 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25073   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25075 fi
25076 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25077   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25079 fi
25080 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25081   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25083 fi
25084 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25085   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25087 fi
25088 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25089   as_fn_error "conditional \"USING_NOGC\" was never defined.
25090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25091 fi
25092 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25093   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25095 fi
25096 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25097   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25099 fi
25100 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25101   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25103 fi
25104 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25105   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25107 fi
25108 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25109   as_fn_error "conditional \"USING_GCC\" was never defined.
25110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25111 fi
25112 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25113   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25115 fi
25116
25117 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25118   as_fn_error "conditional \"NATIVE\" was never defined.
25119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25120 fi
25121 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25122   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25124 fi
25125 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25126   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25128 fi
25129 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25130   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25132 fi
25133 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25134   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25136 fi
25137 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25138   as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25140 fi
25141 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25142   as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25144 fi
25145 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25146   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25148 fi
25149 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25150   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25152 fi
25153
25154 : ${CONFIG_STATUS=./config.status}
25155 ac_write_fail=0
25156 ac_clean_files_save=$ac_clean_files
25157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25159 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25160 as_write_fail=0
25161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25162 #! $SHELL
25163 # Generated by $as_me.
25164 # Run this file to recreate the current configuration.
25165 # Compiler output produced by configure, useful for debugging
25166 # configure, is in config.log if it exists.
25167
25168 debug=false
25169 ac_cs_recheck=false
25170 ac_cs_silent=false
25171
25172 SHELL=\${CONFIG_SHELL-$SHELL}
25173 export SHELL
25174 _ASEOF
25175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25176 ## -------------------- ##
25177 ## M4sh Initialization. ##
25178 ## -------------------- ##
25179
25180 # Be more Bourne compatible
25181 DUALCASE=1; export DUALCASE # for MKS sh
25182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25183   emulate sh
25184   NULLCMD=:
25185   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25186   # is contrary to our usage.  Disable this feature.
25187   alias -g '${1+"$@"}'='"$@"'
25188   setopt NO_GLOB_SUBST
25189 else
25190   case `(set -o) 2>/dev/null` in #(
25191   *posix*) :
25192     set -o posix ;; #(
25193   *) :
25194      ;;
25195 esac
25196 fi
25197
25198
25199 as_nl='
25200 '
25201 export as_nl
25202 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25203 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25206 # Prefer a ksh shell builtin over an external printf program on Solaris,
25207 # but without wasting forks for bash or zsh.
25208 if test -z "$BASH_VERSION$ZSH_VERSION" \
25209     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25210   as_echo='print -r --'
25211   as_echo_n='print -rn --'
25212 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25213   as_echo='printf %s\n'
25214   as_echo_n='printf %s'
25215 else
25216   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25217     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25218     as_echo_n='/usr/ucb/echo -n'
25219   else
25220     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25221     as_echo_n_body='eval
25222       arg=$1;
25223       case $arg in #(
25224       *"$as_nl"*)
25225         expr "X$arg" : "X\\(.*\\)$as_nl";
25226         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25227       esac;
25228       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25229     '
25230     export as_echo_n_body
25231     as_echo_n='sh -c $as_echo_n_body as_echo'
25232   fi
25233   export as_echo_body
25234   as_echo='sh -c $as_echo_body as_echo'
25235 fi
25236
25237 # The user is always right.
25238 if test "${PATH_SEPARATOR+set}" != set; then
25239   PATH_SEPARATOR=:
25240   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25241     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25242       PATH_SEPARATOR=';'
25243   }
25244 fi
25245
25246
25247 # IFS
25248 # We need space, tab and new line, in precisely that order.  Quoting is
25249 # there to prevent editors from complaining about space-tab.
25250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25251 # splitting by setting IFS to empty value.)
25252 IFS=" ""        $as_nl"
25253
25254 # Find who we are.  Look in the path if we contain no directory separator.
25255 case $0 in #((
25256   *[\\/]* ) as_myself=$0 ;;
25257   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25258 for as_dir in $PATH
25259 do
25260   IFS=$as_save_IFS
25261   test -z "$as_dir" && as_dir=.
25262     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25263   done
25264 IFS=$as_save_IFS
25265
25266      ;;
25267 esac
25268 # We did not find ourselves, most probably we were run as `sh COMMAND'
25269 # in which case we are not to be found in the path.
25270 if test "x$as_myself" = x; then
25271   as_myself=$0
25272 fi
25273 if test ! -f "$as_myself"; then
25274   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25275   exit 1
25276 fi
25277
25278 # Unset variables that we do not need and which cause bugs (e.g. in
25279 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25280 # suppresses any "Segmentation fault" message there.  '((' could
25281 # trigger a bug in pdksh 5.2.14.
25282 for as_var in BASH_ENV ENV MAIL MAILPATH
25283 do eval test x\${$as_var+set} = xset \
25284   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25285 done
25286 PS1='$ '
25287 PS2='> '
25288 PS4='+ '
25289
25290 # NLS nuisances.
25291 LC_ALL=C
25292 export LC_ALL
25293 LANGUAGE=C
25294 export LANGUAGE
25295
25296 # CDPATH.
25297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25298
25299
25300 # as_fn_error ERROR [LINENO LOG_FD]
25301 # ---------------------------------
25302 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25303 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25304 # script with status $?, using 1 if that was 0.
25305 as_fn_error ()
25306 {
25307   as_status=$?; test $as_status -eq 0 && as_status=1
25308   if test "$3"; then
25309     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25310     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25311   fi
25312   $as_echo "$as_me: error: $1" >&2
25313   as_fn_exit $as_status
25314 } # as_fn_error
25315
25316
25317 # as_fn_set_status STATUS
25318 # -----------------------
25319 # Set $? to STATUS, without forking.
25320 as_fn_set_status ()
25321 {
25322   return $1
25323 } # as_fn_set_status
25324
25325 # as_fn_exit STATUS
25326 # -----------------
25327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25328 as_fn_exit ()
25329 {
25330   set +e
25331   as_fn_set_status $1
25332   exit $1
25333 } # as_fn_exit
25334
25335 # as_fn_unset VAR
25336 # ---------------
25337 # Portably unset VAR.
25338 as_fn_unset ()
25339 {
25340   { eval $1=; unset $1;}
25341 }
25342 as_unset=as_fn_unset
25343 # as_fn_append VAR VALUE
25344 # ----------------------
25345 # Append the text in VALUE to the end of the definition contained in VAR. Take
25346 # advantage of any shell optimizations that allow amortized linear growth over
25347 # repeated appends, instead of the typical quadratic growth present in naive
25348 # implementations.
25349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25350   eval 'as_fn_append ()
25351   {
25352     eval $1+=\$2
25353   }'
25354 else
25355   as_fn_append ()
25356   {
25357     eval $1=\$$1\$2
25358   }
25359 fi # as_fn_append
25360
25361 # as_fn_arith ARG...
25362 # ------------------
25363 # Perform arithmetic evaluation on the ARGs, and store the result in the
25364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25365 # must be portable across $(()) and expr.
25366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25367   eval 'as_fn_arith ()
25368   {
25369     as_val=$(( $* ))
25370   }'
25371 else
25372   as_fn_arith ()
25373   {
25374     as_val=`expr "$@" || test $? -eq 1`
25375   }
25376 fi # as_fn_arith
25377
25378
25379 if expr a : '\(a\)' >/dev/null 2>&1 &&
25380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25381   as_expr=expr
25382 else
25383   as_expr=false
25384 fi
25385
25386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25387   as_basename=basename
25388 else
25389   as_basename=false
25390 fi
25391
25392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25393   as_dirname=dirname
25394 else
25395   as_dirname=false
25396 fi
25397
25398 as_me=`$as_basename -- "$0" ||
25399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25400          X"$0" : 'X\(//\)$' \| \
25401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25402 $as_echo X/"$0" |
25403     sed '/^.*\/\([^/][^/]*\)\/*$/{
25404             s//\1/
25405             q
25406           }
25407           /^X\/\(\/\/\)$/{
25408             s//\1/
25409             q
25410           }
25411           /^X\/\(\/\).*/{
25412             s//\1/
25413             q
25414           }
25415           s/.*/./; q'`
25416
25417 # Avoid depending upon Character Ranges.
25418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25421 as_cr_digits='0123456789'
25422 as_cr_alnum=$as_cr_Letters$as_cr_digits
25423
25424 ECHO_C= ECHO_N= ECHO_T=
25425 case `echo -n x` in #(((((
25426 -n*)
25427   case `echo 'xy\c'` in
25428   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25429   xy)  ECHO_C='\c';;
25430   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25431        ECHO_T=' ';;
25432   esac;;
25433 *)
25434   ECHO_N='-n';;
25435 esac
25436
25437 rm -f conf$$ conf$$.exe conf$$.file
25438 if test -d conf$$.dir; then
25439   rm -f conf$$.dir/conf$$.file
25440 else
25441   rm -f conf$$.dir
25442   mkdir conf$$.dir 2>/dev/null
25443 fi
25444 if (echo >conf$$.file) 2>/dev/null; then
25445   if ln -s conf$$.file conf$$ 2>/dev/null; then
25446     as_ln_s='ln -s'
25447     # ... but there are two gotchas:
25448     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25449     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25450     # In both cases, we have to default to `cp -p'.
25451     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25452       as_ln_s='cp -p'
25453   elif ln conf$$.file conf$$ 2>/dev/null; then
25454     as_ln_s=ln
25455   else
25456     as_ln_s='cp -p'
25457   fi
25458 else
25459   as_ln_s='cp -p'
25460 fi
25461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25462 rmdir conf$$.dir 2>/dev/null
25463
25464
25465 # as_fn_mkdir_p
25466 # -------------
25467 # Create "$as_dir" as a directory, including parents if necessary.
25468 as_fn_mkdir_p ()
25469 {
25470
25471   case $as_dir in #(
25472   -*) as_dir=./$as_dir;;
25473   esac
25474   test -d "$as_dir" || eval $as_mkdir_p || {
25475     as_dirs=
25476     while :; do
25477       case $as_dir in #(
25478       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25479       *) as_qdir=$as_dir;;
25480       esac
25481       as_dirs="'$as_qdir' $as_dirs"
25482       as_dir=`$as_dirname -- "$as_dir" ||
25483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25484          X"$as_dir" : 'X\(//\)[^/]' \| \
25485          X"$as_dir" : 'X\(//\)$' \| \
25486          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25487 $as_echo X"$as_dir" |
25488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25489             s//\1/
25490             q
25491           }
25492           /^X\(\/\/\)[^/].*/{
25493             s//\1/
25494             q
25495           }
25496           /^X\(\/\/\)$/{
25497             s//\1/
25498             q
25499           }
25500           /^X\(\/\).*/{
25501             s//\1/
25502             q
25503           }
25504           s/.*/./; q'`
25505       test -d "$as_dir" && break
25506     done
25507     test -z "$as_dirs" || eval "mkdir $as_dirs"
25508   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25509
25510
25511 } # as_fn_mkdir_p
25512 if mkdir -p . 2>/dev/null; then
25513   as_mkdir_p='mkdir -p "$as_dir"'
25514 else
25515   test -d ./-p && rmdir ./-p
25516   as_mkdir_p=false
25517 fi
25518
25519 if test -x / >/dev/null 2>&1; then
25520   as_test_x='test -x'
25521 else
25522   if ls -dL / >/dev/null 2>&1; then
25523     as_ls_L_option=L
25524   else
25525     as_ls_L_option=
25526   fi
25527   as_test_x='
25528     eval sh -c '\''
25529       if test -d "$1"; then
25530         test -d "$1/.";
25531       else
25532         case $1 in #(
25533         -*)set "./$1";;
25534         esac;
25535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25536         ???[sx]*):;;*)false;;esac;fi
25537     '\'' sh
25538   '
25539 fi
25540 as_executable_p=$as_test_x
25541
25542 # Sed expression to map a string onto a valid CPP name.
25543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25544
25545 # Sed expression to map a string onto a valid variable name.
25546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25547
25548
25549 exec 6>&1
25550 ## ----------------------------------- ##
25551 ## Main body of $CONFIG_STATUS script. ##
25552 ## ----------------------------------- ##
25553 _ASEOF
25554 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25555
25556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25557 # Save the log message, to keep $0 and so on meaningful, and to
25558 # report actual input values of CONFIG_FILES etc. instead of their
25559 # values after options handling.
25560 ac_log="
25561 This file was extended by libjava $as_me version-unused, which was
25562 generated by GNU Autoconf 2.64.  Invocation command line was
25563
25564   CONFIG_FILES    = $CONFIG_FILES
25565   CONFIG_HEADERS  = $CONFIG_HEADERS
25566   CONFIG_LINKS    = $CONFIG_LINKS
25567   CONFIG_COMMANDS = $CONFIG_COMMANDS
25568   $ $0 $@
25569
25570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25571 "
25572
25573 _ACEOF
25574
25575 case $ac_config_files in *"
25576 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25577 esac
25578
25579 case $ac_config_headers in *"
25580 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25581 esac
25582
25583
25584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25585 # Files that config.status was made for.
25586 config_files="$ac_config_files"
25587 config_headers="$ac_config_headers"
25588 config_links="$ac_config_links"
25589 config_commands="$ac_config_commands"
25590
25591 _ACEOF
25592
25593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25594 ac_cs_usage="\
25595 \`$as_me' instantiates files and other configuration actions
25596 from templates according to the current configuration.  Unless the files
25597 and actions are specified as TAGs, all are instantiated by default.
25598
25599 Usage: $0 [OPTION]... [TAG]...
25600
25601   -h, --help       print this help, then exit
25602   -V, --version    print version number and configuration settings, then exit
25603   -q, --quiet, --silent
25604                    do not print progress messages
25605   -d, --debug      don't remove temporary files
25606       --recheck    update $as_me by reconfiguring in the same conditions
25607       --file=FILE[:TEMPLATE]
25608                    instantiate the configuration file FILE
25609       --header=FILE[:TEMPLATE]
25610                    instantiate the configuration header FILE
25611
25612 Configuration files:
25613 $config_files
25614
25615 Configuration headers:
25616 $config_headers
25617
25618 Configuration links:
25619 $config_links
25620
25621 Configuration commands:
25622 $config_commands
25623
25624 Report bugs to the package provider."
25625
25626 _ACEOF
25627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25628 ac_cs_version="\\
25629 libjava config.status version-unused
25630 configured by $0, generated by GNU Autoconf 2.64,
25631   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25632
25633 Copyright (C) 2009 Free Software Foundation, Inc.
25634 This config.status script is free software; the Free Software Foundation
25635 gives unlimited permission to copy, distribute and modify it."
25636
25637 ac_pwd='$ac_pwd'
25638 srcdir='$srcdir'
25639 INSTALL='$INSTALL'
25640 MKDIR_P='$MKDIR_P'
25641 AWK='$AWK'
25642 test -n "\$AWK" || AWK=awk
25643 _ACEOF
25644
25645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25646 # The default lists apply if the user does not specify any file.
25647 ac_need_defaults=:
25648 while test $# != 0
25649 do
25650   case $1 in
25651   --*=*)
25652     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25653     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25654     ac_shift=:
25655     ;;
25656   *)
25657     ac_option=$1
25658     ac_optarg=$2
25659     ac_shift=shift
25660     ;;
25661   esac
25662
25663   case $ac_option in
25664   # Handling of the options.
25665   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25666     ac_cs_recheck=: ;;
25667   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25668     $as_echo "$ac_cs_version"; exit ;;
25669   --debug | --debu | --deb | --de | --d | -d )
25670     debug=: ;;
25671   --file | --fil | --fi | --f )
25672     $ac_shift
25673     case $ac_optarg in
25674     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25675     esac
25676     as_fn_append CONFIG_FILES " '$ac_optarg'"
25677     ac_need_defaults=false;;
25678   --header | --heade | --head | --hea )
25679     $ac_shift
25680     case $ac_optarg in
25681     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25682     esac
25683     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25684     ac_need_defaults=false;;
25685   --he | --h)
25686     # Conflict between --help and --header
25687     as_fn_error "ambiguous option: \`$1'
25688 Try \`$0 --help' for more information.";;
25689   --help | --hel | -h )
25690     $as_echo "$ac_cs_usage"; exit ;;
25691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25692   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25693     ac_cs_silent=: ;;
25694
25695   # This is an error.
25696   -*) as_fn_error "unrecognized option: \`$1'
25697 Try \`$0 --help' for more information." ;;
25698
25699   *) as_fn_append ac_config_targets " $1"
25700      ac_need_defaults=false ;;
25701
25702   esac
25703   shift
25704 done
25705
25706 ac_configure_extra_args=
25707
25708 if $ac_cs_silent; then
25709   exec 6>/dev/null
25710   ac_configure_extra_args="$ac_configure_extra_args --silent"
25711 fi
25712
25713 _ACEOF
25714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25715 if \$ac_cs_recheck; then
25716   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25717   shift
25718   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25719   CONFIG_SHELL='$SHELL'
25720   export CONFIG_SHELL
25721   exec "\$@"
25722 fi
25723
25724 _ACEOF
25725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25726 exec 5>>config.log
25727 {
25728   echo
25729   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25730 ## Running $as_me. ##
25731 _ASBOX
25732   $as_echo "$ac_log"
25733 } >&5
25734
25735 _ACEOF
25736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25737 #
25738 # INIT-COMMANDS
25739 #
25740
25741 srcdir="$srcdir"
25742 host="$host"
25743 target="$target"
25744 with_multisubdir="$with_multisubdir"
25745 with_multisrctop="$with_multisrctop"
25746 with_target_subdir="$with_target_subdir"
25747 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25748 multi_basedir="$multi_basedir"
25749 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25750 CC="$CC"
25751 CXX="$CXX"
25752 GFORTRAN="$GFORTRAN"
25753 GCJ="$GCJ"
25754 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25755
25756
25757 # The HP-UX ksh and POSIX shell print the target directory to stdout
25758 # if CDPATH is set.
25759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25760
25761 sed_quote_subst='$sed_quote_subst'
25762 double_quote_subst='$double_quote_subst'
25763 delay_variable_subst='$delay_variable_subst'
25764 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25765 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25767 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25768 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25769 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25770 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25771 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25792 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25793 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25794 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25795 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25796 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25797 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25798 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25799 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25800 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25801 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25802 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25803 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25804 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25805 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25806 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25807 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25808 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25809 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25810 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25812 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"`'
25813 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25814 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25815 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25817 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25818 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25819 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25820 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25844 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25845 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25846 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25847 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25848 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25849 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25850 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25851 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25852 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25853 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25854 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25855 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25856 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25857 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25858 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25859 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25860 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25861 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25862 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25863 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25864 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25865 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25866 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25867 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25868 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25869 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25870 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25871 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25872 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25873 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25874 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25875 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25876 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25877 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25884 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25885 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25886 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25887 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25888 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25889 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25890 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25891 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25892 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25893 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25894 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25895 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25896 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25897 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25898 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25899 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25900 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25901 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25902 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25903 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25904 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25905 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25906 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25907 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25908 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25909 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25910 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25911 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25912 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25913 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25914 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25915 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25916 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25917 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25918 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25919 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25920 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25921 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25922 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25923 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25924 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25925 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25926 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25927 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25928 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25929 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25930 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25931 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25932 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25933 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25934 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25935 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25936 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25937 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25938 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25939 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25940 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25941 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25942 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25943 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25944 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25945 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25946 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25947 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25948 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25949 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25950 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25951 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25952 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25953 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25954 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25955 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25956 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25957 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25958 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25959 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25960 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25961 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25962 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25963 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25964 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25965 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25966 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25967 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25968 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25969 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25970 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25971 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25972 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25973 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25974 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25975 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25976 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25977 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25978 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25979 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25980 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25981 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25982 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25983 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25984 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25985 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25986 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25987 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25988
25989 LTCC='$LTCC'
25990 LTCFLAGS='$LTCFLAGS'
25991 compiler='$compiler_DEFAULT'
25992
25993 # A function that is used when there is no print builtin or printf.
25994 func_fallback_echo ()
25995 {
25996   eval 'cat <<_LTECHO_EOF
25997 \$1
25998 _LTECHO_EOF'
25999 }
26000
26001 # Quote evaled strings.
26002 for var in SHELL \
26003 ECHO \
26004 SED \
26005 GREP \
26006 EGREP \
26007 FGREP \
26008 LD \
26009 NM \
26010 LN_S \
26011 lt_SP2NL \
26012 lt_NL2SP \
26013 reload_flag \
26014 OBJDUMP \
26015 deplibs_check_method \
26016 file_magic_cmd \
26017 AR \
26018 AR_FLAGS \
26019 STRIP \
26020 RANLIB \
26021 CC \
26022 CFLAGS \
26023 compiler \
26024 lt_cv_sys_global_symbol_pipe \
26025 lt_cv_sys_global_symbol_to_cdecl \
26026 lt_cv_sys_global_symbol_to_c_name_address \
26027 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26028 lt_prog_compiler_no_builtin_flag \
26029 lt_prog_compiler_wl \
26030 lt_prog_compiler_pic \
26031 lt_prog_compiler_static \
26032 lt_cv_prog_compiler_c_o \
26033 need_locks \
26034 DSYMUTIL \
26035 NMEDIT \
26036 LIPO \
26037 OTOOL \
26038 OTOOL64 \
26039 shrext_cmds \
26040 export_dynamic_flag_spec \
26041 whole_archive_flag_spec \
26042 compiler_needs_object \
26043 with_gnu_ld \
26044 allow_undefined_flag \
26045 no_undefined_flag \
26046 hardcode_libdir_flag_spec \
26047 hardcode_libdir_flag_spec_ld \
26048 hardcode_libdir_separator \
26049 fix_srcfile_path \
26050 exclude_expsyms \
26051 include_expsyms \
26052 file_list_spec \
26053 variables_saved_for_relink \
26054 libname_spec \
26055 library_names_spec \
26056 soname_spec \
26057 install_override_mode \
26058 finish_eval \
26059 old_striplib \
26060 striplib \
26061 compiler_lib_search_dirs \
26062 predep_objects \
26063 postdep_objects \
26064 predeps \
26065 postdeps \
26066 compiler_lib_search_path \
26067 LD_CXX \
26068 LD_GCJ \
26069 reload_flag_CXX \
26070 reload_flag_GCJ \
26071 compiler_CXX \
26072 compiler_GCJ \
26073 lt_prog_compiler_no_builtin_flag_CXX \
26074 lt_prog_compiler_no_builtin_flag_GCJ \
26075 lt_prog_compiler_wl_CXX \
26076 lt_prog_compiler_wl_GCJ \
26077 lt_prog_compiler_pic_CXX \
26078 lt_prog_compiler_pic_GCJ \
26079 lt_prog_compiler_static_CXX \
26080 lt_prog_compiler_static_GCJ \
26081 lt_cv_prog_compiler_c_o_CXX \
26082 lt_cv_prog_compiler_c_o_GCJ \
26083 export_dynamic_flag_spec_CXX \
26084 export_dynamic_flag_spec_GCJ \
26085 whole_archive_flag_spec_CXX \
26086 whole_archive_flag_spec_GCJ \
26087 compiler_needs_object_CXX \
26088 compiler_needs_object_GCJ \
26089 with_gnu_ld_CXX \
26090 with_gnu_ld_GCJ \
26091 allow_undefined_flag_CXX \
26092 allow_undefined_flag_GCJ \
26093 no_undefined_flag_CXX \
26094 no_undefined_flag_GCJ \
26095 hardcode_libdir_flag_spec_CXX \
26096 hardcode_libdir_flag_spec_GCJ \
26097 hardcode_libdir_flag_spec_ld_CXX \
26098 hardcode_libdir_flag_spec_ld_GCJ \
26099 hardcode_libdir_separator_CXX \
26100 hardcode_libdir_separator_GCJ \
26101 fix_srcfile_path_CXX \
26102 fix_srcfile_path_GCJ \
26103 exclude_expsyms_CXX \
26104 exclude_expsyms_GCJ \
26105 include_expsyms_CXX \
26106 include_expsyms_GCJ \
26107 file_list_spec_CXX \
26108 file_list_spec_GCJ \
26109 compiler_lib_search_dirs_CXX \
26110 compiler_lib_search_dirs_GCJ \
26111 predep_objects_CXX \
26112 predep_objects_GCJ \
26113 postdep_objects_CXX \
26114 postdep_objects_GCJ \
26115 predeps_CXX \
26116 predeps_GCJ \
26117 postdeps_CXX \
26118 postdeps_GCJ \
26119 compiler_lib_search_path_CXX \
26120 compiler_lib_search_path_GCJ; do
26121     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26122     *[\\\\\\\`\\"\\\$]*)
26123       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26124       ;;
26125     *)
26126       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26127       ;;
26128     esac
26129 done
26130
26131 # Double-quote double-evaled strings.
26132 for var in reload_cmds \
26133 old_postinstall_cmds \
26134 old_postuninstall_cmds \
26135 old_archive_cmds \
26136 extract_expsyms_cmds \
26137 old_archive_from_new_cmds \
26138 old_archive_from_expsyms_cmds \
26139 archive_cmds \
26140 archive_expsym_cmds \
26141 module_cmds \
26142 module_expsym_cmds \
26143 export_symbols_cmds \
26144 prelink_cmds \
26145 postinstall_cmds \
26146 postuninstall_cmds \
26147 finish_cmds \
26148 sys_lib_search_path_spec \
26149 sys_lib_dlsearch_path_spec \
26150 reload_cmds_CXX \
26151 reload_cmds_GCJ \
26152 old_archive_cmds_CXX \
26153 old_archive_cmds_GCJ \
26154 old_archive_from_new_cmds_CXX \
26155 old_archive_from_new_cmds_GCJ \
26156 old_archive_from_expsyms_cmds_CXX \
26157 old_archive_from_expsyms_cmds_GCJ \
26158 archive_cmds_CXX \
26159 archive_cmds_GCJ \
26160 archive_expsym_cmds_CXX \
26161 archive_expsym_cmds_GCJ \
26162 module_cmds_CXX \
26163 module_cmds_GCJ \
26164 module_expsym_cmds_CXX \
26165 module_expsym_cmds_GCJ \
26166 export_symbols_cmds_CXX \
26167 export_symbols_cmds_GCJ \
26168 prelink_cmds_CXX \
26169 prelink_cmds_GCJ; do
26170     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26171     *[\\\\\\\`\\"\\\$]*)
26172       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26173       ;;
26174     *)
26175       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26176       ;;
26177     esac
26178 done
26179
26180 ac_aux_dir='$ac_aux_dir'
26181 xsi_shell='$xsi_shell'
26182 lt_shell_append='$lt_shell_append'
26183
26184 # See if we are running on zsh, and set the options which allow our
26185 # commands through without removal of \ escapes INIT.
26186 if test -n "\${ZSH_VERSION+set}" ; then
26187    setopt NO_GLOB_SUBST
26188 fi
26189
26190
26191     PACKAGE='$PACKAGE'
26192     VERSION='$VERSION'
26193     TIMESTAMP='$TIMESTAMP'
26194     RM='$RM'
26195     ofile='$ofile'
26196
26197
26198
26199
26200
26201
26202
26203
26204 _ACEOF
26205
26206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26207
26208 # Handling of arguments.
26209 for ac_config_target in $ac_config_targets
26210 do
26211   case $ac_config_target in
26212     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26213     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26214     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26215     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26216     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26217     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26218     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26219     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26220     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26221     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26222     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26223     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26224     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26225     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26226     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26227     "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" ;;
26228     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26229     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26230     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26231     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26232     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26233     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26234     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26235     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26236     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26237     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26238     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26239     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26240     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26241     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26242     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26243     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26244     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26245     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26246     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26247     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26248
26249   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26250   esac
26251 done
26252
26253
26254 # If the user did not use the arguments to specify the items to instantiate,
26255 # then the envvar interface is used.  Set only those that are not.
26256 # We use the long form for the default assignment because of an extremely
26257 # bizarre bug on SunOS 4.1.3.
26258 if $ac_need_defaults; then
26259   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26260   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26261   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26262   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26263 fi
26264
26265 # Have a temporary directory for convenience.  Make it in the build tree
26266 # simply because there is no reason against having it here, and in addition,
26267 # creating and moving files from /tmp can sometimes cause problems.
26268 # Hook for its removal unless debugging.
26269 # Note that there is a small window in which the directory will not be cleaned:
26270 # after its creation but before its name has been assigned to `$tmp'.
26271 $debug ||
26272 {
26273   tmp=
26274   trap 'exit_status=$?
26275   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26276 ' 0
26277   trap 'as_fn_exit 1' 1 2 13 15
26278 }
26279 # Create a (secure) tmp directory for tmp files.
26280
26281 {
26282   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26283   test -n "$tmp" && test -d "$tmp"
26284 }  ||
26285 {
26286   tmp=./conf$$-$RANDOM
26287   (umask 077 && mkdir "$tmp")
26288 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26289
26290 # Set up the scripts for CONFIG_FILES section.
26291 # No need to generate them if there are no CONFIG_FILES.
26292 # This happens for instance with `./config.status config.h'.
26293 if test -n "$CONFIG_FILES"; then
26294
26295
26296 ac_cr=`echo X | tr X '\015'`
26297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26298 # But we know of no other shell where ac_cr would be empty at this
26299 # point, so we can use a bashism as a fallback.
26300 if test "x$ac_cr" = x; then
26301   eval ac_cr=\$\'\\r\'
26302 fi
26303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26305   ac_cs_awk_cr='\r'
26306 else
26307   ac_cs_awk_cr=$ac_cr
26308 fi
26309
26310 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26311 _ACEOF
26312
26313
26314 {
26315   echo "cat >conf$$subs.awk <<_ACEOF" &&
26316   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26317   echo "_ACEOF"
26318 } >conf$$subs.sh ||
26319   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26321 ac_delim='%!_!# '
26322 for ac_last_try in false false false false false :; do
26323   . ./conf$$subs.sh ||
26324     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26325
26326   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26327   if test $ac_delim_n = $ac_delim_num; then
26328     break
26329   elif $ac_last_try; then
26330     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26331   else
26332     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26333   fi
26334 done
26335 rm -f conf$$subs.sh
26336
26337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26338 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26339 _ACEOF
26340 sed -n '
26341 h
26342 s/^/S["/; s/!.*/"]=/
26343 p
26344 g
26345 s/^[^!]*!//
26346 :repl
26347 t repl
26348 s/'"$ac_delim"'$//
26349 t delim
26350 :nl
26351 h
26352 s/\(.\{148\}\).*/\1/
26353 t more1
26354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26355 p
26356 n
26357 b repl
26358 :more1
26359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26360 p
26361 g
26362 s/.\{148\}//
26363 t nl
26364 :delim
26365 h
26366 s/\(.\{148\}\).*/\1/
26367 t more2
26368 s/["\\]/\\&/g; s/^/"/; s/$/"/
26369 p
26370 b
26371 :more2
26372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26373 p
26374 g
26375 s/.\{148\}//
26376 t delim
26377 ' <conf$$subs.awk | sed '
26378 /^[^""]/{
26379   N
26380   s/\n//
26381 }
26382 ' >>$CONFIG_STATUS || ac_write_fail=1
26383 rm -f conf$$subs.awk
26384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26385 _ACAWK
26386 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26387   for (key in S) S_is_set[key] = 1
26388   FS = "\a"
26389
26390 }
26391 {
26392   line = $ 0
26393   nfields = split(line, field, "@")
26394   substed = 0
26395   len = length(field[1])
26396   for (i = 2; i < nfields; i++) {
26397     key = field[i]
26398     keylen = length(key)
26399     if (S_is_set[key]) {
26400       value = S[key]
26401       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26402       len += length(value) + length(field[++i])
26403       substed = 1
26404     } else
26405       len += 1 + keylen
26406   }
26407
26408   print line
26409 }
26410
26411 _ACAWK
26412 _ACEOF
26413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26415   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26416 else
26417   cat
26418 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26419   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26420 _ACEOF
26421
26422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26424 # trailing colons and then remove the whole line if VPATH becomes empty
26425 # (actually we leave an empty line to preserve line numbers).
26426 if test "x$srcdir" = x.; then
26427   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26428 s/:*\$(srcdir):*/:/
26429 s/:*\${srcdir}:*/:/
26430 s/:*@srcdir@:*/:/
26431 s/^\([^=]*=[     ]*\):*/\1/
26432 s/:*$//
26433 s/^[^=]*=[       ]*$//
26434 }'
26435 fi
26436
26437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26438 fi # test -n "$CONFIG_FILES"
26439
26440 # Set up the scripts for CONFIG_HEADERS section.
26441 # No need to generate them if there are no CONFIG_HEADERS.
26442 # This happens for instance with `./config.status Makefile'.
26443 if test -n "$CONFIG_HEADERS"; then
26444 cat >"$tmp/defines.awk" <<\_ACAWK ||
26445 BEGIN {
26446 _ACEOF
26447
26448 # Transform confdefs.h into an awk script `defines.awk', embedded as
26449 # here-document in config.status, that substitutes the proper values into
26450 # config.h.in to produce config.h.
26451
26452 # Create a delimiter string that does not exist in confdefs.h, to ease
26453 # handling of long lines.
26454 ac_delim='%!_!# '
26455 for ac_last_try in false false :; do
26456   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26457   if test -z "$ac_t"; then
26458     break
26459   elif $ac_last_try; then
26460     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26461   else
26462     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26463   fi
26464 done
26465
26466 # For the awk script, D is an array of macro values keyed by name,
26467 # likewise P contains macro parameters if any.  Preserve backslash
26468 # newline sequences.
26469
26470 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26471 sed -n '
26472 s/.\{148\}/&'"$ac_delim"'/g
26473 t rset
26474 :rset
26475 s/^[     ]*#[    ]*define[       ][      ]*/ /
26476 t def
26477 d
26478 :def
26479 s/\\$//
26480 t bsnl
26481 s/["\\]/\\&/g
26482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26483 D["\1"]=" \3"/p
26484 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26485 d
26486 :bsnl
26487 s/["\\]/\\&/g
26488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26489 D["\1"]=" \3\\\\\\n"\\/p
26490 t cont
26491 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26492 t cont
26493 d
26494 :cont
26495 n
26496 s/.\{148\}/&'"$ac_delim"'/g
26497 t clear
26498 :clear
26499 s/\\$//
26500 t bsnlc
26501 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26502 d
26503 :bsnlc
26504 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26505 b cont
26506 ' <confdefs.h | sed '
26507 s/'"$ac_delim"'/"\\\
26508 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26509
26510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26511   for (key in D) D_is_set[key] = 1
26512   FS = "\a"
26513 }
26514 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26515   line = \$ 0
26516   split(line, arg, " ")
26517   if (arg[1] == "#") {
26518     defundef = arg[2]
26519     mac1 = arg[3]
26520   } else {
26521     defundef = substr(arg[1], 2)
26522     mac1 = arg[2]
26523   }
26524   split(mac1, mac2, "(") #)
26525   macro = mac2[1]
26526   prefix = substr(line, 1, index(line, defundef) - 1)
26527   if (D_is_set[macro]) {
26528     # Preserve the white space surrounding the "#".
26529     print prefix "define", macro P[macro] D[macro]
26530     next
26531   } else {
26532     # Replace #undef with comments.  This is necessary, for example,
26533     # in the case of _POSIX_SOURCE, which is predefined and required
26534     # on some systems where configure will not decide to define it.
26535     if (defundef == "undef") {
26536       print "/*", prefix defundef, macro, "*/"
26537       next
26538     }
26539   }
26540 }
26541 { print }
26542 _ACAWK
26543 _ACEOF
26544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26545   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26546 fi # test -n "$CONFIG_HEADERS"
26547
26548
26549 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26550 shift
26551 for ac_tag
26552 do
26553   case $ac_tag in
26554   :[FHLC]) ac_mode=$ac_tag; continue;;
26555   esac
26556   case $ac_mode$ac_tag in
26557   :[FHL]*:*);;
26558   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26559   :[FH]-) ac_tag=-:-;;
26560   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26561   esac
26562   ac_save_IFS=$IFS
26563   IFS=:
26564   set x $ac_tag
26565   IFS=$ac_save_IFS
26566   shift
26567   ac_file=$1
26568   shift
26569
26570   case $ac_mode in
26571   :L) ac_source=$1;;
26572   :[FH])
26573     ac_file_inputs=
26574     for ac_f
26575     do
26576       case $ac_f in
26577       -) ac_f="$tmp/stdin";;
26578       *) # Look for the file first in the build tree, then in the source tree
26579          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26580          # because $ac_f cannot contain `:'.
26581          test -f "$ac_f" ||
26582            case $ac_f in
26583            [\\/$]*) false;;
26584            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26585            esac ||
26586            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26587       esac
26588       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26589       as_fn_append ac_file_inputs " '$ac_f'"
26590     done
26591
26592     # Let's still pretend it is `configure' which instantiates (i.e., don't
26593     # use $as_me), people would be surprised to read:
26594     #    /* config.h.  Generated by config.status.  */
26595     configure_input='Generated from '`
26596           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26597         `' by configure.'
26598     if test x"$ac_file" != x-; then
26599       configure_input="$ac_file.  $configure_input"
26600       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26601 $as_echo "$as_me: creating $ac_file" >&6;}
26602     fi
26603     # Neutralize special characters interpreted by sed in replacement strings.
26604     case $configure_input in #(
26605     *\&* | *\|* | *\\* )
26606        ac_sed_conf_input=`$as_echo "$configure_input" |
26607        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26608     *) ac_sed_conf_input=$configure_input;;
26609     esac
26610
26611     case $ac_tag in
26612     *:-:* | *:-) cat >"$tmp/stdin" \
26613       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26614     esac
26615     ;;
26616   esac
26617
26618   ac_dir=`$as_dirname -- "$ac_file" ||
26619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26620          X"$ac_file" : 'X\(//\)[^/]' \| \
26621          X"$ac_file" : 'X\(//\)$' \| \
26622          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26623 $as_echo X"$ac_file" |
26624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26625             s//\1/
26626             q
26627           }
26628           /^X\(\/\/\)[^/].*/{
26629             s//\1/
26630             q
26631           }
26632           /^X\(\/\/\)$/{
26633             s//\1/
26634             q
26635           }
26636           /^X\(\/\).*/{
26637             s//\1/
26638             q
26639           }
26640           s/.*/./; q'`
26641   as_dir="$ac_dir"; as_fn_mkdir_p
26642   ac_builddir=.
26643
26644 case "$ac_dir" in
26645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26646 *)
26647   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26648   # A ".." for each directory in $ac_dir_suffix.
26649   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26650   case $ac_top_builddir_sub in
26651   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26652   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26653   esac ;;
26654 esac
26655 ac_abs_top_builddir=$ac_pwd
26656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26657 # for backward compatibility:
26658 ac_top_builddir=$ac_top_build_prefix
26659
26660 case $srcdir in
26661   .)  # We are building in place.
26662     ac_srcdir=.
26663     ac_top_srcdir=$ac_top_builddir_sub
26664     ac_abs_top_srcdir=$ac_pwd ;;
26665   [\\/]* | ?:[\\/]* )  # Absolute name.
26666     ac_srcdir=$srcdir$ac_dir_suffix;
26667     ac_top_srcdir=$srcdir
26668     ac_abs_top_srcdir=$srcdir ;;
26669   *) # Relative name.
26670     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26671     ac_top_srcdir=$ac_top_build_prefix$srcdir
26672     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26673 esac
26674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26675
26676
26677   case $ac_mode in
26678   :F)
26679   #
26680   # CONFIG_FILE
26681   #
26682
26683   case $INSTALL in
26684   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26685   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26686   esac
26687   ac_MKDIR_P=$MKDIR_P
26688   case $MKDIR_P in
26689   [\\/$]* | ?:[\\/]* ) ;;
26690   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26691   esac
26692 _ACEOF
26693
26694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26695 # If the template does not know about datarootdir, expand it.
26696 # FIXME: This hack should be removed a few years after 2.60.
26697 ac_datarootdir_hack=; ac_datarootdir_seen=
26698 ac_sed_dataroot='
26699 /datarootdir/ {
26700   p
26701   q
26702 }
26703 /@datadir@/p
26704 /@docdir@/p
26705 /@infodir@/p
26706 /@localedir@/p
26707 /@mandir@/p'
26708 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26709 *datarootdir*) ac_datarootdir_seen=yes;;
26710 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26711   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26712 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26713 _ACEOF
26714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26715   ac_datarootdir_hack='
26716   s&@datadir@&$datadir&g
26717   s&@docdir@&$docdir&g
26718   s&@infodir@&$infodir&g
26719   s&@localedir@&$localedir&g
26720   s&@mandir@&$mandir&g
26721   s&\\\${datarootdir}&$datarootdir&g' ;;
26722 esac
26723 _ACEOF
26724
26725 # Neutralize VPATH when `$srcdir' = `.'.
26726 # Shell code in configure.ac might set extrasub.
26727 # FIXME: do we really want to maintain this feature?
26728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26729 ac_sed_extra="$ac_vpsub
26730 $extrasub
26731 _ACEOF
26732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26733 :t
26734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26735 s|@configure_input@|$ac_sed_conf_input|;t t
26736 s&@top_builddir@&$ac_top_builddir_sub&;t t
26737 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26738 s&@srcdir@&$ac_srcdir&;t t
26739 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26740 s&@top_srcdir@&$ac_top_srcdir&;t t
26741 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26742 s&@builddir@&$ac_builddir&;t t
26743 s&@abs_builddir@&$ac_abs_builddir&;t t
26744 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26745 s&@INSTALL@&$ac_INSTALL&;t t
26746 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26747 $ac_datarootdir_hack
26748 "
26749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26750   || as_fn_error "could not create $ac_file" "$LINENO" 5
26751
26752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26753   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26754   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26755   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26756 which seems to be undefined.  Please make sure it is defined." >&5
26757 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26758 which seems to be undefined.  Please make sure it is defined." >&2;}
26759
26760   rm -f "$tmp/stdin"
26761   case $ac_file in
26762   -) cat "$tmp/out" && rm -f "$tmp/out";;
26763   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26764   esac \
26765   || as_fn_error "could not create $ac_file" "$LINENO" 5
26766  ;;
26767   :H)
26768   #
26769   # CONFIG_HEADER
26770   #
26771   if test x"$ac_file" != x-; then
26772     {
26773       $as_echo "/* $configure_input  */" \
26774       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26775     } >"$tmp/config.h" \
26776       || as_fn_error "could not create $ac_file" "$LINENO" 5
26777     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26778       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26779 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26780     else
26781       rm -f "$ac_file"
26782       mv "$tmp/config.h" "$ac_file" \
26783         || as_fn_error "could not create $ac_file" "$LINENO" 5
26784     fi
26785   else
26786     $as_echo "/* $configure_input  */" \
26787       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26788       || as_fn_error "could not create -" "$LINENO" 5
26789   fi
26790 # Compute "$ac_file"'s index in $config_headers.
26791 _am_arg="$ac_file"
26792 _am_stamp_count=1
26793 for _am_header in $config_headers :; do
26794   case $_am_header in
26795     $_am_arg | $_am_arg:* )
26796       break ;;
26797     * )
26798       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26799   esac
26800 done
26801 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26802 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26803          X"$_am_arg" : 'X\(//\)[^/]' \| \
26804          X"$_am_arg" : 'X\(//\)$' \| \
26805          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26806 $as_echo X"$_am_arg" |
26807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26808             s//\1/
26809             q
26810           }
26811           /^X\(\/\/\)[^/].*/{
26812             s//\1/
26813             q
26814           }
26815           /^X\(\/\/\)$/{
26816             s//\1/
26817             q
26818           }
26819           /^X\(\/\).*/{
26820             s//\1/
26821             q
26822           }
26823           s/.*/./; q'`/stamp-h$_am_stamp_count
26824  ;;
26825   :L)
26826   #
26827   # CONFIG_LINK
26828   #
26829
26830   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26831     :
26832   else
26833     # Prefer the file from the source tree if names are identical.
26834     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26835       ac_source=$srcdir/$ac_source
26836     fi
26837
26838     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26839 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26840
26841     if test ! -r "$ac_source"; then
26842       as_fn_error "$ac_source: file not found" "$LINENO" 5
26843     fi
26844     rm -f "$ac_file"
26845
26846     # Try a relative symlink, then a hard link, then a copy.
26847     case $srcdir in
26848     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26849         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26850     esac
26851     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26852       ln "$ac_source" "$ac_file" 2>/dev/null ||
26853       cp -p "$ac_source" "$ac_file" ||
26854       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26855   fi
26856  ;;
26857   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26858 $as_echo "$as_me: executing $ac_file commands" >&6;}
26859  ;;
26860   esac
26861
26862
26863   case $ac_file$ac_mode in
26864     "default-1":C)
26865 # Only add multilib support code if we just rebuilt the top-level
26866 # Makefile.
26867 case " $CONFIG_FILES " in
26868  *" Makefile "*)
26869    ac_file=Makefile . ${multi_basedir}/config-ml.in
26870    ;;
26871 esac ;;
26872     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26873   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26874   # are listed without --file.  Let's play safe and only enable the eval
26875   # if we detect the quoting.
26876   case $CONFIG_FILES in
26877   *\'*) eval set x "$CONFIG_FILES" ;;
26878   *)   set x $CONFIG_FILES ;;
26879   esac
26880   shift
26881   for mf
26882   do
26883     # Strip MF so we end up with the name of the file.
26884     mf=`echo "$mf" | sed -e 's/:.*$//'`
26885     # Check whether this is an Automake generated Makefile or not.
26886     # We used to match only the files named `Makefile.in', but
26887     # some people rename them; so instead we look at the file content.
26888     # Grep'ing the first line is not enough: some people post-process
26889     # each Makefile.in and add a new line on top of each file to say so.
26890     # Grep'ing the whole file is not good either: AIX grep has a line
26891     # limit of 2048, but all sed's we know have understand at least 4000.
26892     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26893       dirpart=`$as_dirname -- "$mf" ||
26894 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26895          X"$mf" : 'X\(//\)[^/]' \| \
26896          X"$mf" : 'X\(//\)$' \| \
26897          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26898 $as_echo X"$mf" |
26899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26900             s//\1/
26901             q
26902           }
26903           /^X\(\/\/\)[^/].*/{
26904             s//\1/
26905             q
26906           }
26907           /^X\(\/\/\)$/{
26908             s//\1/
26909             q
26910           }
26911           /^X\(\/\).*/{
26912             s//\1/
26913             q
26914           }
26915           s/.*/./; q'`
26916     else
26917       continue
26918     fi
26919     # Extract the definition of DEPDIR, am__include, and am__quote
26920     # from the Makefile without running `make'.
26921     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26922     test -z "$DEPDIR" && continue
26923     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26924     test -z "am__include" && continue
26925     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26926     # When using ansi2knr, U may be empty or an underscore; expand it
26927     U=`sed -n 's/^U = //p' < "$mf"`
26928     # Find all dependency output files, they are included files with
26929     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26930     # simplest approach to changing $(DEPDIR) to its actual value in the
26931     # expansion.
26932     for file in `sed -n "
26933       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26934          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26935       # Make sure the directory exists.
26936       test -f "$dirpart/$file" && continue
26937       fdir=`$as_dirname -- "$file" ||
26938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26939          X"$file" : 'X\(//\)[^/]' \| \
26940          X"$file" : 'X\(//\)$' \| \
26941          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26942 $as_echo X"$file" |
26943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26944             s//\1/
26945             q
26946           }
26947           /^X\(\/\/\)[^/].*/{
26948             s//\1/
26949             q
26950           }
26951           /^X\(\/\/\)$/{
26952             s//\1/
26953             q
26954           }
26955           /^X\(\/\).*/{
26956             s//\1/
26957             q
26958           }
26959           s/.*/./; q'`
26960       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26961       # echo "creating $dirpart/$file"
26962       echo '# dummy' > "$dirpart/$file"
26963     done
26964   done
26965 }
26966  ;;
26967     "libtool":C)
26968
26969     # See if we are running on zsh, and set the options which allow our
26970     # commands through without removal of \ escapes.
26971     if test -n "${ZSH_VERSION+set}" ; then
26972       setopt NO_GLOB_SUBST
26973     fi
26974
26975     cfgfile="${ofile}T"
26976     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26977     $RM "$cfgfile"
26978
26979     cat <<_LT_EOF >> "$cfgfile"
26980 #! $SHELL
26981
26982 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26983 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26984 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26985 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26986 #
26987 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26988 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26989 #   Written by Gordon Matzigkeit, 1996
26990 #
26991 #   This file is part of GNU Libtool.
26992 #
26993 # GNU Libtool is free software; you can redistribute it and/or
26994 # modify it under the terms of the GNU General Public License as
26995 # published by the Free Software Foundation; either version 2 of
26996 # the License, or (at your option) any later version.
26997 #
26998 # As a special exception to the GNU General Public License,
26999 # if you distribute this file as part of a program or library that
27000 # is built using GNU Libtool, you may include this file under the
27001 # same distribution terms that you use for the rest of that program.
27002 #
27003 # GNU Libtool is distributed in the hope that it will be useful,
27004 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27005 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27006 # GNU General Public License for more details.
27007 #
27008 # You should have received a copy of the GNU General Public License
27009 # along with GNU Libtool; see the file COPYING.  If not, a copy
27010 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27011 # obtained by writing to the Free Software Foundation, Inc.,
27012 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27013
27014
27015 # The names of the tagged configurations supported by this script.
27016 available_tags="CXX GCJ "
27017
27018 # ### BEGIN LIBTOOL CONFIG
27019
27020 # Which release of libtool.m4 was used?
27021 macro_version=$macro_version
27022 macro_revision=$macro_revision
27023
27024 # Whether or not to build shared libraries.
27025 build_libtool_libs=$enable_shared
27026
27027 # Whether or not to build static libraries.
27028 build_old_libs=$enable_static
27029
27030 # What type of objects to build.
27031 pic_mode=$pic_mode
27032
27033 # Whether or not to optimize for fast installation.
27034 fast_install=$enable_fast_install
27035
27036 # Shell to use when invoking shell scripts.
27037 SHELL=$lt_SHELL
27038
27039 # An echo program that protects backslashes.
27040 ECHO=$lt_ECHO
27041
27042 # The host system.
27043 host_alias=$host_alias
27044 host=$host
27045 host_os=$host_os
27046
27047 # The build system.
27048 build_alias=$build_alias
27049 build=$build
27050 build_os=$build_os
27051
27052 # A sed program that does not truncate output.
27053 SED=$lt_SED
27054
27055 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27056 Xsed="\$SED -e 1s/^X//"
27057
27058 # A grep program that handles long lines.
27059 GREP=$lt_GREP
27060
27061 # An ERE matcher.
27062 EGREP=$lt_EGREP
27063
27064 # A literal string matcher.
27065 FGREP=$lt_FGREP
27066
27067 # A BSD- or MS-compatible name lister.
27068 NM=$lt_NM
27069
27070 # Whether we need soft or hard links.
27071 LN_S=$lt_LN_S
27072
27073 # What is the maximum length of a command?
27074 max_cmd_len=$max_cmd_len
27075
27076 # Object file suffix (normally "o").
27077 objext=$ac_objext
27078
27079 # Executable file suffix (normally "").
27080 exeext=$exeext
27081
27082 # whether the shell understands "unset".
27083 lt_unset=$lt_unset
27084
27085 # turn spaces into newlines.
27086 SP2NL=$lt_lt_SP2NL
27087
27088 # turn newlines into spaces.
27089 NL2SP=$lt_lt_NL2SP
27090
27091 # An object symbol dumper.
27092 OBJDUMP=$lt_OBJDUMP
27093
27094 # Method to check whether dependent libraries are shared objects.
27095 deplibs_check_method=$lt_deplibs_check_method
27096
27097 # Command to use when deplibs_check_method == "file_magic".
27098 file_magic_cmd=$lt_file_magic_cmd
27099
27100 # The archiver.
27101 AR=$lt_AR
27102 AR_FLAGS=$lt_AR_FLAGS
27103
27104 # A symbol stripping program.
27105 STRIP=$lt_STRIP
27106
27107 # Commands used to install an old-style archive.
27108 RANLIB=$lt_RANLIB
27109 old_postinstall_cmds=$lt_old_postinstall_cmds
27110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27111
27112 # Whether to use a lock for old archive extraction.
27113 lock_old_archive_extraction=$lock_old_archive_extraction
27114
27115 # A C compiler.
27116 LTCC=$lt_CC
27117
27118 # LTCC compiler flags.
27119 LTCFLAGS=$lt_CFLAGS
27120
27121 # Take the output of nm and produce a listing of raw symbols and C names.
27122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27123
27124 # Transform the output of nm in a proper C declaration.
27125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27126
27127 # Transform the output of nm in a C name address pair.
27128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27129
27130 # Transform the output of nm in a C name address pair when lib prefix is needed.
27131 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27132
27133 # The name of the directory that contains temporary libtool files.
27134 objdir=$objdir
27135
27136 # Used to examine libraries when file_magic_cmd begins with "file".
27137 MAGIC_CMD=$MAGIC_CMD
27138
27139 # Must we lock files when doing compilation?
27140 need_locks=$lt_need_locks
27141
27142 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27143 DSYMUTIL=$lt_DSYMUTIL
27144
27145 # Tool to change global to local symbols on Mac OS X.
27146 NMEDIT=$lt_NMEDIT
27147
27148 # Tool to manipulate fat objects and archives on Mac OS X.
27149 LIPO=$lt_LIPO
27150
27151 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27152 OTOOL=$lt_OTOOL
27153
27154 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27155 OTOOL64=$lt_OTOOL64
27156
27157 # Old archive suffix (normally "a").
27158 libext=$libext
27159
27160 # Shared library suffix (normally ".so").
27161 shrext_cmds=$lt_shrext_cmds
27162
27163 # The commands to extract the exported symbol list from a shared archive.
27164 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27165
27166 # Variables whose values should be saved in libtool wrapper scripts and
27167 # restored at link time.
27168 variables_saved_for_relink=$lt_variables_saved_for_relink
27169
27170 # Do we need the "lib" prefix for modules?
27171 need_lib_prefix=$need_lib_prefix
27172
27173 # Do we need a version for libraries?
27174 need_version=$need_version
27175
27176 # Library versioning type.
27177 version_type=$version_type
27178
27179 # Shared library runtime path variable.
27180 runpath_var=$runpath_var
27181
27182 # Shared library path variable.
27183 shlibpath_var=$shlibpath_var
27184
27185 # Is shlibpath searched before the hard-coded library search path?
27186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27187
27188 # Format of library name prefix.
27189 libname_spec=$lt_libname_spec
27190
27191 # List of archive names.  First name is the real one, the rest are links.
27192 # The last name is the one that the linker finds with -lNAME
27193 library_names_spec=$lt_library_names_spec
27194
27195 # The coded name of the library, if different from the real name.
27196 soname_spec=$lt_soname_spec
27197
27198 # Permission mode override for installation of shared libraries.
27199 install_override_mode=$lt_install_override_mode
27200
27201 # Command to use after installation of a shared archive.
27202 postinstall_cmds=$lt_postinstall_cmds
27203
27204 # Command to use after uninstallation of a shared archive.
27205 postuninstall_cmds=$lt_postuninstall_cmds
27206
27207 # Commands used to finish a libtool library installation in a directory.
27208 finish_cmds=$lt_finish_cmds
27209
27210 # As "finish_cmds", except a single script fragment to be evaled but
27211 # not shown.
27212 finish_eval=$lt_finish_eval
27213
27214 # Whether we should hardcode library paths into libraries.
27215 hardcode_into_libs=$hardcode_into_libs
27216
27217 # Compile-time system search path for libraries.
27218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27219
27220 # Run-time system search path for libraries.
27221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27222
27223 # Whether dlopen is supported.
27224 dlopen_support=$enable_dlopen
27225
27226 # Whether dlopen of programs is supported.
27227 dlopen_self=$enable_dlopen_self
27228
27229 # Whether dlopen of statically linked programs is supported.
27230 dlopen_self_static=$enable_dlopen_self_static
27231
27232 # Commands to strip libraries.
27233 old_striplib=$lt_old_striplib
27234 striplib=$lt_striplib
27235
27236
27237 # The linker used to build libraries.
27238 LD=$lt_LD
27239
27240 # How to create reloadable object files.
27241 reload_flag=$lt_reload_flag
27242 reload_cmds=$lt_reload_cmds
27243
27244 # Commands used to build an old-style archive.
27245 old_archive_cmds=$lt_old_archive_cmds
27246
27247 # A language specific compiler.
27248 CC=$lt_compiler
27249
27250 # Is the compiler the GNU compiler?
27251 with_gcc=$GCC
27252
27253 # Compiler flag to turn off builtin functions.
27254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27255
27256 # How to pass a linker flag through the compiler.
27257 wl=$lt_lt_prog_compiler_wl
27258
27259 # Additional compiler flags for building library objects.
27260 pic_flag=$lt_lt_prog_compiler_pic
27261
27262 # Compiler flag to prevent dynamic linking.
27263 link_static_flag=$lt_lt_prog_compiler_static
27264
27265 # Does compiler simultaneously support -c and -o options?
27266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27267
27268 # Whether or not to add -lc for building shared libraries.
27269 build_libtool_need_lc=$archive_cmds_need_lc
27270
27271 # Whether or not to disallow shared libs when runtime libs are static.
27272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27273
27274 # Compiler flag to allow reflexive dlopens.
27275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27276
27277 # Compiler flag to generate shared objects directly from archives.
27278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27279
27280 # Whether the compiler copes with passing no objects directly.
27281 compiler_needs_object=$lt_compiler_needs_object
27282
27283 # Create an old-style archive from a shared archive.
27284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27285
27286 # Create a temporary old-style archive to link instead of a shared archive.
27287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27288
27289 # Commands used to build a shared archive.
27290 archive_cmds=$lt_archive_cmds
27291 archive_expsym_cmds=$lt_archive_expsym_cmds
27292
27293 # Commands used to build a loadable module if different from building
27294 # a shared archive.
27295 module_cmds=$lt_module_cmds
27296 module_expsym_cmds=$lt_module_expsym_cmds
27297
27298 # Whether we are building with GNU ld or not.
27299 with_gnu_ld=$lt_with_gnu_ld
27300
27301 # Flag that allows shared libraries with undefined symbols to be built.
27302 allow_undefined_flag=$lt_allow_undefined_flag
27303
27304 # Flag that enforces no undefined symbols.
27305 no_undefined_flag=$lt_no_undefined_flag
27306
27307 # Flag to hardcode \$libdir into a binary during linking.
27308 # This must work even if \$libdir does not exist
27309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27310
27311 # If ld is used when linking, flag to hardcode \$libdir into a binary
27312 # during linking.  This must work even if \$libdir does not exist.
27313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27314
27315 # Whether we need a single "-rpath" flag with a separated argument.
27316 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27317
27318 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27319 # DIR into the resulting binary.
27320 hardcode_direct=$hardcode_direct
27321
27322 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27323 # DIR into the resulting binary and the resulting library dependency is
27324 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27325 # library is relocated.
27326 hardcode_direct_absolute=$hardcode_direct_absolute
27327
27328 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27329 # into the resulting binary.
27330 hardcode_minus_L=$hardcode_minus_L
27331
27332 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27333 # into the resulting binary.
27334 hardcode_shlibpath_var=$hardcode_shlibpath_var
27335
27336 # Set to "yes" if building a shared library automatically hardcodes DIR
27337 # into the library and all subsequent libraries and executables linked
27338 # against it.
27339 hardcode_automatic=$hardcode_automatic
27340
27341 # Set to yes if linker adds runtime paths of dependent libraries
27342 # to runtime path list.
27343 inherit_rpath=$inherit_rpath
27344
27345 # Whether libtool must link a program against all its dependency libraries.
27346 link_all_deplibs=$link_all_deplibs
27347
27348 # Fix the shell variable \$srcfile for the compiler.
27349 fix_srcfile_path=$lt_fix_srcfile_path
27350
27351 # Set to "yes" if exported symbols are required.
27352 always_export_symbols=$always_export_symbols
27353
27354 # The commands to list exported symbols.
27355 export_symbols_cmds=$lt_export_symbols_cmds
27356
27357 # Symbols that should not be listed in the preloaded symbols.
27358 exclude_expsyms=$lt_exclude_expsyms
27359
27360 # Symbols that must always be exported.
27361 include_expsyms=$lt_include_expsyms
27362
27363 # Commands necessary for linking programs (against libraries) with templates.
27364 prelink_cmds=$lt_prelink_cmds
27365
27366 # Specify filename containing input files.
27367 file_list_spec=$lt_file_list_spec
27368
27369 # How to hardcode a shared library path into an executable.
27370 hardcode_action=$hardcode_action
27371
27372 # The directories searched by this compiler when creating a shared library.
27373 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27374
27375 # Dependencies to place before and after the objects being linked to
27376 # create a shared library.
27377 predep_objects=$lt_predep_objects
27378 postdep_objects=$lt_postdep_objects
27379 predeps=$lt_predeps
27380 postdeps=$lt_postdeps
27381
27382 # The library search path used internally by the compiler when linking
27383 # a shared library.
27384 compiler_lib_search_path=$lt_compiler_lib_search_path
27385
27386 # ### END LIBTOOL CONFIG
27387
27388 _LT_EOF
27389
27390   case $host_os in
27391   aix3*)
27392     cat <<\_LT_EOF >> "$cfgfile"
27393 # AIX sometimes has problems with the GCC collect2 program.  For some
27394 # reason, if we set the COLLECT_NAMES environment variable, the problems
27395 # vanish in a puff of smoke.
27396 if test "X${COLLECT_NAMES+set}" != Xset; then
27397   COLLECT_NAMES=
27398   export COLLECT_NAMES
27399 fi
27400 _LT_EOF
27401     ;;
27402   esac
27403
27404
27405 ltmain="$ac_aux_dir/ltmain.sh"
27406
27407
27408   # We use sed instead of cat because bash on DJGPP gets confused if
27409   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27410   # text mode, it properly converts lines to CR/LF.  This bash problem
27411   # is reportedly fixed, but why not run on old versions too?
27412   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27413     || (rm -f "$cfgfile"; exit 1)
27414
27415   case $xsi_shell in
27416   yes)
27417     cat << \_LT_EOF >> "$cfgfile"
27418
27419 # func_dirname file append nondir_replacement
27420 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27421 # otherwise set result to NONDIR_REPLACEMENT.
27422 func_dirname ()
27423 {
27424   case ${1} in
27425     */*) func_dirname_result="${1%/*}${2}" ;;
27426     *  ) func_dirname_result="${3}" ;;
27427   esac
27428 }
27429
27430 # func_basename file
27431 func_basename ()
27432 {
27433   func_basename_result="${1##*/}"
27434 }
27435
27436 # func_dirname_and_basename file append nondir_replacement
27437 # perform func_basename and func_dirname in a single function
27438 # call:
27439 #   dirname:  Compute the dirname of FILE.  If nonempty,
27440 #             add APPEND to the result, otherwise set result
27441 #             to NONDIR_REPLACEMENT.
27442 #             value returned in "$func_dirname_result"
27443 #   basename: Compute filename of FILE.
27444 #             value retuned in "$func_basename_result"
27445 # Implementation must be kept synchronized with func_dirname
27446 # and func_basename. For efficiency, we do not delegate to
27447 # those functions but instead duplicate the functionality here.
27448 func_dirname_and_basename ()
27449 {
27450   case ${1} in
27451     */*) func_dirname_result="${1%/*}${2}" ;;
27452     *  ) func_dirname_result="${3}" ;;
27453   esac
27454   func_basename_result="${1##*/}"
27455 }
27456
27457 # func_stripname prefix suffix name
27458 # strip PREFIX and SUFFIX off of NAME.
27459 # PREFIX and SUFFIX must not contain globbing or regex special
27460 # characters, hashes, percent signs, but SUFFIX may contain a leading
27461 # dot (in which case that matches only a dot).
27462 func_stripname ()
27463 {
27464   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27465   # positional parameters, so assign one to ordinary parameter first.
27466   func_stripname_result=${3}
27467   func_stripname_result=${func_stripname_result#"${1}"}
27468   func_stripname_result=${func_stripname_result%"${2}"}
27469 }
27470
27471 # func_opt_split
27472 func_opt_split ()
27473 {
27474   func_opt_split_opt=${1%%=*}
27475   func_opt_split_arg=${1#*=}
27476 }
27477
27478 # func_lo2o object
27479 func_lo2o ()
27480 {
27481   case ${1} in
27482     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27483     *)    func_lo2o_result=${1} ;;
27484   esac
27485 }
27486
27487 # func_xform libobj-or-source
27488 func_xform ()
27489 {
27490   func_xform_result=${1%.*}.lo
27491 }
27492
27493 # func_arith arithmetic-term...
27494 func_arith ()
27495 {
27496   func_arith_result=$(( $* ))
27497 }
27498
27499 # func_len string
27500 # STRING may not start with a hyphen.
27501 func_len ()
27502 {
27503   func_len_result=${#1}
27504 }
27505
27506 _LT_EOF
27507     ;;
27508   *) # Bourne compatible functions.
27509     cat << \_LT_EOF >> "$cfgfile"
27510
27511 # func_dirname file append nondir_replacement
27512 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27513 # otherwise set result to NONDIR_REPLACEMENT.
27514 func_dirname ()
27515 {
27516   # Extract subdirectory from the argument.
27517   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27518   if test "X$func_dirname_result" = "X${1}"; then
27519     func_dirname_result="${3}"
27520   else
27521     func_dirname_result="$func_dirname_result${2}"
27522   fi
27523 }
27524
27525 # func_basename file
27526 func_basename ()
27527 {
27528   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27529 }
27530
27531
27532 # func_stripname prefix suffix name
27533 # strip PREFIX and SUFFIX off of NAME.
27534 # PREFIX and SUFFIX must not contain globbing or regex special
27535 # characters, hashes, percent signs, but SUFFIX may contain a leading
27536 # dot (in which case that matches only a dot).
27537 # func_strip_suffix prefix name
27538 func_stripname ()
27539 {
27540   case ${2} in
27541     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27542     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27543   esac
27544 }
27545
27546 # sed scripts:
27547 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27548 my_sed_long_arg='1s/^-[^=]*=//'
27549
27550 # func_opt_split
27551 func_opt_split ()
27552 {
27553   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27554   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27555 }
27556
27557 # func_lo2o object
27558 func_lo2o ()
27559 {
27560   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27561 }
27562
27563 # func_xform libobj-or-source
27564 func_xform ()
27565 {
27566   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27567 }
27568
27569 # func_arith arithmetic-term...
27570 func_arith ()
27571 {
27572   func_arith_result=`expr "$@"`
27573 }
27574
27575 # func_len string
27576 # STRING may not start with a hyphen.
27577 func_len ()
27578 {
27579   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27580 }
27581
27582 _LT_EOF
27583 esac
27584
27585 case $lt_shell_append in
27586   yes)
27587     cat << \_LT_EOF >> "$cfgfile"
27588
27589 # func_append var value
27590 # Append VALUE to the end of shell variable VAR.
27591 func_append ()
27592 {
27593   eval "$1+=\$2"
27594 }
27595 _LT_EOF
27596     ;;
27597   *)
27598     cat << \_LT_EOF >> "$cfgfile"
27599
27600 # func_append var value
27601 # Append VALUE to the end of shell variable VAR.
27602 func_append ()
27603 {
27604   eval "$1=\$$1\$2"
27605 }
27606
27607 _LT_EOF
27608     ;;
27609   esac
27610
27611
27612   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27613     || (rm -f "$cfgfile"; exit 1)
27614
27615   mv -f "$cfgfile" "$ofile" ||
27616     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27617   chmod +x "$ofile"
27618
27619
27620     cat <<_LT_EOF >> "$ofile"
27621
27622 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27623
27624 # The linker used to build libraries.
27625 LD=$lt_LD_CXX
27626
27627 # How to create reloadable object files.
27628 reload_flag=$lt_reload_flag_CXX
27629 reload_cmds=$lt_reload_cmds_CXX
27630
27631 # Commands used to build an old-style archive.
27632 old_archive_cmds=$lt_old_archive_cmds_CXX
27633
27634 # A language specific compiler.
27635 CC=$lt_compiler_CXX
27636
27637 # Is the compiler the GNU compiler?
27638 with_gcc=$GCC_CXX
27639
27640 # Compiler flag to turn off builtin functions.
27641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27642
27643 # How to pass a linker flag through the compiler.
27644 wl=$lt_lt_prog_compiler_wl_CXX
27645
27646 # Additional compiler flags for building library objects.
27647 pic_flag=$lt_lt_prog_compiler_pic_CXX
27648
27649 # Compiler flag to prevent dynamic linking.
27650 link_static_flag=$lt_lt_prog_compiler_static_CXX
27651
27652 # Does compiler simultaneously support -c and -o options?
27653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27654
27655 # Whether or not to add -lc for building shared libraries.
27656 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27657
27658 # Whether or not to disallow shared libs when runtime libs are static.
27659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27660
27661 # Compiler flag to allow reflexive dlopens.
27662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27663
27664 # Compiler flag to generate shared objects directly from archives.
27665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27666
27667 # Whether the compiler copes with passing no objects directly.
27668 compiler_needs_object=$lt_compiler_needs_object_CXX
27669
27670 # Create an old-style archive from a shared archive.
27671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27672
27673 # Create a temporary old-style archive to link instead of a shared archive.
27674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27675
27676 # Commands used to build a shared archive.
27677 archive_cmds=$lt_archive_cmds_CXX
27678 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27679
27680 # Commands used to build a loadable module if different from building
27681 # a shared archive.
27682 module_cmds=$lt_module_cmds_CXX
27683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27684
27685 # Whether we are building with GNU ld or not.
27686 with_gnu_ld=$lt_with_gnu_ld_CXX
27687
27688 # Flag that allows shared libraries with undefined symbols to be built.
27689 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27690
27691 # Flag that enforces no undefined symbols.
27692 no_undefined_flag=$lt_no_undefined_flag_CXX
27693
27694 # Flag to hardcode \$libdir into a binary during linking.
27695 # This must work even if \$libdir does not exist
27696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27697
27698 # If ld is used when linking, flag to hardcode \$libdir into a binary
27699 # during linking.  This must work even if \$libdir does not exist.
27700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27701
27702 # Whether we need a single "-rpath" flag with a separated argument.
27703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27704
27705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27706 # DIR into the resulting binary.
27707 hardcode_direct=$hardcode_direct_CXX
27708
27709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27710 # DIR into the resulting binary and the resulting library dependency is
27711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27712 # library is relocated.
27713 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27714
27715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27716 # into the resulting binary.
27717 hardcode_minus_L=$hardcode_minus_L_CXX
27718
27719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27720 # into the resulting binary.
27721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27722
27723 # Set to "yes" if building a shared library automatically hardcodes DIR
27724 # into the library and all subsequent libraries and executables linked
27725 # against it.
27726 hardcode_automatic=$hardcode_automatic_CXX
27727
27728 # Set to yes if linker adds runtime paths of dependent libraries
27729 # to runtime path list.
27730 inherit_rpath=$inherit_rpath_CXX
27731
27732 # Whether libtool must link a program against all its dependency libraries.
27733 link_all_deplibs=$link_all_deplibs_CXX
27734
27735 # Fix the shell variable \$srcfile for the compiler.
27736 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27737
27738 # Set to "yes" if exported symbols are required.
27739 always_export_symbols=$always_export_symbols_CXX
27740
27741 # The commands to list exported symbols.
27742 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27743
27744 # Symbols that should not be listed in the preloaded symbols.
27745 exclude_expsyms=$lt_exclude_expsyms_CXX
27746
27747 # Symbols that must always be exported.
27748 include_expsyms=$lt_include_expsyms_CXX
27749
27750 # Commands necessary for linking programs (against libraries) with templates.
27751 prelink_cmds=$lt_prelink_cmds_CXX
27752
27753 # Specify filename containing input files.
27754 file_list_spec=$lt_file_list_spec_CXX
27755
27756 # How to hardcode a shared library path into an executable.
27757 hardcode_action=$hardcode_action_CXX
27758
27759 # The directories searched by this compiler when creating a shared library.
27760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27761
27762 # Dependencies to place before and after the objects being linked to
27763 # create a shared library.
27764 predep_objects=$lt_predep_objects_CXX
27765 postdep_objects=$lt_postdep_objects_CXX
27766 predeps=$lt_predeps_CXX
27767 postdeps=$lt_postdeps_CXX
27768
27769 # The library search path used internally by the compiler when linking
27770 # a shared library.
27771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27772
27773 # ### END LIBTOOL TAG CONFIG: CXX
27774 _LT_EOF
27775
27776
27777     cat <<_LT_EOF >> "$ofile"
27778
27779 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27780
27781 # The linker used to build libraries.
27782 LD=$lt_LD_GCJ
27783
27784 # How to create reloadable object files.
27785 reload_flag=$lt_reload_flag_GCJ
27786 reload_cmds=$lt_reload_cmds_GCJ
27787
27788 # Commands used to build an old-style archive.
27789 old_archive_cmds=$lt_old_archive_cmds_GCJ
27790
27791 # A language specific compiler.
27792 CC=$lt_compiler_GCJ
27793
27794 # Is the compiler the GNU compiler?
27795 with_gcc=$GCC_GCJ
27796
27797 # Compiler flag to turn off builtin functions.
27798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27799
27800 # How to pass a linker flag through the compiler.
27801 wl=$lt_lt_prog_compiler_wl_GCJ
27802
27803 # Additional compiler flags for building library objects.
27804 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27805
27806 # Compiler flag to prevent dynamic linking.
27807 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27808
27809 # Does compiler simultaneously support -c and -o options?
27810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27811
27812 # Whether or not to add -lc for building shared libraries.
27813 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27814
27815 # Whether or not to disallow shared libs when runtime libs are static.
27816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27817
27818 # Compiler flag to allow reflexive dlopens.
27819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27820
27821 # Compiler flag to generate shared objects directly from archives.
27822 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27823
27824 # Whether the compiler copes with passing no objects directly.
27825 compiler_needs_object=$lt_compiler_needs_object_GCJ
27826
27827 # Create an old-style archive from a shared archive.
27828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27829
27830 # Create a temporary old-style archive to link instead of a shared archive.
27831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27832
27833 # Commands used to build a shared archive.
27834 archive_cmds=$lt_archive_cmds_GCJ
27835 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27836
27837 # Commands used to build a loadable module if different from building
27838 # a shared archive.
27839 module_cmds=$lt_module_cmds_GCJ
27840 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27841
27842 # Whether we are building with GNU ld or not.
27843 with_gnu_ld=$lt_with_gnu_ld_GCJ
27844
27845 # Flag that allows shared libraries with undefined symbols to be built.
27846 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27847
27848 # Flag that enforces no undefined symbols.
27849 no_undefined_flag=$lt_no_undefined_flag_GCJ
27850
27851 # Flag to hardcode \$libdir into a binary during linking.
27852 # This must work even if \$libdir does not exist
27853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27854
27855 # If ld is used when linking, flag to hardcode \$libdir into a binary
27856 # during linking.  This must work even if \$libdir does not exist.
27857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27858
27859 # Whether we need a single "-rpath" flag with a separated argument.
27860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27861
27862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27863 # DIR into the resulting binary.
27864 hardcode_direct=$hardcode_direct_GCJ
27865
27866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27867 # DIR into the resulting binary and the resulting library dependency is
27868 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27869 # library is relocated.
27870 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27871
27872 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27873 # into the resulting binary.
27874 hardcode_minus_L=$hardcode_minus_L_GCJ
27875
27876 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27877 # into the resulting binary.
27878 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27879
27880 # Set to "yes" if building a shared library automatically hardcodes DIR
27881 # into the library and all subsequent libraries and executables linked
27882 # against it.
27883 hardcode_automatic=$hardcode_automatic_GCJ
27884
27885 # Set to yes if linker adds runtime paths of dependent libraries
27886 # to runtime path list.
27887 inherit_rpath=$inherit_rpath_GCJ
27888
27889 # Whether libtool must link a program against all its dependency libraries.
27890 link_all_deplibs=$link_all_deplibs_GCJ
27891
27892 # Fix the shell variable \$srcfile for the compiler.
27893 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27894
27895 # Set to "yes" if exported symbols are required.
27896 always_export_symbols=$always_export_symbols_GCJ
27897
27898 # The commands to list exported symbols.
27899 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27900
27901 # Symbols that should not be listed in the preloaded symbols.
27902 exclude_expsyms=$lt_exclude_expsyms_GCJ
27903
27904 # Symbols that must always be exported.
27905 include_expsyms=$lt_include_expsyms_GCJ
27906
27907 # Commands necessary for linking programs (against libraries) with templates.
27908 prelink_cmds=$lt_prelink_cmds_GCJ
27909
27910 # Specify filename containing input files.
27911 file_list_spec=$lt_file_list_spec_GCJ
27912
27913 # How to hardcode a shared library path into an executable.
27914 hardcode_action=$hardcode_action_GCJ
27915
27916 # The directories searched by this compiler when creating a shared library.
27917 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27918
27919 # Dependencies to place before and after the objects being linked to
27920 # create a shared library.
27921 predep_objects=$lt_predep_objects_GCJ
27922 postdep_objects=$lt_postdep_objects_GCJ
27923 predeps=$lt_predeps_GCJ
27924 postdeps=$lt_postdeps_GCJ
27925
27926 # The library search path used internally by the compiler when linking
27927 # a shared library.
27928 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27929
27930 # ### END LIBTOOL TAG CONFIG: GCJ
27931 _LT_EOF
27932
27933  ;;
27934     "scripts/jar":F) chmod +x scripts/jar ;;
27935
27936   esac
27937 done # for ac_tag
27938
27939
27940 as_fn_exit 0
27941 _ACEOF
27942 ac_clean_files=$ac_clean_files_save
27943
27944 test $ac_write_fail = 0 ||
27945   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27946
27947
27948 # configure is writing to config.log, and then calls config.status.
27949 # config.status does its own redirection, appending to config.log.
27950 # Unfortunately, on DOS this fails, as config.log is still kept open
27951 # by configure, so config.status won't be able to write to it; its
27952 # output is simply discarded.  So we exec the FD to /dev/null,
27953 # effectively closing config.log, so it can be properly (re)opened and
27954 # appended to by config.status.  When coming back to configure, we
27955 # need to make the FD available again.
27956 if test "$no_create" != yes; then
27957   ac_cs_success=:
27958   ac_config_status_args=
27959   test "$silent" = yes &&
27960     ac_config_status_args="$ac_config_status_args --quiet"
27961   exec 5>/dev/null
27962   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27963   exec 5>>config.log
27964   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27965   # would make configure fail if this is the last instruction.
27966   $ac_cs_success || as_fn_exit $?
27967 fi
27968
27969 #
27970 # CONFIG_SUBDIRS section.
27971 #
27972 if test "$no_recursion" != yes; then
27973
27974   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27975   # so they do not pile up.
27976   ac_sub_configure_args=
27977   ac_prev=
27978   eval "set x $ac_configure_args"
27979   shift
27980   for ac_arg
27981   do
27982     if test -n "$ac_prev"; then
27983       ac_prev=
27984       continue
27985     fi
27986     case $ac_arg in
27987     -cache-file | --cache-file | --cache-fil | --cache-fi \
27988     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27989       ac_prev=cache_file ;;
27990     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27991     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27992     | --c=*)
27993       ;;
27994     --config-cache | -C)
27995       ;;
27996     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27997       ac_prev=srcdir ;;
27998     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27999       ;;
28000     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28001       ac_prev=prefix ;;
28002     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28003       ;;
28004     --disable-option-checking)
28005       ;;
28006     *)
28007       case $ac_arg in
28008       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28009       esac
28010       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28011     esac
28012   done
28013
28014   # Always prepend --prefix to ensure using the same prefix
28015   # in subdir configurations.
28016   ac_arg="--prefix=$prefix"
28017   case $ac_arg in
28018   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28019   esac
28020   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28021
28022   # Pass --silent
28023   if test "$silent" = yes; then
28024     ac_sub_configure_args="--silent $ac_sub_configure_args"
28025   fi
28026
28027   # Always prepend --disable-option-checking to silence warnings, since
28028   # different subdirs can have different --enable and --with options.
28029   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28030
28031   ac_popdir=`pwd`
28032   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28033
28034     # Do not complain, so a configure script can configure whichever
28035     # parts of a large source tree are present.
28036     test -d "$srcdir/$ac_dir" || continue
28037
28038     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28039     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28040     $as_echo "$ac_msg" >&6
28041     as_dir="$ac_dir"; as_fn_mkdir_p
28042     ac_builddir=.
28043
28044 case "$ac_dir" in
28045 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28046 *)
28047   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28048   # A ".." for each directory in $ac_dir_suffix.
28049   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28050   case $ac_top_builddir_sub in
28051   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28052   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28053   esac ;;
28054 esac
28055 ac_abs_top_builddir=$ac_pwd
28056 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28057 # for backward compatibility:
28058 ac_top_builddir=$ac_top_build_prefix
28059
28060 case $srcdir in
28061   .)  # We are building in place.
28062     ac_srcdir=.
28063     ac_top_srcdir=$ac_top_builddir_sub
28064     ac_abs_top_srcdir=$ac_pwd ;;
28065   [\\/]* | ?:[\\/]* )  # Absolute name.
28066     ac_srcdir=$srcdir$ac_dir_suffix;
28067     ac_top_srcdir=$srcdir
28068     ac_abs_top_srcdir=$srcdir ;;
28069   *) # Relative name.
28070     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28071     ac_top_srcdir=$ac_top_build_prefix$srcdir
28072     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28073 esac
28074 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28075
28076
28077     cd "$ac_dir"
28078
28079     # Check for guested configure; otherwise get Cygnus style configure.
28080     if test -f "$ac_srcdir/configure.gnu"; then
28081       ac_sub_configure=$ac_srcdir/configure.gnu
28082     elif test -f "$ac_srcdir/configure"; then
28083       ac_sub_configure=$ac_srcdir/configure
28084     elif test -f "$ac_srcdir/configure.in"; then
28085       # This should be Cygnus configure.
28086       ac_sub_configure=$ac_aux_dir/configure
28087     else
28088       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28089 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28090       ac_sub_configure=
28091     fi
28092
28093     # The recursion is here.
28094     if test -n "$ac_sub_configure"; then
28095       # Make the cache file name correct relative to the subdirectory.
28096       case $cache_file in
28097       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28098       *) # Relative name.
28099         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28100       esac
28101
28102       { $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
28103 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28104       # The eval makes quoting arguments work.
28105       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28106            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28107         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28108     fi
28109
28110     cd "$ac_popdir"
28111   done
28112 fi
28113 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28114   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28115 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28116 fi
28117