OSDN Git Service

Fix PR c++/47398
[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 LIBMATHSPEC
711 LIBSTDCXXSPEC
712 extra_ldflags
713 extra_ldflags_libjava
714 X_EXTRA_LIBS
715 X_LIBS
716 X_PRE_LIBS
717 X_CFLAGS
718 XMKMF
719 ZLIBTESTSPEC
720 ZLIBSPEC
721 SYSTEMSPEC
722 USING_DARWIN_CRT_FALSE
723 USING_DARWIN_CRT_TRUE
724 USING_POSIX_PLATFORM_FALSE
725 USING_POSIX_PLATFORM_TRUE
726 USING_WIN32_PLATFORM_FALSE
727 USING_WIN32_PLATFORM_TRUE
728 PLATFORM
729 LIBFFIINCS
730 LIBFFI
731 INTERPRETER_FALSE
732 INTERPRETER_TRUE
733 INTERPRETER
734 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736 SUPPRESS_LIBGCJ_BC_FALSE
737 SUPPRESS_LIBGCJ_BC_TRUE
738 JAVA_HOME
739 JAVA_HOME_SET_FALSE
740 JAVA_HOME_SET_TRUE
741 INSTALL_ECJ_JAR_FALSE
742 INSTALL_ECJ_JAR_TRUE
743 BUILD_ECJ1_FALSE
744 BUILD_ECJ1_TRUE
745 ECJ_JAR
746 ECJ_BUILD_JAR
747 TESTSUBDIR_FALSE
748 TESTSUBDIR_TRUE
749 subdirs
750 am__fastdepGCJ_FALSE
751 am__fastdepGCJ_TRUE
752 GCJDEPMODE
753 GCJFLAGS
754 ac_ct_GCJ
755 GCJ
756 lt_host_flags
757 CXXCPP
758 CPP
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 OBJDUMP
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 FGREP
769 EGREP
770 GREP
771 SED
772 LIBTOOL
773 DIRLTDL
774 LIBLTDL
775 INCLTDL
776 host_exeext
777 GCJH
778 GCC_FOR_ECJX
779 GCJ_FOR_ECJX
780 X_AWT_FALSE
781 X_AWT_TRUE
782 XLIB_AWT_FALSE
783 XLIB_AWT_TRUE
784 TOOLKIT
785 LIBGCJDEBUG
786 BUILD_SUBLIBS_FALSE
787 BUILD_SUBLIBS_TRUE
788 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
789 LIBGCJ_LD_SYMBOLIC
790 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
791 LIBGCJ_SUBLIB_LTFLAGS
792 LIBGCJ_JAVAFLAGS
793 LIBGCJ_CXXFLAGS
794 LIBGCJ_CFLAGS
795 MAINT
796 MAINTAINER_MODE_FALSE
797 MAINTAINER_MODE_TRUE
798 UNZIP
799 ZIP
800 JAR
801 DLLTOOL
802 RANLIB
803 AR
804 LD
805 AS
806 am__fastdepCXX_FALSE
807 am__fastdepCXX_TRUE
808 CXXDEPMODE
809 am__fastdepCC_FALSE
810 am__fastdepCC_TRUE
811 CCDEPMODE
812 AMDEPBACKSLASH
813 AMDEP_FALSE
814 AMDEP_TRUE
815 am__quote
816 am__include
817 DEPDIR
818 am__untar
819 am__tar
820 AMTAR
821 am__leading_dot
822 SET_MAKE
823 AWK
824 mkdir_p
825 MKDIR_P
826 INSTALL_STRIP_PROGRAM
827 STRIP
828 install_sh
829 MAKEINFO
830 AUTOHEADER
831 AUTOMAKE
832 AUTOCONF
833 ACLOCAL
834 VERSION
835 PACKAGE
836 CYGPATH_W
837 am__isrc
838 INSTALL_DATA
839 INSTALL_SCRIPT
840 INSTALL_PROGRAM
841 ac_ct_CXX
842 CXXFLAGS
843 CXX
844 OBJEXT
845 EXEEXT
846 ac_ct_CC
847 CPPFLAGS
848 LDFLAGS
849 CFLAGS
850 CC
851 JAVA_MAINTAINER_MODE_FALSE
852 JAVA_MAINTAINER_MODE_TRUE
853 CREATE_GJDOC_FALSE
854 CREATE_GJDOC_TRUE
855 ANTLR_JAR
856 mkinstalldirs
857 LN_S
858 target_noncanonical
859 target_os
860 target_vendor
861 target_cpu
862 target
863 host_os
864 host_vendor
865 host_cpu
866 host
867 multi_basedir
868 target_subdir
869 host_subdir
870 build_subdir
871 build_libsubdir
872 build_os
873 build_vendor
874 build_cpu
875 build
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL'
914 ac_subst_files=''
915 ac_user_opts='
916 enable_option_checking
917 with_build_libsubdir
918 with_target_subdir
919 enable_multilib
920 with_cross_host
921 with_newlib
922 enable_version_specific_runtime_libs
923 enable_browser_plugin
924 enable_gconf_peer
925 with_antlr_jar
926 enable_gjdoc
927 enable_java_maintainer_mode
928 enable_dependency_tracking
929 enable_maintainer_mode
930 enable_libgcj_sublibs
931 enable_libgcj_debug
932 with_escher
933 enable_java_awt
934 enable_shared
935 enable_static
936 with_pic
937 enable_fast_install
938 with_gnu_ld
939 enable_libtool_lock
940 enable_getenv_properties
941 enable_hash_synchronization
942 with_ecj_jar
943 with_java_home
944 enable_libgcj_bc
945 enable_reduced_reflection
946 with_win32_nlsapi
947 enable_gc_debug
948 enable_interpreter
949 enable_sjlj_exceptions
950 enable_java_net
951 with_libffi
952 enable_jvmpi
953 with_ecos
954 with_system_zlib
955 with_x
956 enable_java_gc
957 enable_rpath
958 with_libiconv_prefix
959 enable_tls
960 with_system_libunwind
961 with_python_dir
962 enable_aot_compile_rpm
963 enable_java_home
964 with_gcc_suffix
965 with_arch_directory
966 with_os_directory
967 with_origin_name
968 with_arch_suffix
969 with_jvm_root_dir
970 with_jvm_jar_dir
971 '
972       ac_precious_vars='build_alias
973 host_alias
974 target_alias
975 CC
976 CFLAGS
977 LDFLAGS
978 LIBS
979 CPPFLAGS
980 CXX
981 CXXFLAGS
982 CCC
983 CPP
984 CXXCPP
985 XMKMF'
986 ac_subdirs_all='classpath libltdl'
987
988 # Initialize some variables set by options.
989 ac_init_help=
990 ac_init_version=false
991 ac_unrecognized_opts=
992 ac_unrecognized_sep=
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
995 cache_file=/dev/null
996 exec_prefix=NONE
997 no_create=
998 no_recursion=
999 prefix=NONE
1000 program_prefix=NONE
1001 program_suffix=NONE
1002 program_transform_name=s,x,x,
1003 silent=
1004 site=
1005 srcdir=
1006 verbose=
1007 x_includes=NONE
1008 x_libraries=NONE
1009
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir='${exec_prefix}/bin'
1017 sbindir='${exec_prefix}/sbin'
1018 libexecdir='${exec_prefix}/libexec'
1019 datarootdir='${prefix}/share'
1020 datadir='${datarootdir}'
1021 sysconfdir='${prefix}/etc'
1022 sharedstatedir='${prefix}/com'
1023 localstatedir='${prefix}/var'
1024 includedir='${prefix}/include'
1025 oldincludedir='/usr/include'
1026 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027 infodir='${datarootdir}/info'
1028 htmldir='${docdir}'
1029 dvidir='${docdir}'
1030 pdfdir='${docdir}'
1031 psdir='${docdir}'
1032 libdir='${exec_prefix}/lib'
1033 localedir='${datarootdir}/locale'
1034 mandir='${datarootdir}/man'
1035
1036 ac_prev=
1037 ac_dashdash=
1038 for ac_option
1039 do
1040   # If the previous option needs an argument, assign it.
1041   if test -n "$ac_prev"; then
1042     eval $ac_prev=\$ac_option
1043     ac_prev=
1044     continue
1045   fi
1046
1047   case $ac_option in
1048   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049   *)    ac_optarg=yes ;;
1050   esac
1051
1052   # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054   case $ac_dashdash$ac_option in
1055   --)
1056     ac_dashdash=yes ;;
1057
1058   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059     ac_prev=bindir ;;
1060   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061     bindir=$ac_optarg ;;
1062
1063   -build | --build | --buil | --bui | --bu)
1064     ac_prev=build_alias ;;
1065   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066     build_alias=$ac_optarg ;;
1067
1068   -cache-file | --cache-file | --cache-fil | --cache-fi \
1069   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070     ac_prev=cache_file ;;
1071   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073     cache_file=$ac_optarg ;;
1074
1075   --config-cache | -C)
1076     cache_file=config.cache ;;
1077
1078   -datadir | --datadir | --datadi | --datad)
1079     ac_prev=datadir ;;
1080   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081     datadir=$ac_optarg ;;
1082
1083   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084   | --dataroo | --dataro | --datar)
1085     ac_prev=datarootdir ;;
1086   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088     datarootdir=$ac_optarg ;;
1089
1090   -disable-* | --disable-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error "invalid feature name: $ac_useropt"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "enable_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval enable_$ac_useropt=no ;;
1105
1106   -docdir | --docdir | --docdi | --doc | --do)
1107     ac_prev=docdir ;;
1108   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109     docdir=$ac_optarg ;;
1110
1111   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112     ac_prev=dvidir ;;
1113   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114     dvidir=$ac_optarg ;;
1115
1116   -enable-* | --enable-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error "invalid feature name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "enable_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval enable_$ac_useropt=\$ac_optarg ;;
1131
1132   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134   | --exec | --exe | --ex)
1135     ac_prev=exec_prefix ;;
1136   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138   | --exec=* | --exe=* | --ex=*)
1139     exec_prefix=$ac_optarg ;;
1140
1141   -gas | --gas | --ga | --g)
1142     # Obsolete; use --with-gas.
1143     with_gas=yes ;;
1144
1145   -help | --help | --hel | --he | -h)
1146     ac_init_help=long ;;
1147   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148     ac_init_help=recursive ;;
1149   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150     ac_init_help=short ;;
1151
1152   -host | --host | --hos | --ho)
1153     ac_prev=host_alias ;;
1154   -host=* | --host=* | --hos=* | --ho=*)
1155     host_alias=$ac_optarg ;;
1156
1157   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158     ac_prev=htmldir ;;
1159   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160   | --ht=*)
1161     htmldir=$ac_optarg ;;
1162
1163   -includedir | --includedir | --includedi | --included | --include \
1164   | --includ | --inclu | --incl | --inc)
1165     ac_prev=includedir ;;
1166   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167   | --includ=* | --inclu=* | --incl=* | --inc=*)
1168     includedir=$ac_optarg ;;
1169
1170   -infodir | --infodir | --infodi | --infod | --info | --inf)
1171     ac_prev=infodir ;;
1172   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173     infodir=$ac_optarg ;;
1174
1175   -libdir | --libdir | --libdi | --libd)
1176     ac_prev=libdir ;;
1177   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178     libdir=$ac_optarg ;;
1179
1180   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181   | --libexe | --libex | --libe)
1182     ac_prev=libexecdir ;;
1183   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184   | --libexe=* | --libex=* | --libe=*)
1185     libexecdir=$ac_optarg ;;
1186
1187   -localedir | --localedir | --localedi | --localed | --locale)
1188     ac_prev=localedir ;;
1189   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190     localedir=$ac_optarg ;;
1191
1192   -localstatedir | --localstatedir | --localstatedi | --localstated \
1193   | --localstate | --localstat | --localsta | --localst | --locals)
1194     ac_prev=localstatedir ;;
1195   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197     localstatedir=$ac_optarg ;;
1198
1199   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200     ac_prev=mandir ;;
1201   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202     mandir=$ac_optarg ;;
1203
1204   -nfp | --nfp | --nf)
1205     # Obsolete; use --without-fp.
1206     with_fp=no ;;
1207
1208   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209   | --no-cr | --no-c | -n)
1210     no_create=yes ;;
1211
1212   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214     no_recursion=yes ;;
1215
1216   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218   | --oldin | --oldi | --old | --ol | --o)
1219     ac_prev=oldincludedir ;;
1220   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223     oldincludedir=$ac_optarg ;;
1224
1225   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226     ac_prev=prefix ;;
1227   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228     prefix=$ac_optarg ;;
1229
1230   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231   | --program-pre | --program-pr | --program-p)
1232     ac_prev=program_prefix ;;
1233   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235     program_prefix=$ac_optarg ;;
1236
1237   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238   | --program-suf | --program-su | --program-s)
1239     ac_prev=program_suffix ;;
1240   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242     program_suffix=$ac_optarg ;;
1243
1244   -program-transform-name | --program-transform-name \
1245   | --program-transform-nam | --program-transform-na \
1246   | --program-transform-n | --program-transform- \
1247   | --program-transform | --program-transfor \
1248   | --program-transfo | --program-transf \
1249   | --program-trans | --program-tran \
1250   | --progr-tra | --program-tr | --program-t)
1251     ac_prev=program_transform_name ;;
1252   -program-transform-name=* | --program-transform-name=* \
1253   | --program-transform-nam=* | --program-transform-na=* \
1254   | --program-transform-n=* | --program-transform-=* \
1255   | --program-transform=* | --program-transfor=* \
1256   | --program-transfo=* | --program-transf=* \
1257   | --program-trans=* | --program-tran=* \
1258   | --progr-tra=* | --program-tr=* | --program-t=*)
1259     program_transform_name=$ac_optarg ;;
1260
1261   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262     ac_prev=pdfdir ;;
1263   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264     pdfdir=$ac_optarg ;;
1265
1266   -psdir | --psdir | --psdi | --psd | --ps)
1267     ac_prev=psdir ;;
1268   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269     psdir=$ac_optarg ;;
1270
1271   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272   | -silent | --silent | --silen | --sile | --sil)
1273     silent=yes ;;
1274
1275   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276     ac_prev=sbindir ;;
1277   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278   | --sbi=* | --sb=*)
1279     sbindir=$ac_optarg ;;
1280
1281   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283   | --sharedst | --shareds | --shared | --share | --shar \
1284   | --sha | --sh)
1285     ac_prev=sharedstatedir ;;
1286   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289   | --sha=* | --sh=*)
1290     sharedstatedir=$ac_optarg ;;
1291
1292   -site | --site | --sit)
1293     ac_prev=site ;;
1294   -site=* | --site=* | --sit=*)
1295     site=$ac_optarg ;;
1296
1297   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298     ac_prev=srcdir ;;
1299   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300     srcdir=$ac_optarg ;;
1301
1302   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303   | --syscon | --sysco | --sysc | --sys | --sy)
1304     ac_prev=sysconfdir ;;
1305   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307     sysconfdir=$ac_optarg ;;
1308
1309   -target | --target | --targe | --targ | --tar | --ta | --t)
1310     ac_prev=target_alias ;;
1311   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312     target_alias=$ac_optarg ;;
1313
1314   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1315     verbose=yes ;;
1316
1317   -version | --version | --versio | --versi | --vers | -V)
1318     ac_init_version=: ;;
1319
1320   -with-* | --with-*)
1321     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324       as_fn_error "invalid package name: $ac_useropt"
1325     ac_useropt_orig=$ac_useropt
1326     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327     case $ac_user_opts in
1328       *"
1329 "with_$ac_useropt"
1330 "*) ;;
1331       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1332          ac_unrecognized_sep=', ';;
1333     esac
1334     eval with_$ac_useropt=\$ac_optarg ;;
1335
1336   -without-* | --without-*)
1337     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340       as_fn_error "invalid package name: $ac_useropt"
1341     ac_useropt_orig=$ac_useropt
1342     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343     case $ac_user_opts in
1344       *"
1345 "with_$ac_useropt"
1346 "*) ;;
1347       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348          ac_unrecognized_sep=', ';;
1349     esac
1350     eval with_$ac_useropt=no ;;
1351
1352   --x)
1353     # Obsolete; use --with-x.
1354     with_x=yes ;;
1355
1356   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357   | --x-incl | --x-inc | --x-in | --x-i)
1358     ac_prev=x_includes ;;
1359   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361     x_includes=$ac_optarg ;;
1362
1363   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365     ac_prev=x_libraries ;;
1366   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368     x_libraries=$ac_optarg ;;
1369
1370   -*) as_fn_error "unrecognized option: \`$ac_option'
1371 Try \`$0 --help' for more information."
1372     ;;
1373
1374   *=*)
1375     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1376     # Reject names that are not valid shell variable names.
1377     case $ac_envvar in #(
1378       '' | [0-9]* | *[!_$as_cr_alnum]* )
1379       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1380     esac
1381     eval $ac_envvar=\$ac_optarg
1382     export $ac_envvar ;;
1383
1384   *)
1385     # FIXME: should be removed in autoconf 3.0.
1386     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390     ;;
1391
1392   esac
1393 done
1394
1395 if test -n "$ac_prev"; then
1396   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397   as_fn_error "missing argument to $ac_option"
1398 fi
1399
1400 if test -n "$ac_unrecognized_opts"; then
1401   case $enable_option_checking in
1402     no) ;;
1403     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1404     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405   esac
1406 fi
1407
1408 # Check all directory arguments for consistency.
1409 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410                 datadir sysconfdir sharedstatedir localstatedir includedir \
1411                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412                 libdir localedir mandir
1413 do
1414   eval ac_val=\$$ac_var
1415   # Remove trailing slashes.
1416   case $ac_val in
1417     */ )
1418       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419       eval $ac_var=\$ac_val;;
1420   esac
1421   # Be sure to have absolute directory names.
1422   case $ac_val in
1423     [\\/$]* | ?:[\\/]* )  continue;;
1424     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425   esac
1426   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1427 done
1428
1429 # There might be people who depend on the old broken behavior: `$host'
1430 # used to hold the argument of --host etc.
1431 # FIXME: To remove some day.
1432 build=$build_alias
1433 host=$host_alias
1434 target=$target_alias
1435
1436 # FIXME: To remove some day.
1437 if test "x$host_alias" != x; then
1438   if test "x$build_alias" = x; then
1439     cross_compiling=maybe
1440     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1441     If a cross compiler is detected then cross compile mode will be used." >&2
1442   elif test "x$build_alias" != "x$host_alias"; then
1443     cross_compiling=yes
1444   fi
1445 fi
1446
1447 ac_tool_prefix=
1448 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
1450 test "$silent" = yes && exec 6>/dev/null
1451
1452
1453 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454 ac_ls_di=`ls -di .` &&
1455 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456   as_fn_error "working directory cannot be determined"
1457 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458   as_fn_error "pwd does not report name of working directory"
1459
1460
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463   ac_srcdir_defaulted=yes
1464   # Try the directory containing this script, then the parent directory.
1465   ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467          X"$as_myself" : 'X\(//\)[^/]' \| \
1468          X"$as_myself" : 'X\(//\)$' \| \
1469          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472             s//\1/
1473             q
1474           }
1475           /^X\(\/\/\)[^/].*/{
1476             s//\1/
1477             q
1478           }
1479           /^X\(\/\/\)$/{
1480             s//\1/
1481             q
1482           }
1483           /^X\(\/\).*/{
1484             s//\1/
1485             q
1486           }
1487           s/.*/./; q'`
1488   srcdir=$ac_confdir
1489   if test ! -r "$srcdir/$ac_unique_file"; then
1490     srcdir=..
1491   fi
1492 else
1493   ac_srcdir_defaulted=no
1494 fi
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1498 fi
1499 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1500 ac_abs_confdir=`(
1501         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1502         pwd)`
1503 # When building in place, set srcdir=.
1504 if test "$ac_abs_confdir" = "$ac_pwd"; then
1505   srcdir=.
1506 fi
1507 # Remove unnecessary trailing slashes from srcdir.
1508 # Double slashes in file names in object file debugging info
1509 # mess up M-x gdb in Emacs.
1510 case $srcdir in
1511 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512 esac
1513 for ac_var in $ac_precious_vars; do
1514   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1515   eval ac_env_${ac_var}_value=\$${ac_var}
1516   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1517   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518 done
1519
1520 #
1521 # Report the --help message.
1522 #
1523 if test "$ac_init_help" = "long"; then
1524   # Omit some internal or obsolete options to make the list less imposing.
1525   # This message is too long to be a string in the A/UX 3.1 sh.
1526   cat <<_ACEOF
1527 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1528
1529 Usage: $0 [OPTION]... [VAR=VALUE]...
1530
1531 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1532 VAR=VALUE.  See below for descriptions of some of the useful variables.
1533
1534 Defaults for the options are specified in brackets.
1535
1536 Configuration:
1537   -h, --help              display this help and exit
1538       --help=short        display options specific to this package
1539       --help=recursive    display the short help of all the included packages
1540   -V, --version           display version information and exit
1541   -q, --quiet, --silent   do not print \`checking...' messages
1542       --cache-file=FILE   cache test results in FILE [disabled]
1543   -C, --config-cache      alias for \`--cache-file=config.cache'
1544   -n, --no-create         do not create output files
1545       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1546
1547 Installation directories:
1548   --prefix=PREFIX         install architecture-independent files in PREFIX
1549                           [$ac_default_prefix]
1550   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1551                           [PREFIX]
1552
1553 By default, \`make install' will install all the files in
1554 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1555 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1556 for instance \`--prefix=\$HOME'.
1557
1558 For better control, use the options below.
1559
1560 Fine tuning of the installation directories:
1561   --bindir=DIR            user executables [EPREFIX/bin]
1562   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1563   --libexecdir=DIR        program executables [EPREFIX/libexec]
1564   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1565   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1566   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1567   --libdir=DIR            object code libraries [EPREFIX/lib]
1568   --includedir=DIR        C header files [PREFIX/include]
1569   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1570   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1571   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1572   --infodir=DIR           info documentation [DATAROOTDIR/info]
1573   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1574   --mandir=DIR            man documentation [DATAROOTDIR/man]
1575   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1576   --htmldir=DIR           html documentation [DOCDIR]
1577   --dvidir=DIR            dvi documentation [DOCDIR]
1578   --pdfdir=DIR            pdf documentation [DOCDIR]
1579   --psdir=DIR             ps documentation [DOCDIR]
1580 _ACEOF
1581
1582   cat <<\_ACEOF
1583
1584 Program names:
1585   --program-prefix=PREFIX            prepend PREFIX to installed program names
1586   --program-suffix=SUFFIX            append SUFFIX to installed program names
1587   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1588
1589 X features:
1590   --x-includes=DIR    X include files are in DIR
1591   --x-libraries=DIR   X library files are in DIR
1592
1593 System types:
1594   --build=BUILD     configure for building on BUILD [guessed]
1595   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1596   --target=TARGET   configure for building compilers for TARGET [HOST]
1597 _ACEOF
1598 fi
1599
1600 if test -n "$ac_init_help"; then
1601   case $ac_init_help in
1602      short | recursive ) echo "Configuration of libjava version-unused:";;
1603    esac
1604   cat <<\_ACEOF
1605
1606 Optional Features:
1607   --disable-option-checking  ignore unrecognized --enable/--with options
1608   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1609   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1610   --enable-multilib       build many library versions (default)
1611   --enable-version-specific-runtime-libs
1612                           specify that runtime libraries should be installed
1613                           in a compiler-specific directory
1614   --enable-browser-plugin build gcjwebplugin web browser plugin
1615   --enable-gconf-peer     compile GConf native peers for util.preferences
1616   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1617                           default=yes
1618   --enable-java-maintainer-mode
1619                           allow rebuilding of .class and .h files
1620   --disable-dependency-tracking  speeds up one-time build
1621   --enable-dependency-tracking   do not reject slow dependency extractors
1622   --enable-maintainer-mode  enable make rules and dependencies not useful
1623                           (and sometimes confusing) to the casual installer
1624   --enable-libgcj-sublibs build libgcj as many sub-libraries
1625   --enable-libgcj-debug   enable runtime debugging code
1626   --enable-java-awt       list of AWT peer implementations to be built
1627   --enable-shared[=PKGS]  build shared libraries [default=yes]
1628   --enable-static[=PKGS]  build static libraries [default=yes]
1629   --enable-fast-install[=PKGS]
1630                           optimize for fast installation [default=yes]
1631   --disable-libtool-lock  avoid locking (might break parallel builds)
1632   --disable-getenv-properties
1633                           don't set system properties from GCJ_PROPERTIES
1634   --enable-hash-synchronization
1635                           use global hash table for monitor locks
1636   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1637                           libgcj
1638   --enable-reduced-reflection
1639                           enable or disable(default) -freduced-reflection when
1640                           building portions of libgcj
1641   --enable-gc-debug       include full support for pointer backtracing etc.
1642   --enable-interpreter    enable interpreter
1643   --enable-sjlj-exceptions
1644                           force use of builtin_setjmp for exceptions
1645   --disable-java-net      disable java.net
1646   --disable-jvmpi         disable JVMPI support
1647   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1648   --disable-rpath         do not hardcode runtime library paths
1649   --enable-tls            Use thread-local storage [default=yes]
1650   --enable-aot-compile-rpm
1651                           enable installation of aot-compile-rpm [default=no]
1652   --enable-java-home      create a standard JDK-style directory layout in the
1653                           install tree [default=no]
1654
1655 Optional Packages:
1656   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1657   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1658   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1659   --with-target-subdir=SUBDIR
1660                           configure in a subdirectory
1661   --with-cross-host=HOST  configure with a cross compiler from HOST
1662   --with-newlib           configure with newlib
1663   --with-antlr-jar=file   Use ANTLR from the specified jar file
1664   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1665   --with-pic              try to use only PIC/non-PIC objects [default=use
1666                           both]
1667   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1668   --with-ecj-jar=FILE     use preinstalled ecj jar
1669   --with-java-home=DIRECTORY
1670                           value of java.home system property
1671   --with-win32-nlsapi=ansi or unicows or unicode
1672                           native MinGW libgcj Win32 OS API (default is ansi)
1673   --without-libffi        don't use libffi
1674   --with-ecos             enable runtime eCos target support
1675   --with-system-zlib      use installed libz
1676   --with-x                use the X Window System
1677   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1678   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1679   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1680   --with-system-libunwind use installed libunwind
1681   --with-python-dir       the location to install Python modules. This path
1682                           should NOT include the prefix.
1683   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1684   --with-arch-directory   the arch directory under jre/lib (defaults to
1685                           auto-detect)
1686   --with-os-directory     the os directory under include (defaults to
1687                           auto-detect)
1688   --with-origin-name      the JPackage origin name of this package (default is
1689                           gcj${gcc_suffix}
1690   --with-arch-suffix      the arch directory suffix (default is the empty
1691                           string
1692   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1693   --with-jvm-jar-dir      where to install jars (default is
1694                           ${prefix}/lib/jvm-exports)
1695
1696 Some influential environment variables:
1697   CC          C compiler command
1698   CFLAGS      C compiler flags
1699   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1700               nonstandard directory <lib dir>
1701   LIBS        libraries to pass to the linker, e.g. -l<library>
1702   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1703               you have headers in a nonstandard directory <include dir>
1704   CXX         C++ compiler command
1705   CXXFLAGS    C++ compiler flags
1706   CPP         C preprocessor
1707   CXXCPP      C++ preprocessor
1708   XMKMF       Path to xmkmf, Makefile generator for X Window System
1709
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1712
1713 Report bugs to the package provider.
1714 _ACEOF
1715 ac_status=$?
1716 fi
1717
1718 if test "$ac_init_help" = "recursive"; then
1719   # If there are subdirs, report their specific --help.
1720   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721     test -d "$ac_dir" ||
1722       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723       continue
1724     ac_builddir=.
1725
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *)
1729   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730   # A ".." for each directory in $ac_dir_suffix.
1731   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732   case $ac_top_builddir_sub in
1733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735   esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1741
1742 case $srcdir in
1743   .)  # We are building in place.
1744     ac_srcdir=.
1745     ac_top_srcdir=$ac_top_builddir_sub
1746     ac_abs_top_srcdir=$ac_pwd ;;
1747   [\\/]* | ?:[\\/]* )  # Absolute name.
1748     ac_srcdir=$srcdir$ac_dir_suffix;
1749     ac_top_srcdir=$srcdir
1750     ac_abs_top_srcdir=$srcdir ;;
1751   *) # Relative name.
1752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753     ac_top_srcdir=$ac_top_build_prefix$srcdir
1754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758     cd "$ac_dir" || { ac_status=$?; continue; }
1759     # Check for guested configure.
1760     if test -f "$ac_srcdir/configure.gnu"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763     elif test -f "$ac_srcdir/configure"; then
1764       echo &&
1765       $SHELL "$ac_srcdir/configure" --help=recursive
1766     else
1767       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768     fi || ac_status=$?
1769     cd "$ac_pwd" || { ac_status=$?; break; }
1770   done
1771 fi
1772
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775   cat <<\_ACEOF
1776 libjava configure version-unused
1777 generated by GNU Autoconf 2.64
1778
1779 Copyright (C) 2009 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783   exit
1784 fi
1785
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1789
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext
1797   if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_compile") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_c_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest.$ac_objext; then :
1816   ac_retval=0
1817 else
1818   $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821         ac_retval=1
1822 fi
1823   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824   return $ac_retval
1825
1826 } # ac_fn_c_try_compile
1827
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   rm -f conftest.$ac_objext
1835   if { { ac_try="$ac_compile"
1836 case "(($ac_try" in
1837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838   *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842   (eval "$ac_compile") 2>conftest.err
1843   ac_status=$?
1844   if test -s conftest.err; then
1845     grep -v '^ *+' conftest.err >conftest.er1
1846     cat conftest.er1 >&5
1847     mv -f conftest.er1 conftest.err
1848   fi
1849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850   test $ac_status = 0; } && {
1851          test -z "$ac_cxx_werror_flag" ||
1852          test ! -s conftest.err
1853        } && test -s conftest.$ac_objext; then :
1854   ac_retval=0
1855 else
1856   $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859         ac_retval=1
1860 fi
1861   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862   return $ac_retval
1863
1864 } # ac_fn_cxx_try_compile
1865
1866 # ac_fn_c_try_link LINENO
1867 # -----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_link ()
1870 {
1871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872   rm -f conftest.$ac_objext conftest$ac_exeext
1873   if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_link") 2>conftest.err
1881   ac_status=$?
1882   if test -s conftest.err; then
1883     grep -v '^ *+' conftest.err >conftest.er1
1884     cat conftest.er1 >&5
1885     mv -f conftest.er1 conftest.err
1886   fi
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; } && {
1889          test -z "$ac_c_werror_flag" ||
1890          test ! -s conftest.err
1891        } && test -s conftest$ac_exeext && {
1892          test "$cross_compiling" = yes ||
1893          $as_test_x conftest$ac_exeext
1894        }; then :
1895   ac_retval=0
1896 else
1897   $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900         ac_retval=1
1901 fi
1902   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1903   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1904   # interfere with the next link command; also delete a directory that is
1905   # left behind by Apple's compiler.  We do this before executing the actions.
1906   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908   return $ac_retval
1909
1910 } # ac_fn_c_try_link
1911
1912 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists and can be compiled using the include files in
1915 # INCLUDES, setting the cache variable VAR accordingly.
1916 ac_fn_c_check_header_compile ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 $4
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 eval ac_res=\$$3
1937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941 } # ac_fn_c_check_header_compile
1942
1943 # ac_fn_c_try_cpp LINENO
1944 # ----------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_cpp ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 case "(($ac_try" in
1951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952   *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957   ac_status=$?
1958   if test -s conftest.err; then
1959     grep -v '^ *+' conftest.err >conftest.er1
1960     cat conftest.er1 >&5
1961     mv -f conftest.er1 conftest.err
1962   fi
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } >/dev/null && {
1965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1966          test ! -s conftest.err
1967        }; then :
1968   ac_retval=0
1969 else
1970   $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973     ac_retval=1
1974 fi
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976   return $ac_retval
1977
1978 } # ac_fn_c_try_cpp
1979
1980 # ac_fn_c_try_run LINENO
1981 # ----------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1983 # that executables *can* be run.
1984 ac_fn_c_try_run ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990   *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994   (eval "$ac_link") 2>&5
1995   ac_status=$?
1996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1998   { { case "(($ac_try" in
1999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000   *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004   (eval "$ac_try") 2>&5
2005   ac_status=$?
2006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007   test $ac_status = 0; }; }; then :
2008   ac_retval=0
2009 else
2010   $as_echo "$as_me: program exited with status $ac_status" >&5
2011        $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014        ac_retval=$ac_status
2015 fi
2016   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018   return $ac_retval
2019
2020 } # ac_fn_c_try_run
2021
2022 # ac_fn_c_check_func LINENO FUNC VAR
2023 # ----------------------------------
2024 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2025 ac_fn_c_check_func ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031   $as_echo_n "(cached) " >&6
2032 else
2033   if test x$gcc_no_link = xyes; then
2034   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2035 fi
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2040 #define $2 innocuous_$2
2041
2042 /* System header to define __stub macros and hopefully few prototypes,
2043     which can conflict with char $2 (); below.
2044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2045     <limits.h> exists even on freestanding compilers.  */
2046
2047 #ifdef __STDC__
2048 # include <limits.h>
2049 #else
2050 # include <assert.h>
2051 #endif
2052
2053 #undef $2
2054
2055 /* Override any GCC internal prototype to avoid an error.
2056    Use char because int might match the return type of a GCC
2057    builtin and then its argument prototype would still apply.  */
2058 #ifdef __cplusplus
2059 extern "C"
2060 #endif
2061 char $2 ();
2062 /* The GNU C library defines this for functions which it implements
2063     to always fail with ENOSYS.  Some functions are actually named
2064     something starting with __ and the normal name is an alias.  */
2065 #if defined __stub_$2 || defined __stub___$2
2066 choke me
2067 #endif
2068
2069 int
2070 main ()
2071 {
2072 return $2 ();
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_link "$LINENO"; then :
2078   eval "$3=yes"
2079 else
2080   eval "$3=no"
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext \
2083     conftest$ac_exeext conftest.$ac_ext
2084 fi
2085 eval ac_res=\$$3
2086                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089
2090 } # ac_fn_c_check_func
2091
2092 # ac_fn_cxx_try_cpp LINENO
2093 # ------------------------
2094 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_cxx_try_cpp ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   if { { ac_try="$ac_cpp conftest.$ac_ext"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104 $as_echo "$ac_try_echo"; } >&5
2105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2106   ac_status=$?
2107   if test -s conftest.err; then
2108     grep -v '^ *+' conftest.err >conftest.er1
2109     cat conftest.er1 >&5
2110     mv -f conftest.er1 conftest.err
2111   fi
2112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113   test $ac_status = 0; } >/dev/null && {
2114          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2115          test ! -s conftest.err
2116        }; then :
2117   ac_retval=0
2118 else
2119   $as_echo "$as_me: failed program was:" >&5
2120 sed 's/^/| /' conftest.$ac_ext >&5
2121
2122     ac_retval=1
2123 fi
2124   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125   return $ac_retval
2126
2127 } # ac_fn_cxx_try_cpp
2128
2129 # ac_fn_cxx_try_link LINENO
2130 # -------------------------
2131 # Try to link conftest.$ac_ext, and return whether this succeeded.
2132 ac_fn_cxx_try_link ()
2133 {
2134   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135   rm -f conftest.$ac_objext conftest$ac_exeext
2136   if { { ac_try="$ac_link"
2137 case "(($ac_try" in
2138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139   *) ac_try_echo=$ac_try;;
2140 esac
2141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142 $as_echo "$ac_try_echo"; } >&5
2143   (eval "$ac_link") 2>conftest.err
2144   ac_status=$?
2145   if test -s conftest.err; then
2146     grep -v '^ *+' conftest.err >conftest.er1
2147     cat conftest.er1 >&5
2148     mv -f conftest.er1 conftest.err
2149   fi
2150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151   test $ac_status = 0; } && {
2152          test -z "$ac_cxx_werror_flag" ||
2153          test ! -s conftest.err
2154        } && test -s conftest$ac_exeext && {
2155          test "$cross_compiling" = yes ||
2156          $as_test_x conftest$ac_exeext
2157        }; then :
2158   ac_retval=0
2159 else
2160   $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163         ac_retval=1
2164 fi
2165   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2166   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2167   # interfere with the next link command; also delete a directory that is
2168   # left behind by Apple's compiler.  We do this before executing the actions.
2169   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2170   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171   return $ac_retval
2172
2173 } # ac_fn_cxx_try_link
2174
2175 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2176 # -------------------------------------------------------
2177 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2178 # the include files in INCLUDES and setting the cache variable VAR
2179 # accordingly.
2180 ac_fn_c_check_header_mongrel ()
2181 {
2182   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187   $as_echo_n "(cached) " >&6
2188 fi
2189 eval ac_res=\$$3
2190                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 else
2193   # Is the header compilable?
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2195 $as_echo_n "checking $2 usability... " >&6; }
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 #include <$2>
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202   ac_header_compiler=yes
2203 else
2204   ac_header_compiler=no
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2208 $as_echo "$ac_header_compiler" >&6; }
2209
2210 # Is the header present?
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2212 $as_echo_n "checking $2 presence... " >&6; }
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h.  */
2215 #include <$2>
2216 _ACEOF
2217 if ac_fn_c_try_cpp "$LINENO"; then :
2218   ac_header_preproc=yes
2219 else
2220   ac_header_preproc=no
2221 fi
2222 rm -f conftest.err conftest.$ac_ext
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2224 $as_echo "$ac_header_preproc" >&6; }
2225
2226 # So?  What about this header?
2227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2228   yes:no: )
2229     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2230 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2232 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233     ;;
2234   no:yes:* )
2235     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2236 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2238 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2240 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2241     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2242 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2243     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2244 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2245     ;;
2246 esac
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   eval "$3=\$ac_header_compiler"
2253 fi
2254 eval ac_res=\$$3
2255                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 fi
2258   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259
2260 } # ac_fn_c_check_header_mongrel
2261
2262 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2263 # ----------------------------------------------------
2264 # Tries to find if the field MEMBER exists in type AGGR, after including
2265 # INCLUDES, setting cache variable VAR accordingly.
2266 ac_fn_c_check_member ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2270 $as_echo_n "checking for $2.$3... " >&6; }
2271 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2272   $as_echo_n "(cached) " >&6
2273 else
2274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $5
2277 int
2278 main ()
2279 {
2280 static $2 ac_aggr;
2281 if (ac_aggr.$3)
2282 return 0;
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288   eval "$4=yes"
2289 else
2290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h.  */
2292 $5
2293 int
2294 main ()
2295 {
2296 static $2 ac_aggr;
2297 if (sizeof ac_aggr.$3)
2298 return 0;
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   eval "$4=yes"
2305 else
2306   eval "$4=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$4
2313                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316
2317 } # ac_fn_c_check_member
2318
2319 # ac_fn_c_check_decl LINENO SYMBOL VAR
2320 # ------------------------------------
2321 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2322 ac_fn_c_check_decl ()
2323 {
2324   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325   as_decl_name=`echo $2|sed 's/ *(.*//'`
2326   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2328 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330   $as_echo_n "(cached) " >&6
2331 else
2332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 int
2336 main ()
2337 {
2338 #ifndef $as_decl_name
2339 #ifdef __cplusplus
2340   (void) $as_decl_use;
2341 #else
2342   (void) $as_decl_name;
2343 #endif
2344 #endif
2345
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351   eval "$3=yes"
2352 else
2353   eval "$3=no"
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 fi
2357 eval ac_res=\$$3
2358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361
2362 } # ac_fn_c_check_decl
2363
2364 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2365 # --------------------------------------------
2366 # Tries to find the compile-time value of EXPR in a program that includes
2367 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2368 # computed
2369 ac_fn_c_compute_int ()
2370 {
2371   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372   if test "$cross_compiling" = yes; then
2373     # Depending upon the size, compute the lo and hi bounds.
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 static int test_array [1 - 2 * !(($2) >= 0)];
2381 test_array [0] = 0
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388   ac_lo=0 ac_mid=0
2389   while :; do
2390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 $4
2393 int
2394 main ()
2395 {
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 if ac_fn_c_try_compile "$LINENO"; then :
2404   ac_hi=$ac_mid; break
2405 else
2406   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2407                         if test $ac_lo -le $ac_mid; then
2408                           ac_lo= ac_hi=
2409                           break
2410                         fi
2411                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2412 fi
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414   done
2415 else
2416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h.  */
2418 $4
2419 int
2420 main ()
2421 {
2422 static int test_array [1 - 2 * !(($2) < 0)];
2423 test_array [0] = 0
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430   ac_hi=-1 ac_mid=-1
2431   while :; do
2432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h.  */
2434 $4
2435 int
2436 main ()
2437 {
2438 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2439 test_array [0] = 0
2440
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446   ac_lo=$ac_mid; break
2447 else
2448   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2449                         if test $ac_mid -le $ac_hi; then
2450                           ac_lo= ac_hi=
2451                           break
2452                         fi
2453                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456   done
2457 else
2458   ac_lo= ac_hi=
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 # Binary search between lo and hi bounds.
2464 while test "x$ac_lo" != "x$ac_hi"; do
2465   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 $4
2469 int
2470 main ()
2471 {
2472 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 test_array [0] = 0
2474
2475   ;
2476   return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480   ac_hi=$ac_mid
2481 else
2482   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 done
2486 case $ac_lo in #((
2487 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2488 '') ac_retval=1 ;;
2489 esac
2490   else
2491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h.  */
2493 $4
2494 static long int longval () { return $2; }
2495 static unsigned long int ulongval () { return $2; }
2496 #include <stdio.h>
2497 #include <stdlib.h>
2498 int
2499 main ()
2500 {
2501
2502   FILE *f = fopen ("conftest.val", "w");
2503   if (! f)
2504     return 1;
2505   if (($2) < 0)
2506     {
2507       long int i = longval ();
2508       if (i != ($2))
2509         return 1;
2510       fprintf (f, "%ld", i);
2511     }
2512   else
2513     {
2514       unsigned long int i = ulongval ();
2515       if (i != ($2))
2516         return 1;
2517       fprintf (f, "%lu", i);
2518     }
2519   /* Do not output a trailing newline, as this causes \r\n confusion
2520      on some platforms.  */
2521   return ferror (f) || fclose (f) != 0;
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_run "$LINENO"; then :
2528   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2529 else
2530   ac_retval=1
2531 fi
2532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2533   conftest.$ac_objext conftest.beam conftest.$ac_ext
2534 rm -f conftest.val
2535
2536   fi
2537   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538   return $ac_retval
2539
2540 } # ac_fn_c_compute_int
2541
2542 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2543 # -------------------------------------------
2544 # Tests whether TYPE exists after having included INCLUDES, setting cache
2545 # variable VAR accordingly.
2546 ac_fn_c_check_type ()
2547 {
2548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   eval "$3=no"
2555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 $4
2558 int
2559 main ()
2560 {
2561 if (sizeof ($2))
2562          return 0;
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 if (sizeof (($2)))
2575             return 0;
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"; then :
2581
2582 else
2583   eval "$3=yes"
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 fi
2589 eval ac_res=\$$3
2590                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2593
2594 } # ac_fn_c_check_type
2595 cat >config.log <<_ACEOF
2596 This file contains any messages produced by compilers while
2597 running configure, to aid debugging if configure makes a mistake.
2598
2599 It was created by libjava $as_me version-unused, which was
2600 generated by GNU Autoconf 2.64.  Invocation command line was
2601
2602   $ $0 $@
2603
2604 _ACEOF
2605 exec 5>>config.log
2606 {
2607 cat <<_ASUNAME
2608 ## --------- ##
2609 ## Platform. ##
2610 ## --------- ##
2611
2612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2617
2618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2619 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2620
2621 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2622 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2624 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2625 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2626 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2627 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2628
2629 _ASUNAME
2630
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636     $as_echo "PATH: $as_dir"
2637   done
2638 IFS=$as_save_IFS
2639
2640 } >&5
2641
2642 cat >&5 <<_ACEOF
2643
2644
2645 ## ----------- ##
2646 ## Core tests. ##
2647 ## ----------- ##
2648
2649 _ACEOF
2650
2651
2652 # Keep a trace of the command line.
2653 # Strip out --no-create and --no-recursion so they do not pile up.
2654 # Strip out --silent because we don't want to record it for future runs.
2655 # Also quote any args containing shell meta-characters.
2656 # Make two passes to allow for proper duplicate-argument suppression.
2657 ac_configure_args=
2658 ac_configure_args0=
2659 ac_configure_args1=
2660 ac_must_keep_next=false
2661 for ac_pass in 1 2
2662 do
2663   for ac_arg
2664   do
2665     case $ac_arg in
2666     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2667     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2668     | -silent | --silent | --silen | --sile | --sil)
2669       continue ;;
2670     *\'*)
2671       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2672     esac
2673     case $ac_pass in
2674     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2675     2)
2676       as_fn_append ac_configure_args1 " '$ac_arg'"
2677       if test $ac_must_keep_next = true; then
2678         ac_must_keep_next=false # Got value, back to normal.
2679       else
2680         case $ac_arg in
2681           *=* | --config-cache | -C | -disable-* | --disable-* \
2682           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2683           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2684           | -with-* | --with-* | -without-* | --without-* | --x)
2685             case "$ac_configure_args0 " in
2686               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2687             esac
2688             ;;
2689           -* ) ac_must_keep_next=true ;;
2690         esac
2691       fi
2692       as_fn_append ac_configure_args " '$ac_arg'"
2693       ;;
2694     esac
2695   done
2696 done
2697 { ac_configure_args0=; unset ac_configure_args0;}
2698 { ac_configure_args1=; unset ac_configure_args1;}
2699
2700 # When interrupted or exit'd, cleanup temporary files, and complete
2701 # config.log.  We remove comments because anyway the quotes in there
2702 # would cause problems or look ugly.
2703 # WARNING: Use '\'' to represent an apostrophe within the trap.
2704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2705 trap 'exit_status=$?
2706   # Save into config.log some information that might help in debugging.
2707   {
2708     echo
2709
2710     cat <<\_ASBOX
2711 ## ---------------- ##
2712 ## Cache variables. ##
2713 ## ---------------- ##
2714 _ASBOX
2715     echo
2716     # The following way of writing the cache mishandles newlines in values,
2717 (
2718   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2719     eval ac_val=\$$ac_var
2720     case $ac_val in #(
2721     *${as_nl}*)
2722       case $ac_var in #(
2723       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2725       esac
2726       case $ac_var in #(
2727       _ | IFS | as_nl) ;; #(
2728       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2729       *) { eval $ac_var=; unset $ac_var;} ;;
2730       esac ;;
2731     esac
2732   done
2733   (set) 2>&1 |
2734     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2735     *${as_nl}ac_space=\ *)
2736       sed -n \
2737         "s/'\''/'\''\\\\'\'''\''/g;
2738           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2739       ;; #(
2740     *)
2741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2742       ;;
2743     esac |
2744     sort
2745 )
2746     echo
2747
2748     cat <<\_ASBOX
2749 ## ----------------- ##
2750 ## Output variables. ##
2751 ## ----------------- ##
2752 _ASBOX
2753     echo
2754     for ac_var in $ac_subst_vars
2755     do
2756       eval ac_val=\$$ac_var
2757       case $ac_val in
2758       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2759       esac
2760       $as_echo "$ac_var='\''$ac_val'\''"
2761     done | sort
2762     echo
2763
2764     if test -n "$ac_subst_files"; then
2765       cat <<\_ASBOX
2766 ## ------------------- ##
2767 ## File substitutions. ##
2768 ## ------------------- ##
2769 _ASBOX
2770       echo
2771       for ac_var in $ac_subst_files
2772       do
2773         eval ac_val=\$$ac_var
2774         case $ac_val in
2775         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776         esac
2777         $as_echo "$ac_var='\''$ac_val'\''"
2778       done | sort
2779       echo
2780     fi
2781
2782     if test -s confdefs.h; then
2783       cat <<\_ASBOX
2784 ## ----------- ##
2785 ## confdefs.h. ##
2786 ## ----------- ##
2787 _ASBOX
2788       echo
2789       cat confdefs.h
2790       echo
2791     fi
2792     test "$ac_signal" != 0 &&
2793       $as_echo "$as_me: caught signal $ac_signal"
2794     $as_echo "$as_me: exit $exit_status"
2795   } >&5
2796   rm -f core *.core core.conftest.* &&
2797     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2798     exit $exit_status
2799 ' 0
2800 for ac_signal in 1 2 13 15; do
2801   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2802 done
2803 ac_signal=0
2804
2805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2806 rm -f -r conftest* confdefs.h
2807
2808 $as_echo "/* confdefs.h */" > confdefs.h
2809
2810 # Predefined preprocessor variables.
2811
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE_NAME "$PACKAGE_NAME"
2814 _ACEOF
2815
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2818 _ACEOF
2819
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2822 _ACEOF
2823
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_STRING "$PACKAGE_STRING"
2826 _ACEOF
2827
2828 cat >>confdefs.h <<_ACEOF
2829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2830 _ACEOF
2831
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_URL "$PACKAGE_URL"
2834 _ACEOF
2835
2836
2837 # Let the site file select an alternate cache file if it wants to.
2838 # Prefer an explicitly selected file to automatically selected ones.
2839 ac_site_file1=NONE
2840 ac_site_file2=NONE
2841 if test -n "$CONFIG_SITE"; then
2842   ac_site_file1=$CONFIG_SITE
2843 elif test "x$prefix" != xNONE; then
2844   ac_site_file1=$prefix/share/config.site
2845   ac_site_file2=$prefix/etc/config.site
2846 else
2847   ac_site_file1=$ac_default_prefix/share/config.site
2848   ac_site_file2=$ac_default_prefix/etc/config.site
2849 fi
2850 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2851 do
2852   test "x$ac_site_file" = xNONE && continue
2853   if test -r "$ac_site_file"; then
2854     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2855 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2856     sed 's/^/| /' "$ac_site_file" >&5
2857     . "$ac_site_file"
2858   fi
2859 done
2860
2861 if test -r "$cache_file"; then
2862   # Some versions of bash will fail to source /dev/null (special
2863   # files actually), so we avoid doing that.
2864   if test -f "$cache_file"; then
2865     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2866 $as_echo "$as_me: loading cache $cache_file" >&6;}
2867     case $cache_file in
2868       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2869       *)                      . "./$cache_file";;
2870     esac
2871   fi
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2874 $as_echo "$as_me: creating cache $cache_file" >&6;}
2875   >$cache_file
2876 fi
2877
2878 # Check that the precious variables saved in the cache have kept the same
2879 # value.
2880 ac_cache_corrupted=false
2881 for ac_var in $ac_precious_vars; do
2882   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2883   eval ac_new_set=\$ac_env_${ac_var}_set
2884   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2885   eval ac_new_val=\$ac_env_${ac_var}_value
2886   case $ac_old_set,$ac_new_set in
2887     set,)
2888       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2889 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2890       ac_cache_corrupted=: ;;
2891     ,set)
2892       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2893 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2894       ac_cache_corrupted=: ;;
2895     ,);;
2896     *)
2897       if test "x$ac_old_val" != "x$ac_new_val"; then
2898         # differences in whitespace do not lead to failure.
2899         ac_old_val_w=`echo x $ac_old_val`
2900         ac_new_val_w=`echo x $ac_new_val`
2901         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2902           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2903 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2904           ac_cache_corrupted=:
2905         else
2906           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2907 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2908           eval $ac_var=\$ac_old_val
2909         fi
2910         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2911 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2912         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2913 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2914       fi;;
2915   esac
2916   # Pass precious variables to config.status.
2917   if test "$ac_new_set" = set; then
2918     case $ac_new_val in
2919     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2920     *) ac_arg=$ac_var=$ac_new_val ;;
2921     esac
2922     case " $ac_configure_args " in
2923       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2924       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2925     esac
2926   fi
2927 done
2928 if $ac_cache_corrupted; then
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2932 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2933   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2934 fi
2935 ## -------------------- ##
2936 ## Main body of script. ##
2937 ## -------------------- ##
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
2945
2946
2947
2948
2949
2950
2951
2952 ac_aux_dir=
2953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2954   for ac_t in install-sh install.sh shtool; do
2955     if test -f "$ac_dir/$ac_t"; then
2956       ac_aux_dir=$ac_dir
2957       ac_install_sh="$ac_aux_dir/$ac_t -c"
2958       break 2
2959     fi
2960   done
2961 done
2962 if test -z "$ac_aux_dir"; then
2963   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2964 fi
2965
2966 # These three variables are undocumented and unsupported,
2967 # and are intended to be withdrawn in a future Autoconf release.
2968 # They can cause serious problems if a builder's source tree is in a directory
2969 # whose full name contains unusual characters.
2970 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2971 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2972 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2973
2974
2975 # Make sure we can run config.sub.
2976 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2977   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2980 $as_echo_n "checking build system type... " >&6; }
2981 if test "${ac_cv_build+set}" = set; then :
2982   $as_echo_n "(cached) " >&6
2983 else
2984   ac_build_alias=$build_alias
2985 test "x$ac_build_alias" = x &&
2986   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2987 test "x$ac_build_alias" = x &&
2988   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2990   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2991
2992 fi
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2994 $as_echo "$ac_cv_build" >&6; }
2995 case $ac_cv_build in
2996 *-*-*) ;;
2997 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2998 esac
2999 build=$ac_cv_build
3000 ac_save_IFS=$IFS; IFS='-'
3001 set x $ac_cv_build
3002 shift
3003 build_cpu=$1
3004 build_vendor=$2
3005 shift; shift
3006 # Remember, the first character of IFS is used to create $*,
3007 # except with old shells:
3008 build_os=$*
3009 IFS=$ac_save_IFS
3010 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3011
3012
3013  case ${build_alias} in
3014   "") build_noncanonical=${build} ;;
3015   *) build_noncanonical=${build_alias} ;;
3016 esac
3017
3018  case ${host_alias} in
3019   "") host_noncanonical=${build_noncanonical} ;;
3020   *) host_noncanonical=${host_alias} ;;
3021 esac
3022
3023  case ${target_alias} in
3024   "") target_noncanonical=${host_noncanonical} ;;
3025   *) target_noncanonical=${target_alias} ;;
3026 esac
3027
3028
3029 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3030 # have matching libraries, they should use host libraries: Makefile.tpl
3031 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3032 # However, they still use the build modules, because the corresponding
3033 # host modules (e.g. bison) are only built for the host when bootstrap
3034 # finishes. So:
3035 # - build_subdir is where we find build modules, and never changes.
3036 # - build_libsubdir is where we find build libraries, and can be overridden.
3037
3038 # Prefix 'build-' so this never conflicts with target_subdir.
3039 build_subdir="build-${build_noncanonical}"
3040
3041 # Check whether --with-build-libsubdir was given.
3042 if test "${with_build_libsubdir+set}" = set; then :
3043   withval=$with_build_libsubdir; build_libsubdir="$withval"
3044 else
3045   build_libsubdir="$build_subdir"
3046 fi
3047
3048 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3049 if ( test $srcdir = . && test -d gcc ) \
3050    || test -d $srcdir/../host-${host_noncanonical}; then
3051   host_subdir="host-${host_noncanonical}"
3052 else
3053   host_subdir=.
3054 fi
3055 # No prefix.
3056 target_subdir=${target_noncanonical}
3057
3058
3059 # We use these options to decide which functions to include.
3060
3061 # Check whether --with-target-subdir was given.
3062 if test "${with_target_subdir+set}" = set; then :
3063   withval=$with_target_subdir;
3064 fi
3065
3066
3067 # We may get other options which we don't document:
3068 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3069
3070 # Find the rest of the source tree framework.
3071 # Default to --enable-multilib
3072 # Check whether --enable-multilib was given.
3073 if test "${enable_multilib+set}" = set; then :
3074   enableval=$enable_multilib; case "$enableval" in
3075   yes) multilib=yes ;;
3076   no)  multilib=no ;;
3077   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3078  esac
3079 else
3080   multilib=yes
3081 fi
3082
3083
3084 # We may get other options which we leave undocumented:
3085 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3086 # See config-ml.in if you want the gory details.
3087
3088 if test "$srcdir" = "."; then
3089   if test "$with_target_subdir" != "."; then
3090     multi_basedir="$srcdir/$with_multisrctop../.."
3091   else
3092     multi_basedir="$srcdir/$with_multisrctop.."
3093   fi
3094 else
3095   multi_basedir="$srcdir/.."
3096 fi
3097
3098
3099 # Even if the default multilib is not a cross compilation,
3100 # it may be that some of the other multilibs are.
3101 if test $cross_compiling = no && test $multilib = yes \
3102    && test "x${with_multisubdir}" != x ; then
3103    cross_compiling=maybe
3104 fi
3105
3106 ac_config_commands="$ac_config_commands default-1"
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3110 $as_echo_n "checking host system type... " >&6; }
3111 if test "${ac_cv_host+set}" = set; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test "x$host_alias" = x; then
3115   ac_cv_host=$ac_cv_build
3116 else
3117   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3123 $as_echo "$ac_cv_host" >&6; }
3124 case $ac_cv_host in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3127 esac
3128 host=$ac_cv_host
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_host
3131 shift
3132 host_cpu=$1
3133 host_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 host_os=$*
3138 IFS=$ac_save_IFS
3139 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3143 $as_echo_n "checking target system type... " >&6; }
3144 if test "${ac_cv_target+set}" = set; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test "x$target_alias" = x; then
3148   ac_cv_target=$ac_cv_host
3149 else
3150   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3151     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3152 fi
3153
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3156 $as_echo "$ac_cv_target" >&6; }
3157 case $ac_cv_target in
3158 *-*-*) ;;
3159 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3160 esac
3161 target=$ac_cv_target
3162 ac_save_IFS=$IFS; IFS='-'
3163 set x $ac_cv_target
3164 shift
3165 target_cpu=$1
3166 target_vendor=$2
3167 shift; shift
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3170 target_os=$*
3171 IFS=$ac_save_IFS
3172 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3173
3174
3175 # The aliases save the names the user supplied, while $host etc.
3176 # will get canonicalized.
3177 test -n "$target_alias" &&
3178   test "$program_prefix$program_suffix$program_transform_name" = \
3179     NONENONEs,x,x, &&
3180   program_prefix=${target_alias}-
3181
3182  case ${build_alias} in
3183   "") build_noncanonical=${build} ;;
3184   *) build_noncanonical=${build_alias} ;;
3185 esac
3186
3187  case ${target_alias} in
3188   "") target_noncanonical=${host_noncanonical} ;;
3189   *) target_noncanonical=${target_alias} ;;
3190 esac
3191
3192
3193
3194
3195 # This works around the fact that libtool configuration may change LD
3196 # for this particular configuration, but some shells, instead of
3197 # keeping the changes in LD private, export them just because LD is
3198 # exported.
3199 ORIGINAL_LD_FOR_MULTILIBS=$LD
3200
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3202 $as_echo_n "checking whether ln -s works... " >&6; }
3203 LN_S=$as_ln_s
3204 if test "$LN_S" = "ln -s"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3209 $as_echo "no, using $LN_S" >&6; }
3210 fi
3211
3212
3213 # This works around an automake problem.
3214 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3215
3216
3217
3218 # Check whether --with-cross-host was given.
3219 if test "${with_cross_host+set}" = set; then :
3220   withval=$with_cross_host;
3221 fi
3222
3223
3224
3225 # Check whether --with-newlib was given.
3226 if test "${with_newlib+set}" = set; then :
3227   withval=$with_newlib;
3228 fi
3229
3230
3231 # Check whether --enable-version-specific-runtime-libs was given.
3232 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3233   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3234       yes) version_specific_libs=yes ;;
3235       no)  version_specific_libs=no ;;
3236       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3237      esac
3238 else
3239   version_specific_libs=no
3240
3241 fi
3242
3243
3244 # Check whether --enable-browser-plugin was given.
3245 if test "${enable_browser_plugin+set}" = set; then :
3246   enableval=$enable_browser_plugin; case "$enableval" in
3247       yes) browser_plugin_enabled=yes ;;
3248       no)  browser_plugin_enabled=no ;;
3249       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3250      esac
3251 else
3252   browser_plugin_enabled=no
3253
3254 fi
3255
3256
3257 # Check whether --enable-gconf-peer was given.
3258 if test "${enable_gconf_peer+set}" = set; then :
3259   enableval=$enable_gconf_peer; case "$enableval" in
3260       yes) gconf_enabled=yes ;;
3261       no)  gconf_enabled=no ;;
3262       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3263      esac
3264 else
3265   gconf_enabled=no
3266
3267 fi
3268
3269
3270
3271 # Check whether --with-antlr-jar was given.
3272 if test "${with_antlr_jar+set}" = set; then :
3273   withval=$with_antlr_jar;
3274              ANTLR_JAR=$withval
3275
3276 else
3277
3278              ANTLR_JAR=
3279
3280 fi
3281
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3284 $as_echo_n "checking for antlr.jar... " >&6; }
3285 if test "x$ANTLR_JAR" = x; then
3286     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3287         /usr/share/antlr/lib /usr/share/java /usr/lib;
3288     do
3289         if test -f "$antlr_lib_home/antlr.jar"; then
3290             # FIXME: version check for antlr needed without using a VM
3291             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3292             break
3293         fi
3294     done
3295     if test "x$ANTLR_JAR" = x; then
3296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3297 $as_echo "not found" >&6; }
3298     else
3299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3300 $as_echo "$ANTLR_JAR" >&6; }
3301     fi
3302 else
3303     if test -f "${ANTLR_JAR}"; then
3304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3305 $as_echo "$ANTLR_JAR" >&6; }
3306     else
3307         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3308     fi
3309 fi
3310
3311
3312 # Check whether --enable-gjdoc was given.
3313 if test "${enable_gjdoc+set}" = set; then :
3314   enableval=$enable_gjdoc; case "${enableval}" in
3315                 yes) BUILD_GJDOC=yes ;;
3316                 no) BUILD_GJDOC=no ;;
3317                 *) BUILD_GJDOC=yes ;;
3318               esac
3319 else
3320   BUILD_GJDOC=maybe
3321 fi
3322
3323
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3325 $as_echo_n "checking whether to build gjdoc... " >&6; }
3326 if test "x$BUILD_GJDOC" = xmaybe; then
3327     if test -f "${ANTLR_JAR}"; then
3328         BUILD_GJDOC=yes
3329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3331     else
3332         BUILD_GJDOC=no
3333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3334 $as_echo "no, antlr.jar not found" >&6; }
3335     fi
3336 else
3337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3338 $as_echo "$BUILD_GJDOC" >&6; }
3339 fi
3340  if test "x${BUILD_GJDOC}" = xyes; then
3341   CREATE_GJDOC_TRUE=
3342   CREATE_GJDOC_FALSE='#'
3343 else
3344   CREATE_GJDOC_TRUE='#'
3345   CREATE_GJDOC_FALSE=
3346 fi
3347
3348
3349 # Check whether --enable-java-maintainer-mode was given.
3350 if test "${enable_java_maintainer_mode+set}" = set; then :
3351   enableval=$enable_java_maintainer_mode;
3352 fi
3353
3354  if test "$enable_java_maintainer_mode" = yes; then
3355   JAVA_MAINTAINER_MODE_TRUE=
3356   JAVA_MAINTAINER_MODE_FALSE='#'
3357 else
3358   JAVA_MAINTAINER_MODE_TRUE='#'
3359   JAVA_MAINTAINER_MODE_FALSE=
3360 fi
3361
3362
3363 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3364
3365
3366 # For libstdc++-v3, -fno-builtin must be present here so that a
3367 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3368 # used in later tests.  This may not be necessary in libjava; I don't know.
3369 save_CXXFLAGS="$CXXFLAGS"
3370 CXXFLAGS="$CXXFLAGS -fno-builtin"
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 if test -n "$ac_tool_prefix"; then
3377   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384   if test -n "$CC"; then
3385   ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392     for ac_exec_ext in '' $ac_executable_extensions; do
3393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399   done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$ac_cv_prog_CC"; then
3416   ac_ct_CC=$CC
3417   # Extract the first word of "gcc", so it can be a program name with args.
3418 set dummy gcc; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434     ac_cv_prog_ac_ct_CC="gcc"
3435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439   done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3448 else
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453   if test "x$ac_ct_CC" = x; then
3454     CC=""
3455   else
3456     case $cross_compiling:$ac_tool_warned in
3457 yes:)
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned=yes ;;
3461 esac
3462     CC=$ac_ct_CC
3463   fi
3464 else
3465   CC="$ac_cv_prog_CC"
3466 fi
3467
3468 if test -z "$CC"; then
3469           if test -n "$ac_tool_prefix"; then
3470     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}cc; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if test "${ac_cv_prog_CC+set}" = set; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -n "$CC"; then
3478   ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487     ac_cv_prog_CC="${ac_tool_prefix}cc"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507   fi
3508 fi
3509 if test -z "$CC"; then
3510   # Extract the first word of "cc", so it can be a program name with args.
3511 set dummy cc; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_CC+set}" = set; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   if test -n "$CC"; then
3518   ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520   ac_prog_rejected=no
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526     for ac_exec_ext in '' $ac_executable_extensions; do
3527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3529        ac_prog_rejected=yes
3530        continue
3531      fi
3532     ac_cv_prog_CC="cc"
3533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537   done
3538 IFS=$as_save_IFS
3539
3540 if test $ac_prog_rejected = yes; then
3541   # We found a bogon in the path, so make sure we never use it.
3542   set dummy $ac_cv_prog_CC
3543   shift
3544   if test $# != 0; then
3545     # We chose a different compiler from the bogus one.
3546     # However, it has the same basename, so the bogon will be chosen
3547     # first if we set CC to just the basename; use the full file name.
3548     shift
3549     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3550   fi
3551 fi
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564 fi
3565 if test -z "$CC"; then
3566   if test -n "$ac_tool_prefix"; then
3567   for ac_prog in cl.exe
3568   do
3569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if test "${ac_cv_prog_CC+set}" = set; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   if test -n "$CC"; then
3577   ac_cv_prog_CC="$CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582   IFS=$as_save_IFS
3583   test -z "$as_dir" && as_dir=.
3584     for ac_exec_ext in '' $ac_executable_extensions; do
3585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588     break 2
3589   fi
3590 done
3591   done
3592 IFS=$as_save_IFS
3593
3594 fi
3595 fi
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3600 else
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 fi
3604
3605
3606     test -n "$CC" && break
3607   done
3608 fi
3609 if test -z "$CC"; then
3610   ac_ct_CC=$CC
3611   for ac_prog in cl.exe
3612 do
3613   # Extract the first word of "$ac_prog", so it can be a program name with args.
3614 set dummy $ac_prog; ac_word=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620   if test -n "$ac_ct_CC"; then
3621   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626   IFS=$as_save_IFS
3627   test -z "$as_dir" && as_dir=.
3628     for ac_exec_ext in '' $ac_executable_extensions; do
3629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630     ac_cv_prog_ac_ct_CC="$ac_prog"
3631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632     break 2
3633   fi
3634 done
3635   done
3636 IFS=$as_save_IFS
3637
3638 fi
3639 fi
3640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3641 if test -n "$ac_ct_CC"; then
3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3643 $as_echo "$ac_ct_CC" >&6; }
3644 else
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 fi
3648
3649
3650   test -n "$ac_ct_CC" && break
3651 done
3652
3653   if test "x$ac_ct_CC" = x; then
3654     CC=""
3655   else
3656     case $cross_compiling:$ac_tool_warned in
3657 yes:)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3660 ac_tool_warned=yes ;;
3661 esac
3662     CC=$ac_ct_CC
3663   fi
3664 fi
3665
3666 fi
3667
3668
3669 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "no acceptable C compiler found in \$PATH
3672 See \`config.log' for more details." "$LINENO" 5; }
3673
3674 # Provide some information about the compiler.
3675 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3676 set X $ac_compile
3677 ac_compiler=$2
3678 for ac_option in --version -v -V -qversion; do
3679   { { ac_try="$ac_compiler $ac_option >&5"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687   ac_status=$?
3688   if test -s conftest.err; then
3689     sed '10a\
3690 ... rest of stderr output deleted ...
3691          10q' conftest.err >conftest.er1
3692     cat conftest.er1 >&5
3693     rm -f conftest.er1 conftest.err
3694   fi
3695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696   test $ac_status = 0; }
3697 done
3698
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701
3702 int
3703 main ()
3704 {
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 # FIXME: Cleanup?
3711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3712   (eval $ac_link) 2>&5
3713   ac_status=$?
3714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715   test $ac_status = 0; }; then :
3716   gcc_no_link=no
3717 else
3718   gcc_no_link=yes
3719 fi
3720 if test x$gcc_no_link = xyes; then
3721   # Setting cross_compile will disable run tests; it will
3722   # also disable AC_CHECK_FILE but that's generally
3723   # correct if we can't link.
3724   cross_compiling=yes
3725   EXEEXT=
3726 else
3727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h.  */
3729
3730 int
3731 main ()
3732 {
3733
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 ac_clean_files_save=$ac_clean_files
3739 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3740 # Try to create an executable without -o first, disregard a.out.
3741 # It will help us diagnose broken compilers, and finding out an intuition
3742 # of exeext.
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3744 $as_echo_n "checking for C compiler default output file name... " >&6; }
3745 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3746
3747 # The possible output files:
3748 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3749
3750 ac_rmfiles=
3751 for ac_file in $ac_files
3752 do
3753   case $ac_file in
3754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3756   esac
3757 done
3758 rm -f $ac_rmfiles
3759
3760 if { { ac_try="$ac_link_default"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767   (eval "$ac_link_default") 2>&5
3768   ac_status=$?
3769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770   test $ac_status = 0; }; then :
3771   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3772 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3773 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3774 # so that the user can short-circuit this test for compilers unknown to
3775 # Autoconf.
3776 for ac_file in $ac_files ''
3777 do
3778   test -f "$ac_file" || continue
3779   case $ac_file in
3780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3781         ;;
3782     [ab].out )
3783         # We found the default executable, but exeext='' is most
3784         # certainly right.
3785         break;;
3786     *.* )
3787         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3788         then :; else
3789            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3790         fi
3791         # We set ac_cv_exeext here because the later test for it is not
3792         # safe: cross compilers may not add the suffix if given an `-o'
3793         # argument, so we may need to know it at that point already.
3794         # Even if this section looks crufty: it has the advantage of
3795         # actually working.
3796         break;;
3797     * )
3798         break;;
3799   esac
3800 done
3801 test "$ac_cv_exeext" = no && ac_cv_exeext=
3802
3803 else
3804   ac_file=''
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3807 $as_echo "$ac_file" >&6; }
3808 if test -z "$ac_file"; then :
3809   $as_echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 { as_fn_set_status 77
3815 as_fn_error "C compiler cannot create executables
3816 See \`config.log' for more details." "$LINENO" 5; }; }
3817 fi
3818 ac_exeext=$ac_cv_exeext
3819
3820 # Check that the compiler produces executables we can run.  If not, either
3821 # the compiler is broken, or we cross compile.
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3823 $as_echo_n "checking whether the C compiler works... " >&6; }
3824 # If not cross compiling, check that we can run a simple program.
3825 if test "$cross_compiling" != yes; then
3826   if { ac_try='./$ac_file'
3827   { { case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833   (eval "$ac_try") 2>&5
3834   ac_status=$?
3835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836   test $ac_status = 0; }; }; then
3837     cross_compiling=no
3838   else
3839     if test "$cross_compiling" = maybe; then
3840         cross_compiling=yes
3841     else
3842         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error "cannot run C compiled programs.
3845 If you meant to cross compile, use \`--host'.
3846 See \`config.log' for more details." "$LINENO" 5; }
3847     fi
3848   fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851 $as_echo "yes" >&6; }
3852
3853 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3854 ac_clean_files=$ac_clean_files_save
3855 # Check that the compiler produces executables we can run.  If not, either
3856 # the compiler is broken, or we cross compile.
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3858 $as_echo_n "checking whether we are cross compiling... " >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3860 $as_echo "$cross_compiling" >&6; }
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3863 $as_echo_n "checking for suffix of executables... " >&6; }
3864 if { { ac_try="$ac_link"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871   (eval "$ac_link") 2>&5
3872   ac_status=$?
3873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874   test $ac_status = 0; }; then :
3875   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3876 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3877 # work properly (i.e., refer to `conftest.exe'), while it won't with
3878 # `rm'.
3879 for ac_file in conftest.exe conftest conftest.*; do
3880   test -f "$ac_file" || continue
3881   case $ac_file in
3882     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884           break;;
3885     * ) break;;
3886   esac
3887 done
3888 else
3889   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot compute suffix of executables: cannot compile and link
3892 See \`config.log' for more details." "$LINENO" 5; }
3893 fi
3894 rm -f conftest$ac_cv_exeext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3896 $as_echo "$ac_cv_exeext" >&6; }
3897
3898 rm -f conftest.$ac_ext
3899 EXEEXT=$ac_cv_exeext
3900 ac_exeext=$EXEEXT
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3903 $as_echo_n "checking for suffix of object files... " >&6; }
3904 if test "${ac_cv_objext+set}" = set; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 rm -f conftest.o conftest.obj
3919 if { { ac_try="$ac_compile"
3920 case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926   (eval "$ac_compile") 2>&5
3927   ac_status=$?
3928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929   test $ac_status = 0; }; then :
3930   for ac_file in conftest.o conftest.obj conftest.*; do
3931   test -f "$ac_file" || continue;
3932   case $ac_file in
3933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3934     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3935        break;;
3936   esac
3937 done
3938 else
3939   $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of object files: cannot compile
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3950 $as_echo "$ac_cv_objext" >&6; }
3951 OBJEXT=$ac_cv_objext
3952 ac_objext=$OBJEXT
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3954 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3955 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960
3961 int
3962 main ()
3963 {
3964 #ifndef __GNUC__
3965        choke me
3966 #endif
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 if ac_fn_c_try_compile "$LINENO"; then :
3973   ac_compiler_gnu=yes
3974 else
3975   ac_compiler_gnu=no
3976 fi
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3979
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3982 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3983 if test $ac_compiler_gnu = yes; then
3984   GCC=yes
3985 else
3986   GCC=
3987 fi
3988 ac_test_CFLAGS=${CFLAGS+set}
3989 ac_save_CFLAGS=$CFLAGS
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3991 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3992 if test "${ac_cv_prog_cc_g+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   ac_save_c_werror_flag=$ac_c_werror_flag
3996    ac_c_werror_flag=yes
3997    ac_cv_prog_cc_g=no
3998    CFLAGS="-g"
3999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h.  */
4001
4002 int
4003 main ()
4004 {
4005
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011   ac_cv_prog_cc_g=yes
4012 else
4013   CFLAGS=""
4014       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016
4017 int
4018 main ()
4019 {
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026
4027 else
4028   ac_c_werror_flag=$ac_save_c_werror_flag
4029          CFLAGS="-g"
4030          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032
4033 int
4034 main ()
4035 {
4036
4037   ;
4038   return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042   ac_cv_prog_cc_g=yes
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 fi
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049    ac_c_werror_flag=$ac_save_c_werror_flag
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4052 $as_echo "$ac_cv_prog_cc_g" >&6; }
4053 if test "$ac_test_CFLAGS" = set; then
4054   CFLAGS=$ac_save_CFLAGS
4055 elif test $ac_cv_prog_cc_g = yes; then
4056   if test "$GCC" = yes; then
4057     CFLAGS="-g -O2"
4058   else
4059     CFLAGS="-g"
4060   fi
4061 else
4062   if test "$GCC" = yes; then
4063     CFLAGS="-O2"
4064   else
4065     CFLAGS=
4066   fi
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4069 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4070 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   ac_cv_prog_cc_c89=no
4074 ac_save_CC=$CC
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h.  */
4077 #include <stdarg.h>
4078 #include <stdio.h>
4079 #include <sys/types.h>
4080 #include <sys/stat.h>
4081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4082 struct buf { int x; };
4083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4084 static char *e (p, i)
4085      char **p;
4086      int i;
4087 {
4088   return p[i];
4089 }
4090 static char *f (char * (*g) (char **, int), char **p, ...)
4091 {
4092   char *s;
4093   va_list v;
4094   va_start (v,p);
4095   s = g (p, va_arg (v,int));
4096   va_end (v);
4097   return s;
4098 }
4099
4100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4101    function prototypes and stuff, but not '\xHH' hex character constants.
4102    These don't provoke an error unfortunately, instead are silently treated
4103    as 'x'.  The following induces an error, until -std is added to get
4104    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4105    array size at least.  It's necessary to write '\x00'==0 to get something
4106    that's true only with -std.  */
4107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4108
4109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4110    inside strings and character constants.  */
4111 #define FOO(x) 'x'
4112 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4113
4114 int test (int i, double x);
4115 struct s1 {int (*f) (int a);};
4116 struct s2 {int (*f) (double a);};
4117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4118 int argc;
4119 char **argv;
4120 int
4121 main ()
4122 {
4123 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4129         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4130 do
4131   CC="$ac_save_CC $ac_arg"
4132   if ac_fn_c_try_compile "$LINENO"; then :
4133   ac_cv_prog_cc_c89=$ac_arg
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext
4136   test "x$ac_cv_prog_cc_c89" != "xno" && break
4137 done
4138 rm -f conftest.$ac_ext
4139 CC=$ac_save_CC
4140
4141 fi
4142 # AC_CACHE_VAL
4143 case "x$ac_cv_prog_cc_c89" in
4144   x)
4145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4146 $as_echo "none needed" >&6; } ;;
4147   xno)
4148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149 $as_echo "unsupported" >&6; } ;;
4150   *)
4151     CC="$CC $ac_cv_prog_cc_c89"
4152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4153 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4154 esac
4155 if test "x$ac_cv_prog_cc_c89" != xno; then :
4156
4157 fi
4158
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164
4165 ac_ext=cpp
4166 ac_cpp='$CXXCPP $CPPFLAGS'
4167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4170 if test -z "$CXX"; then
4171   if test -n "$CCC"; then
4172     CXX=$CCC
4173   else
4174     if test -n "$ac_tool_prefix"; then
4175   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4176   do
4177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_CXX+set}" = set; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -n "$CXX"; then
4185   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192     for ac_exec_ext in '' $ac_executable_extensions; do
4193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199   done
4200 IFS=$as_save_IFS
4201
4202 fi
4203 fi
4204 CXX=$ac_cv_prog_CXX
4205 if test -n "$CXX"; then
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4207 $as_echo "$CXX" >&6; }
4208 else
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4211 fi
4212
4213
4214     test -n "$CXX" && break
4215   done
4216 fi
4217 if test -z "$CXX"; then
4218   ac_ct_CXX=$CXX
4219   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4220 do
4221   # Extract the first word of "$ac_prog", so it can be a program name with args.
4222 set dummy $ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   if test -n "$ac_ct_CXX"; then
4229   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_exec_ext in '' $ac_executable_extensions; do
4237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238     ac_cv_prog_ac_ct_CXX="$ac_prog"
4239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243   done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4249 if test -n "$ac_ct_CXX"; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4251 $as_echo "$ac_ct_CXX" >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258   test -n "$ac_ct_CXX" && break
4259 done
4260
4261   if test "x$ac_ct_CXX" = x; then
4262     CXX="g++"
4263   else
4264     case $cross_compiling:$ac_tool_warned in
4265 yes:)
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268 ac_tool_warned=yes ;;
4269 esac
4270     CXX=$ac_ct_CXX
4271   fi
4272 fi
4273
4274   fi
4275 fi
4276 # Provide some information about the compiler.
4277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4278 set X $ac_compile
4279 ac_compiler=$2
4280 for ac_option in --version -v -V -qversion; do
4281   { { ac_try="$ac_compiler $ac_option >&5"
4282 case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4289   ac_status=$?
4290   if test -s conftest.err; then
4291     sed '10a\
4292 ... rest of stderr output deleted ...
4293          10q' conftest.err >conftest.er1
4294     cat conftest.er1 >&5
4295     rm -f conftest.er1 conftest.err
4296   fi
4297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298   test $ac_status = 0; }
4299 done
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h.  */
4308
4309 int
4310 main ()
4311 {
4312 #ifndef __GNUC__
4313        choke me
4314 #endif
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4321   ac_compiler_gnu=yes
4322 else
4323   ac_compiler_gnu=no
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4332   GXX=yes
4333 else
4334   GXX=
4335 fi
4336 ac_test_CXXFLAGS=${CXXFLAGS+set}
4337 ac_save_CXXFLAGS=$CXXFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4341   $as_echo_n "(cached) " >&6
4342 else
4343   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4344    ac_cxx_werror_flag=yes
4345    ac_cv_prog_cxx_g=no
4346    CXXFLAGS="-g"
4347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h.  */
4349
4350 int
4351 main ()
4352 {
4353
4354   ;
4355   return 0;
4356 }
4357 _ACEOF
4358 if ac_fn_cxx_try_compile "$LINENO"; then :
4359   ac_cv_prog_cxx_g=yes
4360 else
4361   CXXFLAGS=""
4362       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h.  */
4364
4365 int
4366 main ()
4367 {
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_cxx_try_compile "$LINENO"; then :
4374
4375 else
4376   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4377          CXXFLAGS="-g"
4378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_cxx_try_compile "$LINENO"; then :
4390   ac_cv_prog_cxx_g=yes
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 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4401 if test "$ac_test_CXXFLAGS" = set; then
4402   CXXFLAGS=$ac_save_CXXFLAGS
4403 elif test $ac_cv_prog_cxx_g = yes; then
4404   if test "$GXX" = yes; then
4405     CXXFLAGS="-g -O2"
4406   else
4407     CXXFLAGS="-g"
4408   fi
4409 else
4410   if test "$GXX" = yes; then
4411     CXXFLAGS="-O2"
4412   else
4413     CXXFLAGS=
4414   fi
4415 fi
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422 CXXFLAGS="$save_CXXFLAGS"
4423
4424 am__api_version='1.11'
4425
4426 # Find a good install program.  We prefer a C program (faster),
4427 # so one script is as good as another.  But avoid the broken or
4428 # incompatible versions:
4429 # SysV /etc/install, /usr/sbin/install
4430 # SunOS /usr/etc/install
4431 # IRIX /sbin/install
4432 # AIX /bin/install
4433 # AmigaOS /C/install, which installs bootblocks on floppy discs
4434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4437 # OS/2's system install, which has a completely different semantic
4438 # ./install, which can be erroneously created by make from ./install.sh.
4439 # Reject install programs that cannot install multiple files.
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4442 if test -z "$INSTALL"; then
4443 if test "${ac_cv_path_install+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451     # Account for people who put trailing slashes in PATH elements.
4452 case $as_dir/ in #((
4453   ./ | .// | /[cC]/* | \
4454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4455   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4456   /usr/ucb/* ) ;;
4457   *)
4458     # OSF1 and SCO ODT 3.0 have their own names for install.
4459     # Don't use installbsd from OSF since it installs stuff as root
4460     # by default.
4461     for ac_prog in ginstall scoinst install; do
4462       for ac_exec_ext in '' $ac_executable_extensions; do
4463         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4464           if test $ac_prog = install &&
4465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4466             # AIX install.  It has an incompatible calling convention.
4467             :
4468           elif test $ac_prog = install &&
4469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4470             # program-specific install script used by HP pwplus--don't use.
4471             :
4472           else
4473             rm -rf conftest.one conftest.two conftest.dir
4474             echo one > conftest.one
4475             echo two > conftest.two
4476             mkdir conftest.dir
4477             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4478               test -s conftest.one && test -s conftest.two &&
4479               test -s conftest.dir/conftest.one &&
4480               test -s conftest.dir/conftest.two
4481             then
4482               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4483               break 3
4484             fi
4485           fi
4486         fi
4487       done
4488     done
4489     ;;
4490 esac
4491
4492   done
4493 IFS=$as_save_IFS
4494
4495 rm -rf conftest.one conftest.two conftest.dir
4496
4497 fi
4498   if test "${ac_cv_path_install+set}" = set; then
4499     INSTALL=$ac_cv_path_install
4500   else
4501     # As a last resort, use the slow shell script.  Don't cache a
4502     # value for INSTALL within a source directory, because that will
4503     # break other packages using the cache if that directory is
4504     # removed, or if the value is a relative name.
4505     INSTALL=$ac_install_sh
4506   fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4509 $as_echo "$INSTALL" >&6; }
4510
4511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4512 # It thinks the first close brace ends the variable substitution.
4513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4514
4515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4516
4517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4520 $as_echo_n "checking whether build environment is sane... " >&6; }
4521 # Just in case
4522 sleep 1
4523 echo timestamp > conftest.file
4524 # Reject unsafe characters in $srcdir or the absolute working directory
4525 # name.  Accept space and tab only in the latter.
4526 am_lf='
4527 '
4528 case `pwd` in
4529   *[\\\"\#\$\&\'\`$am_lf]*)
4530     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4531 esac
4532 case $srcdir in
4533   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4534     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4535 esac
4536
4537 # Do `set' in a subshell so we don't clobber the current shell's
4538 # arguments.  Must try -L first in case configure is actually a
4539 # symlink; some systems play weird games with the mod time of symlinks
4540 # (eg FreeBSD returns the mod time of the symlink's containing
4541 # directory).
4542 if (
4543    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4544    if test "$*" = "X"; then
4545       # -L didn't work.
4546       set X `ls -t "$srcdir/configure" conftest.file`
4547    fi
4548    rm -f conftest.file
4549    if test "$*" != "X $srcdir/configure conftest.file" \
4550       && test "$*" != "X conftest.file $srcdir/configure"; then
4551
4552       # If neither matched, then we have a broken ls.  This can happen
4553       # if, for instance, CONFIG_SHELL is bash and it inherits a
4554       # broken ls alias from the environment.  This has actually
4555       # happened.  Such a system could not be considered "sane".
4556       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4557 alias in your environment" "$LINENO" 5
4558    fi
4559
4560    test "$2" = conftest.file
4561    )
4562 then
4563    # Ok.
4564    :
4565 else
4566    as_fn_error "newly created file is older than distributed files!
4567 Check your system clock" "$LINENO" 5
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4570 $as_echo "yes" >&6; }
4571 test "$program_prefix" != NONE &&
4572   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4573 # Use a double $ so make ignores it.
4574 test "$program_suffix" != NONE &&
4575   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4576 # Double any \ or $.
4577 # By default was `s,x,x', remove it if useless.
4578 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4579 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4580
4581 # expand $ac_aux_dir to an absolute path
4582 am_aux_dir=`cd $ac_aux_dir && pwd`
4583
4584 if test x"${MISSING+set}" != xset; then
4585   case $am_aux_dir in
4586   *\ * | *\     *)
4587     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4588   *)
4589     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4590   esac
4591 fi
4592 # Use eval to expand $SHELL
4593 if eval "$MISSING --run true"; then
4594   am_missing_run="$MISSING --run "
4595 else
4596   am_missing_run=
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4598 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4599 fi
4600
4601 if test x"${install_sh}" != xset; then
4602   case $am_aux_dir in
4603   *\ * | *\     *)
4604     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4605   *)
4606     install_sh="\${SHELL} $am_aux_dir/install-sh"
4607   esac
4608 fi
4609
4610 # Installed binaries are usually stripped using `strip' when the user
4611 # run `make install-strip'.  However `strip' might not be the right
4612 # tool to use in cross-compilation environments, therefore Automake
4613 # will honor the `STRIP' environment variable to overrule this program.
4614 if test "$cross_compiling" != no; then
4615   if test -n "$ac_tool_prefix"; then
4616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}strip; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_STRIP+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if test -n "$STRIP"; then
4624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638   done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 STRIP=$ac_cv_prog_STRIP
4644 if test -n "$STRIP"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4646 $as_echo "$STRIP" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653 fi
4654 if test -z "$ac_cv_prog_STRIP"; then
4655   ac_ct_STRIP=$STRIP
4656   # Extract the first word of "strip", so it can be a program name with args.
4657 set dummy strip; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$ac_ct_STRIP"; then
4664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_ac_ct_STRIP="strip"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4684 if test -n "$ac_ct_STRIP"; then
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4686 $as_echo "$ac_ct_STRIP" >&6; }
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692   if test "x$ac_ct_STRIP" = x; then
4693     STRIP=":"
4694   else
4695     case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701     STRIP=$ac_ct_STRIP
4702   fi
4703 else
4704   STRIP="$ac_cv_prog_STRIP"
4705 fi
4706
4707 fi
4708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4711 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4712 if test -z "$MKDIR_P"; then
4713   if test "${ac_cv_path_mkdir+set}" = set; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721     for ac_prog in mkdir gmkdir; do
4722          for ac_exec_ext in '' $ac_executable_extensions; do
4723            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4724            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4725              'mkdir (GNU coreutils) '* | \
4726              'mkdir (coreutils) '* | \
4727              'mkdir (fileutils) '4.1*)
4728                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4729                break 3;;
4730            esac
4731          done
4732        done
4733   done
4734 IFS=$as_save_IFS
4735
4736 fi
4737
4738   if test "${ac_cv_path_mkdir+set}" = set; then
4739     MKDIR_P="$ac_cv_path_mkdir -p"
4740   else
4741     # As a last resort, use the slow shell script.  Don't cache a
4742     # value for MKDIR_P within a source directory, because that will
4743     # break other packages using the cache if that directory is
4744     # removed, or if the value is a relative name.
4745     test -d ./--version && rmdir ./--version
4746     MKDIR_P="$ac_install_sh -d"
4747   fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4750 $as_echo "$MKDIR_P" >&6; }
4751
4752 mkdir_p="$MKDIR_P"
4753 case $mkdir_p in
4754   [\\/$]* | ?:[\\/]*) ;;
4755   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4756 esac
4757
4758 for ac_prog in gawk mawk nawk awk
4759 do
4760   # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_AWK+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if test -n "$AWK"; then
4768   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777     ac_cv_prog_AWK="$ac_prog"
4778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782   done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 AWK=$ac_cv_prog_AWK
4788 if test -n "$AWK"; then
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4790 $as_echo "$AWK" >&6; }
4791 else
4792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796
4797   test -n "$AWK" && break
4798 done
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4802 set x ${MAKE-make}
4803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4804 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   cat >conftest.make <<\_ACEOF
4808 SHELL = /bin/sh
4809 all:
4810         @echo '@@@%%%=$(MAKE)=@@@%%%'
4811 _ACEOF
4812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4814   *@@@%%%=?*=@@@%%%*)
4815     eval ac_cv_prog_make_${ac_make}_set=yes;;
4816   *)
4817     eval ac_cv_prog_make_${ac_make}_set=no;;
4818 esac
4819 rm -f conftest.make
4820 fi
4821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4823 $as_echo "yes" >&6; }
4824   SET_MAKE=
4825 else
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828   SET_MAKE="MAKE=${MAKE-make}"
4829 fi
4830
4831 rm -rf .tst 2>/dev/null
4832 mkdir .tst 2>/dev/null
4833 if test -d .tst; then
4834   am__leading_dot=.
4835 else
4836   am__leading_dot=_
4837 fi
4838 rmdir .tst 2>/dev/null
4839
4840 DEPDIR="${am__leading_dot}deps"
4841
4842 ac_config_commands="$ac_config_commands depfiles"
4843
4844
4845 am_make=${MAKE-make}
4846 cat > confinc << 'END'
4847 am__doit:
4848         @echo this is the am__doit target
4849 .PHONY: am__doit
4850 END
4851 # If we don't find an include directive, just comment out the code.
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4853 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4854 am__include="#"
4855 am__quote=
4856 _am_result=none
4857 # First try GNU make style include.
4858 echo "include confinc" > confmf
4859 # Ignore all kinds of additional output from `make'.
4860 case `$am_make -s -f confmf 2> /dev/null` in #(
4861 *the\ am__doit\ target*)
4862   am__include=include
4863   am__quote=
4864   _am_result=GNU
4865   ;;
4866 esac
4867 # Now try BSD make style include.
4868 if test "$am__include" = "#"; then
4869    echo '.include "confinc"' > confmf
4870    case `$am_make -s -f confmf 2> /dev/null` in #(
4871    *the\ am__doit\ target*)
4872      am__include=.include
4873      am__quote="\""
4874      _am_result=BSD
4875      ;;
4876    esac
4877 fi
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4881 $as_echo "$_am_result" >&6; }
4882 rm -f confinc confmf
4883
4884 # Check whether --enable-dependency-tracking was given.
4885 if test "${enable_dependency_tracking+set}" = set; then :
4886   enableval=$enable_dependency_tracking;
4887 fi
4888
4889 if test "x$enable_dependency_tracking" != xno; then
4890   am_depcomp="$ac_aux_dir/depcomp"
4891   AMDEPBACKSLASH='\'
4892 fi
4893  if test "x$enable_dependency_tracking" != xno; then
4894   AMDEP_TRUE=
4895   AMDEP_FALSE='#'
4896 else
4897   AMDEP_TRUE='#'
4898   AMDEP_FALSE=
4899 fi
4900
4901
4902 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4903   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4904   # is not polluted with repeated "-I."
4905   am__isrc=' -I$(srcdir)'
4906   # test to see if srcdir already configured
4907   if test -f $srcdir/config.status; then
4908     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4909   fi
4910 fi
4911
4912 # test whether we have cygpath
4913 if test -z "$CYGPATH_W"; then
4914   if (cygpath --version) >/dev/null 2>/dev/null; then
4915     CYGPATH_W='cygpath -w'
4916   else
4917     CYGPATH_W=echo
4918   fi
4919 fi
4920
4921
4922 # Define the identity of the package.
4923  PACKAGE='libjava'
4924  VERSION='version-unused'
4925
4926
4927 cat >>confdefs.h <<_ACEOF
4928 #define PACKAGE "$PACKAGE"
4929 _ACEOF
4930
4931
4932 cat >>confdefs.h <<_ACEOF
4933 #define VERSION "$VERSION"
4934 _ACEOF
4935
4936 # Some tools Automake needs.
4937
4938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4939
4940
4941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4942
4943
4944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4945
4946
4947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4948
4949
4950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4951
4952 # We need awk for the "check" target.  The system "awk" is bad on
4953 # some platforms.
4954 # Always define AMTAR for backward compatibility.
4955
4956 AMTAR=${AMTAR-"${am_missing_run}tar"}
4957
4958 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4959
4960
4961
4962
4963 depcc="$CC"   am_compiler_list=
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4966 $as_echo_n "checking dependency style of $depcc... " >&6; }
4967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4971   # We make a subdir and do the tests there.  Otherwise we can end up
4972   # making bogus files that we don't know about and never remove.  For
4973   # instance it was reported that on HP-UX the gcc test will end up
4974   # making a dummy file named `D' -- because `-MD' means `put the output
4975   # in D'.
4976   mkdir conftest.dir
4977   # Copy depcomp to subdir because otherwise we won't find it if we're
4978   # using a relative directory.
4979   cp "$am_depcomp" conftest.dir
4980   cd conftest.dir
4981   # We will build objects and dependencies in a subdirectory because
4982   # it helps to detect inapplicable dependency modes.  For instance
4983   # both Tru64's cc and ICC support -MD to output dependencies as a
4984   # side effect of compilation, but ICC will put the dependencies in
4985   # the current directory while Tru64 will put them in the object
4986   # directory.
4987   mkdir sub
4988
4989   am_cv_CC_dependencies_compiler_type=none
4990   if test "$am_compiler_list" = ""; then
4991      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4992   fi
4993   am__universal=false
4994   case " $depcc " in #(
4995      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4996      esac
4997
4998   for depmode in $am_compiler_list; do
4999     # Setup a source with many dependencies, because some compilers
5000     # like to wrap large dependency lists on column 80 (with \), and
5001     # we should not choose a depcomp mode which is confused by this.
5002     #
5003     # We need to recreate these files for each test, as the compiler may
5004     # overwrite some of them when testing with obscure command lines.
5005     # This happens at least with the AIX C compiler.
5006     : > sub/conftest.c
5007     for i in 1 2 3 4 5 6; do
5008       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5009       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5010       # Solaris 8's {/usr,}/bin/sh.
5011       touch sub/conftst$i.h
5012     done
5013     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5014
5015     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5016     # mode.  It turns out that the SunPro C++ compiler does not properly
5017     # handle `-M -o', and we need to detect this.  Also, some Intel
5018     # versions had trouble with output in subdirs
5019     am__obj=sub/conftest.${OBJEXT-o}
5020     am__minus_obj="-o $am__obj"
5021     case $depmode in
5022     gcc)
5023       # This depmode causes a compiler race in universal mode.
5024       test "$am__universal" = false || continue
5025       ;;
5026     nosideeffect)
5027       # after this tag, mechanisms are not by side-effect, so they'll
5028       # only be used when explicitly requested
5029       if test "x$enable_dependency_tracking" = xyes; then
5030         continue
5031       else
5032         break
5033       fi
5034       ;;
5035     msvisualcpp | msvcmsys)
5036       # This compiler won't grok `-c -o', but also, the minuso test has
5037       # not run yet.  These depmodes are late enough in the game, and
5038       # so weak that their functioning should not be impacted.
5039       am__obj=conftest.${OBJEXT-o}
5040       am__minus_obj=
5041       ;;
5042     none) break ;;
5043     esac
5044     if depmode=$depmode \
5045        source=sub/conftest.c object=$am__obj \
5046        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5047        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5048          >/dev/null 2>conftest.err &&
5049        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5050        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5051        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5052        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5053       # icc doesn't choke on unknown options, it will just issue warnings
5054       # or remarks (even with -Werror).  So we grep stderr for any message
5055       # that says an option was ignored or not supported.
5056       # When given -MP, icc 7.0 and 7.1 complain thusly:
5057       #   icc: Command line warning: ignoring option '-M'; no argument required
5058       # The diagnosis changed in icc 8.0:
5059       #   icc: Command line remark: option '-MP' not supported
5060       if (grep 'ignoring option' conftest.err ||
5061           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5062         am_cv_CC_dependencies_compiler_type=$depmode
5063         break
5064       fi
5065     fi
5066   done
5067
5068   cd ..
5069   rm -rf conftest.dir
5070 else
5071   am_cv_CC_dependencies_compiler_type=none
5072 fi
5073
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5076 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5077 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5078
5079  if
5080   test "x$enable_dependency_tracking" != xno \
5081   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5082   am__fastdepCC_TRUE=
5083   am__fastdepCC_FALSE='#'
5084 else
5085   am__fastdepCC_TRUE='#'
5086   am__fastdepCC_FALSE=
5087 fi
5088
5089
5090 depcc="$CXX"  am_compiler_list=
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5093 $as_echo_n "checking dependency style of $depcc... " >&6; }
5094 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5098   # We make a subdir and do the tests there.  Otherwise we can end up
5099   # making bogus files that we don't know about and never remove.  For
5100   # instance it was reported that on HP-UX the gcc test will end up
5101   # making a dummy file named `D' -- because `-MD' means `put the output
5102   # in D'.
5103   mkdir conftest.dir
5104   # Copy depcomp to subdir because otherwise we won't find it if we're
5105   # using a relative directory.
5106   cp "$am_depcomp" conftest.dir
5107   cd conftest.dir
5108   # We will build objects and dependencies in a subdirectory because
5109   # it helps to detect inapplicable dependency modes.  For instance
5110   # both Tru64's cc and ICC support -MD to output dependencies as a
5111   # side effect of compilation, but ICC will put the dependencies in
5112   # the current directory while Tru64 will put them in the object
5113   # directory.
5114   mkdir sub
5115
5116   am_cv_CXX_dependencies_compiler_type=none
5117   if test "$am_compiler_list" = ""; then
5118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5119   fi
5120   am__universal=false
5121   case " $depcc " in #(
5122      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5123      esac
5124
5125   for depmode in $am_compiler_list; do
5126     # Setup a source with many dependencies, because some compilers
5127     # like to wrap large dependency lists on column 80 (with \), and
5128     # we should not choose a depcomp mode which is confused by this.
5129     #
5130     # We need to recreate these files for each test, as the compiler may
5131     # overwrite some of them when testing with obscure command lines.
5132     # This happens at least with the AIX C compiler.
5133     : > sub/conftest.c
5134     for i in 1 2 3 4 5 6; do
5135       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5136       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5137       # Solaris 8's {/usr,}/bin/sh.
5138       touch sub/conftst$i.h
5139     done
5140     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5141
5142     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5143     # mode.  It turns out that the SunPro C++ compiler does not properly
5144     # handle `-M -o', and we need to detect this.  Also, some Intel
5145     # versions had trouble with output in subdirs
5146     am__obj=sub/conftest.${OBJEXT-o}
5147     am__minus_obj="-o $am__obj"
5148     case $depmode in
5149     gcc)
5150       # This depmode causes a compiler race in universal mode.
5151       test "$am__universal" = false || continue
5152       ;;
5153     nosideeffect)
5154       # after this tag, mechanisms are not by side-effect, so they'll
5155       # only be used when explicitly requested
5156       if test "x$enable_dependency_tracking" = xyes; then
5157         continue
5158       else
5159         break
5160       fi
5161       ;;
5162     msvisualcpp | msvcmsys)
5163       # This compiler won't grok `-c -o', but also, the minuso test has
5164       # not run yet.  These depmodes are late enough in the game, and
5165       # so weak that their functioning should not be impacted.
5166       am__obj=conftest.${OBJEXT-o}
5167       am__minus_obj=
5168       ;;
5169     none) break ;;
5170     esac
5171     if depmode=$depmode \
5172        source=sub/conftest.c object=$am__obj \
5173        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5174        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5175          >/dev/null 2>conftest.err &&
5176        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5177        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5178        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5179        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5180       # icc doesn't choke on unknown options, it will just issue warnings
5181       # or remarks (even with -Werror).  So we grep stderr for any message
5182       # that says an option was ignored or not supported.
5183       # When given -MP, icc 7.0 and 7.1 complain thusly:
5184       #   icc: Command line warning: ignoring option '-M'; no argument required
5185       # The diagnosis changed in icc 8.0:
5186       #   icc: Command line remark: option '-MP' not supported
5187       if (grep 'ignoring option' conftest.err ||
5188           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5189         am_cv_CXX_dependencies_compiler_type=$depmode
5190         break
5191       fi
5192     fi
5193   done
5194
5195   cd ..
5196   rm -rf conftest.dir
5197 else
5198   am_cv_CXX_dependencies_compiler_type=none
5199 fi
5200
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5203 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5204 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5205
5206  if
5207   test "x$enable_dependency_tracking" != xno \
5208   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5209   am__fastdepCXX_TRUE=
5210   am__fastdepCXX_FALSE='#'
5211 else
5212   am__fastdepCXX_TRUE='#'
5213   am__fastdepCXX_FALSE=
5214 fi
5215
5216
5217
5218
5219 if test -n "$ac_tool_prefix"; then
5220   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}as; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if test "${ac_cv_prog_AS+set}" = set; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   if test -n "$AS"; then
5228   ac_cv_prog_AS="$AS" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237     ac_cv_prog_AS="${ac_tool_prefix}as"
5238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242   done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 AS=$ac_cv_prog_AS
5248 if test -n "$AS"; then
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5250 $as_echo "$AS" >&6; }
5251 else
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255
5256
5257 fi
5258 if test -z "$ac_cv_prog_AS"; then
5259   ac_ct_AS=$AS
5260   # Extract the first word of "as", so it can be a program name with args.
5261 set dummy as; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   if test -n "$ac_ct_AS"; then
5268   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277     ac_cv_prog_ac_ct_AS="as"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5288 if test -n "$ac_ct_AS"; then
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5290 $as_echo "$ac_ct_AS" >&6; }
5291 else
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296   if test "x$ac_ct_AS" = x; then
5297     AS=""
5298   else
5299     case $cross_compiling:$ac_tool_warned in
5300 yes:)
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303 ac_tool_warned=yes ;;
5304 esac
5305     AS=$ac_ct_AS
5306   fi
5307 else
5308   AS="$ac_cv_prog_AS"
5309 fi
5310
5311 if test -n "$ac_tool_prefix"; then
5312   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}ld; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_LD+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -n "$LD"; then
5320   ac_cv_prog_LD="$LD" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327     for ac_exec_ext in '' $ac_executable_extensions; do
5328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329     ac_cv_prog_LD="${ac_tool_prefix}ld"
5330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334   done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 LD=$ac_cv_prog_LD
5340 if test -n "$LD"; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5342 $as_echo "$LD" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349 fi
5350 if test -z "$ac_cv_prog_LD"; then
5351   ac_ct_LD=$LD
5352   # Extract the first word of "ld", so it can be a program name with args.
5353 set dummy ld; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   if test -n "$ac_ct_LD"; then
5360   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367     for ac_exec_ext in '' $ac_executable_extensions; do
5368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369     ac_cv_prog_ac_ct_LD="ld"
5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374   done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5380 if test -n "$ac_ct_LD"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5382 $as_echo "$ac_ct_LD" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388   if test "x$ac_ct_LD" = x; then
5389     LD=""
5390   else
5391     case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397     LD=$ac_ct_LD
5398   fi
5399 else
5400   LD="$ac_cv_prog_LD"
5401 fi
5402
5403 if test -n "$ac_tool_prefix"; then
5404   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5405 set dummy ${ac_tool_prefix}ar; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_AR+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   if test -n "$AR"; then
5412   ac_cv_prog_AR="$AR" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421     ac_cv_prog_AR="${ac_tool_prefix}ar"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 AR=$ac_cv_prog_AR
5432 if test -n "$AR"; then
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5434 $as_echo "$AR" >&6; }
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 fi
5442 if test -z "$ac_cv_prog_AR"; then
5443   ac_ct_AR=$AR
5444   # Extract the first word of "ar", so it can be a program name with args.
5445 set dummy ar; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   if test -n "$ac_ct_AR"; then
5452   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459     for ac_exec_ext in '' $ac_executable_extensions; do
5460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_prog_ac_ct_AR="ar"
5462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466   done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5472 if test -n "$ac_ct_AR"; then
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5474 $as_echo "$ac_ct_AR" >&6; }
5475 else
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480   if test "x$ac_ct_AR" = x; then
5481     AR=""
5482   else
5483     case $cross_compiling:$ac_tool_warned in
5484 yes:)
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487 ac_tool_warned=yes ;;
5488 esac
5489     AR=$ac_ct_AR
5490   fi
5491 else
5492   AR="$ac_cv_prog_AR"
5493 fi
5494
5495 if test -n "$ac_tool_prefix"; then
5496   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   if test -n "$RANLIB"; then
5504   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511     for ac_exec_ext in '' $ac_executable_extensions; do
5512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518   done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 RANLIB=$ac_cv_prog_RANLIB
5524 if test -n "$RANLIB"; then
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5526 $as_echo "$RANLIB" >&6; }
5527 else
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532
5533 fi
5534 if test -z "$ac_cv_prog_RANLIB"; then
5535   ac_ct_RANLIB=$RANLIB
5536   # Extract the first word of "ranlib", so it can be a program name with args.
5537 set dummy ranlib; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   if test -n "$ac_ct_RANLIB"; then
5544   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551     for ac_exec_ext in '' $ac_executable_extensions; do
5552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553     ac_cv_prog_ac_ct_RANLIB="ranlib"
5554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558   done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5564 if test -n "$ac_ct_RANLIB"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5566 $as_echo "$ac_ct_RANLIB" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572   if test "x$ac_ct_RANLIB" = x; then
5573     RANLIB=":"
5574   else
5575     case $cross_compiling:$ac_tool_warned in
5576 yes:)
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579 ac_tool_warned=yes ;;
5580 esac
5581     RANLIB=$ac_ct_RANLIB
5582   fi
5583 else
5584   RANLIB="$ac_cv_prog_RANLIB"
5585 fi
5586
5587 if test -n "$ac_tool_prefix"; then
5588   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5589 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   if test -n "$DLLTOOL"; then
5596   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603     for ac_exec_ext in '' $ac_executable_extensions; do
5604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610   done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 DLLTOOL=$ac_cv_prog_DLLTOOL
5616 if test -n "$DLLTOOL"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5618 $as_echo "$DLLTOOL" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625 fi
5626 if test -z "$ac_cv_prog_DLLTOOL"; then
5627   ac_ct_DLLTOOL=$DLLTOOL
5628   # Extract the first word of "dlltool", so it can be a program name with args.
5629 set dummy dlltool; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   if test -n "$ac_ct_DLLTOOL"; then
5636   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643     for ac_exec_ext in '' $ac_executable_extensions; do
5644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650   done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5656 if test -n "$ac_ct_DLLTOOL"; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5658 $as_echo "$ac_ct_DLLTOOL" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664   if test "x$ac_ct_DLLTOOL" = x; then
5665     DLLTOOL=":"
5666   else
5667     case $cross_compiling:$ac_tool_warned in
5668 yes:)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673     DLLTOOL=$ac_ct_DLLTOOL
5674   fi
5675 else
5676   DLLTOOL="$ac_cv_prog_DLLTOOL"
5677 fi
5678
5679 for ac_prog in gawk mawk nawk awk
5680 do
5681   # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_AWK+set}" = set; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   if test -n "$AWK"; then
5689   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698     ac_cv_prog_AWK="$ac_prog"
5699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703   done
5704 IFS=$as_save_IFS
5705
5706 fi
5707 fi
5708 AWK=$ac_cv_prog_AWK
5709 if test -n "$AWK"; then
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5711 $as_echo "$AWK" >&6; }
5712 else
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716
5717
5718   test -n "$AWK" && break
5719 done
5720
5721 for ac_prog in jar fastjar gjar
5722 do
5723   # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_JAR+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if test -n "$JAR"; then
5731   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740     ac_cv_prog_JAR="$ac_prog"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 JAR=$ac_cv_prog_JAR
5751 if test -n "$JAR"; then
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5753 $as_echo "$JAR" >&6; }
5754 else
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760   test -n "$JAR" && break
5761 done
5762 test -n "$JAR" || JAR="no"
5763
5764 # Extract the first word of "zip", so it can be a program name with args.
5765 set dummy zip; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if test "${ac_cv_path_ZIP+set}" = set; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   case $ZIP in
5772   [\\/]* | ?:[\\/]*)
5773   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5774   ;;
5775   *)
5776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5792   ;;
5793 esac
5794 fi
5795 ZIP=$ac_cv_path_ZIP
5796 if test -n "$ZIP"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5798 $as_echo "$ZIP" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804
5805 # Extract the first word of "unzip", so it can be a program name with args.
5806 set dummy unzip; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if test "${ac_cv_path_UNZIP+set}" = set; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   case $UNZIP in
5813   [\\/]* | ?:[\\/]*)
5814   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5815   ;;
5816   *)
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831
5832   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5833   ;;
5834 esac
5835 fi
5836 UNZIP=$ac_cv_path_UNZIP
5837 if test -n "$UNZIP"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5839 $as_echo "$UNZIP" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846
5847 # We need a jar that supports -@.  This is a GNU extension.
5848 if test "$JAR" != no; then
5849    rm -f config-test.jar
5850    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5851    if test -f config-test.jar; then
5852      rm -f config-test.jar
5853    else
5854      JAR=no
5855    fi
5856 fi
5857
5858 # Prefer the jar we found, but fall back to our jar script.
5859 if test "$JAR" = no; then
5860   if test "$ZIP" = no; then
5861     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5862   else
5863     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5864     JAR=`pwd`/scripts/jar
5865   fi
5866 fi
5867
5868
5869
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5872 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5873     # Check whether --enable-maintainer-mode was given.
5874 if test "${enable_maintainer_mode+set}" = set; then :
5875   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5876 else
5877   USE_MAINTAINER_MODE=no
5878 fi
5879
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5881 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5882    if test $USE_MAINTAINER_MODE = yes; then
5883   MAINTAINER_MODE_TRUE=
5884   MAINTAINER_MODE_FALSE='#'
5885 else
5886   MAINTAINER_MODE_TRUE='#'
5887   MAINTAINER_MODE_FALSE=
5888 fi
5889
5890   MAINT=$MAINTAINER_MODE_TRUE
5891
5892
5893
5894
5895
5896 # configure.host sets the following important variables
5897 #       libgcj_cflags    - host specific C compiler flags
5898 #       libgcj_cxxflags  - host specific C++ compiler flags
5899 #       libgcj_javaflags - host specific Java compiler flags
5900 #       libgcj_sublib_ltflags - host specific Libtool flags
5901 #       libgcj_sublib_core_extra_deps - host specific extra
5902 #                          dependencies for core sublib
5903 #       (these last two only used when building sublibs)
5904 # and a number of others; see the list at the start of the file.
5905
5906 libgcj_cflags=
5907 libgcj_cxxflags=
5908 libgcj_javaflags=
5909 libgcj_sublib_ltflags=
5910 libgcj_sublib_core_extra_deps=
5911
5912 . ${srcdir}/configure.host
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5916 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5920 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5921   acl_cv_prog_gnu_ld=yes
5922 else
5923   acl_cv_prog_gnu_ld=no
5924 fi
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5927 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5928 with_gnu_ld=$acl_cv_prog_gnu_ld
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5931 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5932 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935
5936 acl_cv_prog_gnu_ld_symbolic=no
5937
5938 if test x"$with_gnu_ld" = x"yes"; then
5939   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5940     acl_cv_prog_gnu_ld_symbolic=yes
5941   fi
5942 fi
5943 fi
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5945 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5946 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5947   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5948 else
5949   SYMBOLIC_LDFLAGS=''
5950 fi
5951
5952 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5953 if test -z "$libgcj_ld_symbolic"; then
5954   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5955 fi
5956
5957 LIBGCJ_CFLAGS="${libgcj_cflags}"
5958 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5959 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5960 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5961 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5962 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5963 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5964
5965
5966
5967
5968
5969
5970
5971
5972 # Only use libltdl for non-newlib builds.
5973 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5975 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5976 library_names_spec=
5977 libname_spec='lib$name'
5978 soname_spec=
5979 shrext=".so"
5980 postinstall_cmds=
5981 postuninstall_cmds=
5982 finish_cmds=
5983 finish_eval=
5984 shlibpath_var=
5985 shlibpath_overrides_runpath=unknown
5986 version_type=none
5987 dynamic_linker="$host_os ld.so"
5988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5989 if test "$GCC" = yes; then
5990   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5991   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5992     # if the path contains ";" then we assume it to be the separator
5993     # otherwise default to the standard path separator (i.e. ":") - it is
5994     # assumed that no part of a normal pathname contains ";" but that should
5995     # okay in the real world where ";" in dirpaths is itself problematic.
5996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5997   else
5998     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5999   fi
6000 else
6001   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6002 fi
6003 need_lib_prefix=unknown
6004 hardcode_into_libs=no
6005
6006 # when you set need_version to no, make sure it does not cause -set_version
6007 # flags to be left without arguments
6008 need_version=unknown
6009
6010 case $host_os in
6011 aix3*)
6012   version_type=linux
6013   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6014   shlibpath_var=LIBPATH
6015
6016   # AIX 3 has no versioning support, so we append a major version to the name.
6017   soname_spec='${libname}${release}${shared_ext}$major'
6018   ;;
6019
6020 aix[4-9]*)
6021   version_type=linux
6022   need_lib_prefix=no
6023   need_version=no
6024   hardcode_into_libs=yes
6025   if test "$host_cpu" = ia64; then
6026     # AIX 5 supports IA64
6027     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6028     shlibpath_var=LD_LIBRARY_PATH
6029   else
6030     # With GCC up to 2.95.x, collect2 would create an import file
6031     # for dependence libraries.  The import file would start with
6032     # the line `#! .'.  This would cause the generated library to
6033     # depend on `.', always an invalid library.  This was fixed in
6034     # development snapshots of GCC prior to 3.0.
6035     case $host_os in
6036       aix4 | aix4.[01] | aix4.[01].*)
6037       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6038            echo ' yes '
6039            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6040         :
6041       else
6042         can_build_shared=no
6043       fi
6044       ;;
6045     esac
6046     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6047     # soname into executable. Probably we can add versioning support to
6048     # collect2, so additional links can be useful in future.
6049     if test "$aix_use_runtimelinking" = yes; then
6050       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6051       # instead of lib<name>.a to let people know that these are not
6052       # typical AIX shared libraries.
6053       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6054     else
6055       # We preserve .a as extension for shared libraries through AIX4.2
6056       # and later when we are not doing run time linking.
6057       library_names_spec='${libname}${release}.a $libname.a'
6058       soname_spec='${libname}${release}${shared_ext}$major'
6059     fi
6060     shlibpath_var=LIBPATH
6061   fi
6062   ;;
6063
6064 amigaos*)
6065   library_names_spec='$libname.ixlibrary $libname.a'
6066   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6067   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'
6068   ;;
6069
6070 beos*)
6071   library_names_spec='${libname}${shared_ext}'
6072   dynamic_linker="$host_os ld.so"
6073   shlibpath_var=LIBRARY_PATH
6074   ;;
6075
6076 bsdi4*)
6077   version_type=linux
6078   need_version=no
6079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6080   soname_spec='${libname}${release}${shared_ext}$major'
6081   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6082   shlibpath_var=LD_LIBRARY_PATH
6083   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6084   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6085   # the default ld.so.conf also contains /usr/contrib/lib and
6086   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6087   # libtool to hard-code these into programs
6088   ;;
6089
6090 cygwin* | mingw* | pw32*)
6091   version_type=windows
6092   shrext=".dll"
6093   need_version=no
6094   need_lib_prefix=no
6095
6096   case $GCC,$host_os in
6097   yes,cygwin* | yes,mingw* | yes,pw32*)
6098     library_names_spec='$libname.dll.a'
6099     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6100     postinstall_cmds='base_file=`basename \${file}`~
6101       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6102       dldir=$destdir/`dirname \$dlpath`~
6103       test -d \$dldir || mkdir -p \$dldir~
6104       $install_prog $dir/$dlname \$dldir/$dlname'
6105     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6106       dlpath=$dir/\$dldll~
6107        $rm \$dlpath'
6108     shlibpath_overrides_runpath=yes
6109
6110     case $host_os in
6111     cygwin*)
6112       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6113       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6114       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6115       ;;
6116     mingw*)
6117       # MinGW DLLs use traditional 'lib' prefix
6118       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6119       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6120       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6121         # It is most probably a Windows format PATH printed by
6122         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6123         # path with ; separators, and with drive letters. We can handle the
6124         # drive letters (cygwin fileutils understands them), so leave them,
6125         # especially as we might pass files found there to a mingw objdump,
6126         # which wouldn't understand a cygwinified path. Ahh.
6127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6128       else
6129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6130       fi
6131       ;;
6132     pw32*)
6133       # pw32 DLLs use 'pw' prefix rather than 'lib'
6134       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6135       ;;
6136     esac
6137     ;;
6138
6139   *)
6140     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6141     ;;
6142   esac
6143   dynamic_linker='Win32 ld.exe'
6144   # FIXME: first we should search . and the directory the executable is in
6145   shlibpath_var=PATH
6146   ;;
6147
6148 darwin* | rhapsody*)
6149   dynamic_linker="$host_os dyld"
6150   version_type=darwin
6151   need_lib_prefix=no
6152   need_version=no
6153   # FIXME: Relying on posixy $() will cause problems for
6154   #        cross-compilation, but unfortunately the echo tests do not
6155   #        yet detect zsh echo's removal of \ escapes.
6156   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6157   soname_spec='${libname}${release}${major}$shared_ext'
6158   shlibpath_overrides_runpath=yes
6159   shlibpath_var=DYLD_LIBRARY_PATH
6160   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6161   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6162   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6163   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"`
6164   fi
6165   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6166   ;;
6167
6168 dgux*)
6169   version_type=linux
6170   need_lib_prefix=no
6171   need_version=no
6172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6173   soname_spec='${libname}${release}${shared_ext}$major'
6174   shlibpath_var=LD_LIBRARY_PATH
6175   ;;
6176
6177 freebsd1*)
6178   dynamic_linker=no
6179   ;;
6180
6181 freebsd*)
6182   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6183   version_type=freebsd-$objformat
6184   case $version_type in
6185     freebsd-elf*)
6186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6187       need_version=no
6188       need_lib_prefix=no
6189       ;;
6190     freebsd-*)
6191       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6192       need_version=yes
6193       ;;
6194   esac
6195   shlibpath_var=LD_LIBRARY_PATH
6196   case $host_os in
6197   freebsd2*)
6198     shlibpath_overrides_runpath=yes
6199     ;;
6200   freebsd3.01* | freebsdelf3.01*)
6201     shlibpath_overrides_runpath=yes
6202     hardcode_into_libs=yes
6203     ;;
6204   *) # from 3.2 on
6205     shlibpath_overrides_runpath=no
6206     hardcode_into_libs=yes
6207     ;;
6208   esac
6209   ;;
6210
6211 gnu*)
6212   version_type=linux
6213   need_lib_prefix=no
6214   need_version=no
6215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6216   soname_spec='${libname}${release}${shared_ext}$major'
6217   shlibpath_var=LD_LIBRARY_PATH
6218   hardcode_into_libs=yes
6219   ;;
6220
6221 hpux9* | hpux10* | hpux11*)
6222   # Give a soname corresponding to the major version so that dld.sl refuses to
6223   # link against other versions.
6224   version_type=sunos
6225   need_lib_prefix=no
6226   need_version=no
6227   case "$host_cpu" in
6228   ia64*)
6229     shrext='.so'
6230     hardcode_into_libs=yes
6231     dynamic_linker="$host_os dld.so"
6232     shlibpath_var=LD_LIBRARY_PATH
6233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6235     soname_spec='${libname}${release}${shared_ext}$major'
6236     if test "X$HPUX_IA64_MODE" = X32; then
6237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6238     else
6239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6240     fi
6241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6242     ;;
6243    hppa*64*)
6244      shrext='.sl'
6245      hardcode_into_libs=yes
6246      dynamic_linker="$host_os dld.sl"
6247      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6248      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6250      soname_spec='${libname}${release}${shared_ext}$major'
6251      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6252      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6253      ;;
6254    *)
6255     shrext='.sl'
6256     dynamic_linker="$host_os dld.sl"
6257     shlibpath_var=SHLIB_PATH
6258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6260     soname_spec='${libname}${release}${shared_ext}$major'
6261     ;;
6262   esac
6263   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6264   postinstall_cmds='chmod 555 $lib'
6265   ;;
6266
6267 irix5* | irix6* | nonstopux*)
6268   case $host_os in
6269     nonstopux*) version_type=nonstopux ;;
6270     *)
6271         if test "$lt_cv_prog_gnu_ld" = yes; then
6272                 version_type=linux
6273         else
6274                 version_type=irix
6275         fi ;;
6276   esac
6277   need_lib_prefix=no
6278   need_version=no
6279   soname_spec='${libname}${release}${shared_ext}$major'
6280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6281   case $host_os in
6282   irix5* | nonstopux*)
6283     libsuff= shlibsuff=
6284     ;;
6285   *)
6286     case $LD in # libtool.m4 will add one of these switches to LD
6287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6288       libsuff= shlibsuff= libmagic=32-bit;;
6289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6290       libsuff=32 shlibsuff=N32 libmagic=N32;;
6291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6293     *) libsuff= shlibsuff= libmagic=never-match;;
6294     esac
6295     ;;
6296   esac
6297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6298   shlibpath_overrides_runpath=no
6299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6301   hardcode_into_libs=yes
6302   ;;
6303
6304 # No shared lib support for Linux oldld, aout, or coff.
6305 linux*oldld* | linux*aout* | linux*coff*)
6306   dynamic_linker=no
6307   ;;
6308
6309 # This must be Linux ELF.
6310 linux*|k*bsd*-gnu)
6311   version_type=linux
6312   need_lib_prefix=no
6313   need_version=no
6314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6315   soname_spec='${libname}${release}${shared_ext}$major'
6316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6317   shlibpath_var=LD_LIBRARY_PATH
6318   shlibpath_overrides_runpath=no
6319   # This implies no fast_install, which is unacceptable.
6320   # Some rework will be needed to allow for fast_install
6321   # before this can be enabled.
6322   hardcode_into_libs=yes
6323
6324   # We used to test for /lib/ld.so.1 and disable shared libraries on
6325   # powerpc, because MkLinux only supported shared libraries with the
6326   # GNU dynamic linker.  Since this was broken with cross compilers,
6327   # most powerpc-linux boxes support dynamic linking these days and
6328   # people can always --disable-shared, the test was removed, and we
6329   # assume the GNU/Linux dynamic linker is in use.
6330   dynamic_linker='GNU/Linux ld.so'
6331   ;;
6332
6333 netbsd*)
6334   version_type=sunos
6335   need_lib_prefix=no
6336   need_version=no
6337   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6339     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6340     dynamic_linker='NetBSD (a.out) ld.so'
6341   else
6342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6343     soname_spec='${libname}${release}${shared_ext}$major'
6344     dynamic_linker='NetBSD ld.elf_so'
6345   fi
6346   shlibpath_var=LD_LIBRARY_PATH
6347   shlibpath_overrides_runpath=yes
6348   hardcode_into_libs=yes
6349   ;;
6350
6351 newsos6)
6352   version_type=linux
6353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6354   shlibpath_var=LD_LIBRARY_PATH
6355   shlibpath_overrides_runpath=yes
6356   ;;
6357
6358 nto-qnx)
6359   version_type=linux
6360   need_lib_prefix=no
6361   need_version=no
6362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6363   soname_spec='${libname}${release}${shared_ext}$major'
6364   shlibpath_var=LD_LIBRARY_PATH
6365   shlibpath_overrides_runpath=yes
6366   ;;
6367
6368 openbsd*)
6369   version_type=sunos
6370   need_lib_prefix=no
6371   need_version=no
6372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6374   shlibpath_var=LD_LIBRARY_PATH
6375   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6376     case $host_os in
6377       openbsd2.[89] | openbsd2.[89].*)
6378         shlibpath_overrides_runpath=no
6379         ;;
6380       *)
6381         shlibpath_overrides_runpath=yes
6382         ;;
6383       esac
6384   else
6385     shlibpath_overrides_runpath=yes
6386   fi
6387   ;;
6388
6389 os2*)
6390   libname_spec='$name'
6391   shrext=".dll"
6392   need_lib_prefix=no
6393   library_names_spec='$libname${shared_ext} $libname.a'
6394   dynamic_linker='OS/2 ld.exe'
6395   shlibpath_var=LIBPATH
6396   ;;
6397
6398 osf3* | osf4* | osf5*)
6399   version_type=osf
6400   need_lib_prefix=no
6401   need_version=no
6402   soname_spec='${libname}${release}${shared_ext}$major'
6403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6404   shlibpath_var=LD_LIBRARY_PATH
6405   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6406   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6407   ;;
6408
6409 sco3.2v5*)
6410   version_type=osf
6411   soname_spec='${libname}${release}${shared_ext}$major'
6412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6413   shlibpath_var=LD_LIBRARY_PATH
6414   ;;
6415
6416 solaris*)
6417   version_type=linux
6418   need_lib_prefix=no
6419   need_version=no
6420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6421   soname_spec='${libname}${release}${shared_ext}$major'
6422   shlibpath_var=LD_LIBRARY_PATH
6423   shlibpath_overrides_runpath=yes
6424   hardcode_into_libs=yes
6425   # ldd complains unless libraries are executable
6426   postinstall_cmds='chmod +x $lib'
6427   ;;
6428
6429 sunos4*)
6430   version_type=sunos
6431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6432   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6433   shlibpath_var=LD_LIBRARY_PATH
6434   shlibpath_overrides_runpath=yes
6435   if test "$with_gnu_ld" = yes; then
6436     need_lib_prefix=no
6437   fi
6438   need_version=yes
6439   ;;
6440
6441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6442   version_type=linux
6443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6444   soname_spec='${libname}${release}${shared_ext}$major'
6445   shlibpath_var=LD_LIBRARY_PATH
6446   case $host_vendor in
6447     sni)
6448       shlibpath_overrides_runpath=no
6449       need_lib_prefix=no
6450       export_dynamic_flag_spec='${wl}-Blargedynsym'
6451       runpath_var=LD_RUN_PATH
6452       ;;
6453     siemens)
6454       need_lib_prefix=no
6455       ;;
6456     motorola)
6457       need_lib_prefix=no
6458       need_version=no
6459       shlibpath_overrides_runpath=no
6460       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6461       ;;
6462   esac
6463   ;;
6464
6465 sysv4*MP*)
6466   if test -d /usr/nec ;then
6467     version_type=linux
6468     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6469     soname_spec='$libname${shared_ext}.$major'
6470     shlibpath_var=LD_LIBRARY_PATH
6471   fi
6472   ;;
6473
6474 uts4*)
6475   version_type=linux
6476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6477   soname_spec='${libname}${release}${shared_ext}$major'
6478   shlibpath_var=LD_LIBRARY_PATH
6479   ;;
6480
6481 *)
6482   dynamic_linker=no
6483   ;;
6484 esac
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6486 $as_echo "$dynamic_linker" >&6; }
6487 test "$dynamic_linker" = no && can_build_shared=no
6488
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6491 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6492 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   libltdl_cv_shlibpath_var="$shlibpath_var"
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6498 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6499 if test -n "$libltdl_cv_shlibpath_var"; then
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6503 _ACEOF
6504
6505 fi
6506
6507 fi
6508
6509 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6510
6511
6512 # Possibly build libgcj as many sub-libraries.
6513 # Check whether --enable-libgcj-sublibs was given.
6514 if test "${enable_libgcj_sublibs+set}" = set; then :
6515   enableval=$enable_libgcj_sublibs;
6516 fi
6517
6518
6519 if test -z "$enable_libgcj_sublibs"; then
6520    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6521 fi
6522  if test "$enable_libgcj_sublibs" = yes; then
6523   BUILD_SUBLIBS_TRUE=
6524   BUILD_SUBLIBS_FALSE='#'
6525 else
6526   BUILD_SUBLIBS_TRUE='#'
6527   BUILD_SUBLIBS_FALSE=
6528 fi
6529
6530 if test "$enable_libgcj_sublibs" = yes ; then
6531   # In theory we could make do with only one override and simply
6532   # tag "_bc" onto the end of it when we use it to generate the
6533   # spec, but that's an ugly thing to do when there are multiple
6534   # words in the string and you're relying on the ordering to
6535   # append the correct one.
6536   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6537   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6538 fi
6539
6540
6541 # See if the user has requested runtime debugging.
6542 LIBGCJDEBUG="disable"
6543
6544 # Check whether --enable-libgcj-debug was given.
6545 if test "${enable_libgcj_debug+set}" = set; then :
6546   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6547
6548 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6549
6550     LIBGCJDEBUG="enable"
6551   fi
6552 fi
6553
6554
6555
6556 # Check whether --with-escher was given.
6557 if test "${with_escher+set}" = set; then :
6558   withval=$with_escher;
6559 fi
6560
6561 case "$with_escher" in
6562 "")
6563         use_escher=false
6564         ;;
6565 "no")
6566         use_escher=false
6567         ;;
6568 "yes")
6569         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6570         ;;
6571 *)
6572         use_escher=true
6573         ;;
6574 esac
6575
6576 # Determine which AWT peer libraries to build
6577 # Check whether --enable-java-awt was given.
6578 if test "${enable_java_awt+set}" = set; then :
6579   enableval=$enable_java_awt;
6580 fi
6581
6582
6583 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6584 use_xlib_awt=""
6585 use_gtk_awt=""
6586 use_qt_awt=""
6587 use_x_awt=""
6588 # The default toolkit to use is the first one specified.
6589 TOOLKIT=
6590
6591
6592 for peer in $peerlibs ; do
6593   case $peer in
6594     xlib)
6595       if test "$no_x" = yes; then
6596         echo "*** xlib peers requested but no X library available" 1>&2
6597         exit 1
6598       else
6599         use_xlib_awt="yes"
6600         if test -z "$TOOLKIT"; then
6601            TOOLKIT=gnu.awt.xlib.XToolkit
6602         fi
6603       fi
6604       ;;
6605     gtk)
6606       if test "$no_x" = yes; then
6607          echo "*** gtk peers requested but no X library available" 1>&2
6608          exit 1
6609       else
6610          use_gtk_awt=yes
6611          if test -z "$TOOLKIT"; then
6612             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6613          fi
6614       fi
6615       ;;
6616     qt)
6617       if test "$no_x" = yes; then
6618          # Perhaps we should admit the possibility of embedded Qt.
6619          echo "*** Qt peers requested but no X library available" 1>&2
6620          exit 1
6621       else
6622          use_qt_awt=yes
6623          if test -z "$TOOLKIT"; then
6624             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6625          fi
6626       fi
6627       ;;
6628     x)
6629       use_x_awt=yes
6630       if test -z "$TOOLKIT"; then
6631          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6632       fi
6633       ;;
6634     no)
6635       use_xlib_awt=
6636       use_gtk_awt=
6637       use_qt_awt=
6638       use_x_awt=
6639       break
6640       ;;
6641     *)
6642       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6643       exit 1
6644   esac
6645 done
6646
6647  if test "$use_xlib_awt" = yes; then
6648   XLIB_AWT_TRUE=
6649   XLIB_AWT_FALSE='#'
6650 else
6651   XLIB_AWT_TRUE='#'
6652   XLIB_AWT_FALSE=
6653 fi
6654
6655  if test "$use_x_awt" = yes; then
6656   X_AWT_TRUE=
6657   X_AWT_FALSE='#'
6658 else
6659   X_AWT_TRUE='#'
6660   X_AWT_FALSE=
6661 fi
6662
6663
6664
6665 cat >>confdefs.h <<_ACEOF
6666 #define AWT_TOOLKIT "$TOOLKIT"
6667 _ACEOF
6668
6669
6670 expanded_prefix=$prefix
6671 if test "X$prefix" = XNONE; then
6672   expanded_prefix=${ac_default_prefix}
6673 fi
6674
6675
6676 cat >>confdefs.h <<_ACEOF
6677 #define LIBGCJ_PREFIX "$expanded_prefix"
6678 _ACEOF
6679
6680
6681 # Create standard.omit based on decisions we just made.
6682 cp $srcdir/standard.omit.in standard.omit
6683 if test "$use_xlib_awt" != yes; then
6684    echo gnu/awt/xlib >> standard.omit
6685    echo gnu/gcj/xlib >> standard.omit
6686 fi
6687 if test "$use_x_awt" != yes; then
6688    echo gnu/java/awt/peer/x >> standard.omit
6689 fi
6690
6691 # Tools that need to be compiled against classpath's tools classes
6692 : > vm-tools-packages
6693 for package in gnu/gcj/tools/gc_analyze ; do
6694     echo $package >> standard.omit
6695     echo $package >> vm-tools-packages
6696 done
6697
6698 if test -z "${with_multisubdir}"; then
6699    builddotdot=.
6700 else
6701    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6702 fi
6703
6704 NATIVE=yes
6705
6706 # Which gcj and host gcj (for ecjx) do we use?
6707 which_gcj=default
6708 host_exeext=${ac_exeext}
6709 GCJ_FOR_ECJX='$(GCJ)'
6710 GCC_FOR_ECJX='$(CXX)'
6711 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6712 if test -n "${with_cross_host}"; then
6713   # We are being configured with a cross compiler. We can't
6714   # use ac_exeext, because that is for the target platform.
6715   NATIVE=no
6716   cross_host_exeext=
6717   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6718   GCC_FOR_ECJX="${with_cross_host}-gcc"
6719   case "${with_cross_host}" in
6720      *mingw* | *cygwin*)
6721          cross_host_exeext=.exe
6722      ;;
6723   esac
6724   host_exeext=${cross_host_exeext}
6725   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6726      if test x"$build_noncanonical" = x"$with_cross_host"; then
6727         # Ordinary cross (host!=target and host=build)
6728         which_gcj=built
6729      else
6730         # Canadian cross (host!=target and host!=build)
6731         which_gcj=cross
6732      fi
6733   else
6734      which_gcj=cross
6735   fi
6736 else
6737   # We are being configured with a native or crossed-native compiler
6738   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6739      if test x"$build" = x"$host"; then
6740         # True native build (host=target and host=build)
6741         which_gcj=built
6742      else
6743         # Crossed-native build (host=target and host!=build)
6744         which_gcj=cross
6745      fi
6746   else
6747      which_gcj=path
6748   fi
6749 fi
6750 libgcjdir=`${PWDCMD-pwd}`
6751 case $GCJ in
6752 *" -B"*)
6753   # Just in case there is a comma in the build dir, quote it for the
6754   # sed command below.
6755   case $libgcjdir in
6756   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6757   *) qlibgcjdir=$libgcjdir;;
6758   esac
6759   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6760   ;;
6761 *)
6762   GCJ=$GCJ" -B$libgcjdir/"
6763   ;;
6764 esac
6765 case "${which_gcj}" in
6766    built)
6767       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6768    ;;
6769    cross)
6770       if test "x${with_newlib}" = "xyes"; then
6771          # FIXME (comment): Why is this needed?
6772          GCC_UNWIND_INCLUDE=
6773       fi
6774       GCJH='$(target_noncanonical)-gcjh'
6775    ;;
6776    path)
6777       GCJH=gcjh
6778    ;;
6779 esac
6780 JAVAC="$GCJ -C"
6781 export JAVAC
6782
6783
6784
6785
6786
6787
6788 # Create it, so that compile/link tests don't fail
6789 test -f libgcj.spec || touch libgcj.spec
6790
6791
6792
6793 # Set up to configure Classpath.
6794 # FIXME: no supported way to pass args in autoconf.
6795 # Disable tool wrappers to avoid ltdl.h configure check.
6796 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6797 ac_configure_args="$ac_configure_args --disable-load-library"
6798 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6799 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6800 dir1=`cd $srcdir && pwd`
6801 dir2=`pwd`
6802 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6803 ac_configure_args="$ac_configure_args --disable-core-jni"
6804 ac_configure_args="$ac_configure_args --disable-examples"
6805 ac_configure_args="$ac_configure_args --with-glibj=build"
6806 if test "$browser_plugin_enabled" != yes; then
6807   ac_configure_args="$ac_configure_args --disable-plugin"
6808 else
6809   ac_configure_args="$ac_configure_args --enable-plugin"
6810 fi
6811 if test "$gconf_enabled" != yes; then
6812   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6813   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6814 fi
6815 if test "$use_gtk_awt" != yes; then
6816   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6817 fi
6818 if test "$use_qt_awt" != yes; then
6819   ac_configure_args="$ac_configure_args --disable-qt-peer"
6820 else
6821   # We need this as qt is disabled by default in classpath.
6822   ac_configure_args="$ac_configure_args --enable-qt-peer"
6823 fi
6824 if test "$use_x_awt" != yes; then
6825   ac_configure_args="$ac_configure_args --without-escher"
6826 else
6827   # We need this as escher is disabled by default in classpath.
6828   if test "$use_escher" != true; then
6829     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6830   else
6831     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6832   fi
6833 fi
6834 if test "x$BUILD_GJDOC" = xno; then
6835   ac_configure_args="$ac_configure_args --disable-gjdoc"
6836 fi
6837 # -Werror causes unavoidable problems in code using alsa.
6838 ac_configure_args="$ac_configure_args --disable-regen-headers"
6839 ac_configure_args="$ac_configure_args --disable-Werror"
6840
6841 # Only use libltdl for non-newlib builds.
6842 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6843      case $enable_ltdl_convenience in
6844   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6845   "") enable_ltdl_convenience=yes
6846       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6847   esac
6848   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6849   LTDLINCL='-I${top_srcdir}/''libltdl'
6850   # For backwards non-gettext consistent compatibility...
6851   INCLTDL="$LTDLINCL"
6852
6853    enable_dlopen=yes
6854
6855
6856
6857    DIRLTDL=libltdl
6858
6859 $as_echo "#define USE_LTDL 1" >>confdefs.h
6860
6861    # Sigh.  Libtool's macro doesn't do the right thing.
6862    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6863    # FIXME: this is a hack.
6864    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6865    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6866 fi
6867
6868
6869
6870 case `pwd` in
6871   *\ * | *\     *)
6872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6873 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6874 esac
6875
6876
6877
6878 macro_version='2.2.7a'
6879 macro_revision='1.3134'
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893 ltmain="$ac_aux_dir/ltmain.sh"
6894
6895 # Backslashify metacharacters that are still active within
6896 # double-quoted strings.
6897 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6898
6899 # Same as above, but do not quote variable references.
6900 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6901
6902 # Sed substitution to delay expansion of an escaped shell variable in a
6903 # double_quote_subst'ed string.
6904 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6905
6906 # Sed substitution to delay expansion of an escaped single quote.
6907 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6908
6909 # Sed substitution to avoid accidental globbing in evaled expressions
6910 no_glob_subst='s/\*/\\\*/g'
6911
6912 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6913 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6914 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6915
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6917 $as_echo_n "checking how to print strings... " >&6; }
6918 # Test print first, because it will be a builtin if present.
6919 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6920    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6921   ECHO='print -r --'
6922 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6923   ECHO='printf %s\n'
6924 else
6925   # Use this function as a fallback that always works.
6926   func_fallback_echo ()
6927   {
6928     eval 'cat <<_LTECHO_EOF
6929 $1
6930 _LTECHO_EOF'
6931   }
6932   ECHO='func_fallback_echo'
6933 fi
6934
6935 # func_echo_all arg...
6936 # Invoke $ECHO with all args, space-separated.
6937 func_echo_all ()
6938 {
6939     $ECHO ""
6940 }
6941
6942 case "$ECHO" in
6943   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6944 $as_echo "printf" >&6; } ;;
6945   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6946 $as_echo "print -r" >&6; } ;;
6947   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6948 $as_echo "cat" >&6; } ;;
6949 esac
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6965 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6966 if test "${ac_cv_path_SED+set}" = set; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6970      for ac_i in 1 2 3 4 5 6 7; do
6971        ac_script="$ac_script$as_nl$ac_script"
6972      done
6973      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6974      { ac_script=; unset ac_script;}
6975      if test -z "$SED"; then
6976   ac_path_SED_found=false
6977   # Loop through the user's path and test for each of PROGNAME-LIST
6978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983     for ac_prog in sed gsed; do
6984     for ac_exec_ext in '' $ac_executable_extensions; do
6985       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6986       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6987 # Check for GNU ac_path_SED and select it if it is found.
6988   # Check for GNU $ac_path_SED
6989 case `"$ac_path_SED" --version 2>&1` in
6990 *GNU*)
6991   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6992 *)
6993   ac_count=0
6994   $as_echo_n 0123456789 >"conftest.in"
6995   while :
6996   do
6997     cat "conftest.in" "conftest.in" >"conftest.tmp"
6998     mv "conftest.tmp" "conftest.in"
6999     cp "conftest.in" "conftest.nl"
7000     $as_echo '' >> "conftest.nl"
7001     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7003     as_fn_arith $ac_count + 1 && ac_count=$as_val
7004     if test $ac_count -gt ${ac_path_SED_max-0}; then
7005       # Best one so far, save it but keep looking for a better one
7006       ac_cv_path_SED="$ac_path_SED"
7007       ac_path_SED_max=$ac_count
7008     fi
7009     # 10*(2^10) chars as input seems more than enough
7010     test $ac_count -gt 10 && break
7011   done
7012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7013 esac
7014
7015       $ac_path_SED_found && break 3
7016     done
7017   done
7018   done
7019 IFS=$as_save_IFS
7020   if test -z "$ac_cv_path_SED"; then
7021     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7022   fi
7023 else
7024   ac_cv_path_SED=$SED
7025 fi
7026
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7029 $as_echo "$ac_cv_path_SED" >&6; }
7030  SED="$ac_cv_path_SED"
7031   rm -f conftest.sed
7032
7033 test -z "$SED" && SED=sed
7034 Xsed="$SED -e 1s/^X//"
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7047 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7048 if test "${ac_cv_path_GREP+set}" = set; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051   if test -z "$GREP"; then
7052   ac_path_GREP_found=false
7053   # Loop through the user's path and test for each of PROGNAME-LIST
7054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059     for ac_prog in grep ggrep; do
7060     for ac_exec_ext in '' $ac_executable_extensions; do
7061       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7062       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7063 # Check for GNU ac_path_GREP and select it if it is found.
7064   # Check for GNU $ac_path_GREP
7065 case `"$ac_path_GREP" --version 2>&1` in
7066 *GNU*)
7067   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7068 *)
7069   ac_count=0
7070   $as_echo_n 0123456789 >"conftest.in"
7071   while :
7072   do
7073     cat "conftest.in" "conftest.in" >"conftest.tmp"
7074     mv "conftest.tmp" "conftest.in"
7075     cp "conftest.in" "conftest.nl"
7076     $as_echo 'GREP' >> "conftest.nl"
7077     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7079     as_fn_arith $ac_count + 1 && ac_count=$as_val
7080     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7081       # Best one so far, save it but keep looking for a better one
7082       ac_cv_path_GREP="$ac_path_GREP"
7083       ac_path_GREP_max=$ac_count
7084     fi
7085     # 10*(2^10) chars as input seems more than enough
7086     test $ac_count -gt 10 && break
7087   done
7088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7089 esac
7090
7091       $ac_path_GREP_found && break 3
7092     done
7093   done
7094   done
7095 IFS=$as_save_IFS
7096   if test -z "$ac_cv_path_GREP"; then
7097     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7098   fi
7099 else
7100   ac_cv_path_GREP=$GREP
7101 fi
7102
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7105 $as_echo "$ac_cv_path_GREP" >&6; }
7106  GREP="$ac_cv_path_GREP"
7107
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7110 $as_echo_n "checking for egrep... " >&6; }
7111 if test "${ac_cv_path_EGREP+set}" = set; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7115    then ac_cv_path_EGREP="$GREP -E"
7116    else
7117      if test -z "$EGREP"; then
7118   ac_path_EGREP_found=false
7119   # Loop through the user's path and test for each of PROGNAME-LIST
7120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_prog in egrep; do
7126     for ac_exec_ext in '' $ac_executable_extensions; do
7127       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7128       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7129 # Check for GNU ac_path_EGREP and select it if it is found.
7130   # Check for GNU $ac_path_EGREP
7131 case `"$ac_path_EGREP" --version 2>&1` in
7132 *GNU*)
7133   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7134 *)
7135   ac_count=0
7136   $as_echo_n 0123456789 >"conftest.in"
7137   while :
7138   do
7139     cat "conftest.in" "conftest.in" >"conftest.tmp"
7140     mv "conftest.tmp" "conftest.in"
7141     cp "conftest.in" "conftest.nl"
7142     $as_echo 'EGREP' >> "conftest.nl"
7143     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7145     as_fn_arith $ac_count + 1 && ac_count=$as_val
7146     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7147       # Best one so far, save it but keep looking for a better one
7148       ac_cv_path_EGREP="$ac_path_EGREP"
7149       ac_path_EGREP_max=$ac_count
7150     fi
7151     # 10*(2^10) chars as input seems more than enough
7152     test $ac_count -gt 10 && break
7153   done
7154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7155 esac
7156
7157       $ac_path_EGREP_found && break 3
7158     done
7159   done
7160   done
7161 IFS=$as_save_IFS
7162   if test -z "$ac_cv_path_EGREP"; then
7163     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7164   fi
7165 else
7166   ac_cv_path_EGREP=$EGREP
7167 fi
7168
7169    fi
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7172 $as_echo "$ac_cv_path_EGREP" >&6; }
7173  EGREP="$ac_cv_path_EGREP"
7174
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7177 $as_echo_n "checking for fgrep... " >&6; }
7178 if test "${ac_cv_path_FGREP+set}" = set; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7182    then ac_cv_path_FGREP="$GREP -F"
7183    else
7184      if test -z "$FGREP"; then
7185   ac_path_FGREP_found=false
7186   # Loop through the user's path and test for each of PROGNAME-LIST
7187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192     for ac_prog in fgrep; do
7193     for ac_exec_ext in '' $ac_executable_extensions; do
7194       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7195       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7196 # Check for GNU ac_path_FGREP and select it if it is found.
7197   # Check for GNU $ac_path_FGREP
7198 case `"$ac_path_FGREP" --version 2>&1` in
7199 *GNU*)
7200   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7201 *)
7202   ac_count=0
7203   $as_echo_n 0123456789 >"conftest.in"
7204   while :
7205   do
7206     cat "conftest.in" "conftest.in" >"conftest.tmp"
7207     mv "conftest.tmp" "conftest.in"
7208     cp "conftest.in" "conftest.nl"
7209     $as_echo 'FGREP' >> "conftest.nl"
7210     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7211     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7212     as_fn_arith $ac_count + 1 && ac_count=$as_val
7213     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7214       # Best one so far, save it but keep looking for a better one
7215       ac_cv_path_FGREP="$ac_path_FGREP"
7216       ac_path_FGREP_max=$ac_count
7217     fi
7218     # 10*(2^10) chars as input seems more than enough
7219     test $ac_count -gt 10 && break
7220   done
7221   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7222 esac
7223
7224       $ac_path_FGREP_found && break 3
7225     done
7226   done
7227   done
7228 IFS=$as_save_IFS
7229   if test -z "$ac_cv_path_FGREP"; then
7230     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7231   fi
7232 else
7233   ac_cv_path_FGREP=$FGREP
7234 fi
7235
7236    fi
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7239 $as_echo "$ac_cv_path_FGREP" >&6; }
7240  FGREP="$ac_cv_path_FGREP"
7241
7242
7243 test -z "$GREP" && GREP=grep
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263 # Check whether --with-gnu-ld was given.
7264 if test "${with_gnu_ld+set}" = set; then :
7265   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7266 else
7267   with_gnu_ld=no
7268 fi
7269
7270 ac_prog=ld
7271 if test "$GCC" = yes; then
7272   # Check if gcc -print-prog-name=ld gives a path.
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7274 $as_echo_n "checking for ld used by $CC... " >&6; }
7275   case $host in
7276   *-*-mingw*)
7277     # gcc leaves a trailing carriage return which upsets mingw
7278     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7279   *)
7280     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7281   esac
7282   case $ac_prog in
7283     # Accept absolute paths.
7284     [\\/]* | ?:[\\/]*)
7285       re_direlt='/[^/][^/]*/\.\./'
7286       # Canonicalize the pathname of ld
7287       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7288       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7289         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7290       done
7291       test -z "$LD" && LD="$ac_prog"
7292       ;;
7293   "")
7294     # If it fails, then pretend we aren't using GCC.
7295     ac_prog=ld
7296     ;;
7297   *)
7298     # If it is relative, then search for the first ld in PATH.
7299     with_gnu_ld=unknown
7300     ;;
7301   esac
7302 elif test "$with_gnu_ld" = yes; then
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7304 $as_echo_n "checking for GNU ld... " >&6; }
7305 else
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7307 $as_echo_n "checking for non-GNU ld... " >&6; }
7308 fi
7309 if test "${lt_cv_path_LD+set}" = set; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   if test -z "$LD"; then
7313   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7314   for ac_dir in $PATH; do
7315     IFS="$lt_save_ifs"
7316     test -z "$ac_dir" && ac_dir=.
7317     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7318       lt_cv_path_LD="$ac_dir/$ac_prog"
7319       # Check to see if the program is GNU ld.  I'd rather use --version,
7320       # but apparently some variants of GNU ld only accept -v.
7321       # Break only if it was the GNU/non-GNU ld that we prefer.
7322       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7323       *GNU* | *'with BFD'*)
7324         test "$with_gnu_ld" != no && break
7325         ;;
7326       *)
7327         test "$with_gnu_ld" != yes && break
7328         ;;
7329       esac
7330     fi
7331   done
7332   IFS="$lt_save_ifs"
7333 else
7334   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7335 fi
7336 fi
7337
7338 LD="$lt_cv_path_LD"
7339 if test -n "$LD"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7341 $as_echo "$LD" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7348 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7349 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7353 case `$LD -v 2>&1 </dev/null` in
7354 *GNU* | *'with BFD'*)
7355   lt_cv_prog_gnu_ld=yes
7356   ;;
7357 *)
7358   lt_cv_prog_gnu_ld=no
7359   ;;
7360 esac
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7363 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7364 with_gnu_ld=$lt_cv_prog_gnu_ld
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7375 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7376 if test "${lt_cv_path_NM+set}" = set; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$NM"; then
7380   # Let the user override the test.
7381   lt_cv_path_NM="$NM"
7382 else
7383   lt_nm_to_check="${ac_tool_prefix}nm"
7384   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7385     lt_nm_to_check="$lt_nm_to_check nm"
7386   fi
7387   for lt_tmp_nm in $lt_nm_to_check; do
7388     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7389     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7390       IFS="$lt_save_ifs"
7391       test -z "$ac_dir" && ac_dir=.
7392       tmp_nm="$ac_dir/$lt_tmp_nm"
7393       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7394         # Check to see if the nm accepts a BSD-compat flag.
7395         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7396         #   nm: unknown option "B" ignored
7397         # Tru64's nm complains that /dev/null is an invalid object file
7398         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7399         */dev/null* | *'Invalid file or object type'*)
7400           lt_cv_path_NM="$tmp_nm -B"
7401           break
7402           ;;
7403         *)
7404           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7405           */dev/null*)
7406             lt_cv_path_NM="$tmp_nm -p"
7407             break
7408             ;;
7409           *)
7410             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7411             continue # so that we can try to find one that supports BSD flags
7412             ;;
7413           esac
7414           ;;
7415         esac
7416       fi
7417     done
7418     IFS="$lt_save_ifs"
7419   done
7420   : ${lt_cv_path_NM=no}
7421 fi
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7424 $as_echo "$lt_cv_path_NM" >&6; }
7425 if test "$lt_cv_path_NM" != "no"; then
7426   NM="$lt_cv_path_NM"
7427 else
7428   # Didn't find any BSD compatible name lister, look for dumpbin.
7429   if test -n "$DUMPBIN"; then :
7430     # Let the user override the test.
7431   else
7432     if test -n "$ac_tool_prefix"; then
7433   for ac_prog in dumpbin "link -dump"
7434   do
7435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7440   $as_echo_n "(cached) " >&6
7441 else
7442   if test -n "$DUMPBIN"; then
7443   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450     for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457   done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 DUMPBIN=$ac_cv_prog_DUMPBIN
7463 if test -n "$DUMPBIN"; then
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7465 $as_echo "$DUMPBIN" >&6; }
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472     test -n "$DUMPBIN" && break
7473   done
7474 fi
7475 if test -z "$DUMPBIN"; then
7476   ac_ct_DUMPBIN=$DUMPBIN
7477   for ac_prog in dumpbin "link -dump"
7478 do
7479   # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   if test -n "$ac_ct_DUMPBIN"; then
7487   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494     for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501   done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7507 if test -n "$ac_ct_DUMPBIN"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7509 $as_echo "$ac_ct_DUMPBIN" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515
7516   test -n "$ac_ct_DUMPBIN" && break
7517 done
7518
7519   if test "x$ac_ct_DUMPBIN" = x; then
7520     DUMPBIN=":"
7521   else
7522     case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528     DUMPBIN=$ac_ct_DUMPBIN
7529   fi
7530 fi
7531
7532     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7533     *COFF*)
7534       DUMPBIN="$DUMPBIN -symbols"
7535       ;;
7536     *)
7537       DUMPBIN=:
7538       ;;
7539     esac
7540   fi
7541
7542   if test "$DUMPBIN" != ":"; then
7543     NM="$DUMPBIN"
7544   fi
7545 fi
7546 test -z "$NM" && NM=nm
7547
7548
7549
7550
7551
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7554 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7555 if test "${lt_cv_nm_interface+set}" = set; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   lt_cv_nm_interface="BSD nm"
7559   echo "int some_variable = 0;" > conftest.$ac_ext
7560   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7561   (eval "$ac_compile" 2>conftest.err)
7562   cat conftest.err >&5
7563   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7564   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7565   cat conftest.err >&5
7566   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7567   cat conftest.out >&5
7568   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7569     lt_cv_nm_interface="MS dumpbin"
7570   fi
7571   rm -f conftest*
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7574 $as_echo "$lt_cv_nm_interface" >&6; }
7575
7576 # find the maximum length of command line arguments
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582     i=0
7583   teststring="ABCD"
7584
7585   case $build_os in
7586   msdosdjgpp*)
7587     # On DJGPP, this test can blow up pretty badly due to problems in libc
7588     # (any single argument exceeding 2000 bytes causes a buffer overrun
7589     # during glob expansion).  Even if it were fixed, the result of this
7590     # check would be larger than it should be.
7591     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7592     ;;
7593
7594   gnu*)
7595     # Under GNU Hurd, this test is not required because there is
7596     # no limit to the length of command line arguments.
7597     # Libtool will interpret -1 as no limit whatsoever
7598     lt_cv_sys_max_cmd_len=-1;
7599     ;;
7600
7601   cygwin* | mingw* | cegcc*)
7602     # On Win9x/ME, this test blows up -- it succeeds, but takes
7603     # about 5 minutes as the teststring grows exponentially.
7604     # Worse, since 9x/ME are not pre-emptively multitasking,
7605     # you end up with a "frozen" computer, even though with patience
7606     # the test eventually succeeds (with a max line length of 256k).
7607     # Instead, let's just punt: use the minimum linelength reported by
7608     # all of the supported platforms: 8192 (on NT/2K/XP).
7609     lt_cv_sys_max_cmd_len=8192;
7610     ;;
7611
7612   mint*)
7613     # On MiNT this can take a long time and run out of memory.
7614     lt_cv_sys_max_cmd_len=8192;
7615     ;;
7616
7617   amigaos*)
7618     # On AmigaOS with pdksh, this test takes hours, literally.
7619     # So we just punt and use a minimum line length of 8192.
7620     lt_cv_sys_max_cmd_len=8192;
7621     ;;
7622
7623   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7624     # This has been around since 386BSD, at least.  Likely further.
7625     if test -x /sbin/sysctl; then
7626       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7627     elif test -x /usr/sbin/sysctl; then
7628       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7629     else
7630       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7631     fi
7632     # And add a safety zone
7633     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7634     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7635     ;;
7636
7637   interix*)
7638     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7639     lt_cv_sys_max_cmd_len=196608
7640     ;;
7641
7642   osf*)
7643     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7644     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7645     # nice to cause kernel panics so lets avoid the loop below.
7646     # First set a reasonable default.
7647     lt_cv_sys_max_cmd_len=16384
7648     #
7649     if test -x /sbin/sysconfig; then
7650       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7651         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7652       esac
7653     fi
7654     ;;
7655   sco3.2v5*)
7656     lt_cv_sys_max_cmd_len=102400
7657     ;;
7658   sysv5* | sco5v6* | sysv4.2uw2*)
7659     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7660     if test -n "$kargmax"; then
7661       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7662     else
7663       lt_cv_sys_max_cmd_len=32768
7664     fi
7665     ;;
7666   *)
7667     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7668     if test -n "$lt_cv_sys_max_cmd_len"; then
7669       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7670       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7671     else
7672       # Make teststring a little bigger before we do anything with it.
7673       # a 1K string should be a reasonable start.
7674       for i in 1 2 3 4 5 6 7 8 ; do
7675         teststring=$teststring$teststring
7676       done
7677       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7678       # If test is not a shell built-in, we'll probably end up computing a
7679       # maximum length that is only half of the actual maximum length, but
7680       # we can't tell.
7681       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7682                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7683               test $i != 17 # 1/2 MB should be enough
7684       do
7685         i=`expr $i + 1`
7686         teststring=$teststring$teststring
7687       done
7688       # Only check the string length outside the loop.
7689       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7690       teststring=
7691       # Add a significant safety factor because C++ compilers can tack on
7692       # massive amounts of additional arguments before passing them to the
7693       # linker.  It appears as though 1/2 is a usable value.
7694       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7695     fi
7696     ;;
7697   esac
7698
7699 fi
7700
7701 if test -n $lt_cv_sys_max_cmd_len ; then
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7704 else
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7706 $as_echo "none" >&6; }
7707 fi
7708 max_cmd_len=$lt_cv_sys_max_cmd_len
7709
7710
7711
7712
7713
7714
7715 : ${CP="cp -f"}
7716 : ${MV="mv -f"}
7717 : ${RM="rm -f"}
7718
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7721 # Try some XSI features
7722 xsi_shell=no
7723 ( _lt_dummy="a/b/c"
7724   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7725       = c,a/b,, \
7726     && eval 'test $(( 1 + 1 )) -eq 2 \
7727     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7728   && xsi_shell=yes
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7730 $as_echo "$xsi_shell" >&6; }
7731
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7734 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7735 lt_shell_append=no
7736 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7737     >/dev/null 2>&1 \
7738   && lt_shell_append=yes
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7740 $as_echo "$lt_shell_append" >&6; }
7741
7742
7743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7744   lt_unset=unset
7745 else
7746   lt_unset=false
7747 fi
7748
7749
7750
7751
7752
7753 # test EBCDIC or ASCII
7754 case `echo X|tr X '\101'` in
7755  A) # ASCII based system
7756     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7757   lt_SP2NL='tr \040 \012'
7758   lt_NL2SP='tr \015\012 \040\040'
7759   ;;
7760  *) # EBCDIC based system
7761   lt_SP2NL='tr \100 \n'
7762   lt_NL2SP='tr \r\n \100\100'
7763   ;;
7764 esac
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7776 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   lt_cv_ld_reload_flag='-r'
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7783 reload_flag=$lt_cv_ld_reload_flag
7784 case $reload_flag in
7785 "" | " "*) ;;
7786 *) reload_flag=" $reload_flag" ;;
7787 esac
7788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7789 case $host_os in
7790   darwin*)
7791     if test "$GCC" = yes; then
7792       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7793     else
7794       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7795     fi
7796     ;;
7797 esac
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807 if test -n "$ac_tool_prefix"; then
7808   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815   if test -n "$OBJDUMP"; then
7816   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821   IFS=$as_save_IFS
7822   test -z "$as_dir" && as_dir=.
7823     for ac_exec_ext in '' $ac_executable_extensions; do
7824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827     break 2
7828   fi
7829 done
7830   done
7831 IFS=$as_save_IFS
7832
7833 fi
7834 fi
7835 OBJDUMP=$ac_cv_prog_OBJDUMP
7836 if test -n "$OBJDUMP"; then
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7838 $as_echo "$OBJDUMP" >&6; }
7839 else
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843
7844
7845 fi
7846 if test -z "$ac_cv_prog_OBJDUMP"; then
7847   ac_ct_OBJDUMP=$OBJDUMP
7848   # Extract the first word of "objdump", so it can be a program name with args.
7849 set dummy objdump; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   if test -n "$ac_ct_OBJDUMP"; then
7856   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863     for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870   done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7876 if test -n "$ac_ct_OBJDUMP"; then
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7878 $as_echo "$ac_ct_OBJDUMP" >&6; }
7879 else
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7882 fi
7883
7884   if test "x$ac_ct_OBJDUMP" = x; then
7885     OBJDUMP="false"
7886   else
7887     case $cross_compiling:$ac_tool_warned in
7888 yes:)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned=yes ;;
7892 esac
7893     OBJDUMP=$ac_ct_OBJDUMP
7894   fi
7895 else
7896   OBJDUMP="$ac_cv_prog_OBJDUMP"
7897 fi
7898
7899 test -z "$OBJDUMP" && OBJDUMP=objdump
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7910 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7911 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   lt_cv_file_magic_cmd='$MAGIC_CMD'
7915 lt_cv_file_magic_test_file=
7916 lt_cv_deplibs_check_method='unknown'
7917 # Need to set the preceding variable on all platforms that support
7918 # interlibrary dependencies.
7919 # 'none' -- dependencies not supported.
7920 # `unknown' -- same as none, but documents that we really don't know.
7921 # 'pass_all' -- all dependencies passed with no checks.
7922 # 'test_compile' -- check by making test program.
7923 # 'file_magic [[regex]]' -- check by looking for files in library path
7924 # which responds to the $file_magic_cmd with a given extended regex.
7925 # If you have `file' or equivalent on your system and you're not sure
7926 # whether `pass_all' will *always* work, you probably want this one.
7927
7928 case $host_os in
7929 aix[4-9]*)
7930   lt_cv_deplibs_check_method=pass_all
7931   ;;
7932
7933 beos*)
7934   lt_cv_deplibs_check_method=pass_all
7935   ;;
7936
7937 bsdi[45]*)
7938   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7939   lt_cv_file_magic_cmd='/usr/bin/file -L'
7940   lt_cv_file_magic_test_file=/shlib/libc.so
7941   ;;
7942
7943 cygwin*)
7944   # func_win32_libid is a shell function defined in ltmain.sh
7945   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7946   lt_cv_file_magic_cmd='func_win32_libid'
7947   ;;
7948
7949 mingw* | pw32*)
7950   # Base MSYS/MinGW do not provide the 'file' command needed by
7951   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7952   # unless we find 'file', for example because we are cross-compiling.
7953   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7954   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7955     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7956     lt_cv_file_magic_cmd='func_win32_libid'
7957   else
7958     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7959     lt_cv_file_magic_cmd='$OBJDUMP -f'
7960   fi
7961   ;;
7962
7963 cegcc*)
7964   # use the weaker test based on 'objdump'. See mingw*.
7965   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7966   lt_cv_file_magic_cmd='$OBJDUMP -f'
7967   ;;
7968
7969 darwin* | rhapsody*)
7970   lt_cv_deplibs_check_method=pass_all
7971   ;;
7972
7973 freebsd* | dragonfly*)
7974   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7975     case $host_cpu in
7976     i*86 )
7977       # Not sure whether the presence of OpenBSD here was a mistake.
7978       # Let's accept both of them until this is cleared up.
7979       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7980       lt_cv_file_magic_cmd=/usr/bin/file
7981       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7982       ;;
7983     esac
7984   else
7985     lt_cv_deplibs_check_method=pass_all
7986   fi
7987   ;;
7988
7989 gnu*)
7990   lt_cv_deplibs_check_method=pass_all
7991   ;;
7992
7993 haiku*)
7994   lt_cv_deplibs_check_method=pass_all
7995   ;;
7996
7997 hpux10.20* | hpux11*)
7998   lt_cv_file_magic_cmd=/usr/bin/file
7999   case $host_cpu in
8000   ia64*)
8001     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8002     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8003     ;;
8004   hppa*64*)
8005     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]'
8006     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8007     ;;
8008   *)
8009     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8010     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8011     ;;
8012   esac
8013   ;;
8014
8015 interix[3-9]*)
8016   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8017   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8018   ;;
8019
8020 irix5* | irix6* | nonstopux*)
8021   case $LD in
8022   *-32|*"-32 ") libmagic=32-bit;;
8023   *-n32|*"-n32 ") libmagic=N32;;
8024   *-64|*"-64 ") libmagic=64-bit;;
8025   *) libmagic=never-match;;
8026   esac
8027   lt_cv_deplibs_check_method=pass_all
8028   ;;
8029
8030 # This must be Linux ELF.
8031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8032   lt_cv_deplibs_check_method=pass_all
8033   ;;
8034
8035 netbsd*)
8036   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8037     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8038   else
8039     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8040   fi
8041   ;;
8042
8043 newos6*)
8044   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8045   lt_cv_file_magic_cmd=/usr/bin/file
8046   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8047   ;;
8048
8049 *nto* | *qnx*)
8050   lt_cv_deplibs_check_method=pass_all
8051   ;;
8052
8053 openbsd*)
8054   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8055     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8056   else
8057     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8058   fi
8059   ;;
8060
8061 osf3* | osf4* | osf5*)
8062   lt_cv_deplibs_check_method=pass_all
8063   ;;
8064
8065 rdos*)
8066   lt_cv_deplibs_check_method=pass_all
8067   ;;
8068
8069 solaris*)
8070   lt_cv_deplibs_check_method=pass_all
8071   ;;
8072
8073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8074   lt_cv_deplibs_check_method=pass_all
8075   ;;
8076
8077 sysv4 | sysv4.3*)
8078   case $host_vendor in
8079   motorola)
8080     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]'
8081     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8082     ;;
8083   ncr)
8084     lt_cv_deplibs_check_method=pass_all
8085     ;;
8086   sequent)
8087     lt_cv_file_magic_cmd='/bin/file'
8088     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8089     ;;
8090   sni)
8091     lt_cv_file_magic_cmd='/bin/file'
8092     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8093     lt_cv_file_magic_test_file=/lib/libc.so
8094     ;;
8095   siemens)
8096     lt_cv_deplibs_check_method=pass_all
8097     ;;
8098   pc)
8099     lt_cv_deplibs_check_method=pass_all
8100     ;;
8101   esac
8102   ;;
8103
8104 tpf*)
8105   lt_cv_deplibs_check_method=pass_all
8106   ;;
8107 esac
8108
8109 fi
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8111 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8112 file_magic_cmd=$lt_cv_file_magic_cmd
8113 deplibs_check_method=$lt_cv_deplibs_check_method
8114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127 if test -n "$ac_tool_prefix"; then
8128   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8129 set dummy ${ac_tool_prefix}ar; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_AR+set}" = set; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135   if test -n "$AR"; then
8136   ac_cv_prog_AR="$AR" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141   IFS=$as_save_IFS
8142   test -z "$as_dir" && as_dir=.
8143     for ac_exec_ext in '' $ac_executable_extensions; do
8144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145     ac_cv_prog_AR="${ac_tool_prefix}ar"
8146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147     break 2
8148   fi
8149 done
8150   done
8151 IFS=$as_save_IFS
8152
8153 fi
8154 fi
8155 AR=$ac_cv_prog_AR
8156 if test -n "$AR"; then
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8158 $as_echo "$AR" >&6; }
8159 else
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 fi
8163
8164
8165 fi
8166 if test -z "$ac_cv_prog_AR"; then
8167   ac_ct_AR=$AR
8168   # Extract the first word of "ar", so it can be a program name with args.
8169 set dummy ar; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   if test -n "$ac_ct_AR"; then
8176   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181   IFS=$as_save_IFS
8182   test -z "$as_dir" && as_dir=.
8183     for ac_exec_ext in '' $ac_executable_extensions; do
8184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185     ac_cv_prog_ac_ct_AR="ar"
8186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187     break 2
8188   fi
8189 done
8190   done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8196 if test -n "$ac_ct_AR"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8198 $as_echo "$ac_ct_AR" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204   if test "x$ac_ct_AR" = x; then
8205     AR="false"
8206   else
8207     case $cross_compiling:$ac_tool_warned in
8208 yes:)
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211 ac_tool_warned=yes ;;
8212 esac
8213     AR=$ac_ct_AR
8214   fi
8215 else
8216   AR="$ac_cv_prog_AR"
8217 fi
8218
8219 test -z "$AR" && AR=ar
8220 test -z "$AR_FLAGS" && AR_FLAGS=cru
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 if test -n "$ac_tool_prefix"; then
8233   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}strip; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if test "${ac_cv_prog_STRIP+set}" = set; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   if test -n "$STRIP"; then
8241   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246   IFS=$as_save_IFS
8247   test -z "$as_dir" && as_dir=.
8248     for ac_exec_ext in '' $ac_executable_extensions; do
8249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252     break 2
8253   fi
8254 done
8255   done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 STRIP=$ac_cv_prog_STRIP
8261 if test -n "$STRIP"; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8263 $as_echo "$STRIP" >&6; }
8264 else
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269
8270 fi
8271 if test -z "$ac_cv_prog_STRIP"; then
8272   ac_ct_STRIP=$STRIP
8273   # Extract the first word of "strip", so it can be a program name with args.
8274 set dummy strip; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280   if test -n "$ac_ct_STRIP"; then
8281   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8285 do
8286   IFS=$as_save_IFS
8287   test -z "$as_dir" && as_dir=.
8288     for ac_exec_ext in '' $ac_executable_extensions; do
8289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290     ac_cv_prog_ac_ct_STRIP="strip"
8291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292     break 2
8293   fi
8294 done
8295   done
8296 IFS=$as_save_IFS
8297
8298 fi
8299 fi
8300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8301 if test -n "$ac_ct_STRIP"; then
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8303 $as_echo "$ac_ct_STRIP" >&6; }
8304 else
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309   if test "x$ac_ct_STRIP" = x; then
8310     STRIP=":"
8311   else
8312     case $cross_compiling:$ac_tool_warned in
8313 yes:)
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8316 ac_tool_warned=yes ;;
8317 esac
8318     STRIP=$ac_ct_STRIP
8319   fi
8320 else
8321   STRIP="$ac_cv_prog_STRIP"
8322 fi
8323
8324 test -z "$STRIP" && STRIP=:
8325
8326
8327
8328
8329
8330
8331 if test -n "$ac_tool_prefix"; then
8332   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   if test -n "$RANLIB"; then
8340   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345   IFS=$as_save_IFS
8346   test -z "$as_dir" && as_dir=.
8347     for ac_exec_ext in '' $ac_executable_extensions; do
8348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351     break 2
8352   fi
8353 done
8354   done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 RANLIB=$ac_cv_prog_RANLIB
8360 if test -n "$RANLIB"; then
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8362 $as_echo "$RANLIB" >&6; }
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369 fi
8370 if test -z "$ac_cv_prog_RANLIB"; then
8371   ac_ct_RANLIB=$RANLIB
8372   # Extract the first word of "ranlib", so it can be a program name with args.
8373 set dummy ranlib; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   if test -n "$ac_ct_RANLIB"; then
8380   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385   IFS=$as_save_IFS
8386   test -z "$as_dir" && as_dir=.
8387     for ac_exec_ext in '' $ac_executable_extensions; do
8388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389     ac_cv_prog_ac_ct_RANLIB="ranlib"
8390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391     break 2
8392   fi
8393 done
8394   done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8400 if test -n "$ac_ct_RANLIB"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8402 $as_echo "$ac_ct_RANLIB" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408   if test "x$ac_ct_RANLIB" = x; then
8409     RANLIB=":"
8410   else
8411     case $cross_compiling:$ac_tool_warned in
8412 yes:)
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8416 esac
8417     RANLIB=$ac_ct_RANLIB
8418   fi
8419 else
8420   RANLIB="$ac_cv_prog_RANLIB"
8421 fi
8422
8423 test -z "$RANLIB" && RANLIB=:
8424
8425
8426
8427
8428
8429
8430 # Determine commands to create old-style static archives.
8431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8432 old_postinstall_cmds='chmod 644 $oldlib'
8433 old_postuninstall_cmds=
8434
8435 if test -n "$RANLIB"; then
8436   case $host_os in
8437   openbsd*)
8438     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8439     ;;
8440   *)
8441     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442     ;;
8443   esac
8444   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8445 fi
8446
8447 case $host_os in
8448   darwin*)
8449     lock_old_archive_extraction=yes ;;
8450   *)
8451     lock_old_archive_extraction=no ;;
8452 esac
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
8491
8492 # If no C compiler was specified, use CC.
8493 LTCC=${LTCC-"$CC"}
8494
8495 # If no C compiler flags were specified, use CFLAGS.
8496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8497
8498 # Allow CC to be a program name with arguments.
8499 compiler=$CC
8500
8501
8502 # Check for command to grab the raw symbol name followed by C symbol from nm.
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8504 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8506   $as_echo_n "(cached) " >&6
8507 else
8508
8509 # These are sane defaults that work on at least a few old systems.
8510 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8511
8512 # Character class describing NM global symbol codes.
8513 symcode='[BCDEGRST]'
8514
8515 # Regexp to match symbols that can be accessed directly from C.
8516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8517
8518 # Define system-specific variables.
8519 case $host_os in
8520 aix*)
8521   symcode='[BCDT]'
8522   ;;
8523 cygwin* | mingw* | pw32* | cegcc*)
8524   symcode='[ABCDGISTW]'
8525   ;;
8526 hpux*)
8527   if test "$host_cpu" = ia64; then
8528     symcode='[ABCDEGRST]'
8529   fi
8530   ;;
8531 irix* | nonstopux*)
8532   symcode='[BCDEGRST]'
8533   ;;
8534 osf*)
8535   symcode='[BCDEGQRST]'
8536   ;;
8537 solaris*)
8538   symcode='[BDRT]'
8539   ;;
8540 sco3.2v5*)
8541   symcode='[DT]'
8542   ;;
8543 sysv4.2uw2*)
8544   symcode='[DT]'
8545   ;;
8546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8547   symcode='[ABDT]'
8548   ;;
8549 sysv4)
8550   symcode='[DFNSTU]'
8551   ;;
8552 esac
8553
8554 # If we're using GNU nm, then use its standard symbol codes.
8555 case `$NM -V 2>&1` in
8556 *GNU* | *'with BFD'*)
8557   symcode='[ABCDGIRSTW]' ;;
8558 esac
8559
8560 # Transform an extracted symbol line into a proper C declaration.
8561 # Some systems (esp. on ia64) link data and code symbols differently,
8562 # so use this general approach.
8563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8564
8565 # Transform an extracted symbol line into symbol name and symbol address
8566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8567 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'"
8568
8569 # Handle CRLF in mingw tool chain
8570 opt_cr=
8571 case $build_os in
8572 mingw*)
8573   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8574   ;;
8575 esac
8576
8577 # Try without a prefix underscore, then with it.
8578 for ac_symprfx in "" "_"; do
8579
8580   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8581   symxfrm="\\1 $ac_symprfx\\2 \\2"
8582
8583   # Write the raw and C identifiers.
8584   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8585     # Fake it for dumpbin and say T for any non-static function
8586     # and D for any global variable.
8587     # Also find C++ and __fastcall symbols from MSVC++,
8588     # which start with @ or ?.
8589     lt_cv_sys_global_symbol_pipe="$AWK '"\
8590 "     {last_section=section; section=\$ 3};"\
8591 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8592 "     \$ 0!~/External *\|/{next};"\
8593 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8594 "     {if(hide[section]) next};"\
8595 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8596 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8597 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8598 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8599 "     ' prfx=^$ac_symprfx"
8600   else
8601     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8602   fi
8603
8604   # Check to see that the pipe works correctly.
8605   pipe_works=no
8606
8607   rm -f conftest*
8608   cat > conftest.$ac_ext <<_LT_EOF
8609 #ifdef __cplusplus
8610 extern "C" {
8611 #endif
8612 char nm_test_var;
8613 void nm_test_func(void);
8614 void nm_test_func(void){}
8615 #ifdef __cplusplus
8616 }
8617 #endif
8618 int main(){nm_test_var='a';nm_test_func();return(0);}
8619 _LT_EOF
8620
8621   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8622   (eval $ac_compile) 2>&5
8623   ac_status=$?
8624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8625   test $ac_status = 0; }; then
8626     # Now try to grab the symbols.
8627     nlist=conftest.nm
8628     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8629   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8630   ac_status=$?
8631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8632   test $ac_status = 0; } && test -s "$nlist"; then
8633       # Try sorting and uniquifying the output.
8634       if sort "$nlist" | uniq > "$nlist"T; then
8635         mv -f "$nlist"T "$nlist"
8636       else
8637         rm -f "$nlist"T
8638       fi
8639
8640       # Make sure that we snagged all the symbols we need.
8641       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8642         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8643           cat <<_LT_EOF > conftest.$ac_ext
8644 #ifdef __cplusplus
8645 extern "C" {
8646 #endif
8647
8648 _LT_EOF
8649           # Now generate the symbol file.
8650           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8651
8652           cat <<_LT_EOF >> conftest.$ac_ext
8653
8654 /* The mapping between symbol names and symbols.  */
8655 const struct {
8656   const char *name;
8657   void       *address;
8658 }
8659 lt__PROGRAM__LTX_preloaded_symbols[] =
8660 {
8661   { "@PROGRAM@", (void *) 0 },
8662 _LT_EOF
8663           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8664           cat <<\_LT_EOF >> conftest.$ac_ext
8665   {0, (void *) 0}
8666 };
8667
8668 /* This works around a problem in FreeBSD linker */
8669 #ifdef FREEBSD_WORKAROUND
8670 static const void *lt_preloaded_setup() {
8671   return lt__PROGRAM__LTX_preloaded_symbols;
8672 }
8673 #endif
8674
8675 #ifdef __cplusplus
8676 }
8677 #endif
8678 _LT_EOF
8679           # Now try linking the two files.
8680           mv conftest.$ac_objext conftstm.$ac_objext
8681           lt_save_LIBS="$LIBS"
8682           lt_save_CFLAGS="$CFLAGS"
8683           LIBS="conftstm.$ac_objext"
8684           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8685           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8686   (eval $ac_link) 2>&5
8687   ac_status=$?
8688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8689   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8690             pipe_works=yes
8691           fi
8692           LIBS="$lt_save_LIBS"
8693           CFLAGS="$lt_save_CFLAGS"
8694         else
8695           echo "cannot find nm_test_func in $nlist" >&5
8696         fi
8697       else
8698         echo "cannot find nm_test_var in $nlist" >&5
8699       fi
8700     else
8701       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8702     fi
8703   else
8704     echo "$progname: failed program was:" >&5
8705     cat conftest.$ac_ext >&5
8706   fi
8707   rm -rf conftest* conftst*
8708
8709   # Do not use the global_symbol_pipe unless it works.
8710   if test "$pipe_works" = yes; then
8711     break
8712   else
8713     lt_cv_sys_global_symbol_pipe=
8714   fi
8715 done
8716
8717 fi
8718
8719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8720   lt_cv_sys_global_symbol_to_cdecl=
8721 fi
8722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8724 $as_echo "failed" >&6; }
8725 else
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8727 $as_echo "ok" >&6; }
8728 fi
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 # Check whether --enable-libtool-lock was given.
8753 if test "${enable_libtool_lock+set}" = set; then :
8754   enableval=$enable_libtool_lock;
8755 fi
8756
8757 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8758
8759 # Some flags need to be propagated to the compiler or linker for good
8760 # libtool support.
8761 case $host in
8762 ia64-*-hpux*)
8763   # Find out which ABI we are using.
8764   echo 'int i;' > conftest.$ac_ext
8765   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8766   (eval $ac_compile) 2>&5
8767   ac_status=$?
8768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8769   test $ac_status = 0; }; then
8770     case `/usr/bin/file conftest.$ac_objext` in
8771       *ELF-32*)
8772         HPUX_IA64_MODE="32"
8773         ;;
8774       *ELF-64*)
8775         HPUX_IA64_MODE="64"
8776         ;;
8777     esac
8778   fi
8779   rm -rf conftest*
8780   ;;
8781 *-*-irix6*)
8782   # Find out which ABI we are using.
8783   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8784   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8785   (eval $ac_compile) 2>&5
8786   ac_status=$?
8787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8788   test $ac_status = 0; }; then
8789     if test "$lt_cv_prog_gnu_ld" = yes; then
8790       case `/usr/bin/file conftest.$ac_objext` in
8791         *32-bit*)
8792           LD="${LD-ld} -melf32bsmip"
8793           ;;
8794         *N32*)
8795           LD="${LD-ld} -melf32bmipn32"
8796           ;;
8797         *64-bit*)
8798           LD="${LD-ld} -melf64bmip"
8799         ;;
8800       esac
8801     else
8802       case `/usr/bin/file conftest.$ac_objext` in
8803         *32-bit*)
8804           LD="${LD-ld} -32"
8805           ;;
8806         *N32*)
8807           LD="${LD-ld} -n32"
8808           ;;
8809         *64-bit*)
8810           LD="${LD-ld} -64"
8811           ;;
8812       esac
8813     fi
8814   fi
8815   rm -rf conftest*
8816   ;;
8817
8818 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8819 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8820   # Find out which ABI we are using.
8821   echo 'int i;' > conftest.$ac_ext
8822   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8823   (eval $ac_compile) 2>&5
8824   ac_status=$?
8825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8826   test $ac_status = 0; }; then
8827     case `/usr/bin/file conftest.o` in
8828       *32-bit*)
8829         case $host in
8830           x86_64-*kfreebsd*-gnu)
8831             LD="${LD-ld} -m elf_i386_fbsd"
8832             ;;
8833           x86_64-*linux*)
8834             LD="${LD-ld} -m elf_i386"
8835             ;;
8836           ppc64-*linux*|powerpc64-*linux*)
8837             LD="${LD-ld} -m elf32ppclinux"
8838             ;;
8839           s390x-*linux*)
8840             LD="${LD-ld} -m elf_s390"
8841             ;;
8842           sparc64-*linux*)
8843             LD="${LD-ld} -m elf32_sparc"
8844             ;;
8845         esac
8846         ;;
8847       *64-bit*)
8848         case $host in
8849           x86_64-*kfreebsd*-gnu)
8850             LD="${LD-ld} -m elf_x86_64_fbsd"
8851             ;;
8852           x86_64-*linux*)
8853             LD="${LD-ld} -m elf_x86_64"
8854             ;;
8855           ppc*-*linux*|powerpc*-*linux*)
8856             LD="${LD-ld} -m elf64ppc"
8857             ;;
8858           s390*-*linux*|s390*-*tpf*)
8859             LD="${LD-ld} -m elf64_s390"
8860             ;;
8861           sparc*-*linux*)
8862             LD="${LD-ld} -m elf64_sparc"
8863             ;;
8864         esac
8865         ;;
8866     esac
8867   fi
8868   rm -rf conftest*
8869   ;;
8870
8871 *-*-sco3.2v5*)
8872   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8873   SAVE_CFLAGS="$CFLAGS"
8874   CFLAGS="$CFLAGS -belf"
8875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8876 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8877 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   ac_ext=c
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886      if test x$gcc_no_link = xyes; then
8887   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8888 fi
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h.  */
8891
8892 int
8893 main ()
8894 {
8895
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"; then :
8901   lt_cv_cc_needs_belf=yes
8902 else
8903   lt_cv_cc_needs_belf=no
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext \
8906     conftest$ac_exeext conftest.$ac_ext
8907      ac_ext=c
8908 ac_cpp='$CPP $CPPFLAGS'
8909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8912
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8915 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8916   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8917     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8918     CFLAGS="$SAVE_CFLAGS"
8919   fi
8920   ;;
8921 sparc*-*solaris*)
8922   # Find out which ABI we are using.
8923   echo 'int i;' > conftest.$ac_ext
8924   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8925   (eval $ac_compile) 2>&5
8926   ac_status=$?
8927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8928   test $ac_status = 0; }; then
8929     case `/usr/bin/file conftest.o` in
8930     *64-bit*)
8931       case $lt_cv_prog_gnu_ld in
8932       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8933       *)
8934         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8935           LD="${LD-ld} -64"
8936         fi
8937         ;;
8938       esac
8939       ;;
8940     esac
8941   fi
8942   rm -rf conftest*
8943   ;;
8944 esac
8945
8946 need_locks="$enable_libtool_lock"
8947
8948
8949   case $host_os in
8950     rhapsody* | darwin*)
8951     if test -n "$ac_tool_prefix"; then
8952   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   if test -n "$DSYMUTIL"; then
8960   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8964 do
8965   IFS=$as_save_IFS
8966   test -z "$as_dir" && as_dir=.
8967     for ac_exec_ext in '' $ac_executable_extensions; do
8968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971     break 2
8972   fi
8973 done
8974   done
8975 IFS=$as_save_IFS
8976
8977 fi
8978 fi
8979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8980 if test -n "$DSYMUTIL"; then
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8982 $as_echo "$DSYMUTIL" >&6; }
8983 else
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988
8989 fi
8990 if test -z "$ac_cv_prog_DSYMUTIL"; then
8991   ac_ct_DSYMUTIL=$DSYMUTIL
8992   # Extract the first word of "dsymutil", so it can be a program name with args.
8993 set dummy dsymutil; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   if test -n "$ac_ct_DSYMUTIL"; then
9000   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9001 else
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9004 do
9005   IFS=$as_save_IFS
9006   test -z "$as_dir" && as_dir=.
9007     for ac_exec_ext in '' $ac_executable_extensions; do
9008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011     break 2
9012   fi
9013 done
9014   done
9015 IFS=$as_save_IFS
9016
9017 fi
9018 fi
9019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9020 if test -n "$ac_ct_DSYMUTIL"; then
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9023 else
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9026 fi
9027
9028   if test "x$ac_ct_DSYMUTIL" = x; then
9029     DSYMUTIL=":"
9030   else
9031     case $cross_compiling:$ac_tool_warned in
9032 yes:)
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9035 ac_tool_warned=yes ;;
9036 esac
9037     DSYMUTIL=$ac_ct_DSYMUTIL
9038   fi
9039 else
9040   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9041 fi
9042
9043     if test -n "$ac_tool_prefix"; then
9044   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   if test -n "$NMEDIT"; then
9052   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9053 else
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057   IFS=$as_save_IFS
9058   test -z "$as_dir" && as_dir=.
9059     for ac_exec_ext in '' $ac_executable_extensions; do
9060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9061     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063     break 2
9064   fi
9065 done
9066   done
9067 IFS=$as_save_IFS
9068
9069 fi
9070 fi
9071 NMEDIT=$ac_cv_prog_NMEDIT
9072 if test -n "$NMEDIT"; then
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9074 $as_echo "$NMEDIT" >&6; }
9075 else
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078 fi
9079
9080
9081 fi
9082 if test -z "$ac_cv_prog_NMEDIT"; then
9083   ac_ct_NMEDIT=$NMEDIT
9084   # Extract the first word of "nmedit", so it can be a program name with args.
9085 set dummy nmedit; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9089   $as_echo_n "(cached) " >&6
9090 else
9091   if test -n "$ac_ct_NMEDIT"; then
9092   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9093 else
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9096 do
9097   IFS=$as_save_IFS
9098   test -z "$as_dir" && as_dir=.
9099     for ac_exec_ext in '' $ac_executable_extensions; do
9100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9101     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103     break 2
9104   fi
9105 done
9106   done
9107 IFS=$as_save_IFS
9108
9109 fi
9110 fi
9111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9112 if test -n "$ac_ct_NMEDIT"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9114 $as_echo "$ac_ct_NMEDIT" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119
9120   if test "x$ac_ct_NMEDIT" = x; then
9121     NMEDIT=":"
9122   else
9123     case $cross_compiling:$ac_tool_warned in
9124 yes:)
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9127 ac_tool_warned=yes ;;
9128 esac
9129     NMEDIT=$ac_ct_NMEDIT
9130   fi
9131 else
9132   NMEDIT="$ac_cv_prog_NMEDIT"
9133 fi
9134
9135     if test -n "$ac_tool_prefix"; then
9136   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if test "${ac_cv_prog_LIPO+set}" = set; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   if test -n "$LIPO"; then
9144   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9153     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 LIPO=$ac_cv_prog_LIPO
9164 if test -n "$LIPO"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9166 $as_echo "$LIPO" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173 fi
9174 if test -z "$ac_cv_prog_LIPO"; then
9175   ac_ct_LIPO=$LIPO
9176   # Extract the first word of "lipo", so it can be a program name with args.
9177 set dummy lipo; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   if test -n "$ac_ct_LIPO"; then
9184   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9188 do
9189   IFS=$as_save_IFS
9190   test -z "$as_dir" && as_dir=.
9191     for ac_exec_ext in '' $ac_executable_extensions; do
9192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193     ac_cv_prog_ac_ct_LIPO="lipo"
9194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195     break 2
9196   fi
9197 done
9198   done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9204 if test -n "$ac_ct_LIPO"; then
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9206 $as_echo "$ac_ct_LIPO" >&6; }
9207 else
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212   if test "x$ac_ct_LIPO" = x; then
9213     LIPO=":"
9214   else
9215     case $cross_compiling:$ac_tool_warned in
9216 yes:)
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9219 ac_tool_warned=yes ;;
9220 esac
9221     LIPO=$ac_ct_LIPO
9222   fi
9223 else
9224   LIPO="$ac_cv_prog_LIPO"
9225 fi
9226
9227     if test -n "$ac_tool_prefix"; then
9228   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9229 set dummy ${ac_tool_prefix}otool; ac_word=$2
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9231 $as_echo_n "checking for $ac_word... " >&6; }
9232 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9233   $as_echo_n "(cached) " >&6
9234 else
9235   if test -n "$OTOOL"; then
9236   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9237 else
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 for as_dir in $PATH
9240 do
9241   IFS=$as_save_IFS
9242   test -z "$as_dir" && as_dir=.
9243     for ac_exec_ext in '' $ac_executable_extensions; do
9244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9245     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9247     break 2
9248   fi
9249 done
9250   done
9251 IFS=$as_save_IFS
9252
9253 fi
9254 fi
9255 OTOOL=$ac_cv_prog_OTOOL
9256 if test -n "$OTOOL"; then
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9258 $as_echo "$OTOOL" >&6; }
9259 else
9260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9262 fi
9263
9264
9265 fi
9266 if test -z "$ac_cv_prog_OTOOL"; then
9267   ac_ct_OTOOL=$OTOOL
9268   # Extract the first word of "otool", so it can be a program name with args.
9269 set dummy otool; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275   if test -n "$ac_ct_OTOOL"; then
9276   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9277 else
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279 for as_dir in $PATH
9280 do
9281   IFS=$as_save_IFS
9282   test -z "$as_dir" && as_dir=.
9283     for ac_exec_ext in '' $ac_executable_extensions; do
9284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285     ac_cv_prog_ac_ct_OTOOL="otool"
9286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287     break 2
9288   fi
9289 done
9290   done
9291 IFS=$as_save_IFS
9292
9293 fi
9294 fi
9295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9296 if test -n "$ac_ct_OTOOL"; then
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9298 $as_echo "$ac_ct_OTOOL" >&6; }
9299 else
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9302 fi
9303
9304   if test "x$ac_ct_OTOOL" = x; then
9305     OTOOL=":"
9306   else
9307     case $cross_compiling:$ac_tool_warned in
9308 yes:)
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9311 ac_tool_warned=yes ;;
9312 esac
9313     OTOOL=$ac_ct_OTOOL
9314   fi
9315 else
9316   OTOOL="$ac_cv_prog_OTOOL"
9317 fi
9318
9319     if test -n "$ac_tool_prefix"; then
9320   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   if test -n "$OTOOL64"; then
9328   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333   IFS=$as_save_IFS
9334   test -z "$as_dir" && as_dir=.
9335     for ac_exec_ext in '' $ac_executable_extensions; do
9336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339     break 2
9340   fi
9341 done
9342   done
9343 IFS=$as_save_IFS
9344
9345 fi
9346 fi
9347 OTOOL64=$ac_cv_prog_OTOOL64
9348 if test -n "$OTOOL64"; then
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9350 $as_echo "$OTOOL64" >&6; }
9351 else
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9354 fi
9355
9356
9357 fi
9358 if test -z "$ac_cv_prog_OTOOL64"; then
9359   ac_ct_OTOOL64=$OTOOL64
9360   # Extract the first word of "otool64", so it can be a program name with args.
9361 set dummy otool64; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9365   $as_echo_n "(cached) " >&6
9366 else
9367   if test -n "$ac_ct_OTOOL64"; then
9368   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9369 else
9370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371 for as_dir in $PATH
9372 do
9373   IFS=$as_save_IFS
9374   test -z "$as_dir" && as_dir=.
9375     for ac_exec_ext in '' $ac_executable_extensions; do
9376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9377     ac_cv_prog_ac_ct_OTOOL64="otool64"
9378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9379     break 2
9380   fi
9381 done
9382   done
9383 IFS=$as_save_IFS
9384
9385 fi
9386 fi
9387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9388 if test -n "$ac_ct_OTOOL64"; then
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9390 $as_echo "$ac_ct_OTOOL64" >&6; }
9391 else
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9394 fi
9395
9396   if test "x$ac_ct_OTOOL64" = x; then
9397     OTOOL64=":"
9398   else
9399     case $cross_compiling:$ac_tool_warned in
9400 yes:)
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9403 ac_tool_warned=yes ;;
9404 esac
9405     OTOOL64=$ac_ct_OTOOL64
9406   fi
9407 else
9408   OTOOL64="$ac_cv_prog_OTOOL64"
9409 fi
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
9436
9437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9438 $as_echo_n "checking for -single_module linker flag... " >&6; }
9439 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9440   $as_echo_n "(cached) " >&6
9441 else
9442   lt_cv_apple_cc_single_mod=no
9443       if test -z "${LT_MULTI_MODULE}"; then
9444         # By default we will add the -single_module flag. You can override
9445         # by either setting the environment variable LT_MULTI_MODULE
9446         # non-empty at configure time, or by adding -multi_module to the
9447         # link flags.
9448         rm -rf libconftest.dylib*
9449         echo "int foo(void){return 1;}" > conftest.c
9450         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9451 -dynamiclib -Wl,-single_module conftest.c" >&5
9452         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9453           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9454         _lt_result=$?
9455         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9456           lt_cv_apple_cc_single_mod=yes
9457         else
9458           cat conftest.err >&5
9459         fi
9460         rm -rf libconftest.dylib*
9461         rm -f conftest.*
9462       fi
9463 fi
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9465 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9467 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9468 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9469   $as_echo_n "(cached) " >&6
9470 else
9471   lt_cv_ld_exported_symbols_list=no
9472       save_LDFLAGS=$LDFLAGS
9473       echo "_main" > conftest.sym
9474       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9475       if test x$gcc_no_link = xyes; then
9476   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9477 fi
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h.  */
9480
9481 int
9482 main ()
9483 {
9484
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490   lt_cv_ld_exported_symbols_list=yes
9491 else
9492   lt_cv_ld_exported_symbols_list=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext \
9495     conftest$ac_exeext conftest.$ac_ext
9496         LDFLAGS="$save_LDFLAGS"
9497
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9500 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9502 $as_echo_n "checking for -force_load linker flag... " >&6; }
9503 if test "${lt_cv_ld_force_load+set}" = set; then :
9504   $as_echo_n "(cached) " >&6
9505 else
9506   lt_cv_ld_force_load=no
9507       cat > conftest.c << _LT_EOF
9508 int forced_loaded() { return 2;}
9509 _LT_EOF
9510       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9511       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9512       echo "$AR cru libconftest.a conftest.o" >&5
9513       $AR cru libconftest.a conftest.o 2>&5
9514       cat > conftest.c << _LT_EOF
9515 int main() { return 0;}
9516 _LT_EOF
9517       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9518       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9519       _lt_result=$?
9520       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9521         lt_cv_ld_force_load=yes
9522       else
9523         cat conftest.err >&5
9524       fi
9525         rm -f conftest.err libconftest.a conftest conftest.c
9526         rm -rf conftest.dSYM
9527
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9530 $as_echo "$lt_cv_ld_force_load" >&6; }
9531     case $host_os in
9532     rhapsody* | darwin1.[012])
9533       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9534     darwin1.*)
9535       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9536     darwin*) # darwin 5.x on
9537       # if running on 10.5 or later, the deployment target defaults
9538       # to the OS version, if on x86, and 10.4, the deployment
9539       # target defaults to 10.4. Don't you love it?
9540       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9541         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9542           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9543         10.[012]*)
9544           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9545         10.*)
9546           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9547       esac
9548     ;;
9549   esac
9550     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9551       _lt_dar_single_mod='$single_module'
9552     fi
9553     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9554       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9555     else
9556       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9557     fi
9558     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9559       _lt_dsymutil='~$DSYMUTIL $lib || :'
9560     else
9561       _lt_dsymutil=
9562     fi
9563     ;;
9564   esac
9565
9566 ac_ext=c
9567 ac_cpp='$CPP $CPPFLAGS'
9568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9572 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9573 # On Suns, sometimes $CPP names a directory.
9574 if test -n "$CPP" && test -d "$CPP"; then
9575   CPP=
9576 fi
9577 if test -z "$CPP"; then
9578   if test "${ac_cv_prog_CPP+set}" = set; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581       # Double quotes because CPP needs to be expanded
9582     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9583     do
9584       ac_preproc_ok=false
9585 for ac_c_preproc_warn_flag in '' yes
9586 do
9587   # Use a header file that comes with gcc, so configuring glibc
9588   # with a fresh cross-compiler works.
9589   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590   # <limits.h> exists even on freestanding compilers.
9591   # On the NeXT, cc -E runs the code through the compiler's parser,
9592   # not just through cpp. "Syntax error" is here to catch this case.
9593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h.  */
9595 #ifdef __STDC__
9596 # include <limits.h>
9597 #else
9598 # include <assert.h>
9599 #endif
9600                      Syntax error
9601 _ACEOF
9602 if ac_fn_c_try_cpp "$LINENO"; then :
9603
9604 else
9605   # Broken: fails on valid input.
9606 continue
9607 fi
9608 rm -f conftest.err conftest.$ac_ext
9609
9610   # OK, works on sane cases.  Now check whether nonexistent headers
9611   # can be detected and how.
9612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h.  */
9614 #include <ac_nonexistent.h>
9615 _ACEOF
9616 if ac_fn_c_try_cpp "$LINENO"; then :
9617   # Broken: success on invalid input.
9618 continue
9619 else
9620   # Passes both tests.
9621 ac_preproc_ok=:
9622 break
9623 fi
9624 rm -f conftest.err conftest.$ac_ext
9625
9626 done
9627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9628 rm -f conftest.err conftest.$ac_ext
9629 if $ac_preproc_ok; then :
9630   break
9631 fi
9632
9633     done
9634     ac_cv_prog_CPP=$CPP
9635
9636 fi
9637   CPP=$ac_cv_prog_CPP
9638 else
9639   ac_cv_prog_CPP=$CPP
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9642 $as_echo "$CPP" >&6; }
9643 ac_preproc_ok=false
9644 for ac_c_preproc_warn_flag in '' yes
9645 do
9646   # Use a header file that comes with gcc, so configuring glibc
9647   # with a fresh cross-compiler works.
9648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649   # <limits.h> exists even on freestanding compilers.
9650   # On the NeXT, cc -E runs the code through the compiler's parser,
9651   # not just through cpp. "Syntax error" is here to catch this case.
9652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h.  */
9654 #ifdef __STDC__
9655 # include <limits.h>
9656 #else
9657 # include <assert.h>
9658 #endif
9659                      Syntax error
9660 _ACEOF
9661 if ac_fn_c_try_cpp "$LINENO"; then :
9662
9663 else
9664   # Broken: fails on valid input.
9665 continue
9666 fi
9667 rm -f conftest.err conftest.$ac_ext
9668
9669   # OK, works on sane cases.  Now check whether nonexistent headers
9670   # can be detected and how.
9671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h.  */
9673 #include <ac_nonexistent.h>
9674 _ACEOF
9675 if ac_fn_c_try_cpp "$LINENO"; then :
9676   # Broken: success on invalid input.
9677 continue
9678 else
9679   # Passes both tests.
9680 ac_preproc_ok=:
9681 break
9682 fi
9683 rm -f conftest.err conftest.$ac_ext
9684
9685 done
9686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9687 rm -f conftest.err conftest.$ac_ext
9688 if $ac_preproc_ok; then :
9689
9690 else
9691   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9693 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9694 See \`config.log' for more details." "$LINENO" 5; }
9695 fi
9696
9697 ac_ext=c
9698 ac_cpp='$CPP $CPPFLAGS'
9699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9702
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9705 $as_echo_n "checking for ANSI C header files... " >&6; }
9706 if test "${ac_cv_header_stdc+set}" = set; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h.  */
9711 #include <stdlib.h>
9712 #include <stdarg.h>
9713 #include <string.h>
9714 #include <float.h>
9715
9716 int
9717 main ()
9718 {
9719
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725   ac_cv_header_stdc=yes
9726 else
9727   ac_cv_header_stdc=no
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730
9731 if test $ac_cv_header_stdc = yes; then
9732   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h.  */
9735 #include <string.h>
9736
9737 _ACEOF
9738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9739   $EGREP "memchr" >/dev/null 2>&1; then :
9740
9741 else
9742   ac_cv_header_stdc=no
9743 fi
9744 rm -f conftest*
9745
9746 fi
9747
9748 if test $ac_cv_header_stdc = yes; then
9749   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h.  */
9752 #include <stdlib.h>
9753
9754 _ACEOF
9755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9756   $EGREP "free" >/dev/null 2>&1; then :
9757
9758 else
9759   ac_cv_header_stdc=no
9760 fi
9761 rm -f conftest*
9762
9763 fi
9764
9765 if test $ac_cv_header_stdc = yes; then
9766   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9767   if test "$cross_compiling" = yes; then :
9768   :
9769 else
9770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h.  */
9772 #include <ctype.h>
9773 #include <stdlib.h>
9774 #if ((' ' & 0x0FF) == 0x020)
9775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9777 #else
9778 # define ISLOWER(c) \
9779                    (('a' <= (c) && (c) <= 'i') \
9780                      || ('j' <= (c) && (c) <= 'r') \
9781                      || ('s' <= (c) && (c) <= 'z'))
9782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9783 #endif
9784
9785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9786 int
9787 main ()
9788 {
9789   int i;
9790   for (i = 0; i < 256; i++)
9791     if (XOR (islower (i), ISLOWER (i))
9792         || toupper (i) != TOUPPER (i))
9793       return 2;
9794   return 0;
9795 }
9796 _ACEOF
9797 if ac_fn_c_try_run "$LINENO"; then :
9798
9799 else
9800   ac_cv_header_stdc=no
9801 fi
9802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9803   conftest.$ac_objext conftest.beam conftest.$ac_ext
9804 fi
9805
9806 fi
9807 fi
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9809 $as_echo "$ac_cv_header_stdc" >&6; }
9810 if test $ac_cv_header_stdc = yes; then
9811
9812 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9813
9814 fi
9815
9816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9817 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9818                   inttypes.h stdint.h unistd.h
9819 do :
9820   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9821 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9822 "
9823 eval as_val=\$$as_ac_Header
9824    if test "x$as_val" = x""yes; then :
9825   cat >>confdefs.h <<_ACEOF
9826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 _ACEOF
9828
9829 fi
9830
9831 done
9832
9833
9834 for ac_header in dlfcn.h
9835 do :
9836   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9837 "
9838 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9839   cat >>confdefs.h <<_ACEOF
9840 #define HAVE_DLFCN_H 1
9841 _ACEOF
9842
9843 fi
9844
9845 done
9846
9847
9848
9849
9850
9851
9852 # Set options
9853
9854
9855
9856
9857   enable_win32_dll=no
9858
9859
9860             # Check whether --enable-shared was given.
9861 if test "${enable_shared+set}" = set; then :
9862   enableval=$enable_shared; p=${PACKAGE-default}
9863     case $enableval in
9864     yes) enable_shared=yes ;;
9865     no) enable_shared=no ;;
9866     *)
9867       enable_shared=no
9868       # Look at the argument we got.  We use all the common list separators.
9869       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9870       for pkg in $enableval; do
9871         IFS="$lt_save_ifs"
9872         if test "X$pkg" = "X$p"; then
9873           enable_shared=yes
9874         fi
9875       done
9876       IFS="$lt_save_ifs"
9877       ;;
9878     esac
9879 else
9880   enable_shared=yes
9881 fi
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891   # Check whether --enable-static was given.
9892 if test "${enable_static+set}" = set; then :
9893   enableval=$enable_static; p=${PACKAGE-default}
9894     case $enableval in
9895     yes) enable_static=yes ;;
9896     no) enable_static=no ;;
9897     *)
9898      enable_static=no
9899       # Look at the argument we got.  We use all the common list separators.
9900       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9901       for pkg in $enableval; do
9902         IFS="$lt_save_ifs"
9903         if test "X$pkg" = "X$p"; then
9904           enable_static=yes
9905         fi
9906       done
9907       IFS="$lt_save_ifs"
9908       ;;
9909     esac
9910 else
9911   enable_static=yes
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 # Check whether --with-pic was given.
9924 if test "${with_pic+set}" = set; then :
9925   withval=$with_pic; pic_mode="$withval"
9926 else
9927   pic_mode=default
9928 fi
9929
9930
9931 test -z "$pic_mode" && pic_mode=default
9932
9933
9934
9935
9936
9937
9938
9939   # Check whether --enable-fast-install was given.
9940 if test "${enable_fast_install+set}" = set; then :
9941   enableval=$enable_fast_install; p=${PACKAGE-default}
9942     case $enableval in
9943     yes) enable_fast_install=yes ;;
9944     no) enable_fast_install=no ;;
9945     *)
9946       enable_fast_install=no
9947       # Look at the argument we got.  We use all the common list separators.
9948       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9949       for pkg in $enableval; do
9950         IFS="$lt_save_ifs"
9951         if test "X$pkg" = "X$p"; then
9952           enable_fast_install=yes
9953         fi
9954       done
9955       IFS="$lt_save_ifs"
9956       ;;
9957     esac
9958 else
9959   enable_fast_install=yes
9960 fi
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 # This can be used to rebuild libtool when needed
9973 LIBTOOL_DEPS="$ltmain"
9974
9975 # Always use our own libtool.
9976 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
10002
10003 test -z "$LN_S" && LN_S="ln -s"
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018 if test -n "${ZSH_VERSION+set}" ; then
10019    setopt NO_GLOB_SUBST
10020 fi
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10023 $as_echo_n "checking for objdir... " >&6; }
10024 if test "${lt_cv_objdir+set}" = set; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   rm -f .libs 2>/dev/null
10028 mkdir .libs 2>/dev/null
10029 if test -d .libs; then
10030   lt_cv_objdir=.libs
10031 else
10032   # MS-DOS does not allow filenames that begin with a dot.
10033   lt_cv_objdir=_libs
10034 fi
10035 rmdir .libs 2>/dev/null
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10038 $as_echo "$lt_cv_objdir" >&6; }
10039 objdir=$lt_cv_objdir
10040
10041
10042
10043
10044
10045 cat >>confdefs.h <<_ACEOF
10046 #define LT_OBJDIR "$lt_cv_objdir/"
10047 _ACEOF
10048
10049
10050
10051
10052 case $host_os in
10053 aix3*)
10054   # AIX sometimes has problems with the GCC collect2 program.  For some
10055   # reason, if we set the COLLECT_NAMES environment variable, the problems
10056   # vanish in a puff of smoke.
10057   if test "X${COLLECT_NAMES+set}" != Xset; then
10058     COLLECT_NAMES=
10059     export COLLECT_NAMES
10060   fi
10061   ;;
10062 esac
10063
10064 # Global variables:
10065 ofile=libtool
10066 can_build_shared=yes
10067
10068 # All known linkers require a `.a' archive for static linking (except MSVC,
10069 # which needs '.lib').
10070 libext=a
10071
10072 with_gnu_ld="$lt_cv_prog_gnu_ld"
10073
10074 old_CC="$CC"
10075 old_CFLAGS="$CFLAGS"
10076
10077 # Set sane defaults for various variables
10078 test -z "$CC" && CC=cc
10079 test -z "$LTCC" && LTCC=$CC
10080 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10081 test -z "$LD" && LD=ld
10082 test -z "$ac_objext" && ac_objext=o
10083
10084 for cc_temp in $compiler""; do
10085   case $cc_temp in
10086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10088     \-*) ;;
10089     *) break;;
10090   esac
10091 done
10092 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10093
10094
10095 # Only perform the check for file, if the check method requires it
10096 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10097 case $deplibs_check_method in
10098 file_magic*)
10099   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10101 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10102 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10103   $as_echo_n "(cached) " >&6
10104 else
10105   case $MAGIC_CMD in
10106 [\\/*] |  ?:[\\/]*)
10107   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10108   ;;
10109 *)
10110   lt_save_MAGIC_CMD="$MAGIC_CMD"
10111   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10112   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10113   for ac_dir in $ac_dummy; do
10114     IFS="$lt_save_ifs"
10115     test -z "$ac_dir" && ac_dir=.
10116     if test -f $ac_dir/${ac_tool_prefix}file; then
10117       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10118       if test -n "$file_magic_test_file"; then
10119         case $deplibs_check_method in
10120         "file_magic "*)
10121           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10122           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10123           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10124             $EGREP "$file_magic_regex" > /dev/null; then
10125             :
10126           else
10127             cat <<_LT_EOF 1>&2
10128
10129 *** Warning: the command libtool uses to detect shared libraries,
10130 *** $file_magic_cmd, produces output that libtool cannot recognize.
10131 *** The result is that libtool may fail to recognize shared libraries
10132 *** as such.  This will affect the creation of libtool libraries that
10133 *** depend on shared libraries, but programs linked with such libtool
10134 *** libraries will work regardless of this problem.  Nevertheless, you
10135 *** may want to report the problem to your system manager and/or to
10136 *** bug-libtool@gnu.org
10137
10138 _LT_EOF
10139           fi ;;
10140         esac
10141       fi
10142       break
10143     fi
10144   done
10145   IFS="$lt_save_ifs"
10146   MAGIC_CMD="$lt_save_MAGIC_CMD"
10147   ;;
10148 esac
10149 fi
10150
10151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10152 if test -n "$MAGIC_CMD"; then
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10154 $as_echo "$MAGIC_CMD" >&6; }
10155 else
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 fi
10159
10160
10161
10162
10163
10164 if test -z "$lt_cv_path_MAGIC_CMD"; then
10165   if test -n "$ac_tool_prefix"; then
10166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10167 $as_echo_n "checking for file... " >&6; }
10168 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10169   $as_echo_n "(cached) " >&6
10170 else
10171   case $MAGIC_CMD in
10172 [\\/*] |  ?:[\\/]*)
10173   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10174   ;;
10175 *)
10176   lt_save_MAGIC_CMD="$MAGIC_CMD"
10177   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10178   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10179   for ac_dir in $ac_dummy; do
10180     IFS="$lt_save_ifs"
10181     test -z "$ac_dir" && ac_dir=.
10182     if test -f $ac_dir/file; then
10183       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10184       if test -n "$file_magic_test_file"; then
10185         case $deplibs_check_method in
10186         "file_magic "*)
10187           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10188           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10189           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10190             $EGREP "$file_magic_regex" > /dev/null; then
10191             :
10192           else
10193             cat <<_LT_EOF 1>&2
10194
10195 *** Warning: the command libtool uses to detect shared libraries,
10196 *** $file_magic_cmd, produces output that libtool cannot recognize.
10197 *** The result is that libtool may fail to recognize shared libraries
10198 *** as such.  This will affect the creation of libtool libraries that
10199 *** depend on shared libraries, but programs linked with such libtool
10200 *** libraries will work regardless of this problem.  Nevertheless, you
10201 *** may want to report the problem to your system manager and/or to
10202 *** bug-libtool@gnu.org
10203
10204 _LT_EOF
10205           fi ;;
10206         esac
10207       fi
10208       break
10209     fi
10210   done
10211   IFS="$lt_save_ifs"
10212   MAGIC_CMD="$lt_save_MAGIC_CMD"
10213   ;;
10214 esac
10215 fi
10216
10217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10218 if test -n "$MAGIC_CMD"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10220 $as_echo "$MAGIC_CMD" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225
10226
10227   else
10228     MAGIC_CMD=:
10229   fi
10230 fi
10231
10232   fi
10233   ;;
10234 esac
10235
10236 # Use C for the default configuration in the libtool script
10237
10238 lt_save_CC="$CC"
10239 ac_ext=c
10240 ac_cpp='$CPP $CPPFLAGS'
10241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244
10245
10246 # Source file extension for C test sources.
10247 ac_ext=c
10248
10249 # Object file extension for compiled C test sources.
10250 objext=o
10251 objext=$objext
10252
10253 # Code to be used in simple compile tests
10254 lt_simple_compile_test_code="int some_variable = 0;"
10255
10256 # Code to be used in simple link tests
10257 lt_simple_link_test_code='int main(){return(0);}'
10258
10259
10260
10261
10262
10263
10264
10265 # If no C compiler was specified, use CC.
10266 LTCC=${LTCC-"$CC"}
10267
10268 # If no C compiler flags were specified, use CFLAGS.
10269 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10270
10271 # Allow CC to be a program name with arguments.
10272 compiler=$CC
10273
10274 # Save the default compiler, since it gets overwritten when the other
10275 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10276 compiler_DEFAULT=$CC
10277
10278 # save warnings/boilerplate of simple test code
10279 ac_outfile=conftest.$ac_objext
10280 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10281 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10282 _lt_compiler_boilerplate=`cat conftest.err`
10283 $RM conftest*
10284
10285 ac_outfile=conftest.$ac_objext
10286 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10287 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10288 _lt_linker_boilerplate=`cat conftest.err`
10289 $RM -r conftest*
10290
10291
10292 ## CAVEAT EMPTOR:
10293 ## There is no encapsulation within the following macros, do not change
10294 ## the running order or otherwise move them around unless you know exactly
10295 ## what you are doing...
10296 if test -n "$compiler"; then
10297
10298 lt_prog_compiler_no_builtin_flag=
10299
10300 if test "$GCC" = yes; then
10301   case $cc_basename in
10302   nvcc*)
10303     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10304   *)
10305     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10306   esac
10307
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10309 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10310 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   lt_cv_prog_compiler_rtti_exceptions=no
10314    ac_outfile=conftest.$ac_objext
10315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10316    lt_compiler_flag="-fno-rtti -fno-exceptions"
10317    # Insert the option either (1) after the last *FLAGS variable, or
10318    # (2) before a word containing "conftest.", or (3) at the end.
10319    # Note that $ac_compile itself does not contain backslashes and begins
10320    # with a dollar sign (not a hyphen), so the echo should work correctly.
10321    # The option is referenced via a variable to avoid confusing sed.
10322    lt_compile=`echo "$ac_compile" | $SED \
10323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10325    -e 's:$: $lt_compiler_flag:'`
10326    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10327    (eval "$lt_compile" 2>conftest.err)
10328    ac_status=$?
10329    cat conftest.err >&5
10330    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331    if (exit $ac_status) && test -s "$ac_outfile"; then
10332      # The compiler can only warn and ignore the option if not recognized
10333      # So say no if there are warnings other than the usual output.
10334      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10335      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10336      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10337        lt_cv_prog_compiler_rtti_exceptions=yes
10338      fi
10339    fi
10340    $RM conftest*
10341
10342 fi
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10344 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10345
10346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10347     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10348 else
10349     :
10350 fi
10351
10352 fi
10353
10354
10355
10356
10357
10358
10359   lt_prog_compiler_wl=
10360 lt_prog_compiler_pic=
10361 lt_prog_compiler_static=
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10364 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10365
10366   if test "$GCC" = yes; then
10367     lt_prog_compiler_wl='-Wl,'
10368     lt_prog_compiler_static='-static'
10369
10370     case $host_os in
10371       aix*)
10372       # All AIX code is PIC.
10373       if test "$host_cpu" = ia64; then
10374         # AIX 5 now supports IA64 processor
10375         lt_prog_compiler_static='-Bstatic'
10376       fi
10377       ;;
10378
10379     amigaos*)
10380       case $host_cpu in
10381       powerpc)
10382             # see comment about AmigaOS4 .so support
10383             lt_prog_compiler_pic='-fPIC'
10384         ;;
10385       m68k)
10386             # FIXME: we need at least 68020 code to build shared libraries, but
10387             # adding the `-m68020' flag to GCC prevents building anything better,
10388             # like `-m68040'.
10389             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10390         ;;
10391       esac
10392       ;;
10393
10394     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10395       # PIC is the default for these OSes.
10396       ;;
10397
10398     mingw* | cygwin* | pw32* | os2* | cegcc*)
10399       # This hack is so that the source file can tell whether it is being
10400       # built for inclusion in a dll (and should export symbols for example).
10401       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10402       # (--disable-auto-import) libraries
10403       lt_prog_compiler_pic='-DDLL_EXPORT'
10404       ;;
10405
10406     darwin* | rhapsody*)
10407       # PIC is the default on this platform
10408       # Common symbols not allowed in MH_DYLIB files
10409       lt_prog_compiler_pic='-fno-common'
10410       ;;
10411
10412     haiku*)
10413       # PIC is the default for Haiku.
10414       # The "-static" flag exists, but is broken.
10415       lt_prog_compiler_static=
10416       ;;
10417
10418     hpux*)
10419       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10420       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10421       # sets the default TLS model and affects inlining.
10422       case $host_cpu in
10423       hppa*64*)
10424         # +Z the default
10425         ;;
10426       *)
10427         lt_prog_compiler_pic='-fPIC'
10428         ;;
10429       esac
10430       ;;
10431
10432     interix[3-9]*)
10433       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10434       # Instead, we relocate shared libraries at runtime.
10435       ;;
10436
10437     msdosdjgpp*)
10438       # Just because we use GCC doesn't mean we suddenly get shared libraries
10439       # on systems that don't support them.
10440       lt_prog_compiler_can_build_shared=no
10441       enable_shared=no
10442       ;;
10443
10444     *nto* | *qnx*)
10445       # QNX uses GNU C++, but need to define -shared option too, otherwise
10446       # it will coredump.
10447       lt_prog_compiler_pic='-fPIC -shared'
10448       ;;
10449
10450     sysv4*MP*)
10451       if test -d /usr/nec; then
10452         lt_prog_compiler_pic=-Kconform_pic
10453       fi
10454       ;;
10455
10456     *)
10457       lt_prog_compiler_pic='-fPIC'
10458       ;;
10459     esac
10460
10461     case $cc_basename in
10462     nvcc*) # Cuda Compiler Driver 2.2
10463       lt_prog_compiler_wl='-Xlinker '
10464       lt_prog_compiler_pic='-Xcompiler -fPIC'
10465       ;;
10466     esac
10467   else
10468     # PORTME Check for flag to pass linker flags through the system compiler.
10469     case $host_os in
10470     aix*)
10471       lt_prog_compiler_wl='-Wl,'
10472       if test "$host_cpu" = ia64; then
10473         # AIX 5 now supports IA64 processor
10474         lt_prog_compiler_static='-Bstatic'
10475       else
10476         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10477       fi
10478       ;;
10479
10480     mingw* | cygwin* | pw32* | os2* | cegcc*)
10481       # This hack is so that the source file can tell whether it is being
10482       # built for inclusion in a dll (and should export symbols for example).
10483       lt_prog_compiler_pic='-DDLL_EXPORT'
10484       ;;
10485
10486     hpux9* | hpux10* | hpux11*)
10487       lt_prog_compiler_wl='-Wl,'
10488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10489       # not for PA HP-UX.
10490       case $host_cpu in
10491       hppa*64*|ia64*)
10492         # +Z the default
10493         ;;
10494       *)
10495         lt_prog_compiler_pic='+Z'
10496         ;;
10497       esac
10498       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10499       lt_prog_compiler_static='${wl}-a ${wl}archive'
10500       ;;
10501
10502     irix5* | irix6* | nonstopux*)
10503       lt_prog_compiler_wl='-Wl,'
10504       # PIC (with -KPIC) is the default.
10505       lt_prog_compiler_static='-non_shared'
10506       ;;
10507
10508     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10509       case $cc_basename in
10510       # old Intel for x86_64 which still supported -KPIC.
10511       ecc*)
10512         lt_prog_compiler_wl='-Wl,'
10513         lt_prog_compiler_pic='-KPIC'
10514         lt_prog_compiler_static='-static'
10515         ;;
10516       # icc used to be incompatible with GCC.
10517       # ICC 10 doesn't accept -KPIC any more.
10518       icc* | ifort*)
10519         lt_prog_compiler_wl='-Wl,'
10520         lt_prog_compiler_pic='-fPIC'
10521         lt_prog_compiler_static='-static'
10522         ;;
10523       # Lahey Fortran 8.1.
10524       lf95*)
10525         lt_prog_compiler_wl='-Wl,'
10526         lt_prog_compiler_pic='--shared'
10527         lt_prog_compiler_static='--static'
10528         ;;
10529       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10530         # Portland Group compilers (*not* the Pentium gcc compiler,
10531         # which looks to be a dead project)
10532         lt_prog_compiler_wl='-Wl,'
10533         lt_prog_compiler_pic='-fpic'
10534         lt_prog_compiler_static='-Bstatic'
10535         ;;
10536       ccc*)
10537         lt_prog_compiler_wl='-Wl,'
10538         # All Alpha code is PIC.
10539         lt_prog_compiler_static='-non_shared'
10540         ;;
10541       xl* | bgxl* | bgf* | mpixl*)
10542         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10543         lt_prog_compiler_wl='-Wl,'
10544         lt_prog_compiler_pic='-qpic'
10545         lt_prog_compiler_static='-qstaticlink'
10546         ;;
10547       *)
10548         case `$CC -V 2>&1 | sed 5q` in
10549         *Sun\ F* | *Sun*Fortran*)
10550           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10551           lt_prog_compiler_pic='-KPIC'
10552           lt_prog_compiler_static='-Bstatic'
10553           lt_prog_compiler_wl=''
10554           ;;
10555         *Sun\ C*)
10556           # Sun C 5.9
10557           lt_prog_compiler_pic='-KPIC'
10558           lt_prog_compiler_static='-Bstatic'
10559           lt_prog_compiler_wl='-Wl,'
10560           ;;
10561         esac
10562         ;;
10563       esac
10564       ;;
10565
10566     newsos6)
10567       lt_prog_compiler_pic='-KPIC'
10568       lt_prog_compiler_static='-Bstatic'
10569       ;;
10570
10571     *nto* | *qnx*)
10572       # QNX uses GNU C++, but need to define -shared option too, otherwise
10573       # it will coredump.
10574       lt_prog_compiler_pic='-fPIC -shared'
10575       ;;
10576
10577     osf3* | osf4* | osf5*)
10578       lt_prog_compiler_wl='-Wl,'
10579       # All OSF/1 code is PIC.
10580       lt_prog_compiler_static='-non_shared'
10581       ;;
10582
10583     rdos*)
10584       lt_prog_compiler_static='-non_shared'
10585       ;;
10586
10587     solaris*)
10588       lt_prog_compiler_pic='-KPIC'
10589       lt_prog_compiler_static='-Bstatic'
10590       case $cc_basename in
10591       f77* | f90* | f95*)
10592         lt_prog_compiler_wl='-Qoption ld ';;
10593       *)
10594         lt_prog_compiler_wl='-Wl,';;
10595       esac
10596       ;;
10597
10598     sunos4*)
10599       lt_prog_compiler_wl='-Qoption ld '
10600       lt_prog_compiler_pic='-PIC'
10601       lt_prog_compiler_static='-Bstatic'
10602       ;;
10603
10604     sysv4 | sysv4.2uw2* | sysv4.3*)
10605       lt_prog_compiler_wl='-Wl,'
10606       lt_prog_compiler_pic='-KPIC'
10607       lt_prog_compiler_static='-Bstatic'
10608       ;;
10609
10610     sysv4*MP*)
10611       if test -d /usr/nec ;then
10612         lt_prog_compiler_pic='-Kconform_pic'
10613         lt_prog_compiler_static='-Bstatic'
10614       fi
10615       ;;
10616
10617     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10618       lt_prog_compiler_wl='-Wl,'
10619       lt_prog_compiler_pic='-KPIC'
10620       lt_prog_compiler_static='-Bstatic'
10621       ;;
10622
10623     unicos*)
10624       lt_prog_compiler_wl='-Wl,'
10625       lt_prog_compiler_can_build_shared=no
10626       ;;
10627
10628     uts4*)
10629       lt_prog_compiler_pic='-pic'
10630       lt_prog_compiler_static='-Bstatic'
10631       ;;
10632
10633     *)
10634       lt_prog_compiler_can_build_shared=no
10635       ;;
10636     esac
10637   fi
10638
10639 case $host_os in
10640   # For platforms which do not support PIC, -DPIC is meaningless:
10641   *djgpp*)
10642     lt_prog_compiler_pic=
10643     ;;
10644   *)
10645     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10646     ;;
10647 esac
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10649 $as_echo "$lt_prog_compiler_pic" >&6; }
10650
10651
10652
10653
10654
10655
10656 #
10657 # Check to make sure the PIC flag actually works.
10658 #
10659 if test -n "$lt_prog_compiler_pic"; then
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10661 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10662 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   lt_cv_prog_compiler_pic_works=no
10666    ac_outfile=conftest.$ac_objext
10667    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10668    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10669    # Insert the option either (1) after the last *FLAGS variable, or
10670    # (2) before a word containing "conftest.", or (3) at the end.
10671    # Note that $ac_compile itself does not contain backslashes and begins
10672    # with a dollar sign (not a hyphen), so the echo should work correctly.
10673    # The option is referenced via a variable to avoid confusing sed.
10674    lt_compile=`echo "$ac_compile" | $SED \
10675    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10677    -e 's:$: $lt_compiler_flag:'`
10678    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10679    (eval "$lt_compile" 2>conftest.err)
10680    ac_status=$?
10681    cat conftest.err >&5
10682    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683    if (exit $ac_status) && test -s "$ac_outfile"; then
10684      # The compiler can only warn and ignore the option if not recognized
10685      # So say no if there are warnings other than the usual output.
10686      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10687      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10688      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10689        lt_cv_prog_compiler_pic_works=yes
10690      fi
10691    fi
10692    $RM conftest*
10693
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10696 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10697
10698 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10699     case $lt_prog_compiler_pic in
10700      "" | " "*) ;;
10701      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10702      esac
10703 else
10704     lt_prog_compiler_pic=
10705      lt_prog_compiler_can_build_shared=no
10706 fi
10707
10708 fi
10709
10710
10711
10712
10713
10714
10715 #
10716 # Check to make sure the static flag actually works.
10717 #
10718 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10720 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10721 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   lt_cv_prog_compiler_static_works=no
10725    save_LDFLAGS="$LDFLAGS"
10726    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10727    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10728    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10729      # The linker can only warn and ignore the option if not recognized
10730      # So say no if there are warnings
10731      if test -s conftest.err; then
10732        # Append any errors to the config.log.
10733        cat conftest.err 1>&5
10734        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10735        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10736        if diff conftest.exp conftest.er2 >/dev/null; then
10737          lt_cv_prog_compiler_static_works=yes
10738        fi
10739      else
10740        lt_cv_prog_compiler_static_works=yes
10741      fi
10742    fi
10743    $RM -r conftest*
10744    LDFLAGS="$save_LDFLAGS"
10745
10746 fi
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10748 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10749
10750 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10751     :
10752 else
10753     lt_prog_compiler_static=
10754 fi
10755
10756
10757
10758
10759
10760
10761
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10764 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   lt_cv_prog_compiler_c_o=no
10768    $RM -r conftest 2>/dev/null
10769    mkdir conftest
10770    cd conftest
10771    mkdir out
10772    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10773
10774    lt_compiler_flag="-o out/conftest2.$ac_objext"
10775    # Insert the option either (1) after the last *FLAGS variable, or
10776    # (2) before a word containing "conftest.", or (3) at the end.
10777    # Note that $ac_compile itself does not contain backslashes and begins
10778    # with a dollar sign (not a hyphen), so the echo should work correctly.
10779    lt_compile=`echo "$ac_compile" | $SED \
10780    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10782    -e 's:$: $lt_compiler_flag:'`
10783    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10784    (eval "$lt_compile" 2>out/conftest.err)
10785    ac_status=$?
10786    cat out/conftest.err >&5
10787    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10789    then
10790      # The compiler can only warn and ignore the option if not recognized
10791      # So say no if there are warnings
10792      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10793      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10794      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10795        lt_cv_prog_compiler_c_o=yes
10796      fi
10797    fi
10798    chmod u+w . 2>&5
10799    $RM conftest*
10800    # SGI C++ compiler will create directory out/ii_files/ for
10801    # template instantiation
10802    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10803    $RM out/* && rmdir out
10804    cd ..
10805    $RM -r conftest
10806    $RM conftest*
10807
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10810 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10811
10812
10813
10814
10815
10816
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10818 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   lt_cv_prog_compiler_c_o=no
10823    $RM -r conftest 2>/dev/null
10824    mkdir conftest
10825    cd conftest
10826    mkdir out
10827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10828
10829    lt_compiler_flag="-o out/conftest2.$ac_objext"
10830    # Insert the option either (1) after the last *FLAGS variable, or
10831    # (2) before a word containing "conftest.", or (3) at the end.
10832    # Note that $ac_compile itself does not contain backslashes and begins
10833    # with a dollar sign (not a hyphen), so the echo should work correctly.
10834    lt_compile=`echo "$ac_compile" | $SED \
10835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10837    -e 's:$: $lt_compiler_flag:'`
10838    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10839    (eval "$lt_compile" 2>out/conftest.err)
10840    ac_status=$?
10841    cat out/conftest.err >&5
10842    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10844    then
10845      # The compiler can only warn and ignore the option if not recognized
10846      # So say no if there are warnings
10847      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10848      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10849      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10850        lt_cv_prog_compiler_c_o=yes
10851      fi
10852    fi
10853    chmod u+w . 2>&5
10854    $RM conftest*
10855    # SGI C++ compiler will create directory out/ii_files/ for
10856    # template instantiation
10857    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10858    $RM out/* && rmdir out
10859    cd ..
10860    $RM -r conftest
10861    $RM conftest*
10862
10863 fi
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10865 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10866
10867
10868
10869
10870 hard_links="nottested"
10871 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10872   # do not overwrite the value of need_locks provided by the user
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10874 $as_echo_n "checking if we can lock with hard links... " >&6; }
10875   hard_links=yes
10876   $RM conftest*
10877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10878   touch conftest.a
10879   ln conftest.a conftest.b 2>&5 || hard_links=no
10880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10882 $as_echo "$hard_links" >&6; }
10883   if test "$hard_links" = no; then
10884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10885 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10886     need_locks=warn
10887   fi
10888 else
10889   need_locks=no
10890 fi
10891
10892
10893
10894
10895
10896
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10898 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10899
10900   runpath_var=
10901   allow_undefined_flag=
10902   always_export_symbols=no
10903   archive_cmds=
10904   archive_expsym_cmds=
10905   compiler_needs_object=no
10906   enable_shared_with_static_runtimes=no
10907   export_dynamic_flag_spec=
10908   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10909   hardcode_automatic=no
10910   hardcode_direct=no
10911   hardcode_direct_absolute=no
10912   hardcode_libdir_flag_spec=
10913   hardcode_libdir_flag_spec_ld=
10914   hardcode_libdir_separator=
10915   hardcode_minus_L=no
10916   hardcode_shlibpath_var=unsupported
10917   inherit_rpath=no
10918   link_all_deplibs=unknown
10919   module_cmds=
10920   module_expsym_cmds=
10921   old_archive_from_new_cmds=
10922   old_archive_from_expsyms_cmds=
10923   thread_safe_flag_spec=
10924   whole_archive_flag_spec=
10925   # include_expsyms should be a list of space-separated symbols to be *always*
10926   # included in the symbol list
10927   include_expsyms=
10928   # exclude_expsyms can be an extended regexp of symbols to exclude
10929   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10930   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10931   # as well as any symbol that contains `d'.
10932   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10933   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10934   # platforms (ab)use it in PIC code, but their linkers get confused if
10935   # the symbol is explicitly referenced.  Since portable code cannot
10936   # rely on this symbol name, it's probably fine to never include it in
10937   # preloaded symbol tables.
10938   # Exclude shared library initialization/finalization symbols.
10939   extract_expsyms_cmds=
10940
10941   case $host_os in
10942   cygwin* | mingw* | pw32* | cegcc*)
10943     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10944     # When not using gcc, we currently assume that we are using
10945     # Microsoft Visual C++.
10946     if test "$GCC" != yes; then
10947       with_gnu_ld=no
10948     fi
10949     ;;
10950   interix*)
10951     # we just hope/assume this is gcc and not c89 (= MSVC++)
10952     with_gnu_ld=yes
10953     ;;
10954   openbsd*)
10955     with_gnu_ld=no
10956     ;;
10957   esac
10958
10959   ld_shlibs=yes
10960
10961   # On some targets, GNU ld is compatible enough with the native linker
10962   # that we're better off using the native interface for both.
10963   lt_use_gnu_ld_interface=no
10964   if test "$with_gnu_ld" = yes; then
10965     case $host_os in
10966       aix*)
10967         # The AIX port of GNU ld has always aspired to compatibility
10968         # with the native linker.  However, as the warning in the GNU ld
10969         # block says, versions before 2.19.5* couldn't really create working
10970         # shared libraries, regardless of the interface used.
10971         case `$LD -v 2>&1` in
10972           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10973           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10974           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10975           *)
10976             lt_use_gnu_ld_interface=yes
10977             ;;
10978         esac
10979         ;;
10980       *)
10981         lt_use_gnu_ld_interface=yes
10982         ;;
10983     esac
10984   fi
10985
10986   if test "$lt_use_gnu_ld_interface" = yes; then
10987     # If archive_cmds runs LD, not CC, wlarc should be empty
10988     wlarc='${wl}'
10989
10990     # Set some defaults for GNU ld with shared library support. These
10991     # are reset later if shared libraries are not supported. Putting them
10992     # here allows them to be overridden if necessary.
10993     runpath_var=LD_RUN_PATH
10994     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10995     export_dynamic_flag_spec='${wl}--export-dynamic'
10996     # ancient GNU ld didn't support --whole-archive et. al.
10997     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10998       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10999     else
11000       whole_archive_flag_spec=
11001     fi
11002     supports_anon_versioning=no
11003     case `$LD -v 2>&1` in
11004       *GNU\ gold*) supports_anon_versioning=yes ;;
11005       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11006       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11007       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11008       *\ 2.11.*) ;; # other 2.11 versions
11009       *) supports_anon_versioning=yes ;;
11010     esac
11011
11012     # See if GNU ld supports shared libraries.
11013     case $host_os in
11014     aix[3-9]*)
11015       # On AIX/PPC, the GNU linker is very broken
11016       if test "$host_cpu" != ia64; then
11017         ld_shlibs=no
11018         cat <<_LT_EOF 1>&2
11019
11020 *** Warning: the GNU linker, at least up to release 2.19, is reported
11021 *** to be unable to reliably create shared libraries on AIX.
11022 *** Therefore, libtool is disabling shared libraries support.  If you
11023 *** really care for shared libraries, you may want to install binutils
11024 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11025 *** You will then need to restart the configuration process.
11026
11027 _LT_EOF
11028       fi
11029       ;;
11030
11031     amigaos*)
11032       case $host_cpu in
11033       powerpc)
11034             # see comment about AmigaOS4 .so support
11035             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11036             archive_expsym_cmds=''
11037         ;;
11038       m68k)
11039             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)'
11040             hardcode_libdir_flag_spec='-L$libdir'
11041             hardcode_minus_L=yes
11042         ;;
11043       esac
11044       ;;
11045
11046     beos*)
11047       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11048         allow_undefined_flag=unsupported
11049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11050         # support --undefined.  This deserves some investigation.  FIXME
11051         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11052       else
11053         ld_shlibs=no
11054       fi
11055       ;;
11056
11057     cygwin* | mingw* | pw32* | cegcc*)
11058       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11059       # as there is no search path for DLLs.
11060       hardcode_libdir_flag_spec='-L$libdir'
11061       export_dynamic_flag_spec='${wl}--export-all-symbols'
11062       allow_undefined_flag=unsupported
11063       always_export_symbols=no
11064       enable_shared_with_static_runtimes=yes
11065       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11066
11067       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11068         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11069         # If the export-symbols file already is a .def file (1st line
11070         # is EXPORTS), use it as is; otherwise, prepend...
11071         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11072           cp $export_symbols $output_objdir/$soname.def;
11073         else
11074           echo EXPORTS > $output_objdir/$soname.def;
11075           cat $export_symbols >> $output_objdir/$soname.def;
11076         fi~
11077         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11078       else
11079         ld_shlibs=no
11080       fi
11081       ;;
11082
11083     haiku*)
11084       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11085       link_all_deplibs=yes
11086       ;;
11087
11088     interix[3-9]*)
11089       hardcode_direct=no
11090       hardcode_shlibpath_var=no
11091       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11092       export_dynamic_flag_spec='${wl}-E'
11093       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11094       # Instead, shared libraries are loaded at an image base (0x10000000 by
11095       # default) and relocated if they conflict, which is a slow very memory
11096       # consuming and fragmenting process.  To avoid this, we pick a random,
11097       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11098       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11099       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11100       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'
11101       ;;
11102
11103     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11104       tmp_diet=no
11105       if test "$host_os" = linux-dietlibc; then
11106         case $cc_basename in
11107           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11108         esac
11109       fi
11110       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11111          && test "$tmp_diet" = no
11112       then
11113         tmp_addflag=
11114         tmp_sharedflag='-shared'
11115         case $cc_basename,$host_cpu in
11116         pgcc*)                          # Portland Group C compiler
11117           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'
11118           tmp_addflag=' $pic_flag'
11119           ;;
11120         pgf77* | pgf90* | pgf95* | pgfortran*)
11121                                         # Portland Group f77 and f90 compilers
11122           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'
11123           tmp_addflag=' $pic_flag -Mnomain' ;;
11124         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11125           tmp_addflag=' -i_dynamic' ;;
11126         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11127           tmp_addflag=' -i_dynamic -nofor_main' ;;
11128         ifc* | ifort*)                  # Intel Fortran compiler
11129           tmp_addflag=' -nofor_main' ;;
11130         lf95*)                          # Lahey Fortran 8.1
11131           whole_archive_flag_spec=
11132           tmp_sharedflag='--shared' ;;
11133         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11134           tmp_sharedflag='-qmkshrobj'
11135           tmp_addflag= ;;
11136         nvcc*)  # Cuda Compiler Driver 2.2
11137           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'
11138           compiler_needs_object=yes
11139           ;;
11140         esac
11141         case `$CC -V 2>&1 | sed 5q` in
11142         *Sun\ C*)                       # Sun C 5.9
11143           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'
11144           compiler_needs_object=yes
11145           tmp_sharedflag='-G' ;;
11146         *Sun\ F*)                       # Sun Fortran 8.3
11147           tmp_sharedflag='-G' ;;
11148         esac
11149         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11150
11151         if test "x$supports_anon_versioning" = xyes; then
11152           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11153             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11154             echo "local: *; };" >> $output_objdir/$libname.ver~
11155             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11156         fi
11157
11158         case $cc_basename in
11159         xlf* | bgf* | bgxlf* | mpixlf*)
11160           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11161           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11162           hardcode_libdir_flag_spec=
11163           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11164           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11165           if test "x$supports_anon_versioning" = xyes; then
11166             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11167               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11168               echo "local: *; };" >> $output_objdir/$libname.ver~
11169               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11170           fi
11171           ;;
11172         esac
11173       else
11174         ld_shlibs=no
11175       fi
11176       ;;
11177
11178     netbsd*)
11179       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11180         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11181         wlarc=
11182       else
11183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11184         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11185       fi
11186       ;;
11187
11188     solaris*)
11189       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11190         ld_shlibs=no
11191         cat <<_LT_EOF 1>&2
11192
11193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11194 *** create shared libraries on Solaris systems.  Therefore, libtool
11195 *** is disabling shared libraries support.  We urge you to upgrade GNU
11196 *** binutils to release 2.9.1 or newer.  Another option is to modify
11197 *** your PATH or compiler configuration so that the native linker is
11198 *** used, and then restart.
11199
11200 _LT_EOF
11201       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11204       else
11205         ld_shlibs=no
11206       fi
11207       ;;
11208
11209     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11210       case `$LD -v 2>&1` in
11211         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11212         ld_shlibs=no
11213         cat <<_LT_EOF 1>&2
11214
11215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11216 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11217 *** is disabling shared libraries support.  We urge you to upgrade GNU
11218 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11219 *** your PATH or compiler configuration so that the native linker is
11220 *** used, and then restart.
11221
11222 _LT_EOF
11223         ;;
11224         *)
11225           # For security reasons, it is highly recommended that you always
11226           # use absolute paths for naming shared libraries, and exclude the
11227           # DT_RUNPATH tag from executables and libraries.  But doing so
11228           # requires that you compile everything twice, which is a pain.
11229           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11230             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11231             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11232             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11233           else
11234             ld_shlibs=no
11235           fi
11236         ;;
11237       esac
11238       ;;
11239
11240     sunos4*)
11241       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11242       wlarc=
11243       hardcode_direct=yes
11244       hardcode_shlibpath_var=no
11245       ;;
11246
11247     *)
11248       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11251       else
11252         ld_shlibs=no
11253       fi
11254       ;;
11255     esac
11256
11257     if test "$ld_shlibs" = no; then
11258       runpath_var=
11259       hardcode_libdir_flag_spec=
11260       export_dynamic_flag_spec=
11261       whole_archive_flag_spec=
11262     fi
11263   else
11264     # PORTME fill in a description of your system's linker (not GNU ld)
11265     case $host_os in
11266     aix3*)
11267       allow_undefined_flag=unsupported
11268       always_export_symbols=yes
11269       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'
11270       # Note: this linker hardcodes the directories in LIBPATH if there
11271       # are no directories specified by -L.
11272       hardcode_minus_L=yes
11273       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11274         # Neither direct hardcoding nor static linking is supported with a
11275         # broken collect2.
11276         hardcode_direct=unsupported
11277       fi
11278       ;;
11279
11280     aix[4-9]*)
11281       if test "$host_cpu" = ia64; then
11282         # On IA64, the linker does run time linking by default, so we don't
11283         # have to do anything special.
11284         aix_use_runtimelinking=no
11285         exp_sym_flag='-Bexport'
11286         no_entry_flag=""
11287       else
11288         # If we're using GNU nm, then we don't want the "-C" option.
11289         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11290         # Also, AIX nm treats weak defined symbols like other global
11291         # defined symbols, whereas GNU nm marks them as "W".
11292         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11293           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'
11294         else
11295           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'
11296         fi
11297         aix_use_runtimelinking=no
11298
11299         # Test if we are trying to use run time linking or normal
11300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11301         # need to do runtime linking.
11302         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11303           for ld_flag in $LDFLAGS; do
11304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11305             aix_use_runtimelinking=yes
11306             break
11307           fi
11308           done
11309           ;;
11310         esac
11311
11312         exp_sym_flag='-bexport'
11313         no_entry_flag='-bnoentry'
11314       fi
11315
11316       # When large executables or shared objects are built, AIX ld can
11317       # have problems creating the table of contents.  If linking a library
11318       # or program results in "error TOC overflow" add -mminimal-toc to
11319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11321
11322       archive_cmds=''
11323       hardcode_direct=yes
11324       hardcode_direct_absolute=yes
11325       hardcode_libdir_separator=':'
11326       link_all_deplibs=yes
11327       file_list_spec='${wl}-f,'
11328
11329       if test "$GCC" = yes; then
11330         case $host_os in aix4.[012]|aix4.[012].*)
11331         # We only want to do this on AIX 4.2 and lower, the check
11332         # below for broken collect2 doesn't work under 4.3+
11333           collect2name=`${CC} -print-prog-name=collect2`
11334           if test -f "$collect2name" &&
11335            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11336           then
11337           # We have reworked collect2
11338           :
11339           else
11340           # We have old collect2
11341           hardcode_direct=unsupported
11342           # It fails to find uninstalled libraries when the uninstalled
11343           # path is not listed in the libpath.  Setting hardcode_minus_L
11344           # to unsupported forces relinking
11345           hardcode_minus_L=yes
11346           hardcode_libdir_flag_spec='-L$libdir'
11347           hardcode_libdir_separator=
11348           fi
11349           ;;
11350         esac
11351         shared_flag='-shared'
11352         if test "$aix_use_runtimelinking" = yes; then
11353           shared_flag="$shared_flag "'${wl}-G'
11354         fi
11355       else
11356         # not using gcc
11357         if test "$host_cpu" = ia64; then
11358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11359         # chokes on -Wl,-G. The following line is correct:
11360           shared_flag='-G'
11361         else
11362           if test "$aix_use_runtimelinking" = yes; then
11363             shared_flag='${wl}-G'
11364           else
11365             shared_flag='${wl}-bM:SRE'
11366           fi
11367         fi
11368       fi
11369
11370       export_dynamic_flag_spec='${wl}-bexpall'
11371       # It seems that -bexpall does not export symbols beginning with
11372       # underscore (_), so it is better to generate a list of symbols to export.
11373       always_export_symbols=yes
11374       if test "$aix_use_runtimelinking" = yes; then
11375         # Warning - without using the other runtime loading flags (-brtl),
11376         # -berok will link without error, but may produce a broken library.
11377         allow_undefined_flag='-berok'
11378         # Determine the default libpath from the value encoded in an
11379         # empty executable.
11380         if test x$gcc_no_link = xyes; then
11381   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11382 fi
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h.  */
11385
11386 int
11387 main ()
11388 {
11389
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395
11396 lt_aix_libpath_sed='
11397     /Import File Strings/,/^$/ {
11398         /^0/ {
11399             s/^0  *\(.*\)$/\1/
11400             p
11401         }
11402     }'
11403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11404 # Check for a 64-bit object if we didn't find anything.
11405 if test -z "$aix_libpath"; then
11406   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11407 fi
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext \
11410     conftest$ac_exeext conftest.$ac_ext
11411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11412
11413         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11414         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"
11415       else
11416         if test "$host_cpu" = ia64; then
11417           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11418           allow_undefined_flag="-z nodefs"
11419           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"
11420         else
11421          # Determine the default libpath from the value encoded in an
11422          # empty executable.
11423          if test x$gcc_no_link = xyes; then
11424   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11425 fi
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h.  */
11428
11429 int
11430 main ()
11431 {
11432
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438
11439 lt_aix_libpath_sed='
11440     /Import File Strings/,/^$/ {
11441         /^0/ {
11442             s/^0  *\(.*\)$/\1/
11443             p
11444         }
11445     }'
11446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11447 # Check for a 64-bit object if we didn't find anything.
11448 if test -z "$aix_libpath"; then
11449   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11450 fi
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453     conftest$ac_exeext conftest.$ac_ext
11454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11455
11456          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11457           # Warning - without using the other run time loading flags,
11458           # -berok will link without error, but may produce a broken library.
11459           no_undefined_flag=' ${wl}-bernotok'
11460           allow_undefined_flag=' ${wl}-berok'
11461           if test "$with_gnu_ld" = yes; then
11462             # We only use this code for GNU lds that support --whole-archive.
11463             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11464           else
11465             # Exported symbols can be pulled into shared objects from archives
11466             whole_archive_flag_spec='$convenience'
11467           fi
11468           archive_cmds_need_lc=yes
11469           # This is similar to how AIX traditionally builds its shared libraries.
11470           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'
11471         fi
11472       fi
11473       ;;
11474
11475     amigaos*)
11476       case $host_cpu in
11477       powerpc)
11478             # see comment about AmigaOS4 .so support
11479             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480             archive_expsym_cmds=''
11481         ;;
11482       m68k)
11483             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)'
11484             hardcode_libdir_flag_spec='-L$libdir'
11485             hardcode_minus_L=yes
11486         ;;
11487       esac
11488       ;;
11489
11490     bsdi[45]*)
11491       export_dynamic_flag_spec=-rdynamic
11492       ;;
11493
11494     cygwin* | mingw* | pw32* | cegcc*)
11495       # When not using gcc, we currently assume that we are using
11496       # Microsoft Visual C++.
11497       # hardcode_libdir_flag_spec is actually meaningless, as there is
11498       # no search path for DLLs.
11499       hardcode_libdir_flag_spec=' '
11500       allow_undefined_flag=unsupported
11501       # Tell ltmain to make .lib files, not .a files.
11502       libext=lib
11503       # Tell ltmain to make .dll files, not .so files.
11504       shrext_cmds=".dll"
11505       # FIXME: Setting linknames here is a bad hack.
11506       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11507       # The linker will automatically build a .lib file if we build a DLL.
11508       old_archive_from_new_cmds='true'
11509       # FIXME: Should let the user specify the lib program.
11510       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11511       fix_srcfile_path='`cygpath -w "$srcfile"`'
11512       enable_shared_with_static_runtimes=yes
11513       ;;
11514
11515     darwin* | rhapsody*)
11516
11517
11518   archive_cmds_need_lc=no
11519   hardcode_direct=no
11520   hardcode_automatic=yes
11521   hardcode_shlibpath_var=unsupported
11522   if test "$lt_cv_ld_force_load" = "yes"; then
11523     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\"`'
11524   else
11525     whole_archive_flag_spec=''
11526   fi
11527   link_all_deplibs=yes
11528   allow_undefined_flag="$_lt_dar_allow_undefined"
11529   case $cc_basename in
11530      ifort*) _lt_dar_can_shared=yes ;;
11531      *) _lt_dar_can_shared=$GCC ;;
11532   esac
11533   if test "$_lt_dar_can_shared" = "yes"; then
11534     output_verbose_link_cmd=func_echo_all
11535     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11536     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11537     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}"
11538     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}"
11539
11540   else
11541   ld_shlibs=no
11542   fi
11543
11544       ;;
11545
11546     dgux*)
11547       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11548       hardcode_libdir_flag_spec='-L$libdir'
11549       hardcode_shlibpath_var=no
11550       ;;
11551
11552     freebsd1*)
11553       ld_shlibs=no
11554       ;;
11555
11556     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11557     # support.  Future versions do this automatically, but an explicit c++rt0.o
11558     # does not break anything, and helps significantly (at the cost of a little
11559     # extra space).
11560     freebsd2.2*)
11561       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11562       hardcode_libdir_flag_spec='-R$libdir'
11563       hardcode_direct=yes
11564       hardcode_shlibpath_var=no
11565       ;;
11566
11567     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11568     freebsd2*)
11569       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11570       hardcode_direct=yes
11571       hardcode_minus_L=yes
11572       hardcode_shlibpath_var=no
11573       ;;
11574
11575     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11576     freebsd* | dragonfly*)
11577       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11578       hardcode_libdir_flag_spec='-R$libdir'
11579       hardcode_direct=yes
11580       hardcode_shlibpath_var=no
11581       ;;
11582
11583     hpux9*)
11584       if test "$GCC" = yes; then
11585         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'
11586       else
11587         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'
11588       fi
11589       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11590       hardcode_libdir_separator=:
11591       hardcode_direct=yes
11592
11593       # hardcode_minus_L: Not really in the search PATH,
11594       # but as the default location of the library.
11595       hardcode_minus_L=yes
11596       export_dynamic_flag_spec='${wl}-E'
11597       ;;
11598
11599     hpux10*)
11600       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11601         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11602       else
11603         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11604       fi
11605       if test "$with_gnu_ld" = no; then
11606         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11607         hardcode_libdir_flag_spec_ld='+b $libdir'
11608         hardcode_libdir_separator=:
11609         hardcode_direct=yes
11610         hardcode_direct_absolute=yes
11611         export_dynamic_flag_spec='${wl}-E'
11612         # hardcode_minus_L: Not really in the search PATH,
11613         # but as the default location of the library.
11614         hardcode_minus_L=yes
11615       fi
11616       ;;
11617
11618     hpux11*)
11619       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11620         case $host_cpu in
11621         hppa*64*)
11622           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11623           ;;
11624         ia64*)
11625           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11626           ;;
11627         *)
11628           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11629           ;;
11630         esac
11631       else
11632         case $host_cpu in
11633         hppa*64*)
11634           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635           ;;
11636         ia64*)
11637           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11638           ;;
11639         *)
11640
11641           # Older versions of the 11.00 compiler do not understand -b yet
11642           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11644 $as_echo_n "checking if $CC understands -b... " >&6; }
11645 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11646   $as_echo_n "(cached) " >&6
11647 else
11648   lt_cv_prog_compiler__b=no
11649    save_LDFLAGS="$LDFLAGS"
11650    LDFLAGS="$LDFLAGS -b"
11651    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11652    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11653      # The linker can only warn and ignore the option if not recognized
11654      # So say no if there are warnings
11655      if test -s conftest.err; then
11656        # Append any errors to the config.log.
11657        cat conftest.err 1>&5
11658        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11659        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11660        if diff conftest.exp conftest.er2 >/dev/null; then
11661          lt_cv_prog_compiler__b=yes
11662        fi
11663      else
11664        lt_cv_prog_compiler__b=yes
11665      fi
11666    fi
11667    $RM -r conftest*
11668    LDFLAGS="$save_LDFLAGS"
11669
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11672 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11673
11674 if test x"$lt_cv_prog_compiler__b" = xyes; then
11675     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11676 else
11677     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11678 fi
11679
11680           ;;
11681         esac
11682       fi
11683       if test "$with_gnu_ld" = no; then
11684         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11685         hardcode_libdir_separator=:
11686
11687         case $host_cpu in
11688         hppa*64*|ia64*)
11689           hardcode_direct=no
11690           hardcode_shlibpath_var=no
11691           ;;
11692         *)
11693           hardcode_direct=yes
11694           hardcode_direct_absolute=yes
11695           export_dynamic_flag_spec='${wl}-E'
11696
11697           # hardcode_minus_L: Not really in the search PATH,
11698           # but as the default location of the library.
11699           hardcode_minus_L=yes
11700           ;;
11701         esac
11702       fi
11703       ;;
11704
11705     irix5* | irix6* | nonstopux*)
11706       if test "$GCC" = yes; then
11707         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'
11708         # Try to use the -exported_symbol ld option, if it does not
11709         # work, assume that -exports_file does not work either and
11710         # implicitly export all symbols.
11711         save_LDFLAGS="$LDFLAGS"
11712         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11713         if test x$gcc_no_link = xyes; then
11714   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11715 fi
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h.  */
11718 int foo(void) {}
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721   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'
11722
11723 fi
11724 rm -f core conftest.err conftest.$ac_objext \
11725     conftest$ac_exeext conftest.$ac_ext
11726         LDFLAGS="$save_LDFLAGS"
11727       else
11728         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'
11729         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'
11730       fi
11731       archive_cmds_need_lc='no'
11732       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11733       hardcode_libdir_separator=:
11734       inherit_rpath=yes
11735       link_all_deplibs=yes
11736       ;;
11737
11738     netbsd*)
11739       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11740         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11741       else
11742         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11743       fi
11744       hardcode_libdir_flag_spec='-R$libdir'
11745       hardcode_direct=yes
11746       hardcode_shlibpath_var=no
11747       ;;
11748
11749     newsos6)
11750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11751       hardcode_direct=yes
11752       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11753       hardcode_libdir_separator=:
11754       hardcode_shlibpath_var=no
11755       ;;
11756
11757     *nto* | *qnx*)
11758       ;;
11759
11760     openbsd*)
11761       if test -f /usr/libexec/ld.so; then
11762         hardcode_direct=yes
11763         hardcode_shlibpath_var=no
11764         hardcode_direct_absolute=yes
11765         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11766           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11767           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11768           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11769           export_dynamic_flag_spec='${wl}-E'
11770         else
11771           case $host_os in
11772            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11773              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11774              hardcode_libdir_flag_spec='-R$libdir'
11775              ;;
11776            *)
11777              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11778              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11779              ;;
11780           esac
11781         fi
11782       else
11783         ld_shlibs=no
11784       fi
11785       ;;
11786
11787     os2*)
11788       hardcode_libdir_flag_spec='-L$libdir'
11789       hardcode_minus_L=yes
11790       allow_undefined_flag=unsupported
11791       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'
11792       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11793       ;;
11794
11795     osf3*)
11796       if test "$GCC" = yes; then
11797         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11798         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'
11799       else
11800         allow_undefined_flag=' -expect_unresolved \*'
11801         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'
11802       fi
11803       archive_cmds_need_lc='no'
11804       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11805       hardcode_libdir_separator=:
11806       ;;
11807
11808     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11809       if test "$GCC" = yes; then
11810         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11811         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'
11812         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11813       else
11814         allow_undefined_flag=' -expect_unresolved \*'
11815         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'
11816         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~
11817         $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'
11818
11819         # Both c and cxx compiler support -rpath directly
11820         hardcode_libdir_flag_spec='-rpath $libdir'
11821       fi
11822       archive_cmds_need_lc='no'
11823       hardcode_libdir_separator=:
11824       ;;
11825
11826     solaris*)
11827       no_undefined_flag=' -z defs'
11828       if test "$GCC" = yes; then
11829         wlarc='${wl}'
11830         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11832           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11833       else
11834         case `$CC -V 2>&1` in
11835         *"Compilers 5.0"*)
11836           wlarc=''
11837           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11839           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11840           ;;
11841         *)
11842           wlarc='${wl}'
11843           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11844           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11845           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11846           ;;
11847         esac
11848       fi
11849       hardcode_libdir_flag_spec='-R$libdir'
11850       hardcode_shlibpath_var=no
11851       case $host_os in
11852       solaris2.[0-5] | solaris2.[0-5].*) ;;
11853       *)
11854         # The compiler driver will combine and reorder linker options,
11855         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11856         # but is careful enough not to reorder.
11857         # Supported since Solaris 2.6 (maybe 2.5.1?)
11858         if test "$GCC" = yes; then
11859           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11860         else
11861           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11862         fi
11863         ;;
11864       esac
11865       link_all_deplibs=yes
11866       ;;
11867
11868     sunos4*)
11869       if test "x$host_vendor" = xsequent; then
11870         # Use $CC to link under sequent, because it throws in some extra .o
11871         # files that make .init and .fini sections work.
11872         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11873       else
11874         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11875       fi
11876       hardcode_libdir_flag_spec='-L$libdir'
11877       hardcode_direct=yes
11878       hardcode_minus_L=yes
11879       hardcode_shlibpath_var=no
11880       ;;
11881
11882     sysv4)
11883       case $host_vendor in
11884         sni)
11885           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886           hardcode_direct=yes # is this really true???
11887         ;;
11888         siemens)
11889           ## LD is ld it makes a PLAMLIB
11890           ## CC just makes a GrossModule.
11891           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11892           reload_cmds='$CC -r -o $output$reload_objs'
11893           hardcode_direct=no
11894         ;;
11895         motorola)
11896           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11897           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11898         ;;
11899       esac
11900       runpath_var='LD_RUN_PATH'
11901       hardcode_shlibpath_var=no
11902       ;;
11903
11904     sysv4.3*)
11905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906       hardcode_shlibpath_var=no
11907       export_dynamic_flag_spec='-Bexport'
11908       ;;
11909
11910     sysv4*MP*)
11911       if test -d /usr/nec; then
11912         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913         hardcode_shlibpath_var=no
11914         runpath_var=LD_RUN_PATH
11915         hardcode_runpath_var=yes
11916         ld_shlibs=yes
11917       fi
11918       ;;
11919
11920     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11921       no_undefined_flag='${wl}-z,text'
11922       archive_cmds_need_lc=no
11923       hardcode_shlibpath_var=no
11924       runpath_var='LD_RUN_PATH'
11925
11926       if test "$GCC" = yes; then
11927         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929       else
11930         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11932       fi
11933       ;;
11934
11935     sysv5* | sco3.2v5* | sco5v6*)
11936       # Note: We can NOT use -z defs as we might desire, because we do not
11937       # link with -lc, and that would cause any symbols used from libc to
11938       # always be unresolved, which means just about no library would
11939       # ever link correctly.  If we're not using GNU ld we use -z text
11940       # though, which does catch some bad symbols but isn't as heavy-handed
11941       # as -z defs.
11942       no_undefined_flag='${wl}-z,text'
11943       allow_undefined_flag='${wl}-z,nodefs'
11944       archive_cmds_need_lc=no
11945       hardcode_shlibpath_var=no
11946       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11947       hardcode_libdir_separator=':'
11948       link_all_deplibs=yes
11949       export_dynamic_flag_spec='${wl}-Bexport'
11950       runpath_var='LD_RUN_PATH'
11951
11952       if test "$GCC" = yes; then
11953         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955       else
11956         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958       fi
11959       ;;
11960
11961     uts4*)
11962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11963       hardcode_libdir_flag_spec='-L$libdir'
11964       hardcode_shlibpath_var=no
11965       ;;
11966
11967     *)
11968       ld_shlibs=no
11969       ;;
11970     esac
11971
11972     if test x$host_vendor = xsni; then
11973       case $host in
11974       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11975         export_dynamic_flag_spec='${wl}-Blargedynsym'
11976         ;;
11977       esac
11978     fi
11979   fi
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11982 $as_echo "$ld_shlibs" >&6; }
11983 test "$ld_shlibs" = no && can_build_shared=no
11984
11985 with_gnu_ld=$with_gnu_ld
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001 #
12002 # Do we need to explicitly link libc?
12003 #
12004 case "x$archive_cmds_need_lc" in
12005 x|xyes)
12006   # Assume -lc should be added
12007   archive_cmds_need_lc=yes
12008
12009   if test "$enable_shared" = yes && test "$GCC" = yes; then
12010     case $archive_cmds in
12011     *'~'*)
12012       # FIXME: we may have to deal with multi-command sequences.
12013       ;;
12014     '$CC '*)
12015       # Test whether the compiler implicitly links with -lc since on some
12016       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12017       # to ld, don't add -lc before -lgcc.
12018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12019 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12020 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   $RM conftest*
12024         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12025
12026         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12027   (eval $ac_compile) 2>&5
12028   ac_status=$?
12029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030   test $ac_status = 0; } 2>conftest.err; then
12031           soname=conftest
12032           lib=conftest
12033           libobjs=conftest.$ac_objext
12034           deplibs=
12035           wl=$lt_prog_compiler_wl
12036           pic_flag=$lt_prog_compiler_pic
12037           compiler_flags=-v
12038           linker_flags=-v
12039           verstring=
12040           output_objdir=.
12041           libname=conftest
12042           lt_save_allow_undefined_flag=$allow_undefined_flag
12043           allow_undefined_flag=
12044           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12045   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12046   ac_status=$?
12047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048   test $ac_status = 0; }
12049           then
12050             lt_cv_archive_cmds_need_lc=no
12051           else
12052             lt_cv_archive_cmds_need_lc=yes
12053           fi
12054           allow_undefined_flag=$lt_save_allow_undefined_flag
12055         else
12056           cat conftest.err 1>&5
12057         fi
12058         $RM conftest*
12059
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12062 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12063       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12064       ;;
12065     esac
12066   fi
12067   ;;
12068 esac
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
12225
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12227 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12228
12229 if test "$GCC" = yes; then
12230   case $host_os in
12231     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12232     *) lt_awk_arg="/^libraries:/" ;;
12233   esac
12234   case $host_os in
12235     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12236     *) lt_sed_strip_eq="s,=/,/,g" ;;
12237   esac
12238   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12239   case $lt_search_path_spec in
12240   *\;*)
12241     # if the path contains ";" then we assume it to be the separator
12242     # otherwise default to the standard path separator (i.e. ":") - it is
12243     # assumed that no part of a normal pathname contains ";" but that should
12244     # okay in the real world where ";" in dirpaths is itself problematic.
12245     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12246     ;;
12247   *)
12248     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12249     ;;
12250   esac
12251   # Ok, now we have the path, separated by spaces, we can step through it
12252   # and add multilib dir if necessary.
12253   lt_tmp_lt_search_path_spec=
12254   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12255   for lt_sys_path in $lt_search_path_spec; do
12256     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12257       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12258     else
12259       test -d "$lt_sys_path" && \
12260         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12261     fi
12262   done
12263   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12264 BEGIN {RS=" "; FS="/|\n";} {
12265   lt_foo="";
12266   lt_count=0;
12267   for (lt_i = NF; lt_i > 0; lt_i--) {
12268     if ($lt_i != "" && $lt_i != ".") {
12269       if ($lt_i == "..") {
12270         lt_count++;
12271       } else {
12272         if (lt_count == 0) {
12273           lt_foo="/" $lt_i lt_foo;
12274         } else {
12275           lt_count--;
12276         }
12277       }
12278     }
12279   }
12280   if (lt_foo != "") { lt_freq[lt_foo]++; }
12281   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12282 }'`
12283   # AWK program above erroneously prepends '/' to C:/dos/paths
12284   # for these hosts.
12285   case $host_os in
12286     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12287       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12288   esac
12289   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12290 else
12291   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12292 fi
12293 library_names_spec=
12294 libname_spec='lib$name'
12295 soname_spec=
12296 shrext_cmds=".so"
12297 postinstall_cmds=
12298 postuninstall_cmds=
12299 finish_cmds=
12300 finish_eval=
12301 shlibpath_var=
12302 shlibpath_overrides_runpath=unknown
12303 version_type=none
12304 dynamic_linker="$host_os ld.so"
12305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12306 need_lib_prefix=unknown
12307 hardcode_into_libs=no
12308
12309 # when you set need_version to no, make sure it does not cause -set_version
12310 # flags to be left without arguments
12311 need_version=unknown
12312
12313 case $host_os in
12314 aix3*)
12315   version_type=linux
12316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12317   shlibpath_var=LIBPATH
12318
12319   # AIX 3 has no versioning support, so we append a major version to the name.
12320   soname_spec='${libname}${release}${shared_ext}$major'
12321   ;;
12322
12323 aix[4-9]*)
12324   version_type=linux
12325   need_lib_prefix=no
12326   need_version=no
12327   hardcode_into_libs=yes
12328   if test "$host_cpu" = ia64; then
12329     # AIX 5 supports IA64
12330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12331     shlibpath_var=LD_LIBRARY_PATH
12332   else
12333     # With GCC up to 2.95.x, collect2 would create an import file
12334     # for dependence libraries.  The import file would start with
12335     # the line `#! .'.  This would cause the generated library to
12336     # depend on `.', always an invalid library.  This was fixed in
12337     # development snapshots of GCC prior to 3.0.
12338     case $host_os in
12339       aix4 | aix4.[01] | aix4.[01].*)
12340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12341            echo ' yes '
12342            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12343         :
12344       else
12345         can_build_shared=no
12346       fi
12347       ;;
12348     esac
12349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12350     # soname into executable. Probably we can add versioning support to
12351     # collect2, so additional links can be useful in future.
12352     if test "$aix_use_runtimelinking" = yes; then
12353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12354       # instead of lib<name>.a to let people know that these are not
12355       # typical AIX shared libraries.
12356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357     else
12358       # We preserve .a as extension for shared libraries through AIX4.2
12359       # and later when we are not doing run time linking.
12360       library_names_spec='${libname}${release}.a $libname.a'
12361       soname_spec='${libname}${release}${shared_ext}$major'
12362     fi
12363     shlibpath_var=LIBPATH
12364   fi
12365   ;;
12366
12367 amigaos*)
12368   case $host_cpu in
12369   powerpc)
12370     # Since July 2007 AmigaOS4 officially supports .so libraries.
12371     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373     ;;
12374   m68k)
12375     library_names_spec='$libname.ixlibrary $libname.a'
12376     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12377     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'
12378     ;;
12379   esac
12380   ;;
12381
12382 beos*)
12383   library_names_spec='${libname}${shared_ext}'
12384   dynamic_linker="$host_os ld.so"
12385   shlibpath_var=LIBRARY_PATH
12386   ;;
12387
12388 bsdi[45]*)
12389   version_type=linux
12390   need_version=no
12391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12392   soname_spec='${libname}${release}${shared_ext}$major'
12393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12394   shlibpath_var=LD_LIBRARY_PATH
12395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12397   # the default ld.so.conf also contains /usr/contrib/lib and
12398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12399   # libtool to hard-code these into programs
12400   ;;
12401
12402 cygwin* | mingw* | pw32* | cegcc*)
12403   version_type=windows
12404   shrext_cmds=".dll"
12405   need_version=no
12406   need_lib_prefix=no
12407
12408   case $GCC,$host_os in
12409   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12410     library_names_spec='$libname.dll.a'
12411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12412     postinstall_cmds='base_file=`basename \${file}`~
12413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12414       dldir=$destdir/`dirname \$dlpath`~
12415       test -d \$dldir || mkdir -p \$dldir~
12416       $install_prog $dir/$dlname \$dldir/$dlname~
12417       chmod a+x \$dldir/$dlname~
12418       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12419         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12420       fi'
12421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12422       dlpath=$dir/\$dldll~
12423        $RM \$dlpath'
12424     shlibpath_overrides_runpath=yes
12425
12426     case $host_os in
12427     cygwin*)
12428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12430
12431       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12432       ;;
12433     mingw* | cegcc*)
12434       # MinGW DLLs use traditional 'lib' prefix
12435       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12436       ;;
12437     pw32*)
12438       # pw32 DLLs use 'pw' prefix rather than 'lib'
12439       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12440       ;;
12441     esac
12442     ;;
12443
12444   *)
12445     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12446     ;;
12447   esac
12448   dynamic_linker='Win32 ld.exe'
12449   # FIXME: first we should search . and the directory the executable is in
12450   shlibpath_var=PATH
12451   ;;
12452
12453 darwin* | rhapsody*)
12454   dynamic_linker="$host_os dyld"
12455   version_type=darwin
12456   need_lib_prefix=no
12457   need_version=no
12458   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12459   soname_spec='${libname}${release}${major}$shared_ext'
12460   shlibpath_overrides_runpath=yes
12461   shlibpath_var=DYLD_LIBRARY_PATH
12462   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12463
12464   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12465   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12466   ;;
12467
12468 dgux*)
12469   version_type=linux
12470   need_lib_prefix=no
12471   need_version=no
12472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12473   soname_spec='${libname}${release}${shared_ext}$major'
12474   shlibpath_var=LD_LIBRARY_PATH
12475   ;;
12476
12477 freebsd1*)
12478   dynamic_linker=no
12479   ;;
12480
12481 freebsd* | dragonfly*)
12482   # DragonFly does not have aout.  When/if they implement a new
12483   # versioning mechanism, adjust this.
12484   if test -x /usr/bin/objformat; then
12485     objformat=`/usr/bin/objformat`
12486   else
12487     case $host_os in
12488     freebsd[123]*) objformat=aout ;;
12489     *) objformat=elf ;;
12490     esac
12491   fi
12492   version_type=freebsd-$objformat
12493   case $version_type in
12494     freebsd-elf*)
12495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12496       need_version=no
12497       need_lib_prefix=no
12498       ;;
12499     freebsd-*)
12500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12501       need_version=yes
12502       ;;
12503   esac
12504   shlibpath_var=LD_LIBRARY_PATH
12505   case $host_os in
12506   freebsd2*)
12507     shlibpath_overrides_runpath=yes
12508     ;;
12509   freebsd3.[01]* | freebsdelf3.[01]*)
12510     shlibpath_overrides_runpath=yes
12511     hardcode_into_libs=yes
12512     ;;
12513   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12514   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12515     shlibpath_overrides_runpath=no
12516     hardcode_into_libs=yes
12517     ;;
12518   *) # from 4.6 on, and DragonFly
12519     shlibpath_overrides_runpath=yes
12520     hardcode_into_libs=yes
12521     ;;
12522   esac
12523   ;;
12524
12525 gnu*)
12526   version_type=linux
12527   need_lib_prefix=no
12528   need_version=no
12529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12530   soname_spec='${libname}${release}${shared_ext}$major'
12531   shlibpath_var=LD_LIBRARY_PATH
12532   hardcode_into_libs=yes
12533   ;;
12534
12535 haiku*)
12536   version_type=linux
12537   need_lib_prefix=no
12538   need_version=no
12539   dynamic_linker="$host_os runtime_loader"
12540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12541   soname_spec='${libname}${release}${shared_ext}$major'
12542   shlibpath_var=LIBRARY_PATH
12543   shlibpath_overrides_runpath=yes
12544   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12545   hardcode_into_libs=yes
12546   ;;
12547
12548 hpux9* | hpux10* | hpux11*)
12549   # Give a soname corresponding to the major version so that dld.sl refuses to
12550   # link against other versions.
12551   version_type=sunos
12552   need_lib_prefix=no
12553   need_version=no
12554   case $host_cpu in
12555   ia64*)
12556     shrext_cmds='.so'
12557     hardcode_into_libs=yes
12558     dynamic_linker="$host_os dld.so"
12559     shlibpath_var=LD_LIBRARY_PATH
12560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562     soname_spec='${libname}${release}${shared_ext}$major'
12563     if test "X$HPUX_IA64_MODE" = X32; then
12564       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12565     else
12566       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12567     fi
12568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12569     ;;
12570   hppa*64*)
12571     shrext_cmds='.sl'
12572     hardcode_into_libs=yes
12573     dynamic_linker="$host_os dld.sl"
12574     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12575     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577     soname_spec='${libname}${release}${shared_ext}$major'
12578     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12579     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12580     ;;
12581   *)
12582     shrext_cmds='.sl'
12583     dynamic_linker="$host_os dld.sl"
12584     shlibpath_var=SHLIB_PATH
12585     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587     soname_spec='${libname}${release}${shared_ext}$major'
12588     ;;
12589   esac
12590   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12591   postinstall_cmds='chmod 555 $lib'
12592   # or fails outright, so override atomically:
12593   install_override_mode=555
12594   ;;
12595
12596 interix[3-9]*)
12597   version_type=linux
12598   need_lib_prefix=no
12599   need_version=no
12600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12601   soname_spec='${libname}${release}${shared_ext}$major'
12602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12603   shlibpath_var=LD_LIBRARY_PATH
12604   shlibpath_overrides_runpath=no
12605   hardcode_into_libs=yes
12606   ;;
12607
12608 irix5* | irix6* | nonstopux*)
12609   case $host_os in
12610     nonstopux*) version_type=nonstopux ;;
12611     *)
12612         if test "$lt_cv_prog_gnu_ld" = yes; then
12613                 version_type=linux
12614         else
12615                 version_type=irix
12616         fi ;;
12617   esac
12618   need_lib_prefix=no
12619   need_version=no
12620   soname_spec='${libname}${release}${shared_ext}$major'
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12622   case $host_os in
12623   irix5* | nonstopux*)
12624     libsuff= shlibsuff=
12625     ;;
12626   *)
12627     case $LD in # libtool.m4 will add one of these switches to LD
12628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12629       libsuff= shlibsuff= libmagic=32-bit;;
12630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12631       libsuff=32 shlibsuff=N32 libmagic=N32;;
12632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12634     *) libsuff= shlibsuff= libmagic=never-match;;
12635     esac
12636     ;;
12637   esac
12638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12639   shlibpath_overrides_runpath=no
12640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12642   hardcode_into_libs=yes
12643   ;;
12644
12645 # No shared lib support for Linux oldld, aout, or coff.
12646 linux*oldld* | linux*aout* | linux*coff*)
12647   dynamic_linker=no
12648   ;;
12649
12650 # This must be Linux ELF.
12651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12652   version_type=linux
12653   need_lib_prefix=no
12654   need_version=no
12655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656   soname_spec='${libname}${release}${shared_ext}$major'
12657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12658   shlibpath_var=LD_LIBRARY_PATH
12659   shlibpath_overrides_runpath=no
12660
12661   # Some binutils ld are patched to set DT_RUNPATH
12662   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   lt_cv_shlibpath_overrides_runpath=no
12666     save_LDFLAGS=$LDFLAGS
12667     save_libdir=$libdir
12668     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12669          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12670     if test x$gcc_no_link = xyes; then
12671   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12672 fi
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h.  */
12675
12676 int
12677 main ()
12678 {
12679
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12686   lt_cv_shlibpath_overrides_runpath=yes
12687 fi
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext \
12690     conftest$ac_exeext conftest.$ac_ext
12691     LDFLAGS=$save_LDFLAGS
12692     libdir=$save_libdir
12693
12694 fi
12695
12696   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12697
12698   # This implies no fast_install, which is unacceptable.
12699   # Some rework will be needed to allow for fast_install
12700   # before this can be enabled.
12701   hardcode_into_libs=yes
12702
12703   # Append ld.so.conf contents to the search path
12704   if test -f /etc/ld.so.conf; then
12705     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' ' '`
12706     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12707   fi
12708
12709   # We used to test for /lib/ld.so.1 and disable shared libraries on
12710   # powerpc, because MkLinux only supported shared libraries with the
12711   # GNU dynamic linker.  Since this was broken with cross compilers,
12712   # most powerpc-linux boxes support dynamic linking these days and
12713   # people can always --disable-shared, the test was removed, and we
12714   # assume the GNU/Linux dynamic linker is in use.
12715   dynamic_linker='GNU/Linux ld.so'
12716   ;;
12717
12718 netbsd*)
12719   version_type=sunos
12720   need_lib_prefix=no
12721   need_version=no
12722   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12724     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12725     dynamic_linker='NetBSD (a.out) ld.so'
12726   else
12727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12728     soname_spec='${libname}${release}${shared_ext}$major'
12729     dynamic_linker='NetBSD ld.elf_so'
12730   fi
12731   shlibpath_var=LD_LIBRARY_PATH
12732   shlibpath_overrides_runpath=yes
12733   hardcode_into_libs=yes
12734   ;;
12735
12736 newsos6)
12737   version_type=linux
12738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739   shlibpath_var=LD_LIBRARY_PATH
12740   shlibpath_overrides_runpath=yes
12741   ;;
12742
12743 *nto* | *qnx*)
12744   version_type=qnx
12745   need_lib_prefix=no
12746   need_version=no
12747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748   soname_spec='${libname}${release}${shared_ext}$major'
12749   shlibpath_var=LD_LIBRARY_PATH
12750   shlibpath_overrides_runpath=no
12751   hardcode_into_libs=yes
12752   dynamic_linker='ldqnx.so'
12753   ;;
12754
12755 openbsd*)
12756   version_type=sunos
12757   sys_lib_dlsearch_path_spec="/usr/lib"
12758   need_lib_prefix=no
12759   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12760   case $host_os in
12761     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12762     *)                          need_version=no  ;;
12763   esac
12764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12766   shlibpath_var=LD_LIBRARY_PATH
12767   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12768     case $host_os in
12769       openbsd2.[89] | openbsd2.[89].*)
12770         shlibpath_overrides_runpath=no
12771         ;;
12772       *)
12773         shlibpath_overrides_runpath=yes
12774         ;;
12775       esac
12776   else
12777     shlibpath_overrides_runpath=yes
12778   fi
12779   ;;
12780
12781 os2*)
12782   libname_spec='$name'
12783   shrext_cmds=".dll"
12784   need_lib_prefix=no
12785   library_names_spec='$libname${shared_ext} $libname.a'
12786   dynamic_linker='OS/2 ld.exe'
12787   shlibpath_var=LIBPATH
12788   ;;
12789
12790 osf3* | osf4* | osf5*)
12791   version_type=osf
12792   need_lib_prefix=no
12793   need_version=no
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796   shlibpath_var=LD_LIBRARY_PATH
12797   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12798   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12799   ;;
12800
12801 rdos*)
12802   dynamic_linker=no
12803   ;;
12804
12805 solaris*)
12806   version_type=linux
12807   need_lib_prefix=no
12808   need_version=no
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810   soname_spec='${libname}${release}${shared_ext}$major'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   shlibpath_overrides_runpath=yes
12813   hardcode_into_libs=yes
12814   # ldd complains unless libraries are executable
12815   postinstall_cmds='chmod +x $lib'
12816   ;;
12817
12818 sunos4*)
12819   version_type=sunos
12820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12821   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12822   shlibpath_var=LD_LIBRARY_PATH
12823   shlibpath_overrides_runpath=yes
12824   if test "$with_gnu_ld" = yes; then
12825     need_lib_prefix=no
12826   fi
12827   need_version=yes
12828   ;;
12829
12830 sysv4 | sysv4.3*)
12831   version_type=linux
12832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833   soname_spec='${libname}${release}${shared_ext}$major'
12834   shlibpath_var=LD_LIBRARY_PATH
12835   case $host_vendor in
12836     sni)
12837       shlibpath_overrides_runpath=no
12838       need_lib_prefix=no
12839       runpath_var=LD_RUN_PATH
12840       ;;
12841     siemens)
12842       need_lib_prefix=no
12843       ;;
12844     motorola)
12845       need_lib_prefix=no
12846       need_version=no
12847       shlibpath_overrides_runpath=no
12848       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12849       ;;
12850   esac
12851   ;;
12852
12853 sysv4*MP*)
12854   if test -d /usr/nec ;then
12855     version_type=linux
12856     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12857     soname_spec='$libname${shared_ext}.$major'
12858     shlibpath_var=LD_LIBRARY_PATH
12859   fi
12860   ;;
12861
12862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12863   version_type=freebsd-elf
12864   need_lib_prefix=no
12865   need_version=no
12866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12867   soname_spec='${libname}${release}${shared_ext}$major'
12868   shlibpath_var=LD_LIBRARY_PATH
12869   shlibpath_overrides_runpath=yes
12870   hardcode_into_libs=yes
12871   if test "$with_gnu_ld" = yes; then
12872     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12873   else
12874     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12875     case $host_os in
12876       sco3.2v5*)
12877         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12878         ;;
12879     esac
12880   fi
12881   sys_lib_dlsearch_path_spec='/usr/lib'
12882   ;;
12883
12884 tpf*)
12885   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12886   version_type=linux
12887   need_lib_prefix=no
12888   need_version=no
12889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890   shlibpath_var=LD_LIBRARY_PATH
12891   shlibpath_overrides_runpath=no
12892   hardcode_into_libs=yes
12893   ;;
12894
12895 uts4*)
12896   version_type=linux
12897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12898   soname_spec='${libname}${release}${shared_ext}$major'
12899   shlibpath_var=LD_LIBRARY_PATH
12900   ;;
12901
12902 *)
12903   dynamic_linker=no
12904   ;;
12905 esac
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12907 $as_echo "$dynamic_linker" >&6; }
12908 test "$dynamic_linker" = no && can_build_shared=no
12909
12910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12911 if test "$GCC" = yes; then
12912   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12913 fi
12914
12915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12916   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12917 fi
12918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12919   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12920 fi
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
13012
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13014 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13015 hardcode_action=
13016 if test -n "$hardcode_libdir_flag_spec" ||
13017    test -n "$runpath_var" ||
13018    test "X$hardcode_automatic" = "Xyes" ; then
13019
13020   # We can hardcode non-existent directories.
13021   if test "$hardcode_direct" != no &&
13022      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13023      # have to relink, otherwise we might link with an installed library
13024      # when we should be linking with a yet-to-be-installed one
13025      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13026      test "$hardcode_minus_L" != no; then
13027     # Linking always hardcodes the temporary library directory.
13028     hardcode_action=relink
13029   else
13030     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13031     hardcode_action=immediate
13032   fi
13033 else
13034   # We cannot hardcode anything, or else we can only hardcode existing
13035   # directories.
13036   hardcode_action=unsupported
13037 fi
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13039 $as_echo "$hardcode_action" >&6; }
13040
13041 if test "$hardcode_action" = relink ||
13042    test "$inherit_rpath" = yes; then
13043   # Fast installation is not supported
13044   enable_fast_install=no
13045 elif test "$shlibpath_overrides_runpath" = yes ||
13046      test "$enable_shared" = no; then
13047   # Fast installation is not necessary
13048   enable_fast_install=needless
13049 fi
13050
13051
13052
13053
13054
13055
13056   if test "x$enable_dlopen" != xyes; then
13057   enable_dlopen=unknown
13058   enable_dlopen_self=unknown
13059   enable_dlopen_self_static=unknown
13060 else
13061   lt_cv_dlopen=no
13062   lt_cv_dlopen_libs=
13063
13064   case $host_os in
13065   beos*)
13066     lt_cv_dlopen="load_add_on"
13067     lt_cv_dlopen_libs=
13068     lt_cv_dlopen_self=yes
13069     ;;
13070
13071   mingw* | pw32* | cegcc*)
13072     lt_cv_dlopen="LoadLibrary"
13073     lt_cv_dlopen_libs=
13074     ;;
13075
13076   cygwin*)
13077     lt_cv_dlopen="dlopen"
13078     lt_cv_dlopen_libs=
13079     ;;
13080
13081   darwin*)
13082   # if libdl is installed we need to link against it
13083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13084 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13086   $as_echo_n "(cached) " >&6
13087 else
13088   ac_check_lib_save_LIBS=$LIBS
13089 LIBS="-ldl  $LIBS"
13090 if test x$gcc_no_link = xyes; then
13091   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13092 fi
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h.  */
13095
13096 /* Override any GCC internal prototype to avoid an error.
13097    Use char because int might match the return type of a GCC
13098    builtin and then its argument prototype would still apply.  */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char dlopen ();
13103 int
13104 main ()
13105 {
13106 return dlopen ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112   ac_cv_lib_dl_dlopen=yes
13113 else
13114   ac_cv_lib_dl_dlopen=no
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext \
13117     conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13121 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13122 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13123   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13124 else
13125
13126     lt_cv_dlopen="dyld"
13127     lt_cv_dlopen_libs=
13128     lt_cv_dlopen_self=yes
13129
13130 fi
13131
13132     ;;
13133
13134   *)
13135     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13136 if test "x$ac_cv_func_shl_load" = x""yes; then :
13137   lt_cv_dlopen="shl_load"
13138 else
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13140 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13142   $as_echo_n "(cached) " >&6
13143 else
13144   ac_check_lib_save_LIBS=$LIBS
13145 LIBS="-ldld  $LIBS"
13146 if test x$gcc_no_link = xyes; then
13147   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13148 fi
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h.  */
13151
13152 /* Override any GCC internal prototype to avoid an error.
13153    Use char because int might match the return type of a GCC
13154    builtin and then its argument prototype would still apply.  */
13155 #ifdef __cplusplus
13156 extern "C"
13157 #endif
13158 char shl_load ();
13159 int
13160 main ()
13161 {
13162 return shl_load ();
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 if ac_fn_c_try_link "$LINENO"; then :
13168   ac_cv_lib_dld_shl_load=yes
13169 else
13170   ac_cv_lib_dld_shl_load=no
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext \
13173     conftest$ac_exeext conftest.$ac_ext
13174 LIBS=$ac_check_lib_save_LIBS
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13177 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13178 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13179   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13180 else
13181   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13182 if test "x$ac_cv_func_dlopen" = x""yes; then :
13183   lt_cv_dlopen="dlopen"
13184 else
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13188   $as_echo_n "(cached) " >&6
13189 else
13190   ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-ldl  $LIBS"
13192 if test x$gcc_no_link = xyes; then
13193   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13194 fi
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h.  */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199    Use char because int might match the return type of a GCC
13200    builtin and then its argument prototype would still apply.  */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char dlopen ();
13205 int
13206 main ()
13207 {
13208 return dlopen ();
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214   ac_cv_lib_dl_dlopen=yes
13215 else
13216   ac_cv_lib_dl_dlopen=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext \
13219     conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13223 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13224 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13225   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13226 else
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13228 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13229 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13230   $as_echo_n "(cached) " >&6
13231 else
13232   ac_check_lib_save_LIBS=$LIBS
13233 LIBS="-lsvld  $LIBS"
13234 if test x$gcc_no_link = xyes; then
13235   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13236 fi
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h.  */
13239
13240 /* Override any GCC internal prototype to avoid an error.
13241    Use char because int might match the return type of a GCC
13242    builtin and then its argument prototype would still apply.  */
13243 #ifdef __cplusplus
13244 extern "C"
13245 #endif
13246 char dlopen ();
13247 int
13248 main ()
13249 {
13250 return dlopen ();
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256   ac_cv_lib_svld_dlopen=yes
13257 else
13258   ac_cv_lib_svld_dlopen=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261     conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13263 fi
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13265 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13266 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13267   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13268 else
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13270 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13271 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13272   $as_echo_n "(cached) " >&6
13273 else
13274   ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-ldld  $LIBS"
13276 if test x$gcc_no_link = xyes; then
13277   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13278 fi
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h.  */
13281
13282 /* Override any GCC internal prototype to avoid an error.
13283    Use char because int might match the return type of a GCC
13284    builtin and then its argument prototype would still apply.  */
13285 #ifdef __cplusplus
13286 extern "C"
13287 #endif
13288 char dld_link ();
13289 int
13290 main ()
13291 {
13292 return dld_link ();
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298   ac_cv_lib_dld_dld_link=yes
13299 else
13300   ac_cv_lib_dld_dld_link=no
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext \
13303     conftest$ac_exeext conftest.$ac_ext
13304 LIBS=$ac_check_lib_save_LIBS
13305 fi
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13307 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13308 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13310 fi
13311
13312
13313 fi
13314
13315
13316 fi
13317
13318
13319 fi
13320
13321
13322 fi
13323
13324
13325 fi
13326
13327     ;;
13328   esac
13329
13330   if test "x$lt_cv_dlopen" != xno; then
13331     enable_dlopen=yes
13332   else
13333     enable_dlopen=no
13334   fi
13335
13336   case $lt_cv_dlopen in
13337   dlopen)
13338     save_CPPFLAGS="$CPPFLAGS"
13339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13340
13341     save_LDFLAGS="$LDFLAGS"
13342     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13343
13344     save_LIBS="$LIBS"
13345     LIBS="$lt_cv_dlopen_libs $LIBS"
13346
13347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13348 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13349 if test "${lt_cv_dlopen_self+set}" = set; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352           if test "$cross_compiling" = yes; then :
13353   lt_cv_dlopen_self=cross
13354 else
13355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13356   lt_status=$lt_dlunknown
13357   cat > conftest.$ac_ext <<_LT_EOF
13358 #line 13358 "configure"
13359 #include "confdefs.h"
13360
13361 #if HAVE_DLFCN_H
13362 #include <dlfcn.h>
13363 #endif
13364
13365 #include <stdio.h>
13366
13367 #ifdef RTLD_GLOBAL
13368 #  define LT_DLGLOBAL           RTLD_GLOBAL
13369 #else
13370 #  ifdef DL_GLOBAL
13371 #    define LT_DLGLOBAL         DL_GLOBAL
13372 #  else
13373 #    define LT_DLGLOBAL         0
13374 #  endif
13375 #endif
13376
13377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13378    find out it does not work in some platform. */
13379 #ifndef LT_DLLAZY_OR_NOW
13380 #  ifdef RTLD_LAZY
13381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13382 #  else
13383 #    ifdef DL_LAZY
13384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13385 #    else
13386 #      ifdef RTLD_NOW
13387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13388 #      else
13389 #        ifdef DL_NOW
13390 #          define LT_DLLAZY_OR_NOW      DL_NOW
13391 #        else
13392 #          define LT_DLLAZY_OR_NOW      0
13393 #        endif
13394 #      endif
13395 #    endif
13396 #  endif
13397 #endif
13398
13399 /* When -fvisbility=hidden is used, assume the code has been annotated
13400    correspondingly for the symbols needed.  */
13401 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13402 void fnord () __attribute__((visibility("default")));
13403 #endif
13404
13405 void fnord () { int i=42; }
13406 int main ()
13407 {
13408   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13409   int status = $lt_dlunknown;
13410
13411   if (self)
13412     {
13413       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13414       else
13415         {
13416           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13417           else puts (dlerror ());
13418         }
13419       /* dlclose (self); */
13420     }
13421   else
13422     puts (dlerror ());
13423
13424   return status;
13425 }
13426 _LT_EOF
13427   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13428   (eval $ac_link) 2>&5
13429   ac_status=$?
13430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13431   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13432     (./conftest; exit; ) >&5 2>/dev/null
13433     lt_status=$?
13434     case x$lt_status in
13435       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13436       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13437       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13438     esac
13439   else :
13440     # compilation failed
13441     lt_cv_dlopen_self=no
13442   fi
13443 fi
13444 rm -fr conftest*
13445
13446
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13449 $as_echo "$lt_cv_dlopen_self" >&6; }
13450
13451     if test "x$lt_cv_dlopen_self" = xyes; then
13452       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13454 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13455 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13456   $as_echo_n "(cached) " >&6
13457 else
13458           if test "$cross_compiling" = yes; then :
13459   lt_cv_dlopen_self_static=cross
13460 else
13461   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13462   lt_status=$lt_dlunknown
13463   cat > conftest.$ac_ext <<_LT_EOF
13464 #line 13464 "configure"
13465 #include "confdefs.h"
13466
13467 #if HAVE_DLFCN_H
13468 #include <dlfcn.h>
13469 #endif
13470
13471 #include <stdio.h>
13472
13473 #ifdef RTLD_GLOBAL
13474 #  define LT_DLGLOBAL           RTLD_GLOBAL
13475 #else
13476 #  ifdef DL_GLOBAL
13477 #    define LT_DLGLOBAL         DL_GLOBAL
13478 #  else
13479 #    define LT_DLGLOBAL         0
13480 #  endif
13481 #endif
13482
13483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13484    find out it does not work in some platform. */
13485 #ifndef LT_DLLAZY_OR_NOW
13486 #  ifdef RTLD_LAZY
13487 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13488 #  else
13489 #    ifdef DL_LAZY
13490 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13491 #    else
13492 #      ifdef RTLD_NOW
13493 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13494 #      else
13495 #        ifdef DL_NOW
13496 #          define LT_DLLAZY_OR_NOW      DL_NOW
13497 #        else
13498 #          define LT_DLLAZY_OR_NOW      0
13499 #        endif
13500 #      endif
13501 #    endif
13502 #  endif
13503 #endif
13504
13505 /* When -fvisbility=hidden is used, assume the code has been annotated
13506    correspondingly for the symbols needed.  */
13507 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13508 void fnord () __attribute__((visibility("default")));
13509 #endif
13510
13511 void fnord () { int i=42; }
13512 int main ()
13513 {
13514   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13515   int status = $lt_dlunknown;
13516
13517   if (self)
13518     {
13519       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13520       else
13521         {
13522           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13523           else puts (dlerror ());
13524         }
13525       /* dlclose (self); */
13526     }
13527   else
13528     puts (dlerror ());
13529
13530   return status;
13531 }
13532 _LT_EOF
13533   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13534   (eval $ac_link) 2>&5
13535   ac_status=$?
13536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13538     (./conftest; exit; ) >&5 2>/dev/null
13539     lt_status=$?
13540     case x$lt_status in
13541       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13542       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13543       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13544     esac
13545   else :
13546     # compilation failed
13547     lt_cv_dlopen_self_static=no
13548   fi
13549 fi
13550 rm -fr conftest*
13551
13552
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13555 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13556     fi
13557
13558     CPPFLAGS="$save_CPPFLAGS"
13559     LDFLAGS="$save_LDFLAGS"
13560     LIBS="$save_LIBS"
13561     ;;
13562   esac
13563
13564   case $lt_cv_dlopen_self in
13565   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13566   *) enable_dlopen_self=unknown ;;
13567   esac
13568
13569   case $lt_cv_dlopen_self_static in
13570   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13571   *) enable_dlopen_self_static=unknown ;;
13572   esac
13573 fi
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591 striplib=
13592 old_striplib=
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13595 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13596   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13597   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13599 $as_echo "yes" >&6; }
13600 else
13601 # FIXME - insert some real tests, host_os isn't really good enough
13602   case $host_os in
13603   darwin*)
13604     if test -n "$STRIP" ; then
13605       striplib="$STRIP -x"
13606       old_striplib="$STRIP -S"
13607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609     else
13610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13612     fi
13613     ;;
13614   *)
13615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617     ;;
13618   esac
13619 fi
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632   # Report which library types will actually be built
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13634 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13636 $as_echo "$can_build_shared" >&6; }
13637
13638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13639 $as_echo_n "checking whether to build shared libraries... " >&6; }
13640   test "$can_build_shared" = "no" && enable_shared=no
13641
13642   # On AIX, shared libraries and static libraries use the same namespace, and
13643   # are all built from PIC.
13644   case $host_os in
13645   aix3*)
13646     test "$enable_shared" = yes && enable_static=no
13647     if test -n "$RANLIB"; then
13648       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13649       postinstall_cmds='$RANLIB $lib'
13650     fi
13651     ;;
13652
13653   aix[4-9]*)
13654     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13655       test "$enable_shared" = yes && enable_static=no
13656     fi
13657     ;;
13658   esac
13659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13660 $as_echo "$enable_shared" >&6; }
13661
13662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13663 $as_echo_n "checking whether to build static libraries... " >&6; }
13664   # Make sure either enable_shared or enable_static is yes.
13665   test "$enable_shared" = yes || enable_static=yes
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13667 $as_echo "$enable_static" >&6; }
13668
13669
13670
13671
13672 fi
13673 ac_ext=c
13674 ac_cpp='$CPP $CPPFLAGS'
13675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679 CC="$lt_save_CC"
13680
13681       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13682     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13683     (test "X$CXX" != "Xg++"))) ; then
13684   ac_ext=cpp
13685 ac_cpp='$CXXCPP $CPPFLAGS'
13686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13690 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13691 if test -z "$CXXCPP"; then
13692   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13693   $as_echo_n "(cached) " >&6
13694 else
13695       # Double quotes because CXXCPP needs to be expanded
13696     for CXXCPP in "$CXX -E" "/lib/cpp"
13697     do
13698       ac_preproc_ok=false
13699 for ac_cxx_preproc_warn_flag in '' yes
13700 do
13701   # Use a header file that comes with gcc, so configuring glibc
13702   # with a fresh cross-compiler works.
13703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13704   # <limits.h> exists even on freestanding compilers.
13705   # On the NeXT, cc -E runs the code through the compiler's parser,
13706   # not just through cpp. "Syntax error" is here to catch this case.
13707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h.  */
13709 #ifdef __STDC__
13710 # include <limits.h>
13711 #else
13712 # include <assert.h>
13713 #endif
13714                      Syntax error
13715 _ACEOF
13716 if ac_fn_cxx_try_cpp "$LINENO"; then :
13717
13718 else
13719   # Broken: fails on valid input.
13720 continue
13721 fi
13722 rm -f conftest.err conftest.$ac_ext
13723
13724   # OK, works on sane cases.  Now check whether nonexistent headers
13725   # can be detected and how.
13726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h.  */
13728 #include <ac_nonexistent.h>
13729 _ACEOF
13730 if ac_fn_cxx_try_cpp "$LINENO"; then :
13731   # Broken: success on invalid input.
13732 continue
13733 else
13734   # Passes both tests.
13735 ac_preproc_ok=:
13736 break
13737 fi
13738 rm -f conftest.err conftest.$ac_ext
13739
13740 done
13741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13742 rm -f conftest.err conftest.$ac_ext
13743 if $ac_preproc_ok; then :
13744   break
13745 fi
13746
13747     done
13748     ac_cv_prog_CXXCPP=$CXXCPP
13749
13750 fi
13751   CXXCPP=$ac_cv_prog_CXXCPP
13752 else
13753   ac_cv_prog_CXXCPP=$CXXCPP
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13756 $as_echo "$CXXCPP" >&6; }
13757 ac_preproc_ok=false
13758 for ac_cxx_preproc_warn_flag in '' yes
13759 do
13760   # Use a header file that comes with gcc, so configuring glibc
13761   # with a fresh cross-compiler works.
13762   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13763   # <limits.h> exists even on freestanding compilers.
13764   # On the NeXT, cc -E runs the code through the compiler's parser,
13765   # not just through cpp. "Syntax error" is here to catch this case.
13766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h.  */
13768 #ifdef __STDC__
13769 # include <limits.h>
13770 #else
13771 # include <assert.h>
13772 #endif
13773                      Syntax error
13774 _ACEOF
13775 if ac_fn_cxx_try_cpp "$LINENO"; then :
13776
13777 else
13778   # Broken: fails on valid input.
13779 continue
13780 fi
13781 rm -f conftest.err conftest.$ac_ext
13782
13783   # OK, works on sane cases.  Now check whether nonexistent headers
13784   # can be detected and how.
13785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h.  */
13787 #include <ac_nonexistent.h>
13788 _ACEOF
13789 if ac_fn_cxx_try_cpp "$LINENO"; then :
13790   # Broken: success on invalid input.
13791 continue
13792 else
13793   # Passes both tests.
13794 ac_preproc_ok=:
13795 break
13796 fi
13797 rm -f conftest.err conftest.$ac_ext
13798
13799 done
13800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13801 rm -f conftest.err conftest.$ac_ext
13802 if $ac_preproc_ok; then :
13803
13804 else
13805   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13807 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13808 See \`config.log' for more details." "$LINENO" 5; }
13809 fi
13810
13811 ac_ext=c
13812 ac_cpp='$CPP $CPPFLAGS'
13813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13816
13817 else
13818   _lt_caught_CXX_error=yes
13819 fi
13820
13821 ac_ext=cpp
13822 ac_cpp='$CXXCPP $CPPFLAGS'
13823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13826
13827 archive_cmds_need_lc_CXX=no
13828 allow_undefined_flag_CXX=
13829 always_export_symbols_CXX=no
13830 archive_expsym_cmds_CXX=
13831 compiler_needs_object_CXX=no
13832 export_dynamic_flag_spec_CXX=
13833 hardcode_direct_CXX=no
13834 hardcode_direct_absolute_CXX=no
13835 hardcode_libdir_flag_spec_CXX=
13836 hardcode_libdir_flag_spec_ld_CXX=
13837 hardcode_libdir_separator_CXX=
13838 hardcode_minus_L_CXX=no
13839 hardcode_shlibpath_var_CXX=unsupported
13840 hardcode_automatic_CXX=no
13841 inherit_rpath_CXX=no
13842 module_cmds_CXX=
13843 module_expsym_cmds_CXX=
13844 link_all_deplibs_CXX=unknown
13845 old_archive_cmds_CXX=$old_archive_cmds
13846 reload_flag_CXX=$reload_flag
13847 reload_cmds_CXX=$reload_cmds
13848 no_undefined_flag_CXX=
13849 whole_archive_flag_spec_CXX=
13850 enable_shared_with_static_runtimes_CXX=no
13851
13852 # Source file extension for C++ test sources.
13853 ac_ext=cpp
13854
13855 # Object file extension for compiled C++ test sources.
13856 objext=o
13857 objext_CXX=$objext
13858
13859 # No sense in running all these tests if we already determined that
13860 # the CXX compiler isn't working.  Some variables (like enable_shared)
13861 # are currently assumed to apply to all compilers on this platform,
13862 # and will be corrupted by setting them based on a non-working compiler.
13863 if test "$_lt_caught_CXX_error" != yes; then
13864   # Code to be used in simple compile tests
13865   lt_simple_compile_test_code="int some_variable = 0;"
13866
13867   # Code to be used in simple link tests
13868   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13869
13870   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13871
13872
13873
13874
13875
13876
13877 # If no C compiler was specified, use CC.
13878 LTCC=${LTCC-"$CC"}
13879
13880 # If no C compiler flags were specified, use CFLAGS.
13881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13882
13883 # Allow CC to be a program name with arguments.
13884 compiler=$CC
13885
13886
13887   # save warnings/boilerplate of simple test code
13888   ac_outfile=conftest.$ac_objext
13889 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13891 _lt_compiler_boilerplate=`cat conftest.err`
13892 $RM conftest*
13893
13894   ac_outfile=conftest.$ac_objext
13895 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13897 _lt_linker_boilerplate=`cat conftest.err`
13898 $RM -r conftest*
13899
13900
13901   # Allow CC to be a program name with arguments.
13902   lt_save_CC=$CC
13903   lt_save_LD=$LD
13904   lt_save_GCC=$GCC
13905   GCC=$GXX
13906   lt_save_with_gnu_ld=$with_gnu_ld
13907   lt_save_path_LD=$lt_cv_path_LD
13908   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13909     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13910   else
13911     $as_unset lt_cv_prog_gnu_ld
13912   fi
13913   if test -n "${lt_cv_path_LDCXX+set}"; then
13914     lt_cv_path_LD=$lt_cv_path_LDCXX
13915   else
13916     $as_unset lt_cv_path_LD
13917   fi
13918   test -z "${LDCXX+set}" || LD=$LDCXX
13919   CC=${CXX-"c++"}
13920   compiler=$CC
13921   compiler_CXX=$CC
13922   for cc_temp in $compiler""; do
13923   case $cc_temp in
13924     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13925     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13926     \-*) ;;
13927     *) break;;
13928   esac
13929 done
13930 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13931
13932
13933   if test -n "$compiler"; then
13934     # We don't want -fno-exception when compiling C++ code, so set the
13935     # no_builtin_flag separately
13936     if test "$GXX" = yes; then
13937       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13938     else
13939       lt_prog_compiler_no_builtin_flag_CXX=
13940     fi
13941
13942     if test "$GXX" = yes; then
13943       # Set up default GNU C++ configuration
13944
13945
13946
13947 # Check whether --with-gnu-ld was given.
13948 if test "${with_gnu_ld+set}" = set; then :
13949   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13950 else
13951   with_gnu_ld=no
13952 fi
13953
13954 ac_prog=ld
13955 if test "$GCC" = yes; then
13956   # Check if gcc -print-prog-name=ld gives a path.
13957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13958 $as_echo_n "checking for ld used by $CC... " >&6; }
13959   case $host in
13960   *-*-mingw*)
13961     # gcc leaves a trailing carriage return which upsets mingw
13962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13963   *)
13964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13965   esac
13966   case $ac_prog in
13967     # Accept absolute paths.
13968     [\\/]* | ?:[\\/]*)
13969       re_direlt='/[^/][^/]*/\.\./'
13970       # Canonicalize the pathname of ld
13971       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13972       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13973         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13974       done
13975       test -z "$LD" && LD="$ac_prog"
13976       ;;
13977   "")
13978     # If it fails, then pretend we aren't using GCC.
13979     ac_prog=ld
13980     ;;
13981   *)
13982     # If it is relative, then search for the first ld in PATH.
13983     with_gnu_ld=unknown
13984     ;;
13985   esac
13986 elif test "$with_gnu_ld" = yes; then
13987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13988 $as_echo_n "checking for GNU ld... " >&6; }
13989 else
13990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13991 $as_echo_n "checking for non-GNU ld... " >&6; }
13992 fi
13993 if test "${lt_cv_path_LD+set}" = set; then :
13994   $as_echo_n "(cached) " >&6
13995 else
13996   if test -z "$LD"; then
13997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13998   for ac_dir in $PATH; do
13999     IFS="$lt_save_ifs"
14000     test -z "$ac_dir" && ac_dir=.
14001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14002       lt_cv_path_LD="$ac_dir/$ac_prog"
14003       # Check to see if the program is GNU ld.  I'd rather use --version,
14004       # but apparently some variants of GNU ld only accept -v.
14005       # Break only if it was the GNU/non-GNU ld that we prefer.
14006       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14007       *GNU* | *'with BFD'*)
14008         test "$with_gnu_ld" != no && break
14009         ;;
14010       *)
14011         test "$with_gnu_ld" != yes && break
14012         ;;
14013       esac
14014     fi
14015   done
14016   IFS="$lt_save_ifs"
14017 else
14018   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14019 fi
14020 fi
14021
14022 LD="$lt_cv_path_LD"
14023 if test -n "$LD"; then
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14025 $as_echo "$LD" >&6; }
14026 else
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028 $as_echo "no" >&6; }
14029 fi
14030 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14033 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14034   $as_echo_n "(cached) " >&6
14035 else
14036   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14037 case `$LD -v 2>&1 </dev/null` in
14038 *GNU* | *'with BFD'*)
14039   lt_cv_prog_gnu_ld=yes
14040   ;;
14041 *)
14042   lt_cv_prog_gnu_ld=no
14043   ;;
14044 esac
14045 fi
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14047 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14048 with_gnu_ld=$lt_cv_prog_gnu_ld
14049
14050
14051
14052
14053
14054
14055
14056       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14057       # archiving commands below assume that GNU ld is being used.
14058       if test "$with_gnu_ld" = yes; then
14059         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14060         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'
14061
14062         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14063         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14064
14065         # If archive_cmds runs LD, not CC, wlarc should be empty
14066         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14067         #     investigate it a little bit more. (MM)
14068         wlarc='${wl}'
14069
14070         # ancient GNU ld didn't support --whole-archive et. al.
14071         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14072           $GREP 'no-whole-archive' > /dev/null; then
14073           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14074         else
14075           whole_archive_flag_spec_CXX=
14076         fi
14077       else
14078         with_gnu_ld=no
14079         wlarc=
14080
14081         # A generic and very simple default shared library creation
14082         # command for GNU C++ for the case where it uses the native
14083         # linker, instead of GNU ld.  If possible, this setting should
14084         # overridden to take advantage of the native linker features on
14085         # the platform it is being used on.
14086         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14087       fi
14088
14089       # Commands to make compiler produce verbose output that lists
14090       # what "hidden" libraries, object files and flags are used when
14091       # linking a shared library.
14092       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14093
14094     else
14095       GXX=no
14096       with_gnu_ld=no
14097       wlarc=
14098     fi
14099
14100     # PORTME: fill in a description of your system's C++ link characteristics
14101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14103     ld_shlibs_CXX=yes
14104     case $host_os in
14105       aix3*)
14106         # FIXME: insert proper C++ library support
14107         ld_shlibs_CXX=no
14108         ;;
14109       aix[4-9]*)
14110         if test "$host_cpu" = ia64; then
14111           # On IA64, the linker does run time linking by default, so we don't
14112           # have to do anything special.
14113           aix_use_runtimelinking=no
14114           exp_sym_flag='-Bexport'
14115           no_entry_flag=""
14116         else
14117           aix_use_runtimelinking=no
14118
14119           # Test if we are trying to use run time linking or normal
14120           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14121           # need to do runtime linking.
14122           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14123             for ld_flag in $LDFLAGS; do
14124               case $ld_flag in
14125               *-brtl*)
14126                 aix_use_runtimelinking=yes
14127                 break
14128                 ;;
14129               esac
14130             done
14131             ;;
14132           esac
14133
14134           exp_sym_flag='-bexport'
14135           no_entry_flag='-bnoentry'
14136         fi
14137
14138         # When large executables or shared objects are built, AIX ld can
14139         # have problems creating the table of contents.  If linking a library
14140         # or program results in "error TOC overflow" add -mminimal-toc to
14141         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14142         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14143
14144         archive_cmds_CXX=''
14145         hardcode_direct_CXX=yes
14146         hardcode_direct_absolute_CXX=yes
14147         hardcode_libdir_separator_CXX=':'
14148         link_all_deplibs_CXX=yes
14149         file_list_spec_CXX='${wl}-f,'
14150
14151         if test "$GXX" = yes; then
14152           case $host_os in aix4.[012]|aix4.[012].*)
14153           # We only want to do this on AIX 4.2 and lower, the check
14154           # below for broken collect2 doesn't work under 4.3+
14155           collect2name=`${CC} -print-prog-name=collect2`
14156           if test -f "$collect2name" &&
14157              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14158           then
14159             # We have reworked collect2
14160             :
14161           else
14162             # We have old collect2
14163             hardcode_direct_CXX=unsupported
14164             # It fails to find uninstalled libraries when the uninstalled
14165             # path is not listed in the libpath.  Setting hardcode_minus_L
14166             # to unsupported forces relinking
14167             hardcode_minus_L_CXX=yes
14168             hardcode_libdir_flag_spec_CXX='-L$libdir'
14169             hardcode_libdir_separator_CXX=
14170           fi
14171           esac
14172           shared_flag='-shared'
14173           if test "$aix_use_runtimelinking" = yes; then
14174             shared_flag="$shared_flag "'${wl}-G'
14175           fi
14176         else
14177           # not using gcc
14178           if test "$host_cpu" = ia64; then
14179           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14180           # chokes on -Wl,-G. The following line is correct:
14181           shared_flag='-G'
14182           else
14183             if test "$aix_use_runtimelinking" = yes; then
14184               shared_flag='${wl}-G'
14185             else
14186               shared_flag='${wl}-bM:SRE'
14187             fi
14188           fi
14189         fi
14190
14191         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14192         # It seems that -bexpall does not export symbols beginning with
14193         # underscore (_), so it is better to generate a list of symbols to
14194         # export.
14195         always_export_symbols_CXX=yes
14196         if test "$aix_use_runtimelinking" = yes; then
14197           # Warning - without using the other runtime loading flags (-brtl),
14198           # -berok will link without error, but may produce a broken library.
14199           allow_undefined_flag_CXX='-berok'
14200           # Determine the default libpath from the value encoded in an empty
14201           # executable.
14202           if test x$gcc_no_link = xyes; then
14203   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14204 fi
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h.  */
14207
14208 int
14209 main ()
14210 {
14211
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 if ac_fn_cxx_try_link "$LINENO"; then :
14217
14218 lt_aix_libpath_sed='
14219     /Import File Strings/,/^$/ {
14220         /^0/ {
14221             s/^0  *\(.*\)$/\1/
14222             p
14223         }
14224     }'
14225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14226 # Check for a 64-bit object if we didn't find anything.
14227 if test -z "$aix_libpath"; then
14228   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14229 fi
14230 fi
14231 rm -f core conftest.err conftest.$ac_objext \
14232     conftest$ac_exeext conftest.$ac_ext
14233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14234
14235           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14236
14237           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"
14238         else
14239           if test "$host_cpu" = ia64; then
14240             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14241             allow_undefined_flag_CXX="-z nodefs"
14242             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"
14243           else
14244             # Determine the default libpath from the value encoded in an
14245             # empty executable.
14246             if test x$gcc_no_link = xyes; then
14247   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14248 fi
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h.  */
14251
14252 int
14253 main ()
14254 {
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_cxx_try_link "$LINENO"; then :
14261
14262 lt_aix_libpath_sed='
14263     /Import File Strings/,/^$/ {
14264         /^0/ {
14265             s/^0  *\(.*\)$/\1/
14266             p
14267         }
14268     }'
14269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14270 # Check for a 64-bit object if we didn't find anything.
14271 if test -z "$aix_libpath"; then
14272   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14273 fi
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext \
14276     conftest$ac_exeext conftest.$ac_ext
14277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14278
14279             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14280             # Warning - without using the other run time loading flags,
14281             # -berok will link without error, but may produce a broken library.
14282             no_undefined_flag_CXX=' ${wl}-bernotok'
14283             allow_undefined_flag_CXX=' ${wl}-berok'
14284             if test "$with_gnu_ld" = yes; then
14285               # We only use this code for GNU lds that support --whole-archive.
14286               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14287             else
14288               # Exported symbols can be pulled into shared objects from archives
14289               whole_archive_flag_spec_CXX='$convenience'
14290             fi
14291             archive_cmds_need_lc_CXX=yes
14292             # This is similar to how AIX traditionally builds its shared
14293             # libraries.
14294             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'
14295           fi
14296         fi
14297         ;;
14298
14299       beos*)
14300         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14301           allow_undefined_flag_CXX=unsupported
14302           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14303           # support --undefined.  This deserves some investigation.  FIXME
14304           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14305         else
14306           ld_shlibs_CXX=no
14307         fi
14308         ;;
14309
14310       chorus*)
14311         case $cc_basename in
14312           *)
14313           # FIXME: insert proper C++ library support
14314           ld_shlibs_CXX=no
14315           ;;
14316         esac
14317         ;;
14318
14319       cygwin* | mingw* | pw32* | cegcc*)
14320         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14321         # as there is no search path for DLLs.
14322         hardcode_libdir_flag_spec_CXX='-L$libdir'
14323         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14324         allow_undefined_flag_CXX=unsupported
14325         always_export_symbols_CXX=no
14326         enable_shared_with_static_runtimes_CXX=yes
14327
14328         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14329           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'
14330           # If the export-symbols file already is a .def file (1st line
14331           # is EXPORTS), use it as is; otherwise, prepend...
14332           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14333             cp $export_symbols $output_objdir/$soname.def;
14334           else
14335             echo EXPORTS > $output_objdir/$soname.def;
14336             cat $export_symbols >> $output_objdir/$soname.def;
14337           fi~
14338           $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'
14339         else
14340           ld_shlibs_CXX=no
14341         fi
14342         ;;
14343       darwin* | rhapsody*)
14344
14345
14346   archive_cmds_need_lc_CXX=no
14347   hardcode_direct_CXX=no
14348   hardcode_automatic_CXX=yes
14349   hardcode_shlibpath_var_CXX=unsupported
14350   if test "$lt_cv_ld_force_load" = "yes"; then
14351     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\"`'
14352   else
14353     whole_archive_flag_spec_CXX=''
14354   fi
14355   link_all_deplibs_CXX=yes
14356   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14357   case $cc_basename in
14358      ifort*) _lt_dar_can_shared=yes ;;
14359      *) _lt_dar_can_shared=$GCC ;;
14360   esac
14361   if test "$_lt_dar_can_shared" = "yes"; then
14362     output_verbose_link_cmd=func_echo_all
14363     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}"
14364     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14365     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}"
14366     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}"
14367        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14368       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}"
14369       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}"
14370     fi
14371
14372   else
14373   ld_shlibs_CXX=no
14374   fi
14375
14376         ;;
14377
14378       dgux*)
14379         case $cc_basename in
14380           ec++*)
14381             # FIXME: insert proper C++ library support
14382             ld_shlibs_CXX=no
14383             ;;
14384           ghcx*)
14385             # Green Hills C++ Compiler
14386             # FIXME: insert proper C++ library support
14387             ld_shlibs_CXX=no
14388             ;;
14389           *)
14390             # FIXME: insert proper C++ library support
14391             ld_shlibs_CXX=no
14392             ;;
14393         esac
14394         ;;
14395
14396       freebsd[12]*)
14397         # C++ shared libraries reported to be fairly broken before
14398         # switch to ELF
14399         ld_shlibs_CXX=no
14400         ;;
14401
14402       freebsd-elf*)
14403         archive_cmds_need_lc_CXX=no
14404         ;;
14405
14406       freebsd* | dragonfly*)
14407         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14408         # conventions
14409         ld_shlibs_CXX=yes
14410         ;;
14411
14412       gnu*)
14413         ;;
14414
14415       haiku*)
14416         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14417         link_all_deplibs_CXX=yes
14418         ;;
14419
14420       hpux9*)
14421         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14422         hardcode_libdir_separator_CXX=:
14423         export_dynamic_flag_spec_CXX='${wl}-E'
14424         hardcode_direct_CXX=yes
14425         hardcode_minus_L_CXX=yes # Not in the search PATH,
14426                                              # but as the default
14427                                              # location of the library.
14428
14429         case $cc_basename in
14430           CC*)
14431             # FIXME: insert proper C++ library support
14432             ld_shlibs_CXX=no
14433             ;;
14434           aCC*)
14435             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'
14436             # Commands to make compiler produce verbose output that lists
14437             # what "hidden" libraries, object files and flags are used when
14438             # linking a shared library.
14439             #
14440             # There doesn't appear to be a way to prevent this compiler from
14441             # explicitly linking system object files so we need to strip them
14442             # from the output so that they don't get included in the library
14443             # dependencies.
14444             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"'
14445             ;;
14446           *)
14447             if test "$GXX" = yes; then
14448               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'
14449             else
14450               # FIXME: insert proper C++ library support
14451               ld_shlibs_CXX=no
14452             fi
14453             ;;
14454         esac
14455         ;;
14456
14457       hpux10*|hpux11*)
14458         if test $with_gnu_ld = no; then
14459           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14460           hardcode_libdir_separator_CXX=:
14461
14462           case $host_cpu in
14463             hppa*64*|ia64*)
14464               ;;
14465             *)
14466               export_dynamic_flag_spec_CXX='${wl}-E'
14467               ;;
14468           esac
14469         fi
14470         case $host_cpu in
14471           hppa*64*|ia64*)
14472             hardcode_direct_CXX=no
14473             hardcode_shlibpath_var_CXX=no
14474             ;;
14475           *)
14476             hardcode_direct_CXX=yes
14477             hardcode_direct_absolute_CXX=yes
14478             hardcode_minus_L_CXX=yes # Not in the search PATH,
14479                                                  # but as the default
14480                                                  # location of the library.
14481             ;;
14482         esac
14483
14484         case $cc_basename in
14485           CC*)
14486             # FIXME: insert proper C++ library support
14487             ld_shlibs_CXX=no
14488             ;;
14489           aCC*)
14490             case $host_cpu in
14491               hppa*64*)
14492                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14493                 ;;
14494               ia64*)
14495                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14496                 ;;
14497               *)
14498                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14499                 ;;
14500             esac
14501             # Commands to make compiler produce verbose output that lists
14502             # what "hidden" libraries, object files and flags are used when
14503             # linking a shared library.
14504             #
14505             # There doesn't appear to be a way to prevent this compiler from
14506             # explicitly linking system object files so we need to strip them
14507             # from the output so that they don't get included in the library
14508             # dependencies.
14509             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"'
14510             ;;
14511           *)
14512             if test "$GXX" = yes; then
14513               if test $with_gnu_ld = no; then
14514                 case $host_cpu in
14515                   hppa*64*)
14516                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517                     ;;
14518                   ia64*)
14519                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14520                     ;;
14521                   *)
14522                     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'
14523                     ;;
14524                 esac
14525               fi
14526             else
14527               # FIXME: insert proper C++ library support
14528               ld_shlibs_CXX=no
14529             fi
14530             ;;
14531         esac
14532         ;;
14533
14534       interix[3-9]*)
14535         hardcode_direct_CXX=no
14536         hardcode_shlibpath_var_CXX=no
14537         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14538         export_dynamic_flag_spec_CXX='${wl}-E'
14539         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14540         # Instead, shared libraries are loaded at an image base (0x10000000 by
14541         # default) and relocated if they conflict, which is a slow very memory
14542         # consuming and fragmenting process.  To avoid this, we pick a random,
14543         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14544         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14545         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'
14546         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'
14547         ;;
14548       irix5* | irix6*)
14549         case $cc_basename in
14550           CC*)
14551             # SGI C++
14552             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'
14553
14554             # Archives containing C++ object files must be created using
14555             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14556             # necessary to make sure instantiated templates are included
14557             # in the archive.
14558             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14559             ;;
14560           *)
14561             if test "$GXX" = yes; then
14562               if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14564               else
14565                 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'
14566               fi
14567             fi
14568             link_all_deplibs_CXX=yes
14569             ;;
14570         esac
14571         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14572         hardcode_libdir_separator_CXX=:
14573         inherit_rpath_CXX=yes
14574         ;;
14575
14576       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14577         case $cc_basename in
14578           KCC*)
14579             # Kuck and Associates, Inc. (KAI) C++ Compiler
14580
14581             # KCC will only create a shared library if the output file
14582             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14583             # to its proper name (with version) after linking.
14584             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'
14585             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'
14586             # Commands to make compiler produce verbose output that lists
14587             # what "hidden" libraries, object files and flags are used when
14588             # linking a shared library.
14589             #
14590             # There doesn't appear to be a way to prevent this compiler from
14591             # explicitly linking system object files so we need to strip them
14592             # from the output so that they don't get included in the library
14593             # dependencies.
14594             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"'
14595
14596             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14597             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14598
14599             # Archives containing C++ object files must be created using
14600             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14601             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14602             ;;
14603           icpc* | ecpc* )
14604             # Intel C++
14605             with_gnu_ld=yes
14606             # version 8.0 and above of icpc choke on multiply defined symbols
14607             # if we add $predep_objects and $postdep_objects, however 7.1 and
14608             # earlier do not add the objects themselves.
14609             case `$CC -V 2>&1` in
14610               *"Version 7."*)
14611                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14612                 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'
14613                 ;;
14614               *)  # Version 8.0 or newer
14615                 tmp_idyn=
14616                 case $host_cpu in
14617                   ia64*) tmp_idyn=' -i_dynamic';;
14618                 esac
14619                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14620                 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'
14621                 ;;
14622             esac
14623             archive_cmds_need_lc_CXX=no
14624             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14625             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14626             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14627             ;;
14628           pgCC* | pgcpp*)
14629             # Portland Group C++ compiler
14630             case `$CC -V` in
14631             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14632               prelink_cmds_CXX='tpldir=Template.dir~
14633                 rm -rf $tpldir~
14634                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14635                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14636               old_archive_cmds_CXX='tpldir=Template.dir~
14637                 rm -rf $tpldir~
14638                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14639                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14640                 $RANLIB $oldlib'
14641               archive_cmds_CXX='tpldir=Template.dir~
14642                 rm -rf $tpldir~
14643                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14644                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14645               archive_expsym_cmds_CXX='tpldir=Template.dir~
14646                 rm -rf $tpldir~
14647                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14648                 $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'
14649               ;;
14650             *) # Version 6 and above use weak symbols
14651               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14652               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'
14653               ;;
14654             esac
14655
14656             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14657             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14658             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'
14659             ;;
14660           cxx*)
14661             # Compaq C++
14662             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14663             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'
14664
14665             runpath_var=LD_RUN_PATH
14666             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14667             hardcode_libdir_separator_CXX=:
14668
14669             # Commands to make compiler produce verbose output that lists
14670             # what "hidden" libraries, object files and flags are used when
14671             # linking a shared library.
14672             #
14673             # There doesn't appear to be a way to prevent this compiler from
14674             # explicitly linking system object files so we need to strip them
14675             # from the output so that they don't get included in the library
14676             # dependencies.
14677             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'
14678             ;;
14679           xl* | mpixl* | bgxl*)
14680             # IBM XL 8.0 on PPC, with GNU ld
14681             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14682             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14683             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14684             if test "x$supports_anon_versioning" = xyes; then
14685               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14686                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14687                 echo "local: *; };" >> $output_objdir/$libname.ver~
14688                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14689             fi
14690             ;;
14691           *)
14692             case `$CC -V 2>&1 | sed 5q` in
14693             *Sun\ C*)
14694               # Sun C++ 5.9
14695               no_undefined_flag_CXX=' -zdefs'
14696               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14697               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'
14698               hardcode_libdir_flag_spec_CXX='-R$libdir'
14699               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'
14700               compiler_needs_object_CXX=yes
14701
14702               # Not sure whether something based on
14703               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14704               # would be better.
14705               output_verbose_link_cmd='func_echo_all'
14706
14707               # Archives containing C++ object files must be created using
14708               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14709               # necessary to make sure instantiated templates are included
14710               # in the archive.
14711               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14712               ;;
14713             esac
14714             ;;
14715         esac
14716         ;;
14717
14718       lynxos*)
14719         # FIXME: insert proper C++ library support
14720         ld_shlibs_CXX=no
14721         ;;
14722
14723       m88k*)
14724         # FIXME: insert proper C++ library support
14725         ld_shlibs_CXX=no
14726         ;;
14727
14728       mvs*)
14729         case $cc_basename in
14730           cxx*)
14731             # FIXME: insert proper C++ library support
14732             ld_shlibs_CXX=no
14733             ;;
14734           *)
14735             # FIXME: insert proper C++ library support
14736             ld_shlibs_CXX=no
14737             ;;
14738         esac
14739         ;;
14740
14741       netbsd*)
14742         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14743           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14744           wlarc=
14745           hardcode_libdir_flag_spec_CXX='-R$libdir'
14746           hardcode_direct_CXX=yes
14747           hardcode_shlibpath_var_CXX=no
14748         fi
14749         # Workaround some broken pre-1.5 toolchains
14750         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14751         ;;
14752
14753       *nto* | *qnx*)
14754         ld_shlibs_CXX=yes
14755         ;;
14756
14757       openbsd2*)
14758         # C++ shared libraries are fairly broken
14759         ld_shlibs_CXX=no
14760         ;;
14761
14762       openbsd*)
14763         if test -f /usr/libexec/ld.so; then
14764           hardcode_direct_CXX=yes
14765           hardcode_shlibpath_var_CXX=no
14766           hardcode_direct_absolute_CXX=yes
14767           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14768           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14769           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14770             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14771             export_dynamic_flag_spec_CXX='${wl}-E'
14772             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14773           fi
14774           output_verbose_link_cmd=func_echo_all
14775         else
14776           ld_shlibs_CXX=no
14777         fi
14778         ;;
14779
14780       osf3* | osf4* | osf5*)
14781         case $cc_basename in
14782           KCC*)
14783             # Kuck and Associates, Inc. (KAI) C++ Compiler
14784
14785             # KCC will only create a shared library if the output file
14786             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14787             # to its proper name (with version) after linking.
14788             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'
14789
14790             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14791             hardcode_libdir_separator_CXX=:
14792
14793             # Archives containing C++ object files must be created using
14794             # the KAI C++ compiler.
14795             case $host in
14796               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14797               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14798             esac
14799             ;;
14800           RCC*)
14801             # Rational C++ 2.4.1
14802             # FIXME: insert proper C++ library support
14803             ld_shlibs_CXX=no
14804             ;;
14805           cxx*)
14806             case $host in
14807               osf3*)
14808                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14809                 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'
14810                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14811                 ;;
14812               *)
14813                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14814                 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'
14815                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14816                   echo "-hidden">> $lib.exp~
14817                   $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~
14818                   $RM $lib.exp'
14819                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14820                 ;;
14821             esac
14822
14823             hardcode_libdir_separator_CXX=:
14824
14825             # Commands to make compiler produce verbose output that lists
14826             # what "hidden" libraries, object files and flags are used when
14827             # linking a shared library.
14828             #
14829             # There doesn't appear to be a way to prevent this compiler from
14830             # explicitly linking system object files so we need to strip them
14831             # from the output so that they don't get included in the library
14832             # dependencies.
14833             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"'
14834             ;;
14835           *)
14836             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14837               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14838               case $host in
14839                 osf3*)
14840                   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'
14841                   ;;
14842                 *)
14843                   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'
14844                   ;;
14845               esac
14846
14847               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14848               hardcode_libdir_separator_CXX=:
14849
14850               # Commands to make compiler produce verbose output that lists
14851               # what "hidden" libraries, object files and flags are used when
14852               # linking a shared library.
14853               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14854
14855             else
14856               # FIXME: insert proper C++ library support
14857               ld_shlibs_CXX=no
14858             fi
14859             ;;
14860         esac
14861         ;;
14862
14863       psos*)
14864         # FIXME: insert proper C++ library support
14865         ld_shlibs_CXX=no
14866         ;;
14867
14868       sunos4*)
14869         case $cc_basename in
14870           CC*)
14871             # Sun C++ 4.x
14872             # FIXME: insert proper C++ library support
14873             ld_shlibs_CXX=no
14874             ;;
14875           lcc*)
14876             # Lucid
14877             # FIXME: insert proper C++ library support
14878             ld_shlibs_CXX=no
14879             ;;
14880           *)
14881             # FIXME: insert proper C++ library support
14882             ld_shlibs_CXX=no
14883             ;;
14884         esac
14885         ;;
14886
14887       solaris*)
14888         case $cc_basename in
14889           CC*)
14890             # Sun C++ 4.2, 5.x and Centerline C++
14891             archive_cmds_need_lc_CXX=yes
14892             no_undefined_flag_CXX=' -zdefs'
14893             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14894             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14895               $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'
14896
14897             hardcode_libdir_flag_spec_CXX='-R$libdir'
14898             hardcode_shlibpath_var_CXX=no
14899             case $host_os in
14900               solaris2.[0-5] | solaris2.[0-5].*) ;;
14901               *)
14902                 # The compiler driver will combine and reorder linker options,
14903                 # but understands `-z linker_flag'.
14904                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14905                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14906                 ;;
14907             esac
14908             link_all_deplibs_CXX=yes
14909
14910             output_verbose_link_cmd='func_echo_all'
14911
14912             # Archives containing C++ object files must be created using
14913             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14914             # necessary to make sure instantiated templates are included
14915             # in the archive.
14916             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14917             ;;
14918           gcx*)
14919             # Green Hills C++ Compiler
14920             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14921
14922             # The C++ compiler must be used to create the archive.
14923             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14924             ;;
14925           *)
14926             # GNU C++ compiler with Solaris linker
14927             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14928               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14929               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14930                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14931                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14932                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14933
14934                 # Commands to make compiler produce verbose output that lists
14935                 # what "hidden" libraries, object files and flags are used when
14936                 # linking a shared library.
14937                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14938               else
14939                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14940                 # platform.
14941                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14942                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14943                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14944
14945                 # Commands to make compiler produce verbose output that lists
14946                 # what "hidden" libraries, object files and flags are used when
14947                 # linking a shared library.
14948                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14949               fi
14950
14951               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14952               case $host_os in
14953                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14954                 *)
14955                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14956                   ;;
14957               esac
14958             fi
14959             ;;
14960         esac
14961         ;;
14962
14963     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14964       no_undefined_flag_CXX='${wl}-z,text'
14965       archive_cmds_need_lc_CXX=no
14966       hardcode_shlibpath_var_CXX=no
14967       runpath_var='LD_RUN_PATH'
14968
14969       case $cc_basename in
14970         CC*)
14971           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14972           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14973           ;;
14974         *)
14975           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14976           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14977           ;;
14978       esac
14979       ;;
14980
14981       sysv5* | sco3.2v5* | sco5v6*)
14982         # Note: We can NOT use -z defs as we might desire, because we do not
14983         # link with -lc, and that would cause any symbols used from libc to
14984         # always be unresolved, which means just about no library would
14985         # ever link correctly.  If we're not using GNU ld we use -z text
14986         # though, which does catch some bad symbols but isn't as heavy-handed
14987         # as -z defs.
14988         no_undefined_flag_CXX='${wl}-z,text'
14989         allow_undefined_flag_CXX='${wl}-z,nodefs'
14990         archive_cmds_need_lc_CXX=no
14991         hardcode_shlibpath_var_CXX=no
14992         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14993         hardcode_libdir_separator_CXX=':'
14994         link_all_deplibs_CXX=yes
14995         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14996         runpath_var='LD_RUN_PATH'
14997
14998         case $cc_basename in
14999           CC*)
15000             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15002             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15003               '"$old_archive_cmds_CXX"
15004             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15005               '"$reload_cmds_CXX"
15006             ;;
15007           *)
15008             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010             ;;
15011         esac
15012       ;;
15013
15014       tandem*)
15015         case $cc_basename in
15016           NCC*)
15017             # NonStop-UX NCC 3.20
15018             # FIXME: insert proper C++ library support
15019             ld_shlibs_CXX=no
15020             ;;
15021           *)
15022             # FIXME: insert proper C++ library support
15023             ld_shlibs_CXX=no
15024             ;;
15025         esac
15026         ;;
15027
15028       vxworks*)
15029         # FIXME: insert proper C++ library support
15030         ld_shlibs_CXX=no
15031         ;;
15032
15033       *)
15034         # FIXME: insert proper C++ library support
15035         ld_shlibs_CXX=no
15036         ;;
15037     esac
15038
15039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15040 $as_echo "$ld_shlibs_CXX" >&6; }
15041     test "$ld_shlibs_CXX" = no && can_build_shared=no
15042
15043     GCC_CXX="$GXX"
15044     LD_CXX="$LD"
15045
15046     ## CAVEAT EMPTOR:
15047     ## There is no encapsulation within the following macros, do not change
15048     ## the running order or otherwise move them around unless you know exactly
15049     ## what you are doing...
15050     # Dependencies to place before and after the object being linked:
15051 predep_objects_CXX=
15052 postdep_objects_CXX=
15053 predeps_CXX=
15054 postdeps_CXX=
15055 compiler_lib_search_path_CXX=
15056
15057 cat > conftest.$ac_ext <<_LT_EOF
15058 class Foo
15059 {
15060 public:
15061   Foo (void) { a = 0; }
15062 private:
15063   int a;
15064 };
15065 _LT_EOF
15066
15067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15068   (eval $ac_compile) 2>&5
15069   ac_status=$?
15070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15071   test $ac_status = 0; }; then
15072   # Parse the compiler output and extract the necessary
15073   # objects, libraries and library flags.
15074
15075   # Sentinel used to keep track of whether or not we are before
15076   # the conftest object file.
15077   pre_test_object_deps_done=no
15078
15079   for p in `eval "$output_verbose_link_cmd"`; do
15080     case $p in
15081
15082     -L* | -R* | -l*)
15083        # Some compilers place space between "-{L,R}" and the path.
15084        # Remove the space.
15085        if test $p = "-L" ||
15086           test $p = "-R"; then
15087          prev=$p
15088          continue
15089        else
15090          prev=
15091        fi
15092
15093        if test "$pre_test_object_deps_done" = no; then
15094          case $p in
15095          -L* | -R*)
15096            # Internal compiler library paths should come after those
15097            # provided the user.  The postdeps already come after the
15098            # user supplied libs so there is no need to process them.
15099            if test -z "$compiler_lib_search_path_CXX"; then
15100              compiler_lib_search_path_CXX="${prev}${p}"
15101            else
15102              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15103            fi
15104            ;;
15105          # The "-l" case would never come before the object being
15106          # linked, so don't bother handling this case.
15107          esac
15108        else
15109          if test -z "$postdeps_CXX"; then
15110            postdeps_CXX="${prev}${p}"
15111          else
15112            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15113          fi
15114        fi
15115        ;;
15116
15117     *.$objext)
15118        # This assumes that the test object file only shows up
15119        # once in the compiler output.
15120        if test "$p" = "conftest.$objext"; then
15121          pre_test_object_deps_done=yes
15122          continue
15123        fi
15124
15125        if test "$pre_test_object_deps_done" = no; then
15126          if test -z "$predep_objects_CXX"; then
15127            predep_objects_CXX="$p"
15128          else
15129            predep_objects_CXX="$predep_objects_CXX $p"
15130          fi
15131        else
15132          if test -z "$postdep_objects_CXX"; then
15133            postdep_objects_CXX="$p"
15134          else
15135            postdep_objects_CXX="$postdep_objects_CXX $p"
15136          fi
15137        fi
15138        ;;
15139
15140     *) ;; # Ignore the rest.
15141
15142     esac
15143   done
15144
15145   # Clean up.
15146   rm -f a.out a.exe
15147 else
15148   echo "libtool.m4: error: problem compiling CXX test program"
15149 fi
15150
15151 $RM -f confest.$objext
15152
15153 # PORTME: override above test on systems where it is broken
15154 case $host_os in
15155 interix[3-9]*)
15156   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15157   # hack all around it, let's just trust "g++" to DTRT.
15158   predep_objects_CXX=
15159   postdep_objects_CXX=
15160   postdeps_CXX=
15161   ;;
15162
15163 linux*)
15164   case `$CC -V 2>&1 | sed 5q` in
15165   *Sun\ C*)
15166     # Sun C++ 5.9
15167
15168     # The more standards-conforming stlport4 library is
15169     # incompatible with the Cstd library. Avoid specifying
15170     # it if it's in CXXFLAGS. Ignore libCrun as
15171     # -library=stlport4 depends on it.
15172     case " $CXX $CXXFLAGS " in
15173     *" -library=stlport4 "*)
15174       solaris_use_stlport4=yes
15175       ;;
15176     esac
15177
15178     if test "$solaris_use_stlport4" != yes; then
15179       postdeps_CXX='-library=Cstd -library=Crun'
15180     fi
15181     ;;
15182   esac
15183   ;;
15184
15185 solaris*)
15186   case $cc_basename in
15187   CC*)
15188     # The more standards-conforming stlport4 library is
15189     # incompatible with the Cstd library. Avoid specifying
15190     # it if it's in CXXFLAGS. Ignore libCrun as
15191     # -library=stlport4 depends on it.
15192     case " $CXX $CXXFLAGS " in
15193     *" -library=stlport4 "*)
15194       solaris_use_stlport4=yes
15195       ;;
15196     esac
15197
15198     # Adding this requires a known-good setup of shared libraries for
15199     # Sun compiler versions before 5.6, else PIC objects from an old
15200     # archive will be linked into the output, leading to subtle bugs.
15201     if test "$solaris_use_stlport4" != yes; then
15202       postdeps_CXX='-library=Cstd -library=Crun'
15203     fi
15204     ;;
15205   esac
15206   ;;
15207 esac
15208
15209
15210 case " $postdeps_CXX " in
15211 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15212 esac
15213  compiler_lib_search_dirs_CXX=
15214 if test -n "${compiler_lib_search_path_CXX}"; then
15215  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15216 fi
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
15247
15248     lt_prog_compiler_wl_CXX=
15249 lt_prog_compiler_pic_CXX=
15250 lt_prog_compiler_static_CXX=
15251
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15253 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15254
15255   # C++ specific cases for pic, static, wl, etc.
15256   if test "$GXX" = yes; then
15257     lt_prog_compiler_wl_CXX='-Wl,'
15258     lt_prog_compiler_static_CXX='-static'
15259
15260     case $host_os in
15261     aix*)
15262       # All AIX code is PIC.
15263       if test "$host_cpu" = ia64; then
15264         # AIX 5 now supports IA64 processor
15265         lt_prog_compiler_static_CXX='-Bstatic'
15266       fi
15267       ;;
15268
15269     amigaos*)
15270       case $host_cpu in
15271       powerpc)
15272             # see comment about AmigaOS4 .so support
15273             lt_prog_compiler_pic_CXX='-fPIC'
15274         ;;
15275       m68k)
15276             # FIXME: we need at least 68020 code to build shared libraries, but
15277             # adding the `-m68020' flag to GCC prevents building anything better,
15278             # like `-m68040'.
15279             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15280         ;;
15281       esac
15282       ;;
15283
15284     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15285       # PIC is the default for these OSes.
15286       ;;
15287     mingw* | cygwin* | os2* | pw32* | cegcc*)
15288       # This hack is so that the source file can tell whether it is being
15289       # built for inclusion in a dll (and should export symbols for example).
15290       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15291       # (--disable-auto-import) libraries
15292       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15293       ;;
15294     darwin* | rhapsody*)
15295       # PIC is the default on this platform
15296       # Common symbols not allowed in MH_DYLIB files
15297       lt_prog_compiler_pic_CXX='-fno-common'
15298       ;;
15299     *djgpp*)
15300       # DJGPP does not support shared libraries at all
15301       lt_prog_compiler_pic_CXX=
15302       ;;
15303     haiku*)
15304       # PIC is the default for Haiku.
15305       # The "-static" flag exists, but is broken.
15306       lt_prog_compiler_static_CXX=
15307       ;;
15308     interix[3-9]*)
15309       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15310       # Instead, we relocate shared libraries at runtime.
15311       ;;
15312     sysv4*MP*)
15313       if test -d /usr/nec; then
15314         lt_prog_compiler_pic_CXX=-Kconform_pic
15315       fi
15316       ;;
15317     hpux*)
15318       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15319       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15320       # sets the default TLS model and affects inlining.
15321       case $host_cpu in
15322       hppa*64*)
15323         ;;
15324       *)
15325         lt_prog_compiler_pic_CXX='-fPIC'
15326         ;;
15327       esac
15328       ;;
15329     *qnx* | *nto*)
15330       # QNX uses GNU C++, but need to define -shared option too, otherwise
15331       # it will coredump.
15332       lt_prog_compiler_pic_CXX='-fPIC -shared'
15333       ;;
15334     *)
15335       lt_prog_compiler_pic_CXX='-fPIC'
15336       ;;
15337     esac
15338   else
15339     case $host_os in
15340       aix[4-9]*)
15341         # All AIX code is PIC.
15342         if test "$host_cpu" = ia64; then
15343           # AIX 5 now supports IA64 processor
15344           lt_prog_compiler_static_CXX='-Bstatic'
15345         else
15346           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15347         fi
15348         ;;
15349       chorus*)
15350         case $cc_basename in
15351         cxch68*)
15352           # Green Hills C++ Compiler
15353           # _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"
15354           ;;
15355         esac
15356         ;;
15357       dgux*)
15358         case $cc_basename in
15359           ec++*)
15360             lt_prog_compiler_pic_CXX='-KPIC'
15361             ;;
15362           ghcx*)
15363             # Green Hills C++ Compiler
15364             lt_prog_compiler_pic_CXX='-pic'
15365             ;;
15366           *)
15367             ;;
15368         esac
15369         ;;
15370       freebsd* | dragonfly*)
15371         # FreeBSD uses GNU C++
15372         ;;
15373       hpux9* | hpux10* | hpux11*)
15374         case $cc_basename in
15375           CC*)
15376             lt_prog_compiler_wl_CXX='-Wl,'
15377             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15378             if test "$host_cpu" != ia64; then
15379               lt_prog_compiler_pic_CXX='+Z'
15380             fi
15381             ;;
15382           aCC*)
15383             lt_prog_compiler_wl_CXX='-Wl,'
15384             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15385             case $host_cpu in
15386             hppa*64*|ia64*)
15387               # +Z the default
15388               ;;
15389             *)
15390               lt_prog_compiler_pic_CXX='+Z'
15391               ;;
15392             esac
15393             ;;
15394           *)
15395             ;;
15396         esac
15397         ;;
15398       interix*)
15399         # This is c89, which is MS Visual C++ (no shared libs)
15400         # Anyone wants to do a port?
15401         ;;
15402       irix5* | irix6* | nonstopux*)
15403         case $cc_basename in
15404           CC*)
15405             lt_prog_compiler_wl_CXX='-Wl,'
15406             lt_prog_compiler_static_CXX='-non_shared'
15407             # CC pic flag -KPIC is the default.
15408             ;;
15409           *)
15410             ;;
15411         esac
15412         ;;
15413       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15414         case $cc_basename in
15415           KCC*)
15416             # KAI C++ Compiler
15417             lt_prog_compiler_wl_CXX='--backend -Wl,'
15418             lt_prog_compiler_pic_CXX='-fPIC'
15419             ;;
15420           ecpc* )
15421             # old Intel C++ for x86_64 which still supported -KPIC.
15422             lt_prog_compiler_wl_CXX='-Wl,'
15423             lt_prog_compiler_pic_CXX='-KPIC'
15424             lt_prog_compiler_static_CXX='-static'
15425             ;;
15426           icpc* )
15427             # Intel C++, used to be incompatible with GCC.
15428             # ICC 10 doesn't accept -KPIC any more.
15429             lt_prog_compiler_wl_CXX='-Wl,'
15430             lt_prog_compiler_pic_CXX='-fPIC'
15431             lt_prog_compiler_static_CXX='-static'
15432             ;;
15433           pgCC* | pgcpp*)
15434             # Portland Group C++ compiler
15435             lt_prog_compiler_wl_CXX='-Wl,'
15436             lt_prog_compiler_pic_CXX='-fpic'
15437             lt_prog_compiler_static_CXX='-Bstatic'
15438             ;;
15439           cxx*)
15440             # Compaq C++
15441             # Make sure the PIC flag is empty.  It appears that all Alpha
15442             # Linux and Compaq Tru64 Unix objects are PIC.
15443             lt_prog_compiler_pic_CXX=
15444             lt_prog_compiler_static_CXX='-non_shared'
15445             ;;
15446           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15447             # IBM XL 8.0, 9.0 on PPC and BlueGene
15448             lt_prog_compiler_wl_CXX='-Wl,'
15449             lt_prog_compiler_pic_CXX='-qpic'
15450             lt_prog_compiler_static_CXX='-qstaticlink'
15451             ;;
15452           *)
15453             case `$CC -V 2>&1 | sed 5q` in
15454             *Sun\ C*)
15455               # Sun C++ 5.9
15456               lt_prog_compiler_pic_CXX='-KPIC'
15457               lt_prog_compiler_static_CXX='-Bstatic'
15458               lt_prog_compiler_wl_CXX='-Qoption ld '
15459               ;;
15460             esac
15461             ;;
15462         esac
15463         ;;
15464       lynxos*)
15465         ;;
15466       m88k*)
15467         ;;
15468       mvs*)
15469         case $cc_basename in
15470           cxx*)
15471             lt_prog_compiler_pic_CXX='-W c,exportall'
15472             ;;
15473           *)
15474             ;;
15475         esac
15476         ;;
15477       netbsd*)
15478         ;;
15479       *qnx* | *nto*)
15480         # QNX uses GNU C++, but need to define -shared option too, otherwise
15481         # it will coredump.
15482         lt_prog_compiler_pic_CXX='-fPIC -shared'
15483         ;;
15484       osf3* | osf4* | osf5*)
15485         case $cc_basename in
15486           KCC*)
15487             lt_prog_compiler_wl_CXX='--backend -Wl,'
15488             ;;
15489           RCC*)
15490             # Rational C++ 2.4.1
15491             lt_prog_compiler_pic_CXX='-pic'
15492             ;;
15493           cxx*)
15494             # Digital/Compaq C++
15495             lt_prog_compiler_wl_CXX='-Wl,'
15496             # Make sure the PIC flag is empty.  It appears that all Alpha
15497             # Linux and Compaq Tru64 Unix objects are PIC.
15498             lt_prog_compiler_pic_CXX=
15499             lt_prog_compiler_static_CXX='-non_shared'
15500             ;;
15501           *)
15502             ;;
15503         esac
15504         ;;
15505       psos*)
15506         ;;
15507       solaris*)
15508         case $cc_basename in
15509           CC*)
15510             # Sun C++ 4.2, 5.x and Centerline C++
15511             lt_prog_compiler_pic_CXX='-KPIC'
15512             lt_prog_compiler_static_CXX='-Bstatic'
15513             lt_prog_compiler_wl_CXX='-Qoption ld '
15514             ;;
15515           gcx*)
15516             # Green Hills C++ Compiler
15517             lt_prog_compiler_pic_CXX='-PIC'
15518             ;;
15519           *)
15520             ;;
15521         esac
15522         ;;
15523       sunos4*)
15524         case $cc_basename in
15525           CC*)
15526             # Sun C++ 4.x
15527             lt_prog_compiler_pic_CXX='-pic'
15528             lt_prog_compiler_static_CXX='-Bstatic'
15529             ;;
15530           lcc*)
15531             # Lucid
15532             lt_prog_compiler_pic_CXX='-pic'
15533             ;;
15534           *)
15535             ;;
15536         esac
15537         ;;
15538       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15539         case $cc_basename in
15540           CC*)
15541             lt_prog_compiler_wl_CXX='-Wl,'
15542             lt_prog_compiler_pic_CXX='-KPIC'
15543             lt_prog_compiler_static_CXX='-Bstatic'
15544             ;;
15545         esac
15546         ;;
15547       tandem*)
15548         case $cc_basename in
15549           NCC*)
15550             # NonStop-UX NCC 3.20
15551             lt_prog_compiler_pic_CXX='-KPIC'
15552             ;;
15553           *)
15554             ;;
15555         esac
15556         ;;
15557       vxworks*)
15558         ;;
15559       *)
15560         lt_prog_compiler_can_build_shared_CXX=no
15561         ;;
15562     esac
15563   fi
15564
15565 case $host_os in
15566   # For platforms which do not support PIC, -DPIC is meaningless:
15567   *djgpp*)
15568     lt_prog_compiler_pic_CXX=
15569     ;;
15570   *)
15571     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15572     ;;
15573 esac
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15575 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15576
15577
15578
15579 #
15580 # Check to make sure the PIC flag actually works.
15581 #
15582 if test -n "$lt_prog_compiler_pic_CXX"; then
15583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15584 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15585 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15586   $as_echo_n "(cached) " >&6
15587 else
15588   lt_cv_prog_compiler_pic_works_CXX=no
15589    ac_outfile=conftest.$ac_objext
15590    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15591    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15592    # Insert the option either (1) after the last *FLAGS variable, or
15593    # (2) before a word containing "conftest.", or (3) at the end.
15594    # Note that $ac_compile itself does not contain backslashes and begins
15595    # with a dollar sign (not a hyphen), so the echo should work correctly.
15596    # The option is referenced via a variable to avoid confusing sed.
15597    lt_compile=`echo "$ac_compile" | $SED \
15598    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15600    -e 's:$: $lt_compiler_flag:'`
15601    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15602    (eval "$lt_compile" 2>conftest.err)
15603    ac_status=$?
15604    cat conftest.err >&5
15605    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606    if (exit $ac_status) && test -s "$ac_outfile"; then
15607      # The compiler can only warn and ignore the option if not recognized
15608      # So say no if there are warnings other than the usual output.
15609      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15610      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15611      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15612        lt_cv_prog_compiler_pic_works_CXX=yes
15613      fi
15614    fi
15615    $RM conftest*
15616
15617 fi
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15619 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15620
15621 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15622     case $lt_prog_compiler_pic_CXX in
15623      "" | " "*) ;;
15624      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15625      esac
15626 else
15627     lt_prog_compiler_pic_CXX=
15628      lt_prog_compiler_can_build_shared_CXX=no
15629 fi
15630
15631 fi
15632
15633
15634
15635 #
15636 # Check to make sure the static flag actually works.
15637 #
15638 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15640 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15641 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15642   $as_echo_n "(cached) " >&6
15643 else
15644   lt_cv_prog_compiler_static_works_CXX=no
15645    save_LDFLAGS="$LDFLAGS"
15646    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15647    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15648    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15649      # The linker can only warn and ignore the option if not recognized
15650      # So say no if there are warnings
15651      if test -s conftest.err; then
15652        # Append any errors to the config.log.
15653        cat conftest.err 1>&5
15654        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15655        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15656        if diff conftest.exp conftest.er2 >/dev/null; then
15657          lt_cv_prog_compiler_static_works_CXX=yes
15658        fi
15659      else
15660        lt_cv_prog_compiler_static_works_CXX=yes
15661      fi
15662    fi
15663    $RM -r conftest*
15664    LDFLAGS="$save_LDFLAGS"
15665
15666 fi
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15668 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15669
15670 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15671     :
15672 else
15673     lt_prog_compiler_static_CXX=
15674 fi
15675
15676
15677
15678
15679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15681 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15682   $as_echo_n "(cached) " >&6
15683 else
15684   lt_cv_prog_compiler_c_o_CXX=no
15685    $RM -r conftest 2>/dev/null
15686    mkdir conftest
15687    cd conftest
15688    mkdir out
15689    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15690
15691    lt_compiler_flag="-o out/conftest2.$ac_objext"
15692    # Insert the option either (1) after the last *FLAGS variable, or
15693    # (2) before a word containing "conftest.", or (3) at the end.
15694    # Note that $ac_compile itself does not contain backslashes and begins
15695    # with a dollar sign (not a hyphen), so the echo should work correctly.
15696    lt_compile=`echo "$ac_compile" | $SED \
15697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15699    -e 's:$: $lt_compiler_flag:'`
15700    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15701    (eval "$lt_compile" 2>out/conftest.err)
15702    ac_status=$?
15703    cat out/conftest.err >&5
15704    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15706    then
15707      # The compiler can only warn and ignore the option if not recognized
15708      # So say no if there are warnings
15709      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15710      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15711      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15712        lt_cv_prog_compiler_c_o_CXX=yes
15713      fi
15714    fi
15715    chmod u+w . 2>&5
15716    $RM conftest*
15717    # SGI C++ compiler will create directory out/ii_files/ for
15718    # template instantiation
15719    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15720    $RM out/* && rmdir out
15721    cd ..
15722    $RM -r conftest
15723    $RM conftest*
15724
15725 fi
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15727 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15728
15729
15730
15731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15733 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15734   $as_echo_n "(cached) " >&6
15735 else
15736   lt_cv_prog_compiler_c_o_CXX=no
15737    $RM -r conftest 2>/dev/null
15738    mkdir conftest
15739    cd conftest
15740    mkdir out
15741    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15742
15743    lt_compiler_flag="-o out/conftest2.$ac_objext"
15744    # Insert the option either (1) after the last *FLAGS variable, or
15745    # (2) before a word containing "conftest.", or (3) at the end.
15746    # Note that $ac_compile itself does not contain backslashes and begins
15747    # with a dollar sign (not a hyphen), so the echo should work correctly.
15748    lt_compile=`echo "$ac_compile" | $SED \
15749    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15751    -e 's:$: $lt_compiler_flag:'`
15752    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15753    (eval "$lt_compile" 2>out/conftest.err)
15754    ac_status=$?
15755    cat out/conftest.err >&5
15756    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15758    then
15759      # The compiler can only warn and ignore the option if not recognized
15760      # So say no if there are warnings
15761      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15762      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15763      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15764        lt_cv_prog_compiler_c_o_CXX=yes
15765      fi
15766    fi
15767    chmod u+w . 2>&5
15768    $RM conftest*
15769    # SGI C++ compiler will create directory out/ii_files/ for
15770    # template instantiation
15771    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15772    $RM out/* && rmdir out
15773    cd ..
15774    $RM -r conftest
15775    $RM conftest*
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15779 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15780
15781
15782
15783
15784 hard_links="nottested"
15785 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15786   # do not overwrite the value of need_locks provided by the user
15787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15788 $as_echo_n "checking if we can lock with hard links... " >&6; }
15789   hard_links=yes
15790   $RM conftest*
15791   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15792   touch conftest.a
15793   ln conftest.a conftest.b 2>&5 || hard_links=no
15794   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15796 $as_echo "$hard_links" >&6; }
15797   if test "$hard_links" = no; then
15798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15799 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15800     need_locks=warn
15801   fi
15802 else
15803   need_locks=no
15804 fi
15805
15806
15807
15808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15809 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15810
15811   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15812   case $host_os in
15813   aix[4-9]*)
15814     # If we're using GNU nm, then we don't want the "-C" option.
15815     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15816     # Also, AIX nm treats weak defined symbols like other global defined
15817     # symbols, whereas GNU nm marks them as "W".
15818     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15819       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'
15820     else
15821       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'
15822     fi
15823     ;;
15824   pw32*)
15825     export_symbols_cmds_CXX="$ltdll_cmds"
15826   ;;
15827   cygwin* | mingw* | cegcc*)
15828     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'
15829   ;;
15830   *)
15831     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15832   ;;
15833   esac
15834   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15835
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15837 $as_echo "$ld_shlibs_CXX" >&6; }
15838 test "$ld_shlibs_CXX" = no && can_build_shared=no
15839
15840 with_gnu_ld_CXX=$with_gnu_ld
15841
15842
15843
15844
15845
15846
15847 #
15848 # Do we need to explicitly link libc?
15849 #
15850 case "x$archive_cmds_need_lc_CXX" in
15851 x|xyes)
15852   # Assume -lc should be added
15853   archive_cmds_need_lc_CXX=yes
15854
15855   if test "$enable_shared" = yes && test "$GCC" = yes; then
15856     case $archive_cmds_CXX in
15857     *'~'*)
15858       # FIXME: we may have to deal with multi-command sequences.
15859       ;;
15860     '$CC '*)
15861       # Test whether the compiler implicitly links with -lc since on some
15862       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15863       # to ld, don't add -lc before -lgcc.
15864       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15865 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15866 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15867   $as_echo_n "(cached) " >&6
15868 else
15869   $RM conftest*
15870         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15871
15872         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15873   (eval $ac_compile) 2>&5
15874   ac_status=$?
15875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15876   test $ac_status = 0; } 2>conftest.err; then
15877           soname=conftest
15878           lib=conftest
15879           libobjs=conftest.$ac_objext
15880           deplibs=
15881           wl=$lt_prog_compiler_wl_CXX
15882           pic_flag=$lt_prog_compiler_pic_CXX
15883           compiler_flags=-v
15884           linker_flags=-v
15885           verstring=
15886           output_objdir=.
15887           libname=conftest
15888           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15889           allow_undefined_flag_CXX=
15890           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15891   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15892   ac_status=$?
15893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15894   test $ac_status = 0; }
15895           then
15896             lt_cv_archive_cmds_need_lc_CXX=no
15897           else
15898             lt_cv_archive_cmds_need_lc_CXX=yes
15899           fi
15900           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15901         else
15902           cat conftest.err 1>&5
15903         fi
15904         $RM conftest*
15905
15906 fi
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15908 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15909       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15910       ;;
15911     esac
15912   fi
15913   ;;
15914 esac
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
15978
15979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15980 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15981
15982 library_names_spec=
15983 libname_spec='lib$name'
15984 soname_spec=
15985 shrext_cmds=".so"
15986 postinstall_cmds=
15987 postuninstall_cmds=
15988 finish_cmds=
15989 finish_eval=
15990 shlibpath_var=
15991 shlibpath_overrides_runpath=unknown
15992 version_type=none
15993 dynamic_linker="$host_os ld.so"
15994 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15995 need_lib_prefix=unknown
15996 hardcode_into_libs=no
15997
15998 # when you set need_version to no, make sure it does not cause -set_version
15999 # flags to be left without arguments
16000 need_version=unknown
16001
16002 case $host_os in
16003 aix3*)
16004   version_type=linux
16005   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16006   shlibpath_var=LIBPATH
16007
16008   # AIX 3 has no versioning support, so we append a major version to the name.
16009   soname_spec='${libname}${release}${shared_ext}$major'
16010   ;;
16011
16012 aix[4-9]*)
16013   version_type=linux
16014   need_lib_prefix=no
16015   need_version=no
16016   hardcode_into_libs=yes
16017   if test "$host_cpu" = ia64; then
16018     # AIX 5 supports IA64
16019     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16020     shlibpath_var=LD_LIBRARY_PATH
16021   else
16022     # With GCC up to 2.95.x, collect2 would create an import file
16023     # for dependence libraries.  The import file would start with
16024     # the line `#! .'.  This would cause the generated library to
16025     # depend on `.', always an invalid library.  This was fixed in
16026     # development snapshots of GCC prior to 3.0.
16027     case $host_os in
16028       aix4 | aix4.[01] | aix4.[01].*)
16029       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16030            echo ' yes '
16031            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16032         :
16033       else
16034         can_build_shared=no
16035       fi
16036       ;;
16037     esac
16038     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16039     # soname into executable. Probably we can add versioning support to
16040     # collect2, so additional links can be useful in future.
16041     if test "$aix_use_runtimelinking" = yes; then
16042       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16043       # instead of lib<name>.a to let people know that these are not
16044       # typical AIX shared libraries.
16045       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046     else
16047       # We preserve .a as extension for shared libraries through AIX4.2
16048       # and later when we are not doing run time linking.
16049       library_names_spec='${libname}${release}.a $libname.a'
16050       soname_spec='${libname}${release}${shared_ext}$major'
16051     fi
16052     shlibpath_var=LIBPATH
16053   fi
16054   ;;
16055
16056 amigaos*)
16057   case $host_cpu in
16058   powerpc)
16059     # Since July 2007 AmigaOS4 officially supports .so libraries.
16060     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062     ;;
16063   m68k)
16064     library_names_spec='$libname.ixlibrary $libname.a'
16065     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16066     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'
16067     ;;
16068   esac
16069   ;;
16070
16071 beos*)
16072   library_names_spec='${libname}${shared_ext}'
16073   dynamic_linker="$host_os ld.so"
16074   shlibpath_var=LIBRARY_PATH
16075   ;;
16076
16077 bsdi[45]*)
16078   version_type=linux
16079   need_version=no
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081   soname_spec='${libname}${release}${shared_ext}$major'
16082   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16083   shlibpath_var=LD_LIBRARY_PATH
16084   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16085   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16086   # the default ld.so.conf also contains /usr/contrib/lib and
16087   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16088   # libtool to hard-code these into programs
16089   ;;
16090
16091 cygwin* | mingw* | pw32* | cegcc*)
16092   version_type=windows
16093   shrext_cmds=".dll"
16094   need_version=no
16095   need_lib_prefix=no
16096
16097   case $GCC,$host_os in
16098   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16099     library_names_spec='$libname.dll.a'
16100     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16101     postinstall_cmds='base_file=`basename \${file}`~
16102       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16103       dldir=$destdir/`dirname \$dlpath`~
16104       test -d \$dldir || mkdir -p \$dldir~
16105       $install_prog $dir/$dlname \$dldir/$dlname~
16106       chmod a+x \$dldir/$dlname~
16107       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16108         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16109       fi'
16110     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16111       dlpath=$dir/\$dldll~
16112        $RM \$dlpath'
16113     shlibpath_overrides_runpath=yes
16114
16115     case $host_os in
16116     cygwin*)
16117       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16118       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119
16120       ;;
16121     mingw* | cegcc*)
16122       # MinGW DLLs use traditional 'lib' prefix
16123       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124       ;;
16125     pw32*)
16126       # pw32 DLLs use 'pw' prefix rather than 'lib'
16127       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16128       ;;
16129     esac
16130     ;;
16131
16132   *)
16133     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16134     ;;
16135   esac
16136   dynamic_linker='Win32 ld.exe'
16137   # FIXME: first we should search . and the directory the executable is in
16138   shlibpath_var=PATH
16139   ;;
16140
16141 darwin* | rhapsody*)
16142   dynamic_linker="$host_os dyld"
16143   version_type=darwin
16144   need_lib_prefix=no
16145   need_version=no
16146   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16147   soname_spec='${libname}${release}${major}$shared_ext'
16148   shlibpath_overrides_runpath=yes
16149   shlibpath_var=DYLD_LIBRARY_PATH
16150   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16151
16152   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16153   ;;
16154
16155 dgux*)
16156   version_type=linux
16157   need_lib_prefix=no
16158   need_version=no
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16160   soname_spec='${libname}${release}${shared_ext}$major'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   ;;
16163
16164 freebsd1*)
16165   dynamic_linker=no
16166   ;;
16167
16168 freebsd* | dragonfly*)
16169   # DragonFly does not have aout.  When/if they implement a new
16170   # versioning mechanism, adjust this.
16171   if test -x /usr/bin/objformat; then
16172     objformat=`/usr/bin/objformat`
16173   else
16174     case $host_os in
16175     freebsd[123]*) objformat=aout ;;
16176     *) objformat=elf ;;
16177     esac
16178   fi
16179   version_type=freebsd-$objformat
16180   case $version_type in
16181     freebsd-elf*)
16182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16183       need_version=no
16184       need_lib_prefix=no
16185       ;;
16186     freebsd-*)
16187       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16188       need_version=yes
16189       ;;
16190   esac
16191   shlibpath_var=LD_LIBRARY_PATH
16192   case $host_os in
16193   freebsd2*)
16194     shlibpath_overrides_runpath=yes
16195     ;;
16196   freebsd3.[01]* | freebsdelf3.[01]*)
16197     shlibpath_overrides_runpath=yes
16198     hardcode_into_libs=yes
16199     ;;
16200   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16201   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16202     shlibpath_overrides_runpath=no
16203     hardcode_into_libs=yes
16204     ;;
16205   *) # from 4.6 on, and DragonFly
16206     shlibpath_overrides_runpath=yes
16207     hardcode_into_libs=yes
16208     ;;
16209   esac
16210   ;;
16211
16212 gnu*)
16213   version_type=linux
16214   need_lib_prefix=no
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   hardcode_into_libs=yes
16220   ;;
16221
16222 haiku*)
16223   version_type=linux
16224   need_lib_prefix=no
16225   need_version=no
16226   dynamic_linker="$host_os runtime_loader"
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16228   soname_spec='${libname}${release}${shared_ext}$major'
16229   shlibpath_var=LIBRARY_PATH
16230   shlibpath_overrides_runpath=yes
16231   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16232   hardcode_into_libs=yes
16233   ;;
16234
16235 hpux9* | hpux10* | hpux11*)
16236   # Give a soname corresponding to the major version so that dld.sl refuses to
16237   # link against other versions.
16238   version_type=sunos
16239   need_lib_prefix=no
16240   need_version=no
16241   case $host_cpu in
16242   ia64*)
16243     shrext_cmds='.so'
16244     hardcode_into_libs=yes
16245     dynamic_linker="$host_os dld.so"
16246     shlibpath_var=LD_LIBRARY_PATH
16247     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249     soname_spec='${libname}${release}${shared_ext}$major'
16250     if test "X$HPUX_IA64_MODE" = X32; then
16251       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16252     else
16253       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16254     fi
16255     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16256     ;;
16257   hppa*64*)
16258     shrext_cmds='.sl'
16259     hardcode_into_libs=yes
16260     dynamic_linker="$host_os dld.sl"
16261     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16262     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264     soname_spec='${libname}${release}${shared_ext}$major'
16265     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16266     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16267     ;;
16268   *)
16269     shrext_cmds='.sl'
16270     dynamic_linker="$host_os dld.sl"
16271     shlibpath_var=SHLIB_PATH
16272     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274     soname_spec='${libname}${release}${shared_ext}$major'
16275     ;;
16276   esac
16277   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16278   postinstall_cmds='chmod 555 $lib'
16279   # or fails outright, so override atomically:
16280   install_override_mode=555
16281   ;;
16282
16283 interix[3-9]*)
16284   version_type=linux
16285   need_lib_prefix=no
16286   need_version=no
16287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16288   soname_spec='${libname}${release}${shared_ext}$major'
16289   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   shlibpath_overrides_runpath=no
16292   hardcode_into_libs=yes
16293   ;;
16294
16295 irix5* | irix6* | nonstopux*)
16296   case $host_os in
16297     nonstopux*) version_type=nonstopux ;;
16298     *)
16299         if test "$lt_cv_prog_gnu_ld" = yes; then
16300                 version_type=linux
16301         else
16302                 version_type=irix
16303         fi ;;
16304   esac
16305   need_lib_prefix=no
16306   need_version=no
16307   soname_spec='${libname}${release}${shared_ext}$major'
16308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16309   case $host_os in
16310   irix5* | nonstopux*)
16311     libsuff= shlibsuff=
16312     ;;
16313   *)
16314     case $LD in # libtool.m4 will add one of these switches to LD
16315     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16316       libsuff= shlibsuff= libmagic=32-bit;;
16317     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16318       libsuff=32 shlibsuff=N32 libmagic=N32;;
16319     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16320       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16321     *) libsuff= shlibsuff= libmagic=never-match;;
16322     esac
16323     ;;
16324   esac
16325   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16326   shlibpath_overrides_runpath=no
16327   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16328   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16329   hardcode_into_libs=yes
16330   ;;
16331
16332 # No shared lib support for Linux oldld, aout, or coff.
16333 linux*oldld* | linux*aout* | linux*coff*)
16334   dynamic_linker=no
16335   ;;
16336
16337 # This must be Linux ELF.
16338 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16339   version_type=linux
16340   need_lib_prefix=no
16341   need_version=no
16342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343   soname_spec='${libname}${release}${shared_ext}$major'
16344   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   shlibpath_overrides_runpath=no
16347
16348   # Some binutils ld are patched to set DT_RUNPATH
16349   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16350   $as_echo_n "(cached) " >&6
16351 else
16352   lt_cv_shlibpath_overrides_runpath=no
16353     save_LDFLAGS=$LDFLAGS
16354     save_libdir=$libdir
16355     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16356          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16357     if test x$gcc_no_link = xyes; then
16358   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16359 fi
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h.  */
16362
16363 int
16364 main ()
16365 {
16366
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 if ac_fn_cxx_try_link "$LINENO"; then :
16372   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16373   lt_cv_shlibpath_overrides_runpath=yes
16374 fi
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext \
16377     conftest$ac_exeext conftest.$ac_ext
16378     LDFLAGS=$save_LDFLAGS
16379     libdir=$save_libdir
16380
16381 fi
16382
16383   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16384
16385   # This implies no fast_install, which is unacceptable.
16386   # Some rework will be needed to allow for fast_install
16387   # before this can be enabled.
16388   hardcode_into_libs=yes
16389
16390   # Append ld.so.conf contents to the search path
16391   if test -f /etc/ld.so.conf; then
16392     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' ' '`
16393     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16394   fi
16395
16396   # We used to test for /lib/ld.so.1 and disable shared libraries on
16397   # powerpc, because MkLinux only supported shared libraries with the
16398   # GNU dynamic linker.  Since this was broken with cross compilers,
16399   # most powerpc-linux boxes support dynamic linking these days and
16400   # people can always --disable-shared, the test was removed, and we
16401   # assume the GNU/Linux dynamic linker is in use.
16402   dynamic_linker='GNU/Linux ld.so'
16403   ;;
16404
16405 netbsd*)
16406   version_type=sunos
16407   need_lib_prefix=no
16408   need_version=no
16409   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16412     dynamic_linker='NetBSD (a.out) ld.so'
16413   else
16414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415     soname_spec='${libname}${release}${shared_ext}$major'
16416     dynamic_linker='NetBSD ld.elf_so'
16417   fi
16418   shlibpath_var=LD_LIBRARY_PATH
16419   shlibpath_overrides_runpath=yes
16420   hardcode_into_libs=yes
16421   ;;
16422
16423 newsos6)
16424   version_type=linux
16425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426   shlibpath_var=LD_LIBRARY_PATH
16427   shlibpath_overrides_runpath=yes
16428   ;;
16429
16430 *nto* | *qnx*)
16431   version_type=qnx
16432   need_lib_prefix=no
16433   need_version=no
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435   soname_spec='${libname}${release}${shared_ext}$major'
16436   shlibpath_var=LD_LIBRARY_PATH
16437   shlibpath_overrides_runpath=no
16438   hardcode_into_libs=yes
16439   dynamic_linker='ldqnx.so'
16440   ;;
16441
16442 openbsd*)
16443   version_type=sunos
16444   sys_lib_dlsearch_path_spec="/usr/lib"
16445   need_lib_prefix=no
16446   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16447   case $host_os in
16448     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16449     *)                          need_version=no  ;;
16450   esac
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16453   shlibpath_var=LD_LIBRARY_PATH
16454   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16455     case $host_os in
16456       openbsd2.[89] | openbsd2.[89].*)
16457         shlibpath_overrides_runpath=no
16458         ;;
16459       *)
16460         shlibpath_overrides_runpath=yes
16461         ;;
16462       esac
16463   else
16464     shlibpath_overrides_runpath=yes
16465   fi
16466   ;;
16467
16468 os2*)
16469   libname_spec='$name'
16470   shrext_cmds=".dll"
16471   need_lib_prefix=no
16472   library_names_spec='$libname${shared_ext} $libname.a'
16473   dynamic_linker='OS/2 ld.exe'
16474   shlibpath_var=LIBPATH
16475   ;;
16476
16477 osf3* | osf4* | osf5*)
16478   version_type=osf
16479   need_lib_prefix=no
16480   need_version=no
16481   soname_spec='${libname}${release}${shared_ext}$major'
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16485   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16486   ;;
16487
16488 rdos*)
16489   dynamic_linker=no
16490   ;;
16491
16492 solaris*)
16493   version_type=linux
16494   need_lib_prefix=no
16495   need_version=no
16496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497   soname_spec='${libname}${release}${shared_ext}$major'
16498   shlibpath_var=LD_LIBRARY_PATH
16499   shlibpath_overrides_runpath=yes
16500   hardcode_into_libs=yes
16501   # ldd complains unless libraries are executable
16502   postinstall_cmds='chmod +x $lib'
16503   ;;
16504
16505 sunos4*)
16506   version_type=sunos
16507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16508   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16509   shlibpath_var=LD_LIBRARY_PATH
16510   shlibpath_overrides_runpath=yes
16511   if test "$with_gnu_ld" = yes; then
16512     need_lib_prefix=no
16513   fi
16514   need_version=yes
16515   ;;
16516
16517 sysv4 | sysv4.3*)
16518   version_type=linux
16519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520   soname_spec='${libname}${release}${shared_ext}$major'
16521   shlibpath_var=LD_LIBRARY_PATH
16522   case $host_vendor in
16523     sni)
16524       shlibpath_overrides_runpath=no
16525       need_lib_prefix=no
16526       runpath_var=LD_RUN_PATH
16527       ;;
16528     siemens)
16529       need_lib_prefix=no
16530       ;;
16531     motorola)
16532       need_lib_prefix=no
16533       need_version=no
16534       shlibpath_overrides_runpath=no
16535       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16536       ;;
16537   esac
16538   ;;
16539
16540 sysv4*MP*)
16541   if test -d /usr/nec ;then
16542     version_type=linux
16543     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16544     soname_spec='$libname${shared_ext}.$major'
16545     shlibpath_var=LD_LIBRARY_PATH
16546   fi
16547   ;;
16548
16549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16550   version_type=freebsd-elf
16551   need_lib_prefix=no
16552   need_version=no
16553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16554   soname_spec='${libname}${release}${shared_ext}$major'
16555   shlibpath_var=LD_LIBRARY_PATH
16556   shlibpath_overrides_runpath=yes
16557   hardcode_into_libs=yes
16558   if test "$with_gnu_ld" = yes; then
16559     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16560   else
16561     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16562     case $host_os in
16563       sco3.2v5*)
16564         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16565         ;;
16566     esac
16567   fi
16568   sys_lib_dlsearch_path_spec='/usr/lib'
16569   ;;
16570
16571 tpf*)
16572   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16573   version_type=linux
16574   need_lib_prefix=no
16575   need_version=no
16576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577   shlibpath_var=LD_LIBRARY_PATH
16578   shlibpath_overrides_runpath=no
16579   hardcode_into_libs=yes
16580   ;;
16581
16582 uts4*)
16583   version_type=linux
16584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585   soname_spec='${libname}${release}${shared_ext}$major'
16586   shlibpath_var=LD_LIBRARY_PATH
16587   ;;
16588
16589 *)
16590   dynamic_linker=no
16591   ;;
16592 esac
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16594 $as_echo "$dynamic_linker" >&6; }
16595 test "$dynamic_linker" = no && can_build_shared=no
16596
16597 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16598 if test "$GCC" = yes; then
16599   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16600 fi
16601
16602 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16603   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16604 fi
16605 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16606   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16607 fi
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
16645
16646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16648 hardcode_action_CXX=
16649 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16650    test -n "$runpath_var_CXX" ||
16651    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16652
16653   # We can hardcode non-existent directories.
16654   if test "$hardcode_direct_CXX" != no &&
16655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16656      # have to relink, otherwise we might link with an installed library
16657      # when we should be linking with a yet-to-be-installed one
16658      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16659      test "$hardcode_minus_L_CXX" != no; then
16660     # Linking always hardcodes the temporary library directory.
16661     hardcode_action_CXX=relink
16662   else
16663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16664     hardcode_action_CXX=immediate
16665   fi
16666 else
16667   # We cannot hardcode anything, or else we can only hardcode existing
16668   # directories.
16669   hardcode_action_CXX=unsupported
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16672 $as_echo "$hardcode_action_CXX" >&6; }
16673
16674 if test "$hardcode_action_CXX" = relink ||
16675    test "$inherit_rpath_CXX" = yes; then
16676   # Fast installation is not supported
16677   enable_fast_install=no
16678 elif test "$shlibpath_overrides_runpath" = yes ||
16679      test "$enable_shared" = no; then
16680   # Fast installation is not necessary
16681   enable_fast_install=needless
16682 fi
16683
16684
16685
16686
16687
16688
16689
16690   fi # test -n "$compiler"
16691
16692   CC=$lt_save_CC
16693   LDCXX=$LD
16694   LD=$lt_save_LD
16695   GCC=$lt_save_GCC
16696   with_gnu_ld=$lt_save_with_gnu_ld
16697   lt_cv_path_LDCXX=$lt_cv_path_LD
16698   lt_cv_path_LD=$lt_save_path_LD
16699   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16700   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16701 fi # test "$_lt_caught_CXX_error" != yes
16702
16703 ac_ext=c
16704 ac_cpp='$CPP $CPPFLAGS'
16705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721         ac_config_commands="$ac_config_commands libtool"
16722
16723
16724
16725
16726 # Only expand once:
16727
16728
16729
16730
16731
16732 case $host in
16733   *-cygwin* | *-mingw*)
16734     # 'host' will be top-level target in the case of a target lib,
16735     # we must compare to with_cross_host to decide if this is a native
16736     # or cross-compiler and select where to install dlls appropriately.
16737     if test -n "$with_cross_host" &&
16738         test x"$with_cross_host" != x"no"; then
16739       lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16740     else
16741       lt_host_flags='-no-undefined -bindir "$(bindir)"';
16742     fi
16743     ;;
16744   *)
16745     lt_host_flags=
16746     ;;
16747 esac
16748
16749
16750
16751
16752 if test -n "$ac_tool_prefix"; then
16753   for ac_prog in gcj
16754   do
16755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16758 $as_echo_n "checking for $ac_word... " >&6; }
16759 if test "${ac_cv_prog_GCJ+set}" = set; then :
16760   $as_echo_n "(cached) " >&6
16761 else
16762   if test -n "$GCJ"; then
16763   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16764 else
16765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16766 for as_dir in $PATH
16767 do
16768   IFS=$as_save_IFS
16769   test -z "$as_dir" && as_dir=.
16770     for ac_exec_ext in '' $ac_executable_extensions; do
16771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16772     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16774     break 2
16775   fi
16776 done
16777   done
16778 IFS=$as_save_IFS
16779
16780 fi
16781 fi
16782 GCJ=$ac_cv_prog_GCJ
16783 if test -n "$GCJ"; then
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16785 $as_echo "$GCJ" >&6; }
16786 else
16787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16789 fi
16790
16791
16792     test -n "$GCJ" && break
16793   done
16794 fi
16795 if test -z "$GCJ"; then
16796   ac_ct_GCJ=$GCJ
16797   for ac_prog in gcj
16798 do
16799   # Extract the first word of "$ac_prog", so it can be a program name with args.
16800 set dummy $ac_prog; ac_word=$2
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16802 $as_echo_n "checking for $ac_word... " >&6; }
16803 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16804   $as_echo_n "(cached) " >&6
16805 else
16806   if test -n "$ac_ct_GCJ"; then
16807   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16808 else
16809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16810 for as_dir in $PATH
16811 do
16812   IFS=$as_save_IFS
16813   test -z "$as_dir" && as_dir=.
16814     for ac_exec_ext in '' $ac_executable_extensions; do
16815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16816     ac_cv_prog_ac_ct_GCJ="$ac_prog"
16817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16818     break 2
16819   fi
16820 done
16821   done
16822 IFS=$as_save_IFS
16823
16824 fi
16825 fi
16826 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16827 if test -n "$ac_ct_GCJ"; then
16828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16829 $as_echo "$ac_ct_GCJ" >&6; }
16830 else
16831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833 fi
16834
16835
16836   test -n "$ac_ct_GCJ" && break
16837 done
16838
16839   if test "x$ac_ct_GCJ" = x; then
16840     GCJ="gcj"
16841   else
16842     case $cross_compiling:$ac_tool_warned in
16843 yes:)
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16846 ac_tool_warned=yes ;;
16847 esac
16848     GCJ=$ac_ct_GCJ
16849   fi
16850 fi
16851
16852 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16853 if test "x${GCJFLAGS-unset}" = xunset; then
16854    GCJFLAGS="-g -O2"
16855 fi
16856
16857
16858 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16859
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16861 $as_echo_n "checking dependency style of $depcc... " >&6; }
16862 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16863   $as_echo_n "(cached) " >&6
16864 else
16865   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16866   # We make a subdir and do the tests there.  Otherwise we can end up
16867   # making bogus files that we don't know about and never remove.  For
16868   # instance it was reported that on HP-UX the gcc test will end up
16869   # making a dummy file named `D' -- because `-MD' means `put the output
16870   # in D'.
16871   mkdir conftest.dir
16872   # Copy depcomp to subdir because otherwise we won't find it if we're
16873   # using a relative directory.
16874   cp "$am_depcomp" conftest.dir
16875   cd conftest.dir
16876   # We will build objects and dependencies in a subdirectory because
16877   # it helps to detect inapplicable dependency modes.  For instance
16878   # both Tru64's cc and ICC support -MD to output dependencies as a
16879   # side effect of compilation, but ICC will put the dependencies in
16880   # the current directory while Tru64 will put them in the object
16881   # directory.
16882   mkdir sub
16883
16884   am_cv_GCJ_dependencies_compiler_type=none
16885   if test "$am_compiler_list" = ""; then
16886      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16887   fi
16888   am__universal=false
16889
16890
16891   for depmode in $am_compiler_list; do
16892     # Setup a source with many dependencies, because some compilers
16893     # like to wrap large dependency lists on column 80 (with \), and
16894     # we should not choose a depcomp mode which is confused by this.
16895     #
16896     # We need to recreate these files for each test, as the compiler may
16897     # overwrite some of them when testing with obscure command lines.
16898     # This happens at least with the AIX C compiler.
16899     : > sub/conftest.c
16900     for i in 1 2 3 4 5 6; do
16901       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16902       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16903       # Solaris 8's {/usr,}/bin/sh.
16904       touch sub/conftst$i.h
16905     done
16906     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16907
16908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16909     # mode.  It turns out that the SunPro C++ compiler does not properly
16910     # handle `-M -o', and we need to detect this.  Also, some Intel
16911     # versions had trouble with output in subdirs
16912     am__obj=sub/conftest.${OBJEXT-o}
16913     am__minus_obj="-o $am__obj"
16914     case $depmode in
16915     gcc)
16916       # This depmode causes a compiler race in universal mode.
16917       test "$am__universal" = false || continue
16918       ;;
16919     nosideeffect)
16920       # after this tag, mechanisms are not by side-effect, so they'll
16921       # only be used when explicitly requested
16922       if test "x$enable_dependency_tracking" = xyes; then
16923         continue
16924       else
16925         break
16926       fi
16927       ;;
16928     msvisualcpp | msvcmsys)
16929       # This compiler won't grok `-c -o', but also, the minuso test has
16930       # not run yet.  These depmodes are late enough in the game, and
16931       # so weak that their functioning should not be impacted.
16932       am__obj=conftest.${OBJEXT-o}
16933       am__minus_obj=
16934       ;;
16935     none) break ;;
16936     esac
16937     if depmode=$depmode \
16938        source=sub/conftest.c object=$am__obj \
16939        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16940        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16941          >/dev/null 2>conftest.err &&
16942        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16943        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16944        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16945        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16946       # icc doesn't choke on unknown options, it will just issue warnings
16947       # or remarks (even with -Werror).  So we grep stderr for any message
16948       # that says an option was ignored or not supported.
16949       # When given -MP, icc 7.0 and 7.1 complain thusly:
16950       #   icc: Command line warning: ignoring option '-M'; no argument required
16951       # The diagnosis changed in icc 8.0:
16952       #   icc: Command line remark: option '-MP' not supported
16953       if (grep 'ignoring option' conftest.err ||
16954           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16955         am_cv_GCJ_dependencies_compiler_type=$depmode
16956         break
16957       fi
16958     fi
16959   done
16960
16961   cd ..
16962   rm -rf conftest.dir
16963 else
16964   am_cv_GCJ_dependencies_compiler_type=none
16965 fi
16966
16967 fi
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16969 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16970 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16971
16972  if
16973   test "x$enable_dependency_tracking" != xno \
16974   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16975   am__fastdepGCJ_TRUE=
16976   am__fastdepGCJ_FALSE='#'
16977 else
16978   am__fastdepGCJ_TRUE='#'
16979   am__fastdepGCJ_FALSE=
16980 fi
16981
16982
16983
16984 if test -n "$ac_tool_prefix"; then
16985   for ac_prog in gcj
16986   do
16987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16990 $as_echo_n "checking for $ac_word... " >&6; }
16991 if test "${ac_cv_prog_GCJ+set}" = set; then :
16992   $as_echo_n "(cached) " >&6
16993 else
16994   if test -n "$GCJ"; then
16995   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16996 else
16997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16998 for as_dir in $PATH
16999 do
17000   IFS=$as_save_IFS
17001   test -z "$as_dir" && as_dir=.
17002     for ac_exec_ext in '' $ac_executable_extensions; do
17003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17004     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17006     break 2
17007   fi
17008 done
17009   done
17010 IFS=$as_save_IFS
17011
17012 fi
17013 fi
17014 GCJ=$ac_cv_prog_GCJ
17015 if test -n "$GCJ"; then
17016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17017 $as_echo "$GCJ" >&6; }
17018 else
17019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020 $as_echo "no" >&6; }
17021 fi
17022
17023
17024     test -n "$GCJ" && break
17025   done
17026 fi
17027 if test -z "$GCJ"; then
17028   ac_ct_GCJ=$GCJ
17029   for ac_prog in gcj
17030 do
17031   # Extract the first word of "$ac_prog", so it can be a program name with args.
17032 set dummy $ac_prog; ac_word=$2
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17034 $as_echo_n "checking for $ac_word... " >&6; }
17035 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17036   $as_echo_n "(cached) " >&6
17037 else
17038   if test -n "$ac_ct_GCJ"; then
17039   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17040 else
17041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17042 for as_dir in $PATH
17043 do
17044   IFS=$as_save_IFS
17045   test -z "$as_dir" && as_dir=.
17046     for ac_exec_ext in '' $ac_executable_extensions; do
17047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17048     ac_cv_prog_ac_ct_GCJ="$ac_prog"
17049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17050     break 2
17051   fi
17052 done
17053   done
17054 IFS=$as_save_IFS
17055
17056 fi
17057 fi
17058 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17059 if test -n "$ac_ct_GCJ"; then
17060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17061 $as_echo "$ac_ct_GCJ" >&6; }
17062 else
17063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17064 $as_echo "no" >&6; }
17065 fi
17066
17067
17068   test -n "$ac_ct_GCJ" && break
17069 done
17070
17071   if test "x$ac_ct_GCJ" = x; then
17072     GCJ="gcj"
17073   else
17074     case $cross_compiling:$ac_tool_warned in
17075 yes:)
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17078 ac_tool_warned=yes ;;
17079 esac
17080     GCJ=$ac_ct_GCJ
17081   fi
17082 fi
17083
17084 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17085 if test "x${GCJFLAGS-unset}" = xunset; then
17086    GCJFLAGS="-g -O2"
17087 fi
17088
17089
17090 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
17091
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17093 $as_echo_n "checking dependency style of $depcc... " >&6; }
17094 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17095   $as_echo_n "(cached) " >&6
17096 else
17097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17098   # We make a subdir and do the tests there.  Otherwise we can end up
17099   # making bogus files that we don't know about and never remove.  For
17100   # instance it was reported that on HP-UX the gcc test will end up
17101   # making a dummy file named `D' -- because `-MD' means `put the output
17102   # in D'.
17103   mkdir conftest.dir
17104   # Copy depcomp to subdir because otherwise we won't find it if we're
17105   # using a relative directory.
17106   cp "$am_depcomp" conftest.dir
17107   cd conftest.dir
17108   # We will build objects and dependencies in a subdirectory because
17109   # it helps to detect inapplicable dependency modes.  For instance
17110   # both Tru64's cc and ICC support -MD to output dependencies as a
17111   # side effect of compilation, but ICC will put the dependencies in
17112   # the current directory while Tru64 will put them in the object
17113   # directory.
17114   mkdir sub
17115
17116   am_cv_GCJ_dependencies_compiler_type=none
17117   if test "$am_compiler_list" = ""; then
17118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17119   fi
17120   am__universal=false
17121
17122
17123   for depmode in $am_compiler_list; do
17124     # Setup a source with many dependencies, because some compilers
17125     # like to wrap large dependency lists on column 80 (with \), and
17126     # we should not choose a depcomp mode which is confused by this.
17127     #
17128     # We need to recreate these files for each test, as the compiler may
17129     # overwrite some of them when testing with obscure command lines.
17130     # This happens at least with the AIX C compiler.
17131     : > sub/conftest.c
17132     for i in 1 2 3 4 5 6; do
17133       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17134       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17135       # Solaris 8's {/usr,}/bin/sh.
17136       touch sub/conftst$i.h
17137     done
17138     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17139
17140     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17141     # mode.  It turns out that the SunPro C++ compiler does not properly
17142     # handle `-M -o', and we need to detect this.  Also, some Intel
17143     # versions had trouble with output in subdirs
17144     am__obj=sub/conftest.${OBJEXT-o}
17145     am__minus_obj="-o $am__obj"
17146     case $depmode in
17147     gcc)
17148       # This depmode causes a compiler race in universal mode.
17149       test "$am__universal" = false || continue
17150       ;;
17151     nosideeffect)
17152       # after this tag, mechanisms are not by side-effect, so they'll
17153       # only be used when explicitly requested
17154       if test "x$enable_dependency_tracking" = xyes; then
17155         continue
17156       else
17157         break
17158       fi
17159       ;;
17160     msvisualcpp | msvcmsys)
17161       # This compiler won't grok `-c -o', but also, the minuso test has
17162       # not run yet.  These depmodes are late enough in the game, and
17163       # so weak that their functioning should not be impacted.
17164       am__obj=conftest.${OBJEXT-o}
17165       am__minus_obj=
17166       ;;
17167     none) break ;;
17168     esac
17169     if depmode=$depmode \
17170        source=sub/conftest.c object=$am__obj \
17171        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17172        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17173          >/dev/null 2>conftest.err &&
17174        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17175        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17176        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17177        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17178       # icc doesn't choke on unknown options, it will just issue warnings
17179       # or remarks (even with -Werror).  So we grep stderr for any message
17180       # that says an option was ignored or not supported.
17181       # When given -MP, icc 7.0 and 7.1 complain thusly:
17182       #   icc: Command line warning: ignoring option '-M'; no argument required
17183       # The diagnosis changed in icc 8.0:
17184       #   icc: Command line remark: option '-MP' not supported
17185       if (grep 'ignoring option' conftest.err ||
17186           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17187         am_cv_GCJ_dependencies_compiler_type=$depmode
17188         break
17189       fi
17190     fi
17191   done
17192
17193   cd ..
17194   rm -rf conftest.dir
17195 else
17196   am_cv_GCJ_dependencies_compiler_type=none
17197 fi
17198
17199 fi
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17201 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17202 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17203
17204  if
17205   test "x$enable_dependency_tracking" != xno \
17206   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17207   am__fastdepGCJ_TRUE=
17208   am__fastdepGCJ_FALSE='#'
17209 else
17210   am__fastdepGCJ_TRUE='#'
17211   am__fastdepGCJ_FALSE=
17212 fi
17213
17214
17215
17216
17217
17218 # Source file extension for Java test sources.
17219 ac_ext=c
17220
17221 # Object file extension for compiled Java test sources.
17222 objext=o
17223 objext_GCJ=$objext
17224
17225 # Code to be used in simple compile tests
17226 lt_simple_compile_test_code="int some_variable = 0;"
17227
17228 # Code to be used in simple link tests
17229 lt_simple_link_test_code='int main(){return(0);}'
17230
17231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17232
17233
17234
17235
17236
17237
17238 # If no C compiler was specified, use CC.
17239 LTCC=${LTCC-"$CC"}
17240
17241 # If no C compiler flags were specified, use CFLAGS.
17242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17243
17244 # Allow CC to be a program name with arguments.
17245 compiler=$CC
17246
17247
17248 # save warnings/boilerplate of simple test code
17249 ac_outfile=conftest.$ac_objext
17250 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17252 _lt_compiler_boilerplate=`cat conftest.err`
17253 $RM conftest*
17254
17255 ac_outfile=conftest.$ac_objext
17256 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17258 _lt_linker_boilerplate=`cat conftest.err`
17259 $RM -r conftest*
17260
17261
17262 # Allow CC to be a program name with arguments.
17263 GCC=yes
17264 compiler=$CC
17265 compiler_GCJ=$CC
17266 for cc_temp in $compiler""; do
17267   case $cc_temp in
17268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17270     \-*) ;;
17271     *) break;;
17272   esac
17273 done
17274 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17275
17276
17277 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17278 archive_cmds_need_lc_GCJ=no
17279
17280 old_archive_cmds_GCJ=$old_archive_cmds
17281
17282 ## CAVEAT EMPTOR:
17283 ## There is no encapsulation within the following macros, do not change
17284 ## the running order or otherwise move them around unless you know exactly
17285 ## what you are doing...
17286 if test -n "$compiler"; then
17287
17288 lt_prog_compiler_no_builtin_flag_GCJ=
17289
17290 if test "$GCC" = yes; then
17291   case $cc_basename in
17292   nvcc*)
17293     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17294   *)
17295     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17296   esac
17297
17298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17299 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17300 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17301   $as_echo_n "(cached) " >&6
17302 else
17303   lt_cv_prog_compiler_rtti_exceptions=no
17304    ac_outfile=conftest.$ac_objext
17305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17306    lt_compiler_flag="-fno-rtti -fno-exceptions"
17307    # Insert the option either (1) after the last *FLAGS variable, or
17308    # (2) before a word containing "conftest.", or (3) at the end.
17309    # Note that $ac_compile itself does not contain backslashes and begins
17310    # with a dollar sign (not a hyphen), so the echo should work correctly.
17311    # The option is referenced via a variable to avoid confusing sed.
17312    lt_compile=`echo "$ac_compile" | $SED \
17313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17315    -e 's:$: $lt_compiler_flag:'`
17316    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17317    (eval "$lt_compile" 2>conftest.err)
17318    ac_status=$?
17319    cat conftest.err >&5
17320    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321    if (exit $ac_status) && test -s "$ac_outfile"; then
17322      # The compiler can only warn and ignore the option if not recognized
17323      # So say no if there are warnings other than the usual output.
17324      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17327        lt_cv_prog_compiler_rtti_exceptions=yes
17328      fi
17329    fi
17330    $RM conftest*
17331
17332 fi
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17334 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17335
17336 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17337     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17338 else
17339     :
17340 fi
17341
17342 fi
17343
17344
17345
17346   lt_prog_compiler_wl_GCJ=
17347 lt_prog_compiler_pic_GCJ=
17348 lt_prog_compiler_static_GCJ=
17349
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17351 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17352
17353   if test "$GCC" = yes; then
17354     lt_prog_compiler_wl_GCJ='-Wl,'
17355     lt_prog_compiler_static_GCJ='-static'
17356
17357     case $host_os in
17358       aix*)
17359       # All AIX code is PIC.
17360       if test "$host_cpu" = ia64; then
17361         # AIX 5 now supports IA64 processor
17362         lt_prog_compiler_static_GCJ='-Bstatic'
17363       fi
17364       ;;
17365
17366     amigaos*)
17367       case $host_cpu in
17368       powerpc)
17369             # see comment about AmigaOS4 .so support
17370             lt_prog_compiler_pic_GCJ='-fPIC'
17371         ;;
17372       m68k)
17373             # FIXME: we need at least 68020 code to build shared libraries, but
17374             # adding the `-m68020' flag to GCC prevents building anything better,
17375             # like `-m68040'.
17376             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17377         ;;
17378       esac
17379       ;;
17380
17381     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17382       # PIC is the default for these OSes.
17383       ;;
17384
17385     mingw* | cygwin* | pw32* | os2* | cegcc*)
17386       # This hack is so that the source file can tell whether it is being
17387       # built for inclusion in a dll (and should export symbols for example).
17388       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17389       # (--disable-auto-import) libraries
17390
17391       ;;
17392
17393     darwin* | rhapsody*)
17394       # PIC is the default on this platform
17395       # Common symbols not allowed in MH_DYLIB files
17396       lt_prog_compiler_pic_GCJ='-fno-common'
17397       ;;
17398
17399     haiku*)
17400       # PIC is the default for Haiku.
17401       # The "-static" flag exists, but is broken.
17402       lt_prog_compiler_static_GCJ=
17403       ;;
17404
17405     hpux*)
17406       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17407       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17408       # sets the default TLS model and affects inlining.
17409       case $host_cpu in
17410       hppa*64*)
17411         # +Z the default
17412         ;;
17413       *)
17414         lt_prog_compiler_pic_GCJ='-fPIC'
17415         ;;
17416       esac
17417       ;;
17418
17419     interix[3-9]*)
17420       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17421       # Instead, we relocate shared libraries at runtime.
17422       ;;
17423
17424     msdosdjgpp*)
17425       # Just because we use GCC doesn't mean we suddenly get shared libraries
17426       # on systems that don't support them.
17427       lt_prog_compiler_can_build_shared_GCJ=no
17428       enable_shared=no
17429       ;;
17430
17431     *nto* | *qnx*)
17432       # QNX uses GNU C++, but need to define -shared option too, otherwise
17433       # it will coredump.
17434       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17435       ;;
17436
17437     sysv4*MP*)
17438       if test -d /usr/nec; then
17439         lt_prog_compiler_pic_GCJ=-Kconform_pic
17440       fi
17441       ;;
17442
17443     *)
17444       lt_prog_compiler_pic_GCJ='-fPIC'
17445       ;;
17446     esac
17447
17448     case $cc_basename in
17449     nvcc*) # Cuda Compiler Driver 2.2
17450       lt_prog_compiler_wl_GCJ='-Xlinker '
17451       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17452       ;;
17453     esac
17454   else
17455     # PORTME Check for flag to pass linker flags through the system compiler.
17456     case $host_os in
17457     aix*)
17458       lt_prog_compiler_wl_GCJ='-Wl,'
17459       if test "$host_cpu" = ia64; then
17460         # AIX 5 now supports IA64 processor
17461         lt_prog_compiler_static_GCJ='-Bstatic'
17462       else
17463         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17464       fi
17465       ;;
17466
17467     mingw* | cygwin* | pw32* | os2* | cegcc*)
17468       # This hack is so that the source file can tell whether it is being
17469       # built for inclusion in a dll (and should export symbols for example).
17470
17471       ;;
17472
17473     hpux9* | hpux10* | hpux11*)
17474       lt_prog_compiler_wl_GCJ='-Wl,'
17475       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17476       # not for PA HP-UX.
17477       case $host_cpu in
17478       hppa*64*|ia64*)
17479         # +Z the default
17480         ;;
17481       *)
17482         lt_prog_compiler_pic_GCJ='+Z'
17483         ;;
17484       esac
17485       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17486       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17487       ;;
17488
17489     irix5* | irix6* | nonstopux*)
17490       lt_prog_compiler_wl_GCJ='-Wl,'
17491       # PIC (with -KPIC) is the default.
17492       lt_prog_compiler_static_GCJ='-non_shared'
17493       ;;
17494
17495     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17496       case $cc_basename in
17497       # old Intel for x86_64 which still supported -KPIC.
17498       ecc*)
17499         lt_prog_compiler_wl_GCJ='-Wl,'
17500         lt_prog_compiler_pic_GCJ='-KPIC'
17501         lt_prog_compiler_static_GCJ='-static'
17502         ;;
17503       # icc used to be incompatible with GCC.
17504       # ICC 10 doesn't accept -KPIC any more.
17505       icc* | ifort*)
17506         lt_prog_compiler_wl_GCJ='-Wl,'
17507         lt_prog_compiler_pic_GCJ='-fPIC'
17508         lt_prog_compiler_static_GCJ='-static'
17509         ;;
17510       # Lahey Fortran 8.1.
17511       lf95*)
17512         lt_prog_compiler_wl_GCJ='-Wl,'
17513         lt_prog_compiler_pic_GCJ='--shared'
17514         lt_prog_compiler_static_GCJ='--static'
17515         ;;
17516       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17517         # Portland Group compilers (*not* the Pentium gcc compiler,
17518         # which looks to be a dead project)
17519         lt_prog_compiler_wl_GCJ='-Wl,'
17520         lt_prog_compiler_pic_GCJ='-fpic'
17521         lt_prog_compiler_static_GCJ='-Bstatic'
17522         ;;
17523       ccc*)
17524         lt_prog_compiler_wl_GCJ='-Wl,'
17525         # All Alpha code is PIC.
17526         lt_prog_compiler_static_GCJ='-non_shared'
17527         ;;
17528       xl* | bgxl* | bgf* | mpixl*)
17529         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17530         lt_prog_compiler_wl_GCJ='-Wl,'
17531         lt_prog_compiler_pic_GCJ='-qpic'
17532         lt_prog_compiler_static_GCJ='-qstaticlink'
17533         ;;
17534       *)
17535         case `$CC -V 2>&1 | sed 5q` in
17536         *Sun\ F* | *Sun*Fortran*)
17537           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17538           lt_prog_compiler_pic_GCJ='-KPIC'
17539           lt_prog_compiler_static_GCJ='-Bstatic'
17540           lt_prog_compiler_wl_GCJ=''
17541           ;;
17542         *Sun\ C*)
17543           # Sun C 5.9
17544           lt_prog_compiler_pic_GCJ='-KPIC'
17545           lt_prog_compiler_static_GCJ='-Bstatic'
17546           lt_prog_compiler_wl_GCJ='-Wl,'
17547           ;;
17548         esac
17549         ;;
17550       esac
17551       ;;
17552
17553     newsos6)
17554       lt_prog_compiler_pic_GCJ='-KPIC'
17555       lt_prog_compiler_static_GCJ='-Bstatic'
17556       ;;
17557
17558     *nto* | *qnx*)
17559       # QNX uses GNU C++, but need to define -shared option too, otherwise
17560       # it will coredump.
17561       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17562       ;;
17563
17564     osf3* | osf4* | osf5*)
17565       lt_prog_compiler_wl_GCJ='-Wl,'
17566       # All OSF/1 code is PIC.
17567       lt_prog_compiler_static_GCJ='-non_shared'
17568       ;;
17569
17570     rdos*)
17571       lt_prog_compiler_static_GCJ='-non_shared'
17572       ;;
17573
17574     solaris*)
17575       lt_prog_compiler_pic_GCJ='-KPIC'
17576       lt_prog_compiler_static_GCJ='-Bstatic'
17577       case $cc_basename in
17578       f77* | f90* | f95*)
17579         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17580       *)
17581         lt_prog_compiler_wl_GCJ='-Wl,';;
17582       esac
17583       ;;
17584
17585     sunos4*)
17586       lt_prog_compiler_wl_GCJ='-Qoption ld '
17587       lt_prog_compiler_pic_GCJ='-PIC'
17588       lt_prog_compiler_static_GCJ='-Bstatic'
17589       ;;
17590
17591     sysv4 | sysv4.2uw2* | sysv4.3*)
17592       lt_prog_compiler_wl_GCJ='-Wl,'
17593       lt_prog_compiler_pic_GCJ='-KPIC'
17594       lt_prog_compiler_static_GCJ='-Bstatic'
17595       ;;
17596
17597     sysv4*MP*)
17598       if test -d /usr/nec ;then
17599         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17600         lt_prog_compiler_static_GCJ='-Bstatic'
17601       fi
17602       ;;
17603
17604     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17605       lt_prog_compiler_wl_GCJ='-Wl,'
17606       lt_prog_compiler_pic_GCJ='-KPIC'
17607       lt_prog_compiler_static_GCJ='-Bstatic'
17608       ;;
17609
17610     unicos*)
17611       lt_prog_compiler_wl_GCJ='-Wl,'
17612       lt_prog_compiler_can_build_shared_GCJ=no
17613       ;;
17614
17615     uts4*)
17616       lt_prog_compiler_pic_GCJ='-pic'
17617       lt_prog_compiler_static_GCJ='-Bstatic'
17618       ;;
17619
17620     *)
17621       lt_prog_compiler_can_build_shared_GCJ=no
17622       ;;
17623     esac
17624   fi
17625
17626 case $host_os in
17627   # For platforms which do not support PIC, -DPIC is meaningless:
17628   *djgpp*)
17629     lt_prog_compiler_pic_GCJ=
17630     ;;
17631   *)
17632     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17633     ;;
17634 esac
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17636 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17637
17638
17639
17640 #
17641 # Check to make sure the PIC flag actually works.
17642 #
17643 if test -n "$lt_prog_compiler_pic_GCJ"; then
17644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17646 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17647   $as_echo_n "(cached) " >&6
17648 else
17649   lt_cv_prog_compiler_pic_works_GCJ=no
17650    ac_outfile=conftest.$ac_objext
17651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17652    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17653    # Insert the option either (1) after the last *FLAGS variable, or
17654    # (2) before a word containing "conftest.", or (3) at the end.
17655    # Note that $ac_compile itself does not contain backslashes and begins
17656    # with a dollar sign (not a hyphen), so the echo should work correctly.
17657    # The option is referenced via a variable to avoid confusing sed.
17658    lt_compile=`echo "$ac_compile" | $SED \
17659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17661    -e 's:$: $lt_compiler_flag:'`
17662    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17663    (eval "$lt_compile" 2>conftest.err)
17664    ac_status=$?
17665    cat conftest.err >&5
17666    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667    if (exit $ac_status) && test -s "$ac_outfile"; then
17668      # The compiler can only warn and ignore the option if not recognized
17669      # So say no if there are warnings other than the usual output.
17670      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17673        lt_cv_prog_compiler_pic_works_GCJ=yes
17674      fi
17675    fi
17676    $RM conftest*
17677
17678 fi
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17680 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17681
17682 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17683     case $lt_prog_compiler_pic_GCJ in
17684      "" | " "*) ;;
17685      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17686      esac
17687 else
17688     lt_prog_compiler_pic_GCJ=
17689      lt_prog_compiler_can_build_shared_GCJ=no
17690 fi
17691
17692 fi
17693
17694
17695
17696 #
17697 # Check to make sure the static flag actually works.
17698 #
17699 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17701 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17702 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17703   $as_echo_n "(cached) " >&6
17704 else
17705   lt_cv_prog_compiler_static_works_GCJ=no
17706    save_LDFLAGS="$LDFLAGS"
17707    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17708    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17709    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17710      # The linker can only warn and ignore the option if not recognized
17711      # So say no if there are warnings
17712      if test -s conftest.err; then
17713        # Append any errors to the config.log.
17714        cat conftest.err 1>&5
17715        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17716        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17717        if diff conftest.exp conftest.er2 >/dev/null; then
17718          lt_cv_prog_compiler_static_works_GCJ=yes
17719        fi
17720      else
17721        lt_cv_prog_compiler_static_works_GCJ=yes
17722      fi
17723    fi
17724    $RM -r conftest*
17725    LDFLAGS="$save_LDFLAGS"
17726
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17729 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17730
17731 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17732     :
17733 else
17734     lt_prog_compiler_static_GCJ=
17735 fi
17736
17737
17738
17739
17740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17742 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17743   $as_echo_n "(cached) " >&6
17744 else
17745   lt_cv_prog_compiler_c_o_GCJ=no
17746    $RM -r conftest 2>/dev/null
17747    mkdir conftest
17748    cd conftest
17749    mkdir out
17750    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17751
17752    lt_compiler_flag="-o out/conftest2.$ac_objext"
17753    # Insert the option either (1) after the last *FLAGS variable, or
17754    # (2) before a word containing "conftest.", or (3) at the end.
17755    # Note that $ac_compile itself does not contain backslashes and begins
17756    # with a dollar sign (not a hyphen), so the echo should work correctly.
17757    lt_compile=`echo "$ac_compile" | $SED \
17758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17760    -e 's:$: $lt_compiler_flag:'`
17761    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17762    (eval "$lt_compile" 2>out/conftest.err)
17763    ac_status=$?
17764    cat out/conftest.err >&5
17765    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17767    then
17768      # The compiler can only warn and ignore the option if not recognized
17769      # So say no if there are warnings
17770      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17771      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17772      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17773        lt_cv_prog_compiler_c_o_GCJ=yes
17774      fi
17775    fi
17776    chmod u+w . 2>&5
17777    $RM conftest*
17778    # SGI C++ compiler will create directory out/ii_files/ for
17779    # template instantiation
17780    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17781    $RM out/* && rmdir out
17782    cd ..
17783    $RM -r conftest
17784    $RM conftest*
17785
17786 fi
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17788 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17789
17790
17791
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17794 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   lt_cv_prog_compiler_c_o_GCJ=no
17798    $RM -r conftest 2>/dev/null
17799    mkdir conftest
17800    cd conftest
17801    mkdir out
17802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17803
17804    lt_compiler_flag="-o out/conftest2.$ac_objext"
17805    # Insert the option either (1) after the last *FLAGS variable, or
17806    # (2) before a word containing "conftest.", or (3) at the end.
17807    # Note that $ac_compile itself does not contain backslashes and begins
17808    # with a dollar sign (not a hyphen), so the echo should work correctly.
17809    lt_compile=`echo "$ac_compile" | $SED \
17810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17812    -e 's:$: $lt_compiler_flag:'`
17813    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17814    (eval "$lt_compile" 2>out/conftest.err)
17815    ac_status=$?
17816    cat out/conftest.err >&5
17817    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17819    then
17820      # The compiler can only warn and ignore the option if not recognized
17821      # So say no if there are warnings
17822      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17823      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17824      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17825        lt_cv_prog_compiler_c_o_GCJ=yes
17826      fi
17827    fi
17828    chmod u+w . 2>&5
17829    $RM conftest*
17830    # SGI C++ compiler will create directory out/ii_files/ for
17831    # template instantiation
17832    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17833    $RM out/* && rmdir out
17834    cd ..
17835    $RM -r conftest
17836    $RM conftest*
17837
17838 fi
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17840 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17841
17842
17843
17844
17845 hard_links="nottested"
17846 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17847   # do not overwrite the value of need_locks provided by the user
17848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17849 $as_echo_n "checking if we can lock with hard links... " >&6; }
17850   hard_links=yes
17851   $RM conftest*
17852   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17853   touch conftest.a
17854   ln conftest.a conftest.b 2>&5 || hard_links=no
17855   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17857 $as_echo "$hard_links" >&6; }
17858   if test "$hard_links" = no; then
17859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17860 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17861     need_locks=warn
17862   fi
17863 else
17864   need_locks=no
17865 fi
17866
17867
17868
17869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17871
17872   runpath_var=
17873   allow_undefined_flag_GCJ=
17874   always_export_symbols_GCJ=no
17875   archive_cmds_GCJ=
17876   archive_expsym_cmds_GCJ=
17877   compiler_needs_object_GCJ=no
17878   enable_shared_with_static_runtimes_GCJ=no
17879   export_dynamic_flag_spec_GCJ=
17880   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17881   hardcode_automatic_GCJ=no
17882   hardcode_direct_GCJ=no
17883   hardcode_direct_absolute_GCJ=no
17884   hardcode_libdir_flag_spec_GCJ=
17885   hardcode_libdir_flag_spec_ld_GCJ=
17886   hardcode_libdir_separator_GCJ=
17887   hardcode_minus_L_GCJ=no
17888   hardcode_shlibpath_var_GCJ=unsupported
17889   inherit_rpath_GCJ=no
17890   link_all_deplibs_GCJ=unknown
17891   module_cmds_GCJ=
17892   module_expsym_cmds_GCJ=
17893   old_archive_from_new_cmds_GCJ=
17894   old_archive_from_expsyms_cmds_GCJ=
17895   thread_safe_flag_spec_GCJ=
17896   whole_archive_flag_spec_GCJ=
17897   # include_expsyms should be a list of space-separated symbols to be *always*
17898   # included in the symbol list
17899   include_expsyms_GCJ=
17900   # exclude_expsyms can be an extended regexp of symbols to exclude
17901   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17902   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17903   # as well as any symbol that contains `d'.
17904   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17905   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17906   # platforms (ab)use it in PIC code, but their linkers get confused if
17907   # the symbol is explicitly referenced.  Since portable code cannot
17908   # rely on this symbol name, it's probably fine to never include it in
17909   # preloaded symbol tables.
17910   # Exclude shared library initialization/finalization symbols.
17911   extract_expsyms_cmds=
17912
17913   case $host_os in
17914   cygwin* | mingw* | pw32* | cegcc*)
17915     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17916     # When not using gcc, we currently assume that we are using
17917     # Microsoft Visual C++.
17918     if test "$GCC" != yes; then
17919       with_gnu_ld=no
17920     fi
17921     ;;
17922   interix*)
17923     # we just hope/assume this is gcc and not c89 (= MSVC++)
17924     with_gnu_ld=yes
17925     ;;
17926   openbsd*)
17927     with_gnu_ld=no
17928     ;;
17929   esac
17930
17931   ld_shlibs_GCJ=yes
17932
17933   # On some targets, GNU ld is compatible enough with the native linker
17934   # that we're better off using the native interface for both.
17935   lt_use_gnu_ld_interface=no
17936   if test "$with_gnu_ld" = yes; then
17937     case $host_os in
17938       aix*)
17939         # The AIX port of GNU ld has always aspired to compatibility
17940         # with the native linker.  However, as the warning in the GNU ld
17941         # block says, versions before 2.19.5* couldn't really create working
17942         # shared libraries, regardless of the interface used.
17943         case `$LD -v 2>&1` in
17944           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17945           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17946           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17947           *)
17948             lt_use_gnu_ld_interface=yes
17949             ;;
17950         esac
17951         ;;
17952       *)
17953         lt_use_gnu_ld_interface=yes
17954         ;;
17955     esac
17956   fi
17957
17958   if test "$lt_use_gnu_ld_interface" = yes; then
17959     # If archive_cmds runs LD, not CC, wlarc should be empty
17960     wlarc='${wl}'
17961
17962     # Set some defaults for GNU ld with shared library support. These
17963     # are reset later if shared libraries are not supported. Putting them
17964     # here allows them to be overridden if necessary.
17965     runpath_var=LD_RUN_PATH
17966     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17967     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17968     # ancient GNU ld didn't support --whole-archive et. al.
17969     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17970       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17971     else
17972       whole_archive_flag_spec_GCJ=
17973     fi
17974     supports_anon_versioning=no
17975     case `$LD -v 2>&1` in
17976       *GNU\ gold*) supports_anon_versioning=yes ;;
17977       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17978       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17979       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17980       *\ 2.11.*) ;; # other 2.11 versions
17981       *) supports_anon_versioning=yes ;;
17982     esac
17983
17984     # See if GNU ld supports shared libraries.
17985     case $host_os in
17986     aix[3-9]*)
17987       # On AIX/PPC, the GNU linker is very broken
17988       if test "$host_cpu" != ia64; then
17989         ld_shlibs_GCJ=no
17990         cat <<_LT_EOF 1>&2
17991
17992 *** Warning: the GNU linker, at least up to release 2.19, is reported
17993 *** to be unable to reliably create shared libraries on AIX.
17994 *** Therefore, libtool is disabling shared libraries support.  If you
17995 *** really care for shared libraries, you may want to install binutils
17996 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17997 *** You will then need to restart the configuration process.
17998
17999 _LT_EOF
18000       fi
18001       ;;
18002
18003     amigaos*)
18004       case $host_cpu in
18005       powerpc)
18006             # see comment about AmigaOS4 .so support
18007             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008             archive_expsym_cmds_GCJ=''
18009         ;;
18010       m68k)
18011             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)'
18012             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18013             hardcode_minus_L_GCJ=yes
18014         ;;
18015       esac
18016       ;;
18017
18018     beos*)
18019       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18020         allow_undefined_flag_GCJ=unsupported
18021         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18022         # support --undefined.  This deserves some investigation.  FIXME
18023         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18024       else
18025         ld_shlibs_GCJ=no
18026       fi
18027       ;;
18028
18029     cygwin* | mingw* | pw32* | cegcc*)
18030       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18031       # as there is no search path for DLLs.
18032       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18033       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18034       allow_undefined_flag_GCJ=unsupported
18035       always_export_symbols_GCJ=no
18036       enable_shared_with_static_runtimes_GCJ=yes
18037       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18038
18039       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18040         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18041         # If the export-symbols file already is a .def file (1st line
18042         # is EXPORTS), use it as is; otherwise, prepend...
18043         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18044           cp $export_symbols $output_objdir/$soname.def;
18045         else
18046           echo EXPORTS > $output_objdir/$soname.def;
18047           cat $export_symbols >> $output_objdir/$soname.def;
18048         fi~
18049         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18050       else
18051         ld_shlibs_GCJ=no
18052       fi
18053       ;;
18054
18055     haiku*)
18056       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18057       link_all_deplibs_GCJ=yes
18058       ;;
18059
18060     interix[3-9]*)
18061       hardcode_direct_GCJ=no
18062       hardcode_shlibpath_var_GCJ=no
18063       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18064       export_dynamic_flag_spec_GCJ='${wl}-E'
18065       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18066       # Instead, shared libraries are loaded at an image base (0x10000000 by
18067       # default) and relocated if they conflict, which is a slow very memory
18068       # consuming and fragmenting process.  To avoid this, we pick a random,
18069       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18070       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18071       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'
18072       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'
18073       ;;
18074
18075     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18076       tmp_diet=no
18077       if test "$host_os" = linux-dietlibc; then
18078         case $cc_basename in
18079           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18080         esac
18081       fi
18082       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18083          && test "$tmp_diet" = no
18084       then
18085         tmp_addflag=
18086         tmp_sharedflag='-shared'
18087         case $cc_basename,$host_cpu in
18088         pgcc*)                          # Portland Group C compiler
18089           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'
18090           tmp_addflag=' $pic_flag'
18091           ;;
18092         pgf77* | pgf90* | pgf95* | pgfortran*)
18093                                         # Portland Group f77 and f90 compilers
18094           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18095           tmp_addflag=' $pic_flag -Mnomain' ;;
18096         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18097           tmp_addflag=' -i_dynamic' ;;
18098         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18099           tmp_addflag=' -i_dynamic -nofor_main' ;;
18100         ifc* | ifort*)                  # Intel Fortran compiler
18101           tmp_addflag=' -nofor_main' ;;
18102         lf95*)                          # Lahey Fortran 8.1
18103           whole_archive_flag_spec_GCJ=
18104           tmp_sharedflag='--shared' ;;
18105         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18106           tmp_sharedflag='-qmkshrobj'
18107           tmp_addflag= ;;
18108         nvcc*)  # Cuda Compiler Driver 2.2
18109           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'
18110           compiler_needs_object_GCJ=yes
18111           ;;
18112         esac
18113         case `$CC -V 2>&1 | sed 5q` in
18114         *Sun\ C*)                       # Sun C 5.9
18115           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'
18116           compiler_needs_object_GCJ=yes
18117           tmp_sharedflag='-G' ;;
18118         *Sun\ F*)                       # Sun Fortran 8.3
18119           tmp_sharedflag='-G' ;;
18120         esac
18121         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18122
18123         if test "x$supports_anon_versioning" = xyes; then
18124           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18125             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18126             echo "local: *; };" >> $output_objdir/$libname.ver~
18127             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18128         fi
18129
18130         case $cc_basename in
18131         xlf* | bgf* | bgxlf* | mpixlf*)
18132           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18133           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18134           hardcode_libdir_flag_spec_GCJ=
18135           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18136           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18137           if test "x$supports_anon_versioning" = xyes; then
18138             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18139               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18140               echo "local: *; };" >> $output_objdir/$libname.ver~
18141               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18142           fi
18143           ;;
18144         esac
18145       else
18146         ld_shlibs_GCJ=no
18147       fi
18148       ;;
18149
18150     netbsd*)
18151       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18152         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18153         wlarc=
18154       else
18155         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18156         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18157       fi
18158       ;;
18159
18160     solaris*)
18161       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18162         ld_shlibs_GCJ=no
18163         cat <<_LT_EOF 1>&2
18164
18165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18166 *** create shared libraries on Solaris systems.  Therefore, libtool
18167 *** is disabling shared libraries support.  We urge you to upgrade GNU
18168 *** binutils to release 2.9.1 or newer.  Another option is to modify
18169 *** your PATH or compiler configuration so that the native linker is
18170 *** used, and then restart.
18171
18172 _LT_EOF
18173       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18174         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18175         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18176       else
18177         ld_shlibs_GCJ=no
18178       fi
18179       ;;
18180
18181     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18182       case `$LD -v 2>&1` in
18183         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18184         ld_shlibs_GCJ=no
18185         cat <<_LT_EOF 1>&2
18186
18187 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18188 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18189 *** is disabling shared libraries support.  We urge you to upgrade GNU
18190 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18191 *** your PATH or compiler configuration so that the native linker is
18192 *** used, and then restart.
18193
18194 _LT_EOF
18195         ;;
18196         *)
18197           # For security reasons, it is highly recommended that you always
18198           # use absolute paths for naming shared libraries, and exclude the
18199           # DT_RUNPATH tag from executables and libraries.  But doing so
18200           # requires that you compile everything twice, which is a pain.
18201           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18202             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18203             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18204             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18205           else
18206             ld_shlibs_GCJ=no
18207           fi
18208         ;;
18209       esac
18210       ;;
18211
18212     sunos4*)
18213       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18214       wlarc=
18215       hardcode_direct_GCJ=yes
18216       hardcode_shlibpath_var_GCJ=no
18217       ;;
18218
18219     *)
18220       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18221         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18222         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18223       else
18224         ld_shlibs_GCJ=no
18225       fi
18226       ;;
18227     esac
18228
18229     if test "$ld_shlibs_GCJ" = no; then
18230       runpath_var=
18231       hardcode_libdir_flag_spec_GCJ=
18232       export_dynamic_flag_spec_GCJ=
18233       whole_archive_flag_spec_GCJ=
18234     fi
18235   else
18236     # PORTME fill in a description of your system's linker (not GNU ld)
18237     case $host_os in
18238     aix3*)
18239       allow_undefined_flag_GCJ=unsupported
18240       always_export_symbols_GCJ=yes
18241       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'
18242       # Note: this linker hardcodes the directories in LIBPATH if there
18243       # are no directories specified by -L.
18244       hardcode_minus_L_GCJ=yes
18245       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18246         # Neither direct hardcoding nor static linking is supported with a
18247         # broken collect2.
18248         hardcode_direct_GCJ=unsupported
18249       fi
18250       ;;
18251
18252     aix[4-9]*)
18253       if test "$host_cpu" = ia64; then
18254         # On IA64, the linker does run time linking by default, so we don't
18255         # have to do anything special.
18256         aix_use_runtimelinking=no
18257         exp_sym_flag='-Bexport'
18258         no_entry_flag=""
18259       else
18260         # If we're using GNU nm, then we don't want the "-C" option.
18261         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18262         # Also, AIX nm treats weak defined symbols like other global
18263         # defined symbols, whereas GNU nm marks them as "W".
18264         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18265           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'
18266         else
18267           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'
18268         fi
18269         aix_use_runtimelinking=no
18270
18271         # Test if we are trying to use run time linking or normal
18272         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18273         # need to do runtime linking.
18274         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18275           for ld_flag in $LDFLAGS; do
18276           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18277             aix_use_runtimelinking=yes
18278             break
18279           fi
18280           done
18281           ;;
18282         esac
18283
18284         exp_sym_flag='-bexport'
18285         no_entry_flag='-bnoentry'
18286       fi
18287
18288       # When large executables or shared objects are built, AIX ld can
18289       # have problems creating the table of contents.  If linking a library
18290       # or program results in "error TOC overflow" add -mminimal-toc to
18291       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18292       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18293
18294       archive_cmds_GCJ=''
18295       hardcode_direct_GCJ=yes
18296       hardcode_direct_absolute_GCJ=yes
18297       hardcode_libdir_separator_GCJ=':'
18298       link_all_deplibs_GCJ=yes
18299       file_list_spec_GCJ='${wl}-f,'
18300
18301       if test "$GCC" = yes; then
18302         case $host_os in aix4.[012]|aix4.[012].*)
18303         # We only want to do this on AIX 4.2 and lower, the check
18304         # below for broken collect2 doesn't work under 4.3+
18305           collect2name=`${CC} -print-prog-name=collect2`
18306           if test -f "$collect2name" &&
18307            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18308           then
18309           # We have reworked collect2
18310           :
18311           else
18312           # We have old collect2
18313           hardcode_direct_GCJ=unsupported
18314           # It fails to find uninstalled libraries when the uninstalled
18315           # path is not listed in the libpath.  Setting hardcode_minus_L
18316           # to unsupported forces relinking
18317           hardcode_minus_L_GCJ=yes
18318           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18319           hardcode_libdir_separator_GCJ=
18320           fi
18321           ;;
18322         esac
18323         shared_flag='-shared'
18324         if test "$aix_use_runtimelinking" = yes; then
18325           shared_flag="$shared_flag "'${wl}-G'
18326         fi
18327       else
18328         # not using gcc
18329         if test "$host_cpu" = ia64; then
18330         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18331         # chokes on -Wl,-G. The following line is correct:
18332           shared_flag='-G'
18333         else
18334           if test "$aix_use_runtimelinking" = yes; then
18335             shared_flag='${wl}-G'
18336           else
18337             shared_flag='${wl}-bM:SRE'
18338           fi
18339         fi
18340       fi
18341
18342       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18343       # It seems that -bexpall does not export symbols beginning with
18344       # underscore (_), so it is better to generate a list of symbols to export.
18345       always_export_symbols_GCJ=yes
18346       if test "$aix_use_runtimelinking" = yes; then
18347         # Warning - without using the other runtime loading flags (-brtl),
18348         # -berok will link without error, but may produce a broken library.
18349         allow_undefined_flag_GCJ='-berok'
18350         # Determine the default libpath from the value encoded in an
18351         # empty executable.
18352         if test x$gcc_no_link = xyes; then
18353   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18354 fi
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h.  */
18357
18358 int
18359 main ()
18360 {
18361
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 if ac_fn_c_try_link "$LINENO"; then :
18367
18368 lt_aix_libpath_sed='
18369     /Import File Strings/,/^$/ {
18370         /^0/ {
18371             s/^0  *\(.*\)$/\1/
18372             p
18373         }
18374     }'
18375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18376 # Check for a 64-bit object if we didn't find anything.
18377 if test -z "$aix_libpath"; then
18378   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18379 fi
18380 fi
18381 rm -f core conftest.err conftest.$ac_objext \
18382     conftest$ac_exeext conftest.$ac_ext
18383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18384
18385         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18386         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"
18387       else
18388         if test "$host_cpu" = ia64; then
18389           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18390           allow_undefined_flag_GCJ="-z nodefs"
18391           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"
18392         else
18393          # Determine the default libpath from the value encoded in an
18394          # empty executable.
18395          if test x$gcc_no_link = xyes; then
18396   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18397 fi
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400
18401 int
18402 main ()
18403 {
18404
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 if ac_fn_c_try_link "$LINENO"; then :
18410
18411 lt_aix_libpath_sed='
18412     /Import File Strings/,/^$/ {
18413         /^0/ {
18414             s/^0  *\(.*\)$/\1/
18415             p
18416         }
18417     }'
18418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18419 # Check for a 64-bit object if we didn't find anything.
18420 if test -z "$aix_libpath"; then
18421   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18422 fi
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext \
18425     conftest$ac_exeext conftest.$ac_ext
18426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18427
18428          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18429           # Warning - without using the other run time loading flags,
18430           # -berok will link without error, but may produce a broken library.
18431           no_undefined_flag_GCJ=' ${wl}-bernotok'
18432           allow_undefined_flag_GCJ=' ${wl}-berok'
18433           if test "$with_gnu_ld" = yes; then
18434             # We only use this code for GNU lds that support --whole-archive.
18435             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18436           else
18437             # Exported symbols can be pulled into shared objects from archives
18438             whole_archive_flag_spec_GCJ='$convenience'
18439           fi
18440           archive_cmds_need_lc_GCJ=yes
18441           # This is similar to how AIX traditionally builds its shared libraries.
18442           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'
18443         fi
18444       fi
18445       ;;
18446
18447     amigaos*)
18448       case $host_cpu in
18449       powerpc)
18450             # see comment about AmigaOS4 .so support
18451             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18452             archive_expsym_cmds_GCJ=''
18453         ;;
18454       m68k)
18455             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)'
18456             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18457             hardcode_minus_L_GCJ=yes
18458         ;;
18459       esac
18460       ;;
18461
18462     bsdi[45]*)
18463       export_dynamic_flag_spec_GCJ=-rdynamic
18464       ;;
18465
18466     cygwin* | mingw* | pw32* | cegcc*)
18467       # When not using gcc, we currently assume that we are using
18468       # Microsoft Visual C++.
18469       # hardcode_libdir_flag_spec is actually meaningless, as there is
18470       # no search path for DLLs.
18471       hardcode_libdir_flag_spec_GCJ=' '
18472       allow_undefined_flag_GCJ=unsupported
18473       # Tell ltmain to make .lib files, not .a files.
18474       libext=lib
18475       # Tell ltmain to make .dll files, not .so files.
18476       shrext_cmds=".dll"
18477       # FIXME: Setting linknames here is a bad hack.
18478       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18479       # The linker will automatically build a .lib file if we build a DLL.
18480       old_archive_from_new_cmds_GCJ='true'
18481       # FIXME: Should let the user specify the lib program.
18482       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18483       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18484       enable_shared_with_static_runtimes_GCJ=yes
18485       ;;
18486
18487     darwin* | rhapsody*)
18488
18489
18490   archive_cmds_need_lc_GCJ=no
18491   hardcode_direct_GCJ=no
18492   hardcode_automatic_GCJ=yes
18493   hardcode_shlibpath_var_GCJ=unsupported
18494   if test "$lt_cv_ld_force_load" = "yes"; then
18495     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\"`'
18496   else
18497     whole_archive_flag_spec_GCJ=''
18498   fi
18499   link_all_deplibs_GCJ=yes
18500   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18501   case $cc_basename in
18502      ifort*) _lt_dar_can_shared=yes ;;
18503      *) _lt_dar_can_shared=$GCC ;;
18504   esac
18505   if test "$_lt_dar_can_shared" = "yes"; then
18506     output_verbose_link_cmd=func_echo_all
18507     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}"
18508     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18509     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}"
18510     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}"
18511
18512   else
18513   ld_shlibs_GCJ=no
18514   fi
18515
18516       ;;
18517
18518     dgux*)
18519       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18520       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18521       hardcode_shlibpath_var_GCJ=no
18522       ;;
18523
18524     freebsd1*)
18525       ld_shlibs_GCJ=no
18526       ;;
18527
18528     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18529     # support.  Future versions do this automatically, but an explicit c++rt0.o
18530     # does not break anything, and helps significantly (at the cost of a little
18531     # extra space).
18532     freebsd2.2*)
18533       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18534       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18535       hardcode_direct_GCJ=yes
18536       hardcode_shlibpath_var_GCJ=no
18537       ;;
18538
18539     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18540     freebsd2*)
18541       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18542       hardcode_direct_GCJ=yes
18543       hardcode_minus_L_GCJ=yes
18544       hardcode_shlibpath_var_GCJ=no
18545       ;;
18546
18547     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18548     freebsd* | dragonfly*)
18549       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18550       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18551       hardcode_direct_GCJ=yes
18552       hardcode_shlibpath_var_GCJ=no
18553       ;;
18554
18555     hpux9*)
18556       if test "$GCC" = yes; then
18557         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'
18558       else
18559         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'
18560       fi
18561       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18562       hardcode_libdir_separator_GCJ=:
18563       hardcode_direct_GCJ=yes
18564
18565       # hardcode_minus_L: Not really in the search PATH,
18566       # but as the default location of the library.
18567       hardcode_minus_L_GCJ=yes
18568       export_dynamic_flag_spec_GCJ='${wl}-E'
18569       ;;
18570
18571     hpux10*)
18572       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18573         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18574       else
18575         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18576       fi
18577       if test "$with_gnu_ld" = no; then
18578         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18579         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18580         hardcode_libdir_separator_GCJ=:
18581         hardcode_direct_GCJ=yes
18582         hardcode_direct_absolute_GCJ=yes
18583         export_dynamic_flag_spec_GCJ='${wl}-E'
18584         # hardcode_minus_L: Not really in the search PATH,
18585         # but as the default location of the library.
18586         hardcode_minus_L_GCJ=yes
18587       fi
18588       ;;
18589
18590     hpux11*)
18591       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18592         case $host_cpu in
18593         hppa*64*)
18594           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18595           ;;
18596         ia64*)
18597           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18598           ;;
18599         *)
18600           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18601           ;;
18602         esac
18603       else
18604         case $host_cpu in
18605         hppa*64*)
18606           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18607           ;;
18608         ia64*)
18609           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18610           ;;
18611         *)
18612         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18613           ;;
18614         esac
18615       fi
18616       if test "$with_gnu_ld" = no; then
18617         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18618         hardcode_libdir_separator_GCJ=:
18619
18620         case $host_cpu in
18621         hppa*64*|ia64*)
18622           hardcode_direct_GCJ=no
18623           hardcode_shlibpath_var_GCJ=no
18624           ;;
18625         *)
18626           hardcode_direct_GCJ=yes
18627           hardcode_direct_absolute_GCJ=yes
18628           export_dynamic_flag_spec_GCJ='${wl}-E'
18629
18630           # hardcode_minus_L: Not really in the search PATH,
18631           # but as the default location of the library.
18632           hardcode_minus_L_GCJ=yes
18633           ;;
18634         esac
18635       fi
18636       ;;
18637
18638     irix5* | irix6* | nonstopux*)
18639       if test "$GCC" = yes; then
18640         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'
18641         # Try to use the -exported_symbol ld option, if it does not
18642         # work, assume that -exports_file does not work either and
18643         # implicitly export all symbols.
18644         save_LDFLAGS="$LDFLAGS"
18645         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18646         if test x$gcc_no_link = xyes; then
18647   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18648 fi
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h.  */
18651 int foo(void) {}
18652 _ACEOF
18653 if ac_fn_c_try_link "$LINENO"; then :
18654   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'
18655
18656 fi
18657 rm -f core conftest.err conftest.$ac_objext \
18658     conftest$ac_exeext conftest.$ac_ext
18659         LDFLAGS="$save_LDFLAGS"
18660       else
18661         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'
18662         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'
18663       fi
18664       archive_cmds_need_lc_GCJ='no'
18665       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18666       hardcode_libdir_separator_GCJ=:
18667       inherit_rpath_GCJ=yes
18668       link_all_deplibs_GCJ=yes
18669       ;;
18670
18671     netbsd*)
18672       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18673         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18674       else
18675         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18676       fi
18677       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18678       hardcode_direct_GCJ=yes
18679       hardcode_shlibpath_var_GCJ=no
18680       ;;
18681
18682     newsos6)
18683       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18684       hardcode_direct_GCJ=yes
18685       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18686       hardcode_libdir_separator_GCJ=:
18687       hardcode_shlibpath_var_GCJ=no
18688       ;;
18689
18690     *nto* | *qnx*)
18691       ;;
18692
18693     openbsd*)
18694       if test -f /usr/libexec/ld.so; then
18695         hardcode_direct_GCJ=yes
18696         hardcode_shlibpath_var_GCJ=no
18697         hardcode_direct_absolute_GCJ=yes
18698         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18699           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18700           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18701           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18702           export_dynamic_flag_spec_GCJ='${wl}-E'
18703         else
18704           case $host_os in
18705            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18706              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18707              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18708              ;;
18709            *)
18710              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18711              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18712              ;;
18713           esac
18714         fi
18715       else
18716         ld_shlibs_GCJ=no
18717       fi
18718       ;;
18719
18720     os2*)
18721       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18722       hardcode_minus_L_GCJ=yes
18723       allow_undefined_flag_GCJ=unsupported
18724       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'
18725       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18726       ;;
18727
18728     osf3*)
18729       if test "$GCC" = yes; then
18730         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18731         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'
18732       else
18733         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18734         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'
18735       fi
18736       archive_cmds_need_lc_GCJ='no'
18737       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18738       hardcode_libdir_separator_GCJ=:
18739       ;;
18740
18741     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18742       if test "$GCC" = yes; then
18743         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18744         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'
18745         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18746       else
18747         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18748         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'
18749         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~
18750         $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'
18751
18752         # Both c and cxx compiler support -rpath directly
18753         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18754       fi
18755       archive_cmds_need_lc_GCJ='no'
18756       hardcode_libdir_separator_GCJ=:
18757       ;;
18758
18759     solaris*)
18760       no_undefined_flag_GCJ=' -z defs'
18761       if test "$GCC" = yes; then
18762         wlarc='${wl}'
18763         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18764         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18765           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18766       else
18767         case `$CC -V 2>&1` in
18768         *"Compilers 5.0"*)
18769           wlarc=''
18770           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18771           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18772           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18773           ;;
18774         *)
18775           wlarc='${wl}'
18776           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18777           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18778           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18779           ;;
18780         esac
18781       fi
18782       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18783       hardcode_shlibpath_var_GCJ=no
18784       case $host_os in
18785       solaris2.[0-5] | solaris2.[0-5].*) ;;
18786       *)
18787         # The compiler driver will combine and reorder linker options,
18788         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18789         # but is careful enough not to reorder.
18790         # Supported since Solaris 2.6 (maybe 2.5.1?)
18791         if test "$GCC" = yes; then
18792           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18793         else
18794           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18795         fi
18796         ;;
18797       esac
18798       link_all_deplibs_GCJ=yes
18799       ;;
18800
18801     sunos4*)
18802       if test "x$host_vendor" = xsequent; then
18803         # Use $CC to link under sequent, because it throws in some extra .o
18804         # files that make .init and .fini sections work.
18805         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18806       else
18807         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18808       fi
18809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18810       hardcode_direct_GCJ=yes
18811       hardcode_minus_L_GCJ=yes
18812       hardcode_shlibpath_var_GCJ=no
18813       ;;
18814
18815     sysv4)
18816       case $host_vendor in
18817         sni)
18818           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18819           hardcode_direct_GCJ=yes # is this really true???
18820         ;;
18821         siemens)
18822           ## LD is ld it makes a PLAMLIB
18823           ## CC just makes a GrossModule.
18824           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18825           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18826           hardcode_direct_GCJ=no
18827         ;;
18828         motorola)
18829           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18830           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18831         ;;
18832       esac
18833       runpath_var='LD_RUN_PATH'
18834       hardcode_shlibpath_var_GCJ=no
18835       ;;
18836
18837     sysv4.3*)
18838       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18839       hardcode_shlibpath_var_GCJ=no
18840       export_dynamic_flag_spec_GCJ='-Bexport'
18841       ;;
18842
18843     sysv4*MP*)
18844       if test -d /usr/nec; then
18845         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18846         hardcode_shlibpath_var_GCJ=no
18847         runpath_var=LD_RUN_PATH
18848         hardcode_runpath_var=yes
18849         ld_shlibs_GCJ=yes
18850       fi
18851       ;;
18852
18853     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18854       no_undefined_flag_GCJ='${wl}-z,text'
18855       archive_cmds_need_lc_GCJ=no
18856       hardcode_shlibpath_var_GCJ=no
18857       runpath_var='LD_RUN_PATH'
18858
18859       if test "$GCC" = yes; then
18860         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18861         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18862       else
18863         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18864         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18865       fi
18866       ;;
18867
18868     sysv5* | sco3.2v5* | sco5v6*)
18869       # Note: We can NOT use -z defs as we might desire, because we do not
18870       # link with -lc, and that would cause any symbols used from libc to
18871       # always be unresolved, which means just about no library would
18872       # ever link correctly.  If we're not using GNU ld we use -z text
18873       # though, which does catch some bad symbols but isn't as heavy-handed
18874       # as -z defs.
18875       no_undefined_flag_GCJ='${wl}-z,text'
18876       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18877       archive_cmds_need_lc_GCJ=no
18878       hardcode_shlibpath_var_GCJ=no
18879       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18880       hardcode_libdir_separator_GCJ=':'
18881       link_all_deplibs_GCJ=yes
18882       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18883       runpath_var='LD_RUN_PATH'
18884
18885       if test "$GCC" = yes; then
18886         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18887         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18888       else
18889         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18890         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18891       fi
18892       ;;
18893
18894     uts4*)
18895       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18896       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18897       hardcode_shlibpath_var_GCJ=no
18898       ;;
18899
18900     *)
18901       ld_shlibs_GCJ=no
18902       ;;
18903     esac
18904
18905     if test x$host_vendor = xsni; then
18906       case $host in
18907       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18908         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18909         ;;
18910       esac
18911     fi
18912   fi
18913
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18915 $as_echo "$ld_shlibs_GCJ" >&6; }
18916 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18917
18918 with_gnu_ld_GCJ=$with_gnu_ld
18919
18920
18921
18922
18923
18924
18925 #
18926 # Do we need to explicitly link libc?
18927 #
18928 case "x$archive_cmds_need_lc_GCJ" in
18929 x|xyes)
18930   # Assume -lc should be added
18931   archive_cmds_need_lc_GCJ=yes
18932
18933   if test "$enable_shared" = yes && test "$GCC" = yes; then
18934     case $archive_cmds_GCJ in
18935     *'~'*)
18936       # FIXME: we may have to deal with multi-command sequences.
18937       ;;
18938     '$CC '*)
18939       # Test whether the compiler implicitly links with -lc since on some
18940       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18941       # to ld, don't add -lc before -lgcc.
18942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18943 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18944 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18945   $as_echo_n "(cached) " >&6
18946 else
18947   $RM conftest*
18948         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18949
18950         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18951   (eval $ac_compile) 2>&5
18952   ac_status=$?
18953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18954   test $ac_status = 0; } 2>conftest.err; then
18955           soname=conftest
18956           lib=conftest
18957           libobjs=conftest.$ac_objext
18958           deplibs=
18959           wl=$lt_prog_compiler_wl_GCJ
18960           pic_flag=$lt_prog_compiler_pic_GCJ
18961           compiler_flags=-v
18962           linker_flags=-v
18963           verstring=
18964           output_objdir=.
18965           libname=conftest
18966           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18967           allow_undefined_flag_GCJ=
18968           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18969   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18970   ac_status=$?
18971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18972   test $ac_status = 0; }
18973           then
18974             lt_cv_archive_cmds_need_lc_GCJ=no
18975           else
18976             lt_cv_archive_cmds_need_lc_GCJ=yes
18977           fi
18978           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18979         else
18980           cat conftest.err 1>&5
18981         fi
18982         $RM conftest*
18983
18984 fi
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18986 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18987       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18988       ;;
18989     esac
18990   fi
18991   ;;
18992 esac
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19058 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19059 hardcode_action_GCJ=
19060 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19061    test -n "$runpath_var_GCJ" ||
19062    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19063
19064   # We can hardcode non-existent directories.
19065   if test "$hardcode_direct_GCJ" != no &&
19066      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19067      # have to relink, otherwise we might link with an installed library
19068      # when we should be linking with a yet-to-be-installed one
19069      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19070      test "$hardcode_minus_L_GCJ" != no; then
19071     # Linking always hardcodes the temporary library directory.
19072     hardcode_action_GCJ=relink
19073   else
19074     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19075     hardcode_action_GCJ=immediate
19076   fi
19077 else
19078   # We cannot hardcode anything, or else we can only hardcode existing
19079   # directories.
19080   hardcode_action_GCJ=unsupported
19081 fi
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19083 $as_echo "$hardcode_action_GCJ" >&6; }
19084
19085 if test "$hardcode_action_GCJ" = relink ||
19086    test "$inherit_rpath_GCJ" = yes; then
19087   # Fast installation is not supported
19088   enable_fast_install=no
19089 elif test "$shlibpath_overrides_runpath" = yes ||
19090      test "$enable_shared" = no; then
19091   # Fast installation is not necessary
19092   enable_fast_install=needless
19093 fi
19094
19095
19096
19097
19098
19099
19100
19101 fi
19102
19103 compiler_GCJ=${GCJ-gcj}
19104 ac_ext=c
19105 ac_cpp='$CPP $CPPFLAGS'
19106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110
19111 if test "x$CC" != xcc; then
19112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19113 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19114 else
19115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19116 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19117 fi
19118 set dummy $CC; ac_cc=`$as_echo "$2" |
19119                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19120 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19121   $as_echo_n "(cached) " >&6
19122 else
19123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h.  */
19125
19126 int
19127 main ()
19128 {
19129
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 # Make sure it works both with $CC and with simple cc.
19135 # We do the test twice because some compilers refuse to overwrite an
19136 # existing .o file with -o, though they will create one.
19137 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19138 rm -f conftest2.*
19139 if { { case "(($ac_try" in
19140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141   *) ac_try_echo=$ac_try;;
19142 esac
19143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19144 $as_echo "$ac_try_echo"; } >&5
19145   (eval "$ac_try") 2>&5
19146   ac_status=$?
19147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19148   test $ac_status = 0; } &&
19149    test -f conftest2.$ac_objext && { { case "(($ac_try" in
19150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151   *) ac_try_echo=$ac_try;;
19152 esac
19153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19154 $as_echo "$ac_try_echo"; } >&5
19155   (eval "$ac_try") 2>&5
19156   ac_status=$?
19157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19158   test $ac_status = 0; };
19159 then
19160   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19161   if test "x$CC" != xcc; then
19162     # Test first that cc exists at all.
19163     if { ac_try='cc -c conftest.$ac_ext >&5'
19164   { { case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19169 $as_echo "$ac_try_echo"; } >&5
19170   (eval "$ac_try") 2>&5
19171   ac_status=$?
19172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19173   test $ac_status = 0; }; }; then
19174       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19175       rm -f conftest2.*
19176       if { { case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19181 $as_echo "$ac_try_echo"; } >&5
19182   (eval "$ac_try") 2>&5
19183   ac_status=$?
19184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19185   test $ac_status = 0; } &&
19186          test -f conftest2.$ac_objext && { { case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19191 $as_echo "$ac_try_echo"; } >&5
19192   (eval "$ac_try") 2>&5
19193   ac_status=$?
19194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19195   test $ac_status = 0; };
19196       then
19197         # cc works too.
19198         :
19199       else
19200         # cc exists but doesn't like -o.
19201         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19202       fi
19203     fi
19204   fi
19205 else
19206   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19207 fi
19208 rm -f core conftest*
19209
19210 fi
19211 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19213 $as_echo "yes" >&6; }
19214 else
19215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19216 $as_echo "no" >&6; }
19217
19218 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19219
19220 fi
19221
19222 # FIXME: we rely on the cache variable name because
19223 # there is no other way.
19224 set dummy $CC
19225 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19226 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19227 if test "$am_t" != yes; then
19228    # Losing compiler, so override with the script.
19229    # FIXME: It is wrong to rewrite CC.
19230    # But if we don't then we get into trouble of one sort or another.
19231    # A longer-term fix would be to have automake use am__CC in this case,
19232    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19233    CC="$am_aux_dir/compile $CC"
19234 fi
19235
19236
19237
19238
19239
19240 subdirs="$subdirs classpath libltdl"
19241
19242
19243 # The -no-testsuite modules omit the test subdir.
19244  if test -d $srcdir/testsuite; then
19245   TESTSUBDIR_TRUE=
19246   TESTSUBDIR_FALSE='#'
19247 else
19248   TESTSUBDIR_TRUE='#'
19249   TESTSUBDIR_FALSE=
19250 fi
19251
19252
19253 # Should the runtime set system properties by examining the
19254 # environment variable GCJ_PROPERTIES?
19255 # Check whether --enable-getenv-properties was given.
19256 if test "${enable_getenv_properties+set}" = set; then :
19257   enableval=$enable_getenv_properties;
19258 fi
19259
19260
19261 # Whether GCJ_PROPERTIES is used depends on the target.
19262 if test -z "$enable_getenv_properties"; then
19263    enable_getenv_properties=${enable_getenv_properties_default-yes}
19264 fi
19265 if test "$enable_getenv_properties" = no; then
19266
19267 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19268
19269 fi
19270
19271 # Whether we should use arguments to main()
19272 if test -z "$enable_main_args"; then
19273    enable_main_args=${enable_main_args_default-yes}
19274 fi
19275 if test "$enable_main_args" = no; then
19276
19277 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19278
19279 fi
19280
19281
19282 # Should we use hashtable-based synchronization?
19283 # Currently works only for Linux X86/ia64
19284 # Typically faster and more space-efficient
19285 # Check whether --enable-hash-synchronization was given.
19286 if test "${enable_hash_synchronization+set}" = set; then :
19287   enableval=$enable_hash_synchronization;
19288 fi
19289
19290
19291 if test -z "$enable_hash_synchronization"; then
19292    enable_hash_synchronization=$enable_hash_synchronization_default
19293 fi
19294
19295
19296 install_ecj_jar=no
19297 ECJ_BUILD_JAR=
19298 ECJ_JAR=
19299
19300 # Check whether --with-ecj-jar was given.
19301 if test "${with_ecj_jar+set}" = set; then :
19302   withval=$with_ecj_jar; ECJ_JAR=$withval
19303 else
19304   if test -f $multi_basedir/ecj.jar; then
19305            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19306            ECJ_JAR='$(jardir)/ecj.jar'
19307            install_ecj_jar=yes
19308          fi
19309 fi
19310
19311
19312
19313  if test "$ECJ_JAR" != ""; then
19314   BUILD_ECJ1_TRUE=
19315   BUILD_ECJ1_FALSE='#'
19316 else
19317   BUILD_ECJ1_TRUE='#'
19318   BUILD_ECJ1_FALSE=
19319 fi
19320
19321  if test $install_ecj_jar = yes; then
19322   INSTALL_ECJ_JAR_TRUE=
19323   INSTALL_ECJ_JAR_FALSE='#'
19324 else
19325   INSTALL_ECJ_JAR_TRUE='#'
19326   INSTALL_ECJ_JAR_FALSE=
19327 fi
19328
19329
19330
19331 # Check whether --with-java-home was given.
19332 if test "${with_java_home+set}" = set; then :
19333   withval=$with_java_home; JAVA_HOME="${withval}"
19334 else
19335   JAVA_HOME=""
19336 fi
19337
19338  if test ! -z "$JAVA_HOME"; then
19339   JAVA_HOME_SET_TRUE=
19340   JAVA_HOME_SET_FALSE='#'
19341 else
19342   JAVA_HOME_SET_TRUE='#'
19343   JAVA_HOME_SET_FALSE=
19344 fi
19345
19346
19347
19348 suppress_libgcj_bc=no
19349 # Check whether --enable-libgcj-bc was given.
19350 if test "${enable_libgcj_bc+set}" = set; then :
19351   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19352      suppress_libgcj_bc=yes
19353    fi
19354 fi
19355
19356  if test "$suppress_libgcj_bc" = "yes"; then
19357   SUPPRESS_LIBGCJ_BC_TRUE=
19358   SUPPRESS_LIBGCJ_BC_FALSE='#'
19359 else
19360   SUPPRESS_LIBGCJ_BC_TRUE='#'
19361   SUPPRESS_LIBGCJ_BC_FALSE=
19362 fi
19363
19364
19365 build_libgcj_reduced_reflection=no
19366 # Check whether --enable-reduced-reflection was given.
19367 if test "${enable_reduced_reflection+set}" = set; then :
19368   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19369      build_libgcj_reduced_reflection=yes
19370    fi
19371 fi
19372
19373  if test "$build_libgcj_reduced_reflection" = "yes"; then
19374   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19375   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19376 else
19377   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19378   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19379 fi
19380
19381
19382 # What is the native OS API for MinGW?
19383
19384 # Check whether --with-win32-nlsapi was given.
19385 if test "${with_win32_nlsapi+set}" = set; then :
19386   withval=$with_win32_nlsapi; case "${withval}" in
19387   ansi) with_win32_nlsapi=ansi ;;
19388   unicows) with_win32_nlsapi=unicows ;;
19389   unicode) with_win32_nlsapi=unicode ;;
19390   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19391 esac
19392 else
19393   with_win32_nlsapi=ansi
19394 fi
19395
19396
19397 case "${with_win32_nlsapi}" in
19398   unicows | unicode)
19399
19400 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19401
19402     ;;
19403 esac
19404
19405 # configure.host sets slow_pthread_self if the synchronization code should
19406 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19407 if test "${slow_pthread_self}" = "yes"; then
19408
19409 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19410
19411 fi
19412
19413 # Check for gc debugging.  This option is handled both here and in the GC.
19414 # Check whether --enable-gc-debug was given.
19415 if test "${enable_gc_debug+set}" = set; then :
19416   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19417
19418 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19419
19420   fi
19421 fi
19422
19423
19424 # See if the user has the interpreter included.
19425 # Check whether --enable-interpreter was given.
19426 if test "${enable_interpreter+set}" = set; then :
19427   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19428     # This can also be set in configure.host.
19429     libgcj_interpreter=yes
19430   elif test "$enable_interpreter" = no; then
19431     libgcj_interpreter=no
19432   fi
19433 fi
19434
19435
19436 if test "$libgcj_interpreter" = yes; then
19437
19438 $as_echo "#define INTERPRETER 1" >>confdefs.h
19439
19440 fi
19441 INTERPRETER="$libgcj_interpreter"
19442
19443  if test "$libgcj_interpreter" = yes; then
19444   INTERPRETER_TRUE=
19445   INTERPRETER_FALSE='#'
19446 else
19447   INTERPRETER_TRUE='#'
19448   INTERPRETER_FALSE=
19449 fi
19450
19451
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19453 $as_echo_n "checking for exception model to use... " >&6; }
19454 ac_ext=cpp
19455 ac_cpp='$CXXCPP $CPPFLAGS'
19456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19459
19460 # Check whether --enable-sjlj-exceptions was given.
19461 if test "${enable_sjlj_exceptions+set}" = set; then :
19462   enableval=$enable_sjlj_exceptions; :
19463 else
19464   cat > conftest.$ac_ext << EOF
19465 #line 19465 "configure"
19466 struct S { ~S(); };
19467 void bar();
19468 void foo()
19469 {
19470   S s;
19471   bar();
19472 }
19473 EOF
19474 old_CXXFLAGS="$CXXFLAGS"
19475 CXXFLAGS=-S
19476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19477   (eval $ac_compile) 2>&5
19478   ac_status=$?
19479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19480   test $ac_status = 0; }; then
19481   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19482     enable_sjlj_exceptions=yes
19483   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19484     enable_sjlj_exceptions=no
19485   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19486     # ARM EH ABI.
19487     enable_sjlj_exceptions=no
19488   fi
19489 fi
19490 CXXFLAGS="$old_CXXFLAGS"
19491 rm -f conftest*
19492 fi
19493
19494 if test x$enable_sjlj_exceptions = xyes; then
19495
19496 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19497
19498   ac_exception_model_name=sjlj
19499 elif test x$enable_sjlj_exceptions = xno; then
19500   ac_exception_model_name="call frame"
19501 else
19502   as_fn_error "unable to detect exception model" "$LINENO" 5
19503 fi
19504 ac_ext=c
19505 ac_cpp='$CPP $CPPFLAGS'
19506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19509
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19511 $as_echo "$ac_exception_model_name" >&6; }
19512
19513 # If we are non using SJLJ exceptions, and this host does not have support
19514 # for unwinding from a signal handler, enable checked dereferences and divides.
19515 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19516   CHECKREFSPEC=-fcheck-references
19517   DIVIDESPEC=-fuse-divide-subroutine
19518   EXCEPTIONSPEC=
19519 fi
19520
19521 # See if the user wants to disable java.net.  This is the mildly
19522 # ugly way that we admit that target-side configuration sucks.
19523 # Check whether --enable-java-net was given.
19524 if test "${enable_java_net+set}" = set; then :
19525   enableval=$enable_java_net;
19526 fi
19527
19528
19529 # Whether java.net is built by default can depend on the target.
19530 if test -z "$enable_java_net"; then
19531    enable_java_net=${enable_java_net_default-yes}
19532 fi
19533 if test "$enable_java_net" = no; then
19534
19535 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19536
19537 fi
19538
19539 # See if the user wants to configure without libffi.  Some
19540 # architectures don't support it, and default values are set in
19541 # configure.host.
19542
19543 # Check whether --with-libffi was given.
19544 if test "${with_libffi+set}" = set; then :
19545   withval=$with_libffi; :
19546 else
19547   with_libffi=${with_libffi_default-yes}
19548 fi
19549
19550
19551 LIBFFI=
19552 LIBFFIINCS=
19553 if test "$with_libffi" != no; then
19554
19555 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19556
19557    LIBFFI=../libffi/libffi_convenience.la
19558    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19559 fi
19560
19561
19562
19563 # See if the user wants to disable JVMPI support.
19564 # Check whether --enable-jvmpi was given.
19565 if test "${enable_jvmpi+set}" = set; then :
19566   enableval=$enable_jvmpi;
19567 fi
19568
19569
19570 if test "$enable_jvmpi" != no; then
19571
19572 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19573
19574 fi
19575
19576 # If the target is an eCos system, use the appropriate eCos
19577 # I/O routines.
19578 # FIXME: this should not be a local option but a global target
19579 # system; at present there is no eCos target.
19580 TARGET_ECOS=${PROCESS-"no"}
19581
19582 # Check whether --with-ecos was given.
19583 if test "${with_ecos+set}" = set; then :
19584   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19585
19586 fi
19587
19588
19589 case "$TARGET_ECOS" in
19590    no) case "$host" in
19591       *mingw*)
19592             PLATFORM=Win32
19593             PLATFORMNET=Win32
19594             PLATFORMH=win32.h
19595
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19597 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19598 LD_PROG=`$CC --print-prog-name=ld`
19599 LD_VERSION=`$LD_PROG --version`
19600 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19601 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19602 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19603   LD_OK="ok"
19604 else
19605   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19606     LD_OK="ok"
19607   fi
19608 fi
19609 if test "x$LD_OK" != x; then
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19611 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19612 else
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19614 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19616 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19617
19618 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19619
19620 fi
19621       ;;
19622       *)
19623             PLATFORM=Posix
19624             PLATFORMNET=Posix
19625             PLATFORMH=posix.h
19626       ;;
19627       esac
19628       ;;
19629    *)
19630       PLATFORM=Ecos
19631       PLATFORMNET=NoNet
19632
19633 $as_echo "#define ECOS 1" >>confdefs.h
19634
19635       PLATFORMH=posix.h
19636       ;;
19637 esac
19638
19639 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19640
19641
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h.  */
19644 #include <stdint.h>
19645
19646 _ACEOF
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648   $EGREP "uint32_t" >/dev/null 2>&1; then :
19649
19650 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19651
19652 fi
19653 rm -f conftest*
19654
19655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h.  */
19657 #include <inttypes.h>
19658
19659 _ACEOF
19660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19661   $EGREP "uint32_t" >/dev/null 2>&1; then :
19662
19663 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19664
19665 fi
19666 rm -f conftest*
19667
19668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19669 /* end confdefs.h.  */
19670 #include <sys/types.h>
19671
19672 _ACEOF
19673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19674   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19675
19676 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19677
19678 fi
19679 rm -f conftest*
19680
19681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h.  */
19683 #include <sys/config.h>
19684
19685 _ACEOF
19686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19687   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19688
19689 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19690
19691 fi
19692 rm -f conftest*
19693
19694
19695  if test "$PLATFORM" = Win32; then
19696   USING_WIN32_PLATFORM_TRUE=
19697   USING_WIN32_PLATFORM_FALSE='#'
19698 else
19699   USING_WIN32_PLATFORM_TRUE='#'
19700   USING_WIN32_PLATFORM_FALSE=
19701 fi
19702
19703  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19704   USING_POSIX_PLATFORM_TRUE=
19705   USING_POSIX_PLATFORM_FALSE='#'
19706 else
19707   USING_POSIX_PLATFORM_TRUE='#'
19708   USING_POSIX_PLATFORM_FALSE=
19709 fi
19710
19711
19712 case "$host" in
19713   *-darwin*) DARWIN_CRT=true ;;
19714   *) DARWIN_CRT=false ;;
19715 esac
19716  if $DARWIN_CRT; then
19717   USING_DARWIN_CRT_TRUE=
19718   USING_DARWIN_CRT_FALSE='#'
19719 else
19720   USING_DARWIN_CRT_TRUE='#'
19721   USING_DARWIN_CRT_FALSE=
19722 fi
19723
19724
19725 # This may not be defined in a non-ANS conformant embedded system.
19726 # FIXME: Should these case a runtime exception in that case?
19727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19728 /* end confdefs.h.  */
19729 #include <time.h>
19730
19731 _ACEOF
19732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19733   $EGREP "localtime" >/dev/null 2>&1; then :
19734
19735 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19736
19737 fi
19738 rm -f conftest*
19739
19740
19741 # Create the subdirectory for natFile.cc, or the attempt
19742 # to create the link will fail.
19743 test -d java || mkdir java
19744 test -d java/io || mkdir java/io
19745 test -d gnu || mkdir gnu
19746 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19747
19748
19749 # Likewise for natConcreteProcess.cc.
19750 test -d java/lang || mkdir java/lang
19751 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19752
19753
19754 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19755 test -d java/net || mkdir java/net
19756 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19757
19758 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19759
19760
19761 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19762 test -d gnu/java || mkdir gnu/java
19763 test -d gnu/java/net || mkdir gnu/java/net
19764 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19765
19766 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19767
19768
19769 # Likewise for natVMPipe.cc and natVMSelector.cc.
19770 test -d gnu/java/nio || mkdir gnu/java/nio
19771 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19772
19773 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19774
19775
19776 # Likewise for natFileChannelImpl.cc
19777 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19778 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19779
19780
19781 # Likewise for natVMSecureRandom.cc
19782 test -d gnu/java/security || mkdir gnu/java/security
19783 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19784 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19785 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19786
19787
19788 case "${host}" in
19789     *mingw*)
19790       SYSTEMSPEC="-lgdi32 -lws2_32"
19791       if test "${with_win32_nlsapi}" = "unicows"; then
19792         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19793       fi
19794     ;;
19795     *-*-darwin[912]*)
19796       SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19797     ;;
19798     *)
19799       SYSTEMSPEC=
19800     ;;
19801 esac
19802
19803
19804
19805 # Check whether --with-system-zlib was given.
19806 if test "${with_system_zlib+set}" = set; then :
19807   withval=$with_system_zlib;
19808 fi
19809
19810 ZLIBSPEC=
19811
19812 ZLIBTESTSPEC=
19813
19814
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19816 $as_echo_n "checking for X... " >&6; }
19817
19818
19819 # Check whether --with-x was given.
19820 if test "${with_x+set}" = set; then :
19821   withval=$with_x;
19822 fi
19823
19824 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19825 if test "x$with_x" = xno; then
19826   # The user explicitly disabled X.
19827   have_x=disabled
19828 else
19829   case $x_includes,$x_libraries in #(
19830     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19831     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19832   $as_echo_n "(cached) " >&6
19833 else
19834   # One or both of the vars are not set, and there is no cached value.
19835 ac_x_includes=no ac_x_libraries=no
19836 rm -f -r conftest.dir
19837 if mkdir conftest.dir; then
19838   cd conftest.dir
19839   cat >Imakefile <<'_ACEOF'
19840 incroot:
19841         @echo incroot='${INCROOT}'
19842 usrlibdir:
19843         @echo usrlibdir='${USRLIBDIR}'
19844 libdir:
19845         @echo libdir='${LIBDIR}'
19846 _ACEOF
19847   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19848     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19849     for ac_var in incroot usrlibdir libdir; do
19850       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19851     done
19852     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19853     for ac_extension in a so sl dylib la dll; do
19854       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19855          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19856         ac_im_usrlibdir=$ac_im_libdir; break
19857       fi
19858     done
19859     # Screen out bogus values from the imake configuration.  They are
19860     # bogus both because they are the default anyway, and because
19861     # using them would break gcc on systems where it needs fixed includes.
19862     case $ac_im_incroot in
19863         /usr/include) ac_x_includes= ;;
19864         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19865     esac
19866     case $ac_im_usrlibdir in
19867         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19868         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19869     esac
19870   fi
19871   cd ..
19872   rm -f -r conftest.dir
19873 fi
19874
19875 # Standard set of common directories for X headers.
19876 # Check X11 before X11Rn because it is often a symlink to the current release.
19877 ac_x_header_dirs='
19878 /usr/X11/include
19879 /usr/X11R7/include
19880 /usr/X11R6/include
19881 /usr/X11R5/include
19882 /usr/X11R4/include
19883
19884 /usr/include/X11
19885 /usr/include/X11R7
19886 /usr/include/X11R6
19887 /usr/include/X11R5
19888 /usr/include/X11R4
19889
19890 /usr/local/X11/include
19891 /usr/local/X11R7/include
19892 /usr/local/X11R6/include
19893 /usr/local/X11R5/include
19894 /usr/local/X11R4/include
19895
19896 /usr/local/include/X11
19897 /usr/local/include/X11R7
19898 /usr/local/include/X11R6
19899 /usr/local/include/X11R5
19900 /usr/local/include/X11R4
19901
19902 /usr/X386/include
19903 /usr/x386/include
19904 /usr/XFree86/include/X11
19905
19906 /usr/include
19907 /usr/local/include
19908 /usr/unsupported/include
19909 /usr/athena/include
19910 /usr/local/x11r5/include
19911 /usr/lpp/Xamples/include
19912
19913 /usr/openwin/include
19914 /usr/openwin/share/include'
19915
19916 if test "$ac_x_includes" = no; then
19917   # Guess where to find include files, by looking for Xlib.h.
19918   # First, try using that file with no special directory specified.
19919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h.  */
19921 #include <X11/Xlib.h>
19922 _ACEOF
19923 if ac_fn_c_try_cpp "$LINENO"; then :
19924   # We can compile using X headers with no special include directory.
19925 ac_x_includes=
19926 else
19927   for ac_dir in $ac_x_header_dirs; do
19928   if test -r "$ac_dir/X11/Xlib.h"; then
19929     ac_x_includes=$ac_dir
19930     break
19931   fi
19932 done
19933 fi
19934 rm -f conftest.err conftest.$ac_ext
19935 fi # $ac_x_includes = no
19936
19937 if test "$ac_x_libraries" = no; then
19938   # Check for the libraries.
19939   # See if we find them without any special options.
19940   # Don't add to $LIBS permanently.
19941   ac_save_LIBS=$LIBS
19942   LIBS="-lX11 $LIBS"
19943   if test x$gcc_no_link = xyes; then
19944   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19945 fi
19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947 /* end confdefs.h.  */
19948 #include <X11/Xlib.h>
19949 int
19950 main ()
19951 {
19952 XrmInitialize ()
19953   ;
19954   return 0;
19955 }
19956 _ACEOF
19957 if ac_fn_c_try_link "$LINENO"; then :
19958   LIBS=$ac_save_LIBS
19959 # We can link X programs with no special library path.
19960 ac_x_libraries=
19961 else
19962   LIBS=$ac_save_LIBS
19963 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19964 do
19965   # Don't even attempt the hair of trying to link an X program!
19966   for ac_extension in a so sl dylib la dll; do
19967     if test -r "$ac_dir/libX11.$ac_extension"; then
19968       ac_x_libraries=$ac_dir
19969       break 2
19970     fi
19971   done
19972 done
19973 fi
19974 rm -f core conftest.err conftest.$ac_objext \
19975     conftest$ac_exeext conftest.$ac_ext
19976 fi # $ac_x_libraries = no
19977
19978 case $ac_x_includes,$ac_x_libraries in #(
19979   no,* | *,no | *\'*)
19980     # Didn't find X, or a directory has "'" in its name.
19981     ac_cv_have_x="have_x=no";; #(
19982   *)
19983     # Record where we found X for the cache.
19984     ac_cv_have_x="have_x=yes\
19985         ac_x_includes='$ac_x_includes'\
19986         ac_x_libraries='$ac_x_libraries'"
19987 esac
19988 fi
19989 ;; #(
19990     *) have_x=yes;;
19991   esac
19992   eval "$ac_cv_have_x"
19993 fi # $with_x != no
19994
19995 if test "$have_x" != yes; then
19996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19997 $as_echo "$have_x" >&6; }
19998   no_x=yes
19999 else
20000   # If each of the values was on the command line, it overrides each guess.
20001   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20002   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20003   # Update the cache value to reflect the command line values.
20004   ac_cv_have_x="have_x=yes\
20005         ac_x_includes='$x_includes'\
20006         ac_x_libraries='$x_libraries'"
20007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20008 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20009 fi
20010
20011 if test "$no_x" = yes; then
20012   # Not all programs may use this symbol, but it does not hurt to define it.
20013
20014 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20015
20016   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20017 else
20018   if test -n "$x_includes"; then
20019     X_CFLAGS="$X_CFLAGS -I$x_includes"
20020   fi
20021
20022   # It would also be nice to do this for all -L options, not just this one.
20023   if test -n "$x_libraries"; then
20024     X_LIBS="$X_LIBS -L$x_libraries"
20025     # For Solaris; some versions of Sun CC require a space after -R and
20026     # others require no space.  Words are not sufficient . . . .
20027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20028 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20029     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20030     ac_xsave_c_werror_flag=$ac_c_werror_flag
20031     ac_c_werror_flag=yes
20032     if test x$gcc_no_link = xyes; then
20033   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20034 fi
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h.  */
20037
20038 int
20039 main ()
20040 {
20041
20042   ;
20043   return 0;
20044 }
20045 _ACEOF
20046 if ac_fn_c_try_link "$LINENO"; then :
20047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20049        X_LIBS="$X_LIBS -R$x_libraries"
20050 else
20051   LIBS="$ac_xsave_LIBS -R $x_libraries"
20052        if test x$gcc_no_link = xyes; then
20053   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20054 fi
20055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056 /* end confdefs.h.  */
20057
20058 int
20059 main ()
20060 {
20061
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 if ac_fn_c_try_link "$LINENO"; then :
20067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20068 $as_echo "yes" >&6; }
20069           X_LIBS="$X_LIBS -R $x_libraries"
20070 else
20071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20072 $as_echo "neither works" >&6; }
20073 fi
20074 rm -f core conftest.err conftest.$ac_objext \
20075     conftest$ac_exeext conftest.$ac_ext
20076 fi
20077 rm -f core conftest.err conftest.$ac_objext \
20078     conftest$ac_exeext conftest.$ac_ext
20079     ac_c_werror_flag=$ac_xsave_c_werror_flag
20080     LIBS=$ac_xsave_LIBS
20081   fi
20082
20083   # Check for system-dependent libraries X programs must link with.
20084   # Do this before checking for the system-independent R6 libraries
20085   # (-lICE), since we may need -lsocket or whatever for X linking.
20086
20087   if test "$ISC" = yes; then
20088     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20089   else
20090     # Martyn Johnson says this is needed for Ultrix, if the X
20091     # libraries were built with DECnet support.  And Karl Berry says
20092     # the Alpha needs dnet_stub (dnet does not exist).
20093     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20094     if test x$gcc_no_link = xyes; then
20095   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20096 fi
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h.  */
20099
20100 /* Override any GCC internal prototype to avoid an error.
20101    Use char because int might match the return type of a GCC
20102    builtin and then its argument prototype would still apply.  */
20103 #ifdef __cplusplus
20104 extern "C"
20105 #endif
20106 char XOpenDisplay ();
20107 int
20108 main ()
20109 {
20110 return XOpenDisplay ();
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 if ac_fn_c_try_link "$LINENO"; then :
20116
20117 else
20118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20119 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20120 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20121   $as_echo_n "(cached) " >&6
20122 else
20123   ac_check_lib_save_LIBS=$LIBS
20124 LIBS="-ldnet  $LIBS"
20125 if test x$gcc_no_link = xyes; then
20126   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20127 fi
20128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h.  */
20130
20131 /* Override any GCC internal prototype to avoid an error.
20132    Use char because int might match the return type of a GCC
20133    builtin and then its argument prototype would still apply.  */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 char dnet_ntoa ();
20138 int
20139 main ()
20140 {
20141 return dnet_ntoa ();
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"; then :
20147   ac_cv_lib_dnet_dnet_ntoa=yes
20148 else
20149   ac_cv_lib_dnet_dnet_ntoa=no
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext \
20152     conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20154 fi
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20156 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20157 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20158   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20159 fi
20160
20161     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20162       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20163 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20164 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20165   $as_echo_n "(cached) " >&6
20166 else
20167   ac_check_lib_save_LIBS=$LIBS
20168 LIBS="-ldnet_stub  $LIBS"
20169 if test x$gcc_no_link = xyes; then
20170   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20171 fi
20172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20173 /* end confdefs.h.  */
20174
20175 /* Override any GCC internal prototype to avoid an error.
20176    Use char because int might match the return type of a GCC
20177    builtin and then its argument prototype would still apply.  */
20178 #ifdef __cplusplus
20179 extern "C"
20180 #endif
20181 char dnet_ntoa ();
20182 int
20183 main ()
20184 {
20185 return dnet_ntoa ();
20186   ;
20187   return 0;
20188 }
20189 _ACEOF
20190 if ac_fn_c_try_link "$LINENO"; then :
20191   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20192 else
20193   ac_cv_lib_dnet_stub_dnet_ntoa=no
20194 fi
20195 rm -f core conftest.err conftest.$ac_objext \
20196     conftest$ac_exeext conftest.$ac_ext
20197 LIBS=$ac_check_lib_save_LIBS
20198 fi
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20200 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20201 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20202   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20203 fi
20204
20205     fi
20206 fi
20207 rm -f core conftest.err conftest.$ac_objext \
20208     conftest$ac_exeext conftest.$ac_ext
20209     LIBS="$ac_xsave_LIBS"
20210
20211     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20212     # to get the SysV transport functions.
20213     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20214     # needs -lnsl.
20215     # The nsl library prevents programs from opening the X display
20216     # on Irix 5.2, according to T.E. Dickey.
20217     # The functions gethostbyname, getservbyname, and inet_addr are
20218     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20219     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20220 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20221
20222 fi
20223
20224     if test $ac_cv_func_gethostbyname = no; then
20225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20226 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20227 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20228   $as_echo_n "(cached) " >&6
20229 else
20230   ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lnsl  $LIBS"
20232 if test x$gcc_no_link = xyes; then
20233   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20234 fi
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236 /* end confdefs.h.  */
20237
20238 /* Override any GCC internal prototype to avoid an error.
20239    Use char because int might match the return type of a GCC
20240    builtin and then its argument prototype would still apply.  */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char gethostbyname ();
20245 int
20246 main ()
20247 {
20248 return gethostbyname ();
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 if ac_fn_c_try_link "$LINENO"; then :
20254   ac_cv_lib_nsl_gethostbyname=yes
20255 else
20256   ac_cv_lib_nsl_gethostbyname=no
20257 fi
20258 rm -f core conftest.err conftest.$ac_objext \
20259     conftest$ac_exeext conftest.$ac_ext
20260 LIBS=$ac_check_lib_save_LIBS
20261 fi
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20263 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20264 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20265   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20266 fi
20267
20268       if test $ac_cv_lib_nsl_gethostbyname = no; then
20269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20270 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20271 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20272   $as_echo_n "(cached) " >&6
20273 else
20274   ac_check_lib_save_LIBS=$LIBS
20275 LIBS="-lbsd  $LIBS"
20276 if test x$gcc_no_link = xyes; then
20277   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20278 fi
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h.  */
20281
20282 /* Override any GCC internal prototype to avoid an error.
20283    Use char because int might match the return type of a GCC
20284    builtin and then its argument prototype would still apply.  */
20285 #ifdef __cplusplus
20286 extern "C"
20287 #endif
20288 char gethostbyname ();
20289 int
20290 main ()
20291 {
20292 return gethostbyname ();
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 if ac_fn_c_try_link "$LINENO"; then :
20298   ac_cv_lib_bsd_gethostbyname=yes
20299 else
20300   ac_cv_lib_bsd_gethostbyname=no
20301 fi
20302 rm -f core conftest.err conftest.$ac_objext \
20303     conftest$ac_exeext conftest.$ac_ext
20304 LIBS=$ac_check_lib_save_LIBS
20305 fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20307 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20308 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20309   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20310 fi
20311
20312       fi
20313     fi
20314
20315     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20316     # socket/setsockopt and other routines are undefined under SCO ODT
20317     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20318     # on later versions), says Simon Leinen: it contains gethostby*
20319     # variants that don't use the name server (or something).  -lsocket
20320     # must be given before -lnsl if both are needed.  We assume that
20321     # if connect needs -lnsl, so does gethostbyname.
20322     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20323 if test "x$ac_cv_func_connect" = x""yes; then :
20324
20325 fi
20326
20327     if test $ac_cv_func_connect = no; then
20328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20329 $as_echo_n "checking for connect in -lsocket... " >&6; }
20330 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20331   $as_echo_n "(cached) " >&6
20332 else
20333   ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20335 if test x$gcc_no_link = xyes; then
20336   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20337 fi
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h.  */
20340
20341 /* Override any GCC internal prototype to avoid an error.
20342    Use char because int might match the return type of a GCC
20343    builtin and then its argument prototype would still apply.  */
20344 #ifdef __cplusplus
20345 extern "C"
20346 #endif
20347 char connect ();
20348 int
20349 main ()
20350 {
20351 return connect ();
20352   ;
20353   return 0;
20354 }
20355 _ACEOF
20356 if ac_fn_c_try_link "$LINENO"; then :
20357   ac_cv_lib_socket_connect=yes
20358 else
20359   ac_cv_lib_socket_connect=no
20360 fi
20361 rm -f core conftest.err conftest.$ac_objext \
20362     conftest$ac_exeext conftest.$ac_ext
20363 LIBS=$ac_check_lib_save_LIBS
20364 fi
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20366 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20367 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20368   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20369 fi
20370
20371     fi
20372
20373     # Guillermo Gomez says -lposix is necessary on A/UX.
20374     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20375 if test "x$ac_cv_func_remove" = x""yes; then :
20376
20377 fi
20378
20379     if test $ac_cv_func_remove = no; then
20380       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20381 $as_echo_n "checking for remove in -lposix... " >&6; }
20382 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20383   $as_echo_n "(cached) " >&6
20384 else
20385   ac_check_lib_save_LIBS=$LIBS
20386 LIBS="-lposix  $LIBS"
20387 if test x$gcc_no_link = xyes; then
20388   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20389 fi
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h.  */
20392
20393 /* Override any GCC internal prototype to avoid an error.
20394    Use char because int might match the return type of a GCC
20395    builtin and then its argument prototype would still apply.  */
20396 #ifdef __cplusplus
20397 extern "C"
20398 #endif
20399 char remove ();
20400 int
20401 main ()
20402 {
20403 return remove ();
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 if ac_fn_c_try_link "$LINENO"; then :
20409   ac_cv_lib_posix_remove=yes
20410 else
20411   ac_cv_lib_posix_remove=no
20412 fi
20413 rm -f core conftest.err conftest.$ac_objext \
20414     conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20416 fi
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20418 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20419 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20420   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20421 fi
20422
20423     fi
20424
20425     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20426     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20427 if test "x$ac_cv_func_shmat" = x""yes; then :
20428
20429 fi
20430
20431     if test $ac_cv_func_shmat = no; then
20432       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20433 $as_echo_n "checking for shmat in -lipc... " >&6; }
20434 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20435   $as_echo_n "(cached) " >&6
20436 else
20437   ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-lipc  $LIBS"
20439 if test x$gcc_no_link = xyes; then
20440   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20441 fi
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h.  */
20444
20445 /* Override any GCC internal prototype to avoid an error.
20446    Use char because int might match the return type of a GCC
20447    builtin and then its argument prototype would still apply.  */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 char shmat ();
20452 int
20453 main ()
20454 {
20455 return shmat ();
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 if ac_fn_c_try_link "$LINENO"; then :
20461   ac_cv_lib_ipc_shmat=yes
20462 else
20463   ac_cv_lib_ipc_shmat=no
20464 fi
20465 rm -f core conftest.err conftest.$ac_objext \
20466     conftest$ac_exeext conftest.$ac_ext
20467 LIBS=$ac_check_lib_save_LIBS
20468 fi
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20470 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20471 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20472   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20473 fi
20474
20475     fi
20476   fi
20477
20478   # Check for libraries that X11R6 Xt/Xaw programs need.
20479   ac_save_LDFLAGS=$LDFLAGS
20480   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20481   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20482   # check for ICE first), but we must link in the order -lSM -lICE or
20483   # we get undefined symbols.  So assume we have SM if we have ICE.
20484   # These have to be linked with before -lX11, unlike the other
20485   # libraries we check for below, so use a different variable.
20486   # John Interrante, Karl Berry
20487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20488 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20489 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20490   $as_echo_n "(cached) " >&6
20491 else
20492   ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20494 if test x$gcc_no_link = xyes; then
20495   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20496 fi
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h.  */
20499
20500 /* Override any GCC internal prototype to avoid an error.
20501    Use char because int might match the return type of a GCC
20502    builtin and then its argument prototype would still apply.  */
20503 #ifdef __cplusplus
20504 extern "C"
20505 #endif
20506 char IceConnectionNumber ();
20507 int
20508 main ()
20509 {
20510 return IceConnectionNumber ();
20511   ;
20512   return 0;
20513 }
20514 _ACEOF
20515 if ac_fn_c_try_link "$LINENO"; then :
20516   ac_cv_lib_ICE_IceConnectionNumber=yes
20517 else
20518   ac_cv_lib_ICE_IceConnectionNumber=no
20519 fi
20520 rm -f core conftest.err conftest.$ac_objext \
20521     conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20523 fi
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20525 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20526 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20527   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20528 fi
20529
20530   LDFLAGS=$ac_save_LDFLAGS
20531
20532 fi
20533
20534
20535 # FIXME: this should be _libs on some hosts.
20536 libsubdir=.libs
20537
20538 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20539
20540 LIBSTDCXXSPEC=
20541 # extra LD Flags which are required for targets
20542 case "${host}" in
20543 *-*-darwin[0-7].*)
20544     # For now we have to disable it on darwin[8-9] because it slows down
20545     # the linking phase. A possible bug in ld?
20546     # on Darwin -single_module speeds up loading of the dynamic libraries.
20547     extra_ldflags_libjava=-Wl,-single_module
20548     ;;
20549 arm*linux*eabi)
20550     # Some of the ARM unwinder code is actually in libstdc++.  We
20551     # could in principle replicate it in libgcj, but it's better to
20552     # have a dependency on libstdc++.
20553     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20554     LIBSTDCXXSPEC=-lstdc++
20555     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20556     ;;
20557 *-*-cygwin)
20558     extra_ldflags_libjava=-liconv
20559     ;;
20560 esac
20561
20562 LIBMATHSPEC=
20563 # extra LD Flags which are required for targets
20564 case "${host}" in
20565 *-*-darwin*)
20566      ;;
20567 *)
20568      LIBMATHSPEC=-lm
20569      ;;
20570 esac
20571
20572 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20574 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20575 if test "${libgcj_cv_exidx+set}" = set; then :
20576   $as_echo_n "(cached) " >&6
20577 else
20578   saved_ldflags="$LDFLAGS"
20579    LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20580    # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20581    # warns about unknown options, which breaks the testsuite.  So enable
20582    # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20583    # it off again.  As a workaround, save and restore werror flag like
20584    # AC_PATH_XTRA.
20585    ac_xsave_c_werror_flag=$ac_c_werror_flag
20586
20587 ac_c_werror_flag=yes
20588    if test x$gcc_no_link = xyes; then
20589   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20590 fi
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h.  */
20593 int main(void){ return 0;}
20594 _ACEOF
20595 if ac_fn_c_try_link "$LINENO"; then :
20596   eval "libgcj_cv_exidx=yes"
20597 else
20598   eval "libgcj_cv_exidx=no"
20599 fi
20600 rm -f core conftest.err conftest.$ac_objext \
20601     conftest$ac_exeext conftest.$ac_ext
20602    ac_c_werror_flag=$ac_xsave_c_werror_flag
20603    LDFLAGS="${saved_ldflags}"
20604
20605 fi
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20607 $as_echo "$libgcj_cv_exidx" >&6; }
20608 if test "${libgcj_cv_exidx}" = "yes"; then
20609   SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20610   extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20611 fi
20612
20613
20614
20615
20616
20617
20618
20619
20620 # Allow the GC to be disabled.  Can be useful when debugging.
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20622 $as_echo_n "checking for garbage collector to use... " >&6; }
20623 # Check whether --enable-java-gc was given.
20624 if test "${enable_java_gc+set}" = set; then :
20625   enableval=$enable_java_gc; GC=$enableval
20626 else
20627   GC=boehm
20628 fi
20629
20630 GCLIBS=
20631 GCINCS=
20632 GCDEPS=
20633 GCSPEC=
20634 JC1GCSPEC=
20635 GCTESTSPEC=
20636 case "$GC" in
20637  boehm)
20638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20639 $as_echo "boehm" >&6; }
20640     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20641     JC1GCSPEC='-fuse-boehm-gc'
20642     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20643     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20644     GCOBJS=boehm.lo
20645     GCHDR=boehm-gc.h
20646     # The POSIX thread support needs to know this.
20647
20648 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20649
20650     ;;
20651  no)
20652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20653 $as_echo "none" >&6; }
20654     GCHDR=no-gc.h
20655     ;;
20656  *)
20657     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20658     ;;
20659 esac
20660
20661
20662
20663
20664
20665
20666 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20667
20668  if test "$GC" = boehm; then
20669   USING_BOEHMGC_TRUE=
20670   USING_BOEHMGC_FALSE='#'
20671 else
20672   USING_BOEHMGC_TRUE='#'
20673   USING_BOEHMGC_FALSE=
20674 fi
20675
20676  if test "$GC" = no; then
20677   USING_NOGC_TRUE=
20678   USING_NOGC_FALSE='#'
20679 else
20680   USING_NOGC_TRUE='#'
20681   USING_NOGC_FALSE=
20682 fi
20683
20684
20685
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20687 $as_echo_n "checking for thread model used by GCC... " >&6; }
20688 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20690 $as_echo "$THREADS" >&6; }
20691
20692 case "$THREADS" in
20693  no | none | single)
20694     THREADS=none
20695     ;;
20696  aix | posix | posix95 | pthreads)
20697     THREADS=posix
20698     case "$host" in
20699      *-*-linux*)
20700
20701 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20702
20703         ;;
20704     esac
20705     ;;
20706  win32)
20707     ;;
20708  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20709     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20710     ;;
20711  *)
20712     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20713     ;;
20714 esac
20715
20716 THREADCXXFLAGS=
20717 THREADLDFLAGS=
20718 THREADLIBS=
20719 THREADINCS=
20720 THREADDEPS=
20721 THREADH=
20722 THREADSPEC=
20723 THREADSTARTFILESPEC=
20724 case "$THREADS" in
20725  posix)
20726     case "$host" in
20727      *-*-cygwin*)
20728         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20729         ;;
20730      *-*-freebsd[1234]*)
20731         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20732         # merely adds pthread_* functions) but it does have a -pthread switch
20733         # which is required at link-time to select -lc_r *instead* of -lc.
20734         THREADLDFLAGS=-pthread
20735         # Don't set THREADSPEC here as might be expected since -pthread is
20736         # not processed when found within a spec file, it must come from
20737         # the command line.  For now, the user must provide the -pthread
20738         # switch to link code compiled with gcj.  In future, consider adding
20739         # support for weak references to pthread_* functions ala gthr.h API.
20740         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20741         ;;
20742      *-*-freebsd*)
20743         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20744         # systems which support threads and -lpthread.
20745         THREADLDFLAGS=-pthread
20746         THREADSPEC=-lpthread
20747         ;;
20748      alpha*-dec-osf* | hppa*-hp-hpux*)
20749         THREADCXXFLAGS=-pthread
20750         # boehm-gc needs some functions from librt, so link that too.
20751         THREADLIBS='-lpthread -lrt'
20752         THREADSPEC='-lpthread -lrt'
20753         ;;
20754      *-*-solaris2.8)
20755         # Always use alternate thread library on Solaris 8.  Need libthread
20756         # for TLS support.
20757         # Need -Wl,-R to get it through libtool ...
20758         THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20759         # ... while ld only accepts -R.
20760         THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20761         ;;
20762      *-*-solaris2.9)
20763         # As on Solaris 8, need libthread for TLS support.
20764         THREADLIBS='-lpthread -lthread'
20765         THREADSPEC='-lpthread -lthread'
20766         ;;
20767      *-*-darwin*)
20768         # Don't set THREADLIBS or THREADSPEC as Darwin already
20769         # provides pthread via libSystem.
20770         ;;
20771      *)
20772         THREADLIBS=-lpthread
20773         THREADSPEC=-lpthread
20774         ;;
20775     esac
20776     THREADH=posix-threads.h
20777     # MIT pthreads doesn't seem to have the mutexattr functions.
20778     # But for now we don't check for it.  We just assume you aren't
20779     # using MIT pthreads.
20780
20781 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20782
20783
20784     # If we're using the Boehm GC, then we happen to know that it
20785     # defines _REENTRANT, so we don't bother.  Eww.
20786     if test "$GC" != boehm; then
20787
20788 $as_echo "#define _REENTRANT 1" >>confdefs.h
20789
20790     fi
20791
20792 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20793
20794     ;;
20795
20796  win32)
20797     THREADH=win32-threads.h
20798     THREADCXXFLAGS=-mthreads
20799     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20800     # But we do not want the executables created to be dependent on
20801     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20802     # exception handling contexts.  The following kludge achieves this effect
20803     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20804     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20805     # A workaround is to explicitly use -mthreads while linking Java programs.
20806     # See PR libgcj/28263.
20807     #
20808     # FIXME: In Java we are able to detect thread death at the end of
20809     # Thread.run() so we should be able to clean up the exception handling
20810     # contexts ourselves.
20811     THREADSTARTFILESPEC='crtmt%O%s'
20812     ;;
20813
20814  none)
20815     THREADH=no-threads.h
20816     ;;
20817 esac
20818 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20819
20820
20821
20822
20823
20824
20825
20826
20827  if test "$THREADS" = posix; then
20828   USING_POSIX_THREADS_TRUE=
20829   USING_POSIX_THREADS_FALSE='#'
20830 else
20831   USING_POSIX_THREADS_TRUE='#'
20832   USING_POSIX_THREADS_FALSE=
20833 fi
20834
20835  if test "$THREADS" = win32; then
20836   USING_WIN32_THREADS_TRUE=
20837   USING_WIN32_THREADS_FALSE='#'
20838 else
20839   USING_WIN32_THREADS_TRUE='#'
20840   USING_WIN32_THREADS_FALSE=
20841 fi
20842
20843  if test "$THREADS" = none; then
20844   USING_NO_THREADS_TRUE=
20845   USING_NO_THREADS_FALSE='#'
20846 else
20847   USING_NO_THREADS_TRUE='#'
20848   USING_NO_THREADS_FALSE=
20849 fi
20850
20851 if test "$enable_shared" != yes; then
20852   use_libgcj_bc=no
20853 fi
20854  if test "$use_libgcj_bc" = yes; then
20855   USE_LIBGCJ_BC_TRUE=
20856   USE_LIBGCJ_BC_FALSE='#'
20857 else
20858   USE_LIBGCJ_BC_TRUE='#'
20859   USE_LIBGCJ_BC_FALSE=
20860 fi
20861
20862
20863 if test -d sysdep; then true; else mkdir sysdep; fi
20864 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20865
20866 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20867
20868 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20869
20870
20871 LIBGCJ_SPEC_LGCJ=-lgcj
20872 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20873 if test x"$libgcj_spec_lgcj_override" != x ; then
20874   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20875 fi
20876 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20877   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20878 fi
20879 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20880 if test "$use_libgcj_bc" = yes; then
20881   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20882   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20883 fi
20884
20885
20886
20887 HASH_SYNC_SPEC=
20888 # Hash synchronization is only useful with posix threads right now.
20889 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20890    HASH_SYNC_SPEC=-fhash-synchronization
20891
20892 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20893
20894 fi
20895
20896
20897  if test "$GCC" = yes; then
20898   USING_GCC_TRUE=
20899   USING_GCC_FALSE='#'
20900 else
20901   USING_GCC_TRUE='#'
20902   USING_GCC_FALSE=
20903 fi
20904
20905
20906 # We're in the tree with gcc, and need to include some of its headers.
20907 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20908
20909 if test "x${with_newlib}" = "xyes"; then
20910    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20911    # may not work correctly, because the compiler may not be able to
20912    # link executables.
20913
20914    # We assume newlib.  This lets us hard-code the functions we know
20915    # we'll have.
20916
20917 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20918
20919
20920 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20921
20922
20923 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20924
20925
20926 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20927
20928
20929 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20930
20931
20932 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20933
20934    # This is only for POSIX threads.
20935
20936 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20937
20938
20939    # Assume we do not have getuid and friends.
20940
20941 $as_echo "#define NO_GETUID 1" >>confdefs.h
20942
20943    PLATFORMNET=NoNet
20944 else
20945    for ac_func in strerror_r select fstat open fsync sleep opendir \
20946                    localtime_r getpwuid_r getcwd \
20947                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20948                    nl_langinfo setlocale \
20949                    inet_pton uname inet_ntoa \
20950                    getrlimit sigaction ftruncate mmap \
20951                    getifaddrs
20952 do :
20953   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20955 eval as_val=\$$as_ac_var
20956    if test "x$as_val" = x""yes; then :
20957   cat >>confdefs.h <<_ACEOF
20958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20959 _ACEOF
20960
20961 fi
20962 done
20963
20964    for ac_func in inet_aton inet_addr
20965 do :
20966   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20968 eval as_val=\$$as_ac_var
20969    if test "x$as_val" = x""yes; then :
20970   cat >>confdefs.h <<_ACEOF
20971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20972 _ACEOF
20973  break
20974 fi
20975 done
20976
20977    for ac_header in unistd.h dlfcn.h sys/resource.h
20978 do :
20979   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20981 eval as_val=\$$as_ac_Header
20982    if test "x$as_val" = x""yes; then :
20983   cat >>confdefs.h <<_ACEOF
20984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20985 _ACEOF
20986
20987 fi
20988
20989 done
20990
20991    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20993 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20994 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20995   $as_echo_n "(cached) " >&6
20996 else
20997   ac_check_lib_save_LIBS=$LIBS
20998 LIBS="-ldl  $LIBS"
20999 if test x$gcc_no_link = xyes; then
21000   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21001 fi
21002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h.  */
21004
21005 /* Override any GCC internal prototype to avoid an error.
21006    Use char because int might match the return type of a GCC
21007    builtin and then its argument prototype would still apply.  */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 char dladdr ();
21012 int
21013 main ()
21014 {
21015 return dladdr ();
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 if ac_fn_c_try_link "$LINENO"; then :
21021   ac_cv_lib_dl_dladdr=yes
21022 else
21023   ac_cv_lib_dl_dladdr=no
21024 fi
21025 rm -f core conftest.err conftest.$ac_objext \
21026     conftest$ac_exeext conftest.$ac_ext
21027 LIBS=$ac_check_lib_save_LIBS
21028 fi
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21030 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21031 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21032
21033
21034 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21035
21036 else
21037
21038        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21039 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21040 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21041   $as_echo_n "(cached) " >&6
21042 else
21043   ac_check_lib_save_LIBS=$LIBS
21044 LIBS="-ldld  $LIBS"
21045 if test x$gcc_no_link = xyes; then
21046   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21047 fi
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h.  */
21050
21051 /* Override any GCC internal prototype to avoid an error.
21052    Use char because int might match the return type of a GCC
21053    builtin and then its argument prototype would still apply.  */
21054 #ifdef __cplusplus
21055 extern "C"
21056 #endif
21057 char dladdr ();
21058 int
21059 main ()
21060 {
21061 return dladdr ();
21062   ;
21063   return 0;
21064 }
21065 _ACEOF
21066 if ac_fn_c_try_link "$LINENO"; then :
21067   ac_cv_lib_dld_dladdr=yes
21068 else
21069   ac_cv_lib_dld_dladdr=no
21070 fi
21071 rm -f core conftest.err conftest.$ac_objext \
21072     conftest$ac_exeext conftest.$ac_ext
21073 LIBS=$ac_check_lib_save_LIBS
21074 fi
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21076 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21077 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21078
21079
21080 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21081
21082 fi
21083
21084 fi
21085
21086
21087    if test x"$cross_compiling" = x"no"; then
21088      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21089 $as_echo_n "checking for /proc/self/exe... " >&6; }
21090 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21091   $as_echo_n "(cached) " >&6
21092 else
21093   test "$cross_compiling" = yes &&
21094   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21095 if test -r "/proc/self/exe"; then
21096   ac_cv_file__proc_self_exe=yes
21097 else
21098   ac_cv_file__proc_self_exe=no
21099 fi
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21102 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21103 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21104
21105 cat >>confdefs.h <<_ACEOF
21106 #define HAVE__PROC_SELF_EXE 1
21107 _ACEOF
21108
21109
21110 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21111
21112 fi
21113
21114      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21115 $as_echo_n "checking for /proc/self/maps... " >&6; }
21116 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21117   $as_echo_n "(cached) " >&6
21118 else
21119   test "$cross_compiling" = yes &&
21120   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21121 if test -r "/proc/self/maps"; then
21122   ac_cv_file__proc_self_maps=yes
21123 else
21124   ac_cv_file__proc_self_maps=no
21125 fi
21126 fi
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21128 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21129 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21130
21131 cat >>confdefs.h <<_ACEOF
21132 #define HAVE__PROC_SELF_MAPS 1
21133 _ACEOF
21134
21135
21136 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21137
21138 fi
21139
21140    else
21141      case $host in
21142      *-linux*)
21143
21144 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21145
21146
21147 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21148
21149        ;;
21150      esac
21151    fi
21152
21153
21154       if test "X$prefix" = "XNONE"; then
21155     acl_final_prefix="$ac_default_prefix"
21156   else
21157     acl_final_prefix="$prefix"
21158   fi
21159   if test "X$exec_prefix" = "XNONE"; then
21160     acl_final_exec_prefix='${prefix}'
21161   else
21162     acl_final_exec_prefix="$exec_prefix"
21163   fi
21164   acl_save_prefix="$prefix"
21165   prefix="$acl_final_prefix"
21166   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21167   prefix="$acl_save_prefix"
21168
21169
21170 # Check whether --with-gnu-ld was given.
21171 if test "${with_gnu_ld+set}" = set; then :
21172   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21173 else
21174   with_gnu_ld=no
21175 fi
21176
21177 # Prepare PATH_SEPARATOR.
21178 # The user is always right.
21179 if test "${PATH_SEPARATOR+set}" != set; then
21180   echo "#! /bin/sh" >conf$$.sh
21181   echo  "exit 0"   >>conf$$.sh
21182   chmod +x conf$$.sh
21183   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21184     PATH_SEPARATOR=';'
21185   else
21186     PATH_SEPARATOR=:
21187   fi
21188   rm -f conf$$.sh
21189 fi
21190 ac_prog=ld
21191 if test "$GCC" = yes; then
21192   # Check if gcc -print-prog-name=ld gives a path.
21193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21194 $as_echo_n "checking for ld used by GCC... " >&6; }
21195   case $host in
21196   *-*-mingw*)
21197     # gcc leaves a trailing carriage return which upsets mingw
21198     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21199   *)
21200     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21201   esac
21202   case $ac_prog in
21203     # Accept absolute paths.
21204     [\\/]* | [A-Za-z]:[\\/]*)
21205       re_direlt='/[^/][^/]*/\.\./'
21206       # Canonicalize the path of ld
21207       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21208       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21209         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21210       done
21211       test -z "$LD" && LD="$ac_prog"
21212       ;;
21213   "")
21214     # If it fails, then pretend we aren't using GCC.
21215     ac_prog=ld
21216     ;;
21217   *)
21218     # If it is relative, then search for the first ld in PATH.
21219     with_gnu_ld=unknown
21220     ;;
21221   esac
21222 elif test "$with_gnu_ld" = yes; then
21223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21224 $as_echo_n "checking for GNU ld... " >&6; }
21225 else
21226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21227 $as_echo_n "checking for non-GNU ld... " >&6; }
21228 fi
21229 if test "${acl_cv_path_LD+set}" = set; then :
21230   $as_echo_n "(cached) " >&6
21231 else
21232   if test -z "$LD"; then
21233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21234   for ac_dir in $PATH; do
21235     test -z "$ac_dir" && ac_dir=.
21236     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21237       acl_cv_path_LD="$ac_dir/$ac_prog"
21238       # Check to see if the program is GNU ld.  I'd rather use --version,
21239       # but apparently some GNU ld's only accept -v.
21240       # Break only if it was the GNU/non-GNU ld that we prefer.
21241       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21242         test "$with_gnu_ld" != no && break
21243       else
21244         test "$with_gnu_ld" != yes && break
21245       fi
21246     fi
21247   done
21248   IFS="$ac_save_ifs"
21249 else
21250   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21251 fi
21252 fi
21253
21254 LD="$acl_cv_path_LD"
21255 if test -n "$LD"; then
21256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21257 $as_echo "$LD" >&6; }
21258 else
21259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21260 $as_echo "no" >&6; }
21261 fi
21262 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21265 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21266   $as_echo_n "(cached) " >&6
21267 else
21268   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21269 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21270   acl_cv_prog_gnu_ld=yes
21271 else
21272   acl_cv_prog_gnu_ld=no
21273 fi
21274 fi
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21276 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21277 with_gnu_ld=$acl_cv_prog_gnu_ld
21278
21279
21280
21281                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21282 $as_echo_n "checking for shared library run path origin... " >&6; }
21283 if test "${acl_cv_rpath+set}" = set; then :
21284   $as_echo_n "(cached) " >&6
21285 else
21286
21287     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21288     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21289     . ./conftest.sh
21290     rm -f ./conftest.sh
21291     acl_cv_rpath=done
21292
21293 fi
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21295 $as_echo "$acl_cv_rpath" >&6; }
21296   wl="$acl_cv_wl"
21297   libext="$acl_cv_libext"
21298   shlibext="$acl_cv_shlibext"
21299   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21300   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21301   hardcode_direct="$acl_cv_hardcode_direct"
21302   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21303     # Check whether --enable-rpath was given.
21304 if test "${enable_rpath+set}" = set; then :
21305   enableval=$enable_rpath; :
21306 else
21307   enable_rpath=yes
21308 fi
21309
21310
21311
21312
21313
21314
21315
21316
21317     use_additional=yes
21318
21319   acl_save_prefix="$prefix"
21320   prefix="$acl_final_prefix"
21321   acl_save_exec_prefix="$exec_prefix"
21322   exec_prefix="$acl_final_exec_prefix"
21323
21324     eval additional_includedir=\"$includedir\"
21325     eval additional_libdir=\"$libdir\"
21326
21327   exec_prefix="$acl_save_exec_prefix"
21328   prefix="$acl_save_prefix"
21329
21330
21331 # Check whether --with-libiconv-prefix was given.
21332 if test "${with_libiconv_prefix+set}" = set; then :
21333   withval=$with_libiconv_prefix;
21334     if test "X$withval" = "Xno"; then
21335       use_additional=no
21336     else
21337       if test "X$withval" = "X"; then
21338
21339   acl_save_prefix="$prefix"
21340   prefix="$acl_final_prefix"
21341   acl_save_exec_prefix="$exec_prefix"
21342   exec_prefix="$acl_final_exec_prefix"
21343
21344           eval additional_includedir=\"$includedir\"
21345           eval additional_libdir=\"$libdir\"
21346
21347   exec_prefix="$acl_save_exec_prefix"
21348   prefix="$acl_save_prefix"
21349
21350       else
21351         additional_includedir="$withval/include"
21352         additional_libdir="$withval/lib"
21353       fi
21354     fi
21355
21356 fi
21357
21358       LIBICONV=
21359   LTLIBICONV=
21360   INCICONV=
21361   rpathdirs=
21362   ltrpathdirs=
21363   names_already_handled=
21364   names_next_round='iconv '
21365   while test -n "$names_next_round"; do
21366     names_this_round="$names_next_round"
21367     names_next_round=
21368     for name in $names_this_round; do
21369       already_handled=
21370       for n in $names_already_handled; do
21371         if test "$n" = "$name"; then
21372           already_handled=yes
21373           break
21374         fi
21375       done
21376       if test -z "$already_handled"; then
21377         names_already_handled="$names_already_handled $name"
21378                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21379         eval value=\"\$HAVE_LIB$uppername\"
21380         if test -n "$value"; then
21381           if test "$value" = yes; then
21382             eval value=\"\$LIB$uppername\"
21383             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21384             eval value=\"\$LTLIB$uppername\"
21385             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21386           else
21387                                     :
21388           fi
21389         else
21390                               found_dir=
21391           found_la=
21392           found_so=
21393           found_a=
21394           if test $use_additional = yes; then
21395             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21396               found_dir="$additional_libdir"
21397               found_so="$additional_libdir/lib$name.$shlibext"
21398               if test -f "$additional_libdir/lib$name.la"; then
21399                 found_la="$additional_libdir/lib$name.la"
21400               fi
21401             else
21402               if test -f "$additional_libdir/lib$name.$libext"; then
21403                 found_dir="$additional_libdir"
21404                 found_a="$additional_libdir/lib$name.$libext"
21405                 if test -f "$additional_libdir/lib$name.la"; then
21406                   found_la="$additional_libdir/lib$name.la"
21407                 fi
21408               fi
21409             fi
21410           fi
21411           if test "X$found_dir" = "X"; then
21412             for x in $LDFLAGS $LTLIBICONV; do
21413
21414   acl_save_prefix="$prefix"
21415   prefix="$acl_final_prefix"
21416   acl_save_exec_prefix="$exec_prefix"
21417   exec_prefix="$acl_final_exec_prefix"
21418   eval x=\"$x\"
21419   exec_prefix="$acl_save_exec_prefix"
21420   prefix="$acl_save_prefix"
21421
21422               case "$x" in
21423                 -L*)
21424                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21425                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21426                     found_dir="$dir"
21427                     found_so="$dir/lib$name.$shlibext"
21428                     if test -f "$dir/lib$name.la"; then
21429                       found_la="$dir/lib$name.la"
21430                     fi
21431                   else
21432                     if test -f "$dir/lib$name.$libext"; then
21433                       found_dir="$dir"
21434                       found_a="$dir/lib$name.$libext"
21435                       if test -f "$dir/lib$name.la"; then
21436                         found_la="$dir/lib$name.la"
21437                       fi
21438                     fi
21439                   fi
21440                   ;;
21441               esac
21442               if test "X$found_dir" != "X"; then
21443                 break
21444               fi
21445             done
21446           fi
21447           if test "X$found_dir" != "X"; then
21448                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21449             if test "X$found_so" != "X"; then
21450                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21451                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21452               else
21453                                                                                 haveit=
21454                 for x in $ltrpathdirs; do
21455                   if test "X$x" = "X$found_dir"; then
21456                     haveit=yes
21457                     break
21458                   fi
21459                 done
21460                 if test -z "$haveit"; then
21461                   ltrpathdirs="$ltrpathdirs $found_dir"
21462                 fi
21463                                 if test "$hardcode_direct" = yes; then
21464                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21465                 else
21466                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21467                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21468                                                             haveit=
21469                     for x in $rpathdirs; do
21470                       if test "X$x" = "X$found_dir"; then
21471                         haveit=yes
21472                         break
21473                       fi
21474                     done
21475                     if test -z "$haveit"; then
21476                       rpathdirs="$rpathdirs $found_dir"
21477                     fi
21478                   else
21479                                                                                 haveit=
21480                     for x in $LDFLAGS $LIBICONV; do
21481
21482   acl_save_prefix="$prefix"
21483   prefix="$acl_final_prefix"
21484   acl_save_exec_prefix="$exec_prefix"
21485   exec_prefix="$acl_final_exec_prefix"
21486   eval x=\"$x\"
21487   exec_prefix="$acl_save_exec_prefix"
21488   prefix="$acl_save_prefix"
21489
21490                       if test "X$x" = "X-L$found_dir"; then
21491                         haveit=yes
21492                         break
21493                       fi
21494                     done
21495                     if test -z "$haveit"; then
21496                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21497                     fi
21498                     if test "$hardcode_minus_L" != no; then
21499                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21500                     else
21501                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21502                     fi
21503                   fi
21504                 fi
21505               fi
21506             else
21507               if test "X$found_a" != "X"; then
21508                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21509               else
21510                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21511               fi
21512             fi
21513                         additional_includedir=
21514             case "$found_dir" in
21515               */lib | */lib/)
21516                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21517                 additional_includedir="$basedir/include"
21518                 ;;
21519             esac
21520             if test "X$additional_includedir" != "X"; then
21521                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21522                 haveit=
21523                 if test "X$additional_includedir" = "X/usr/local/include"; then
21524                   if test -n "$GCC"; then
21525                     case $host_os in
21526                       linux*) haveit=yes;;
21527                     esac
21528                   fi
21529                 fi
21530                 if test -z "$haveit"; then
21531                   for x in $CPPFLAGS $INCICONV; do
21532
21533   acl_save_prefix="$prefix"
21534   prefix="$acl_final_prefix"
21535   acl_save_exec_prefix="$exec_prefix"
21536   exec_prefix="$acl_final_exec_prefix"
21537   eval x=\"$x\"
21538   exec_prefix="$acl_save_exec_prefix"
21539   prefix="$acl_save_prefix"
21540
21541                     if test "X$x" = "X-I$additional_includedir"; then
21542                       haveit=yes
21543                       break
21544                     fi
21545                   done
21546                   if test -z "$haveit"; then
21547                     if test -d "$additional_includedir"; then
21548                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21549                     fi
21550                   fi
21551                 fi
21552               fi
21553             fi
21554                         if test -n "$found_la"; then
21555                                                         save_libdir="$libdir"
21556               case "$found_la" in
21557                 */* | *\\*) . "$found_la" ;;
21558                 *) . "./$found_la" ;;
21559               esac
21560               libdir="$save_libdir"
21561                             for dep in $dependency_libs; do
21562                 case "$dep" in
21563                   -L*)
21564                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21565                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21566                       haveit=
21567                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21568                         if test -n "$GCC"; then
21569                           case $host_os in
21570                             linux*) haveit=yes;;
21571                           esac
21572                         fi
21573                       fi
21574                       if test -z "$haveit"; then
21575                         haveit=
21576                         for x in $LDFLAGS $LIBICONV; do
21577
21578   acl_save_prefix="$prefix"
21579   prefix="$acl_final_prefix"
21580   acl_save_exec_prefix="$exec_prefix"
21581   exec_prefix="$acl_final_exec_prefix"
21582   eval x=\"$x\"
21583   exec_prefix="$acl_save_exec_prefix"
21584   prefix="$acl_save_prefix"
21585
21586                           if test "X$x" = "X-L$additional_libdir"; then
21587                             haveit=yes
21588                             break
21589                           fi
21590                         done
21591                         if test -z "$haveit"; then
21592                           if test -d "$additional_libdir"; then
21593                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21594                           fi
21595                         fi
21596                         haveit=
21597                         for x in $LDFLAGS $LTLIBICONV; do
21598
21599   acl_save_prefix="$prefix"
21600   prefix="$acl_final_prefix"
21601   acl_save_exec_prefix="$exec_prefix"
21602   exec_prefix="$acl_final_exec_prefix"
21603   eval x=\"$x\"
21604   exec_prefix="$acl_save_exec_prefix"
21605   prefix="$acl_save_prefix"
21606
21607                           if test "X$x" = "X-L$additional_libdir"; then
21608                             haveit=yes
21609                             break
21610                           fi
21611                         done
21612                         if test -z "$haveit"; then
21613                           if test -d "$additional_libdir"; then
21614                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21615                           fi
21616                         fi
21617                       fi
21618                     fi
21619                     ;;
21620                   -R*)
21621                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21622                     if test "$enable_rpath" != no; then
21623                                                                   haveit=
21624                       for x in $rpathdirs; do
21625                         if test "X$x" = "X$dir"; then
21626                           haveit=yes
21627                           break
21628                         fi
21629                       done
21630                       if test -z "$haveit"; then
21631                         rpathdirs="$rpathdirs $dir"
21632                       fi
21633                                                                   haveit=
21634                       for x in $ltrpathdirs; do
21635                         if test "X$x" = "X$dir"; then
21636                           haveit=yes
21637                           break
21638                         fi
21639                       done
21640                       if test -z "$haveit"; then
21641                         ltrpathdirs="$ltrpathdirs $dir"
21642                       fi
21643                     fi
21644                     ;;
21645                   -l*)
21646                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21647                     ;;
21648                   *.la)
21649                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21650                     ;;
21651                   *)
21652                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21653                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21654                     ;;
21655                 esac
21656               done
21657             fi
21658           else
21659                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21660             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21661           fi
21662         fi
21663       fi
21664     done
21665   done
21666   if test "X$rpathdirs" != "X"; then
21667     if test -n "$hardcode_libdir_separator"; then
21668                         alldirs=
21669       for found_dir in $rpathdirs; do
21670         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21671       done
21672             acl_save_libdir="$libdir"
21673       libdir="$alldirs"
21674       eval flag=\"$hardcode_libdir_flag_spec\"
21675       libdir="$acl_save_libdir"
21676       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21677     else
21678             for found_dir in $rpathdirs; do
21679         acl_save_libdir="$libdir"
21680         libdir="$found_dir"
21681         eval flag=\"$hardcode_libdir_flag_spec\"
21682         libdir="$acl_save_libdir"
21683         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21684       done
21685     fi
21686   fi
21687   if test "X$ltrpathdirs" != "X"; then
21688             for found_dir in $ltrpathdirs; do
21689       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21690     done
21691   fi
21692
21693
21694
21695
21696
21697
21698
21699           am_save_CPPFLAGS="$CPPFLAGS"
21700
21701   for element in $INCICONV; do
21702     haveit=
21703     for x in $CPPFLAGS; do
21704
21705   acl_save_prefix="$prefix"
21706   prefix="$acl_final_prefix"
21707   acl_save_exec_prefix="$exec_prefix"
21708   exec_prefix="$acl_final_exec_prefix"
21709   eval x=\"$x\"
21710   exec_prefix="$acl_save_exec_prefix"
21711   prefix="$acl_save_prefix"
21712
21713       if test "X$x" = "X$element"; then
21714         haveit=yes
21715         break
21716       fi
21717     done
21718     if test -z "$haveit"; then
21719       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21720     fi
21721   done
21722
21723
21724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21725 $as_echo_n "checking for iconv... " >&6; }
21726 if test "${am_cv_func_iconv+set}" = set; then :
21727   $as_echo_n "(cached) " >&6
21728 else
21729
21730     am_cv_func_iconv="no, consider installing GNU libiconv"
21731     am_cv_lib_iconv=no
21732     if test x$gcc_no_link = xyes; then
21733   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21734 fi
21735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21736 /* end confdefs.h.  */
21737 #include <stdlib.h>
21738 #include <iconv.h>
21739 int
21740 main ()
21741 {
21742 iconv_t cd = iconv_open("","");
21743        iconv(cd,NULL,NULL,NULL,NULL);
21744        iconv_close(cd);
21745   ;
21746   return 0;
21747 }
21748 _ACEOF
21749 if ac_fn_c_try_link "$LINENO"; then :
21750   am_cv_func_iconv=yes
21751 fi
21752 rm -f core conftest.err conftest.$ac_objext \
21753     conftest$ac_exeext conftest.$ac_ext
21754     if test "$am_cv_func_iconv" != yes; then
21755       am_save_LIBS="$LIBS"
21756       LIBS="$LIBS $LIBICONV"
21757       if test x$gcc_no_link = xyes; then
21758   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21759 fi
21760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21761 /* end confdefs.h.  */
21762 #include <stdlib.h>
21763 #include <iconv.h>
21764 int
21765 main ()
21766 {
21767 iconv_t cd = iconv_open("","");
21768          iconv(cd,NULL,NULL,NULL,NULL);
21769          iconv_close(cd);
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 if ac_fn_c_try_link "$LINENO"; then :
21775   am_cv_lib_iconv=yes
21776         am_cv_func_iconv=yes
21777 fi
21778 rm -f core conftest.err conftest.$ac_objext \
21779     conftest$ac_exeext conftest.$ac_ext
21780       LIBS="$am_save_LIBS"
21781     fi
21782
21783 fi
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21785 $as_echo "$am_cv_func_iconv" >&6; }
21786   if test "$am_cv_func_iconv" = yes; then
21787
21788 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21789
21790   fi
21791   if test "$am_cv_lib_iconv" = yes; then
21792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21793 $as_echo_n "checking how to link with libiconv... " >&6; }
21794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21795 $as_echo "$LIBICONV" >&6; }
21796   else
21797             CPPFLAGS="$am_save_CPPFLAGS"
21798     LIBICONV=
21799     LTLIBICONV=
21800   fi
21801
21802
21803
21804   if test "$am_cv_func_iconv" = yes; then
21805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21806 $as_echo_n "checking for iconv declaration... " >&6; }
21807     if test "${am_cv_proto_iconv+set}" = set; then :
21808   $as_echo_n "(cached) " >&6
21809 else
21810
21811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21812 /* end confdefs.h.  */
21813
21814 #include <stdlib.h>
21815 #include <iconv.h>
21816 extern
21817 #ifdef __cplusplus
21818 "C"
21819 #endif
21820 #if defined(__STDC__) || defined(__cplusplus)
21821 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21822 #else
21823 size_t iconv();
21824 #endif
21825
21826 int
21827 main ()
21828 {
21829
21830   ;
21831   return 0;
21832 }
21833 _ACEOF
21834 if ac_fn_c_try_compile "$LINENO"; then :
21835   am_cv_proto_iconv_arg1=""
21836 else
21837   am_cv_proto_iconv_arg1="const"
21838 fi
21839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840       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);"
21841 fi
21842
21843     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21845          }$am_cv_proto_iconv" >&5
21846 $as_echo "${ac_t:-
21847          }$am_cv_proto_iconv" >&6; }
21848
21849 cat >>confdefs.h <<_ACEOF
21850 #define ICONV_CONST $am_cv_proto_iconv_arg1
21851 _ACEOF
21852
21853   fi
21854
21855
21856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21857 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21858 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21859   $as_echo_n "(cached) " >&6
21860 else
21861   if test x$gcc_no_link = xyes; then
21862   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21863 fi
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h.  */
21866 #include <locale.h>
21867 int
21868 main ()
21869 {
21870 return LC_MESSAGES
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 if ac_fn_c_try_link "$LINENO"; then :
21876   am_cv_val_LC_MESSAGES=yes
21877 else
21878   am_cv_val_LC_MESSAGES=no
21879 fi
21880 rm -f core conftest.err conftest.$ac_objext \
21881     conftest$ac_exeext conftest.$ac_ext
21882 fi
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21884 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21885   if test $am_cv_val_LC_MESSAGES = yes; then
21886
21887 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21888
21889   fi
21890
21891    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21892 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21893 if test "${ac_cv_struct_tm+set}" = set; then :
21894   $as_echo_n "(cached) " >&6
21895 else
21896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h.  */
21898 #include <sys/types.h>
21899 #include <time.h>
21900
21901 int
21902 main ()
21903 {
21904 struct tm tm;
21905                                      int *p = &tm.tm_sec;
21906                                      return !p;
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 if ac_fn_c_try_compile "$LINENO"; then :
21912   ac_cv_struct_tm=time.h
21913 else
21914   ac_cv_struct_tm=sys/time.h
21915 fi
21916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 fi
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21919 $as_echo "$ac_cv_struct_tm" >&6; }
21920 if test $ac_cv_struct_tm = sys/time.h; then
21921
21922 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21923
21924 fi
21925
21926 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21927 #include <$ac_cv_struct_tm>
21928
21929 "
21930 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21931
21932 cat >>confdefs.h <<_ACEOF
21933 #define HAVE_STRUCT_TM_TM_ZONE 1
21934 _ACEOF
21935
21936
21937 fi
21938
21939 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21940
21941 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21942
21943 else
21944   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21945 "
21946 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21947   ac_have_decl=1
21948 else
21949   ac_have_decl=0
21950 fi
21951
21952 cat >>confdefs.h <<_ACEOF
21953 #define HAVE_DECL_TZNAME $ac_have_decl
21954 _ACEOF
21955
21956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21957 $as_echo_n "checking for tzname... " >&6; }
21958 if test "${ac_cv_var_tzname+set}" = set; then :
21959   $as_echo_n "(cached) " >&6
21960 else
21961   if test x$gcc_no_link = xyes; then
21962   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21963 fi
21964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21965 /* end confdefs.h.  */
21966 #include <time.h>
21967 #if !HAVE_DECL_TZNAME
21968 extern char *tzname[];
21969 #endif
21970
21971 int
21972 main ()
21973 {
21974 return tzname[0][0];
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 if ac_fn_c_try_link "$LINENO"; then :
21980   ac_cv_var_tzname=yes
21981 else
21982   ac_cv_var_tzname=no
21983 fi
21984 rm -f core conftest.err conftest.$ac_objext \
21985     conftest$ac_exeext conftest.$ac_ext
21986 fi
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21988 $as_echo "$ac_cv_var_tzname" >&6; }
21989   if test $ac_cv_var_tzname = yes; then
21990
21991 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21992
21993   fi
21994 fi
21995
21996
21997    for ac_func in gethostbyname_r
21998 do :
21999   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
22000 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
22001   cat >>confdefs.h <<_ACEOF
22002 #define HAVE_GETHOSTBYNAME_R 1
22003 _ACEOF
22004
22005
22006 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22007
22008      # There are two different kinds of gethostbyname_r.
22009      # We look for the one that returns `int'.
22010      # Hopefully this check is robust enough.
22011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h.  */
22013 #include <netdb.h>
22014
22015 _ACEOF
22016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22017   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22018
22019
22020 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22021
22022 fi
22023 rm -f conftest*
22024
22025
22026      case " $GCINCS " in
22027      *" -D_REENTRANT "*) ;;
22028      *)
22029                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22030 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22031 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22032   $as_echo_n "(cached) " >&6
22033 else
22034    ac_ext=cpp
22035 ac_cpp='$CXXCPP $CPPFLAGS'
22036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22039
22040           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h.  */
22042 #include <netdb.h>
22043 int
22044 main ()
22045 {
22046 gethostbyname_r("", 0, 0);
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 if ac_fn_cxx_try_compile "$LINENO"; then :
22052   libjava_cv_gethostbyname_r_needs_reentrant=no
22053 else
22054                 CPPFLAGS_SAVE="$CPPFLAGS"
22055                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22056                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22057 /* end confdefs.h.  */
22058 #include <netdb.h>
22059 int
22060 main ()
22061 {
22062 gethostbyname_r("", 0, 0);
22063   ;
22064   return 0;
22065 }
22066 _ACEOF
22067 if ac_fn_cxx_try_compile "$LINENO"; then :
22068   libjava_cv_gethostbyname_r_needs_reentrant=yes
22069 else
22070   libjava_cv_gethostbyname_r_needs_reentrant=fail
22071 fi
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073                 CPPFLAGS="$CPPFLAGS_SAVE"
22074
22075 fi
22076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077           ac_ext=c
22078 ac_cpp='$CPP $CPPFLAGS'
22079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22082
22083
22084 fi
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22086 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22087         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22088
22089 $as_echo "#define _REENTRANT 1" >>confdefs.h
22090
22091         fi
22092      ;;
22093      esac
22094
22095      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22096 $as_echo_n "checking for struct hostent_data... " >&6; }
22097 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22098   $as_echo_n "(cached) " >&6
22099 else
22100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101 /* end confdefs.h.  */
22102
22103 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22104 # define _REENTRANT 1
22105 #endif
22106 #include <netdb.h>
22107 int
22108 main ()
22109 {
22110 struct hostent_data data;
22111   ;
22112   return 0;
22113 }
22114 _ACEOF
22115 if ac_fn_c_try_compile "$LINENO"; then :
22116   libjava_cv_struct_hostent_data=yes
22117 else
22118   libjava_cv_struct_hostent_data=no
22119 fi
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 fi
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22123 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22124      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22125
22126 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22127
22128      fi
22129
22130 fi
22131 done
22132
22133
22134    # FIXME: libjava source code expects to find a prototype for
22135    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22136    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22137    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22138    # linkage check is enough, yet C++ code requires proper prototypes.)
22139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h.  */
22141 #include <netdb.h>
22142
22143 _ACEOF
22144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22145   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22146
22147    for ac_func in gethostbyaddr_r
22148 do :
22149   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22150 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22151   cat >>confdefs.h <<_ACEOF
22152 #define HAVE_GETHOSTBYADDR_R 1
22153 _ACEOF
22154
22155
22156 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22157
22158      # There are two different kinds of gethostbyaddr_r.
22159      # We look for the one that returns `int'.
22160      # Hopefully this check is robust enough.
22161      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h.  */
22163 #include <netdb.h>
22164
22165 _ACEOF
22166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22167   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22168
22169
22170 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22171
22172 fi
22173 rm -f conftest*
22174
22175 fi
22176 done
22177
22178 fi
22179 rm -f conftest*
22180
22181
22182    for ac_func in gethostname
22183 do :
22184   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22185 if test "x$ac_cv_func_gethostname" = x""yes; then :
22186   cat >>confdefs.h <<_ACEOF
22187 #define HAVE_GETHOSTNAME 1
22188 _ACEOF
22189
22190
22191 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22192
22193      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h.  */
22195 #include <unistd.h>
22196
22197 _ACEOF
22198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22199   $EGREP "gethostname" >/dev/null 2>&1; then :
22200
22201
22202 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22203
22204 fi
22205 rm -f conftest*
22206
22207 fi
22208 done
22209
22210
22211    for ac_func in usleep
22212 do :
22213   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22214 if test "x$ac_cv_func_usleep" = x""yes; then :
22215   cat >>confdefs.h <<_ACEOF
22216 #define HAVE_USLEEP 1
22217 _ACEOF
22218
22219      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h.  */
22221 #include <unistd.h>
22222
22223 _ACEOF
22224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22225   $EGREP "usleep" >/dev/null 2>&1; then :
22226
22227
22228 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22229
22230 fi
22231 rm -f conftest*
22232
22233 fi
22234 done
22235
22236
22237    # Look for these functions in the thread library, but only bother
22238    # if using POSIX threads.
22239    if test "$THREADS" = posix; then
22240       save_LIBS="$LIBS"
22241       LIBS="$LIBS $THREADLIBS"
22242
22243       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
22244       # Solaris 7 the name librt is preferred.
22245       for ac_func in sched_yield
22246 do :
22247   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22248 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22249   cat >>confdefs.h <<_ACEOF
22250 #define HAVE_SCHED_YIELD 1
22251 _ACEOF
22252
22253 else
22254
22255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22256 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22257 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22258   $as_echo_n "(cached) " >&6
22259 else
22260   ac_check_lib_save_LIBS=$LIBS
22261 LIBS="-lrt  $LIBS"
22262 if test x$gcc_no_link = xyes; then
22263   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22264 fi
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h.  */
22267
22268 /* Override any GCC internal prototype to avoid an error.
22269    Use char because int might match the return type of a GCC
22270    builtin and then its argument prototype would still apply.  */
22271 #ifdef __cplusplus
22272 extern "C"
22273 #endif
22274 char sched_yield ();
22275 int
22276 main ()
22277 {
22278 return sched_yield ();
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 if ac_fn_c_try_link "$LINENO"; then :
22284   ac_cv_lib_rt_sched_yield=yes
22285 else
22286   ac_cv_lib_rt_sched_yield=no
22287 fi
22288 rm -f core conftest.err conftest.$ac_objext \
22289     conftest$ac_exeext conftest.$ac_ext
22290 LIBS=$ac_check_lib_save_LIBS
22291 fi
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22293 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22294 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22295
22296           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22297
22298           THREADLIBS="$THREADLIBS -lrt"
22299           THREADSPEC="$THREADSPEC -lrt"
22300 else
22301
22302           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22303 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22304 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22305   $as_echo_n "(cached) " >&6
22306 else
22307   ac_check_lib_save_LIBS=$LIBS
22308 LIBS="-lposix4  $LIBS"
22309 if test x$gcc_no_link = xyes; then
22310   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22311 fi
22312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22313 /* end confdefs.h.  */
22314
22315 /* Override any GCC internal prototype to avoid an error.
22316    Use char because int might match the return type of a GCC
22317    builtin and then its argument prototype would still apply.  */
22318 #ifdef __cplusplus
22319 extern "C"
22320 #endif
22321 char sched_yield ();
22322 int
22323 main ()
22324 {
22325 return sched_yield ();
22326   ;
22327   return 0;
22328 }
22329 _ACEOF
22330 if ac_fn_c_try_link "$LINENO"; then :
22331   ac_cv_lib_posix4_sched_yield=yes
22332 else
22333   ac_cv_lib_posix4_sched_yield=no
22334 fi
22335 rm -f core conftest.err conftest.$ac_objext \
22336     conftest$ac_exeext conftest.$ac_ext
22337 LIBS=$ac_check_lib_save_LIBS
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22340 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22341 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22342
22343             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22344
22345             THREADLIBS="$THREADLIBS -lposix4"
22346             THREADSPEC="$THREADSPEC -lposix4"
22347 fi
22348
22349 fi
22350
22351 fi
22352 done
22353
22354
22355       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22356 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22357 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22358   $as_echo_n "(cached) " >&6
22359 else
22360   ac_check_lib_save_LIBS=$LIBS
22361 LIBS="-lrt  $LIBS"
22362 if test x$gcc_no_link = xyes; then
22363   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22364 fi
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h.  */
22367
22368 /* Override any GCC internal prototype to avoid an error.
22369    Use char because int might match the return type of a GCC
22370    builtin and then its argument prototype would still apply.  */
22371 #ifdef __cplusplus
22372 extern "C"
22373 #endif
22374 char clock_gettime ();
22375 int
22376 main ()
22377 {
22378 return clock_gettime ();
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 if ac_fn_c_try_link "$LINENO"; then :
22384   ac_cv_lib_rt_clock_gettime=yes
22385 else
22386   ac_cv_lib_rt_clock_gettime=no
22387 fi
22388 rm -f core conftest.err conftest.$ac_objext \
22389     conftest$ac_exeext conftest.$ac_ext
22390 LIBS=$ac_check_lib_save_LIBS
22391 fi
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22393 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22394 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22395
22396
22397 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22398
22399          case "$THREADSPEC" in
22400            *-lrt*) ;;
22401            *)
22402              THREADSPEC="$THREADSPEC -lrt"
22403              THREADLIBS="$THREADLIBS -lrt"
22404              ;;
22405          esac
22406 fi
22407
22408
22409       LIBS="$save_LIBS"
22410
22411       # We can save a little space at runtime if the mutex has m_count
22412       # or __m_count.  This is a nice hack for Linux.
22413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h.  */
22415 #include <pthread.h>
22416 int
22417 main ()
22418 {
22419
22420           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22421
22422   ;
22423   return 0;
22424 }
22425 _ACEOF
22426 if ac_fn_c_try_compile "$LINENO"; then :
22427
22428 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22429
22430 else
22431
22432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h.  */
22434 #include <pthread.h>
22435 int
22436 main ()
22437 {
22438
22439             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22440
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 if ac_fn_c_try_compile "$LINENO"; then :
22446
22447 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22448
22449 fi
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 fi
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453    fi
22454
22455    # We require a way to get the time.
22456    time_found=no
22457    for ac_func in gettimeofday time ftime
22458 do :
22459   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22461 eval as_val=\$$as_ac_var
22462    if test "x$as_val" = x""yes; then :
22463   cat >>confdefs.h <<_ACEOF
22464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22465 _ACEOF
22466  time_found=yes
22467 fi
22468 done
22469
22470    if test "$time_found" = no; then
22471       as_fn_error "no function found to get the time" "$LINENO" 5
22472    fi
22473
22474    for ac_func in memmove
22475 do :
22476   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22477 if test "x$ac_cv_func_memmove" = x""yes; then :
22478   cat >>confdefs.h <<_ACEOF
22479 #define HAVE_MEMMOVE 1
22480 _ACEOF
22481
22482 fi
22483 done
22484
22485
22486    # We require memcpy.
22487    memcpy_found=no
22488    for ac_func in memcpy
22489 do :
22490   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22491 if test "x$ac_cv_func_memcpy" = x""yes; then :
22492   cat >>confdefs.h <<_ACEOF
22493 #define HAVE_MEMCPY 1
22494 _ACEOF
22495  memcpy_found=yes
22496 fi
22497 done
22498
22499    if test "$memcpy_found" = no; then
22500       as_fn_error "memcpy is required" "$LINENO" 5
22501    fi
22502    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22506   $as_echo_n "(cached) " >&6
22507 else
22508   ac_check_lib_save_LIBS=$LIBS
22509 LIBS="-ldl  $LIBS"
22510 if test x$gcc_no_link = xyes; then
22511   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22512 fi
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h.  */
22515
22516 /* Override any GCC internal prototype to avoid an error.
22517    Use char because int might match the return type of a GCC
22518    builtin and then its argument prototype would still apply.  */
22519 #ifdef __cplusplus
22520 extern "C"
22521 #endif
22522 char dlopen ();
22523 int
22524 main ()
22525 {
22526 return dlopen ();
22527   ;
22528   return 0;
22529 }
22530 _ACEOF
22531 if ac_fn_c_try_link "$LINENO"; then :
22532   ac_cv_lib_dl_dlopen=yes
22533 else
22534   ac_cv_lib_dl_dlopen=no
22535 fi
22536 rm -f core conftest.err conftest.$ac_objext \
22537     conftest$ac_exeext conftest.$ac_ext
22538 LIBS=$ac_check_lib_save_LIBS
22539 fi
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22541 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22542 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22543
22544
22545 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22546
22547 else
22548
22549        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22550 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22551 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22552   $as_echo_n "(cached) " >&6
22553 else
22554   ac_check_lib_save_LIBS=$LIBS
22555 LIBS="-ldld  $LIBS"
22556 if test x$gcc_no_link = xyes; then
22557   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22558 fi
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h.  */
22561
22562 /* Override any GCC internal prototype to avoid an error.
22563    Use char because int might match the return type of a GCC
22564    builtin and then its argument prototype would still apply.  */
22565 #ifdef __cplusplus
22566 extern "C"
22567 #endif
22568 char dlopen ();
22569 int
22570 main ()
22571 {
22572 return dlopen ();
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 if ac_fn_c_try_link "$LINENO"; then :
22578   ac_cv_lib_dld_dlopen=yes
22579 else
22580   ac_cv_lib_dld_dlopen=no
22581 fi
22582 rm -f core conftest.err conftest.$ac_objext \
22583     conftest$ac_exeext conftest.$ac_ext
22584 LIBS=$ac_check_lib_save_LIBS
22585 fi
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22587 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22588 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22589
22590
22591 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22592
22593 fi
22594
22595 fi
22596
22597
22598    # Some library-finding code we stole from Tcl.
22599    #--------------------------------------------------------------------
22600    #    Check for the existence of the -lsocket and -lnsl libraries.
22601    #    The order here is important, so that they end up in the right
22602    #    order in the command line generated by make.  Here are some
22603    #    special considerations:
22604    #    1. Use "connect" and "accept" to check for -lsocket, and
22605    #       "gethostbyname" to check for -lnsl.
22606    #    2. Use each function name only once:  can't redo a check because
22607    #       autoconf caches the results of the last check and won't redo it.
22608    #    3. Use -lnsl and -lsocket only if they supply procedures that
22609    #       aren't already present in the normal libraries.  This is because
22610    #       IRIX 5.2 has libraries, but they aren't needed and they're
22611    #       bogus:  they goof up name resolution if used.
22612    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22613    #       To get around this problem, check for both libraries together
22614    #       if -lsocket doesn't work by itself.
22615    #--------------------------------------------------------------------
22616
22617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22618 $as_echo_n "checking for socket libraries... " >&6; }
22619 if test "${gcj_cv_lib_sockets+set}" = set; then :
22620   $as_echo_n "(cached) " >&6
22621 else
22622   gcj_cv_lib_sockets=
22623      gcj_checkBoth=0
22624      unset ac_cv_func_connect
22625      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22626 if test "x$ac_cv_func_connect" = x""yes; then :
22627   gcj_checkSocket=0
22628 else
22629   gcj_checkSocket=1
22630 fi
22631
22632      if test "$gcj_checkSocket" = 1; then
22633          unset ac_cv_func_connect
22634          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22635 $as_echo_n "checking for main in -lsocket... " >&6; }
22636 if test "${ac_cv_lib_socket_main+set}" = set; then :
22637   $as_echo_n "(cached) " >&6
22638 else
22639   ac_check_lib_save_LIBS=$LIBS
22640 LIBS="-lsocket  $LIBS"
22641 if test x$gcc_no_link = xyes; then
22642   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22643 fi
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h.  */
22646
22647
22648 int
22649 main ()
22650 {
22651 return main ();
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 if ac_fn_c_try_link "$LINENO"; then :
22657   ac_cv_lib_socket_main=yes
22658 else
22659   ac_cv_lib_socket_main=no
22660 fi
22661 rm -f core conftest.err conftest.$ac_objext \
22662     conftest$ac_exeext conftest.$ac_ext
22663 LIBS=$ac_check_lib_save_LIBS
22664 fi
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22666 $as_echo "$ac_cv_lib_socket_main" >&6; }
22667 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22668   gcj_cv_lib_sockets="-lsocket"
22669 else
22670   gcj_checkBoth=1
22671 fi
22672
22673      fi
22674      if test "$gcj_checkBoth" = 1; then
22675          gcj_oldLibs=$LIBS
22676          LIBS="$LIBS -lsocket -lnsl"
22677          unset ac_cv_func_accept
22678          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22679 if test "x$ac_cv_func_accept" = x""yes; then :
22680   gcj_checkNsl=0
22681                         gcj_cv_lib_sockets="-lsocket -lnsl"
22682 fi
22683
22684          unset ac_cv_func_accept
22685          LIBS=$gcj_oldLibs
22686      fi
22687      unset ac_cv_func_gethostbyname
22688      gcj_oldLibs=$LIBS
22689      LIBS="$LIBS $gcj_cv_lib_sockets"
22690      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22691 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22692
22693 else
22694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22695 $as_echo_n "checking for main in -lnsl... " >&6; }
22696 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22697   $as_echo_n "(cached) " >&6
22698 else
22699   ac_check_lib_save_LIBS=$LIBS
22700 LIBS="-lnsl  $LIBS"
22701 if test x$gcc_no_link = xyes; then
22702   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22703 fi
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h.  */
22706
22707
22708 int
22709 main ()
22710 {
22711 return main ();
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 if ac_fn_c_try_link "$LINENO"; then :
22717   ac_cv_lib_nsl_main=yes
22718 else
22719   ac_cv_lib_nsl_main=no
22720 fi
22721 rm -f core conftest.err conftest.$ac_objext \
22722     conftest$ac_exeext conftest.$ac_ext
22723 LIBS=$ac_check_lib_save_LIBS
22724 fi
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22726 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22727 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22728   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22729 fi
22730
22731 fi
22732
22733      unset ac_cv_func_gethostbyname
22734      LIBS=$gcj_oldLIBS
22735
22736 fi
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22738 $as_echo "$gcj_cv_lib_sockets" >&6; }
22739    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22740
22741    if test "$with_system_zlib" = yes; then
22742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22743 $as_echo_n "checking for deflate in -lz... " >&6; }
22744 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22745   $as_echo_n "(cached) " >&6
22746 else
22747   ac_check_lib_save_LIBS=$LIBS
22748 LIBS="-lz  $LIBS"
22749 if test x$gcc_no_link = xyes; then
22750   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22751 fi
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h.  */
22754
22755 /* Override any GCC internal prototype to avoid an error.
22756    Use char because int might match the return type of a GCC
22757    builtin and then its argument prototype would still apply.  */
22758 #ifdef __cplusplus
22759 extern "C"
22760 #endif
22761 char deflate ();
22762 int
22763 main ()
22764 {
22765 return deflate ();
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 if ac_fn_c_try_link "$LINENO"; then :
22771   ac_cv_lib_z_deflate=yes
22772 else
22773   ac_cv_lib_z_deflate=no
22774 fi
22775 rm -f core conftest.err conftest.$ac_objext \
22776     conftest$ac_exeext conftest.$ac_ext
22777 LIBS=$ac_check_lib_save_LIBS
22778 fi
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22780 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22781 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22782   ZLIBSPEC=-lz
22783 else
22784   ZLIBSPEC=
22785 fi
22786
22787    fi
22788
22789    # Test for Gtk stuff, if asked for.
22790    if test "$use_gtk_awt" = yes; then
22791
22792   succeeded=no
22793
22794   if test -z "$PKG_CONFIG"; then
22795     # Extract the first word of "pkg-config", so it can be a program name with args.
22796 set dummy pkg-config; ac_word=$2
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22798 $as_echo_n "checking for $ac_word... " >&6; }
22799 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22800   $as_echo_n "(cached) " >&6
22801 else
22802   case $PKG_CONFIG in
22803   [\\/]* | ?:[\\/]*)
22804   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22805   ;;
22806   *)
22807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808 for as_dir in $PATH
22809 do
22810   IFS=$as_save_IFS
22811   test -z "$as_dir" && as_dir=.
22812     for ac_exec_ext in '' $ac_executable_extensions; do
22813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22814     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22816     break 2
22817   fi
22818 done
22819   done
22820 IFS=$as_save_IFS
22821
22822   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22823   ;;
22824 esac
22825 fi
22826 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22827 if test -n "$PKG_CONFIG"; then
22828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22829 $as_echo "$PKG_CONFIG" >&6; }
22830 else
22831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 $as_echo "no" >&6; }
22833 fi
22834
22835
22836   fi
22837
22838   if test "$PKG_CONFIG" = "no" ; then
22839      echo "*** The pkg-config script could not be found. Make sure it is"
22840      echo "*** in your path, or set the PKG_CONFIG environment variable"
22841      echo "*** to the full path to pkg-config."
22842      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22843   else
22844      PKG_CONFIG_MIN_VERSION=0.9.0
22845      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22847 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22848
22849         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22850             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22851 $as_echo "yes" >&6; }
22852             succeeded=yes
22853
22854             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22855 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22856             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22857             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22858 $as_echo "$GTK_CFLAGS" >&6; }
22859
22860             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22861 $as_echo_n "checking GTK_LIBS... " >&6; }
22862             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22863             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22864 $as_echo "$GTK_LIBS" >&6; }
22865         else
22866             GTK_CFLAGS=""
22867             GTK_LIBS=""
22868             ## If we have a custom action on failure, don't print errors, but
22869             ## do set a variable so people can do so.
22870             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22871             echo $GTK_PKG_ERRORS
22872         fi
22873
22874
22875
22876      else
22877         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22878         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22879      fi
22880   fi
22881
22882   if test $succeeded = yes; then
22883      :
22884   else
22885      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
22886   fi
22887
22888
22889
22890
22891
22892   succeeded=no
22893
22894   if test -z "$PKG_CONFIG"; then
22895     # Extract the first word of "pkg-config", so it can be a program name with args.
22896 set dummy pkg-config; ac_word=$2
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22898 $as_echo_n "checking for $ac_word... " >&6; }
22899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22900   $as_echo_n "(cached) " >&6
22901 else
22902   case $PKG_CONFIG in
22903   [\\/]* | ?:[\\/]*)
22904   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22905   ;;
22906   *)
22907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22908 for as_dir in $PATH
22909 do
22910   IFS=$as_save_IFS
22911   test -z "$as_dir" && as_dir=.
22912     for ac_exec_ext in '' $ac_executable_extensions; do
22913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22914     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22916     break 2
22917   fi
22918 done
22919   done
22920 IFS=$as_save_IFS
22921
22922   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22923   ;;
22924 esac
22925 fi
22926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22927 if test -n "$PKG_CONFIG"; then
22928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22929 $as_echo "$PKG_CONFIG" >&6; }
22930 else
22931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22932 $as_echo "no" >&6; }
22933 fi
22934
22935
22936   fi
22937
22938   if test "$PKG_CONFIG" = "no" ; then
22939      echo "*** The pkg-config script could not be found. Make sure it is"
22940      echo "*** in your path, or set the PKG_CONFIG environment variable"
22941      echo "*** to the full path to pkg-config."
22942      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22943   else
22944      PKG_CONFIG_MIN_VERSION=0.9.0
22945      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22947 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22948
22949         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22950             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22951 $as_echo "yes" >&6; }
22952             succeeded=yes
22953
22954             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22955 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22956             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22957             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22958 $as_echo "$GLIB_CFLAGS" >&6; }
22959
22960             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22961 $as_echo_n "checking GLIB_LIBS... " >&6; }
22962             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22963             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22964 $as_echo "$GLIB_LIBS" >&6; }
22965         else
22966             GLIB_CFLAGS=""
22967             GLIB_LIBS=""
22968             ## If we have a custom action on failure, don't print errors, but
22969             ## do set a variable so people can do so.
22970             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22971             echo $GLIB_PKG_ERRORS
22972         fi
22973
22974
22975
22976      else
22977         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22978         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22979      fi
22980   fi
22981
22982   if test $succeeded = yes; then
22983      :
22984   else
22985      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
22986   fi
22987
22988
22989
22990
22991
22992   succeeded=no
22993
22994   if test -z "$PKG_CONFIG"; then
22995     # Extract the first word of "pkg-config", so it can be a program name with args.
22996 set dummy pkg-config; ac_word=$2
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22998 $as_echo_n "checking for $ac_word... " >&6; }
22999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23000   $as_echo_n "(cached) " >&6
23001 else
23002   case $PKG_CONFIG in
23003   [\\/]* | ?:[\\/]*)
23004   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23005   ;;
23006   *)
23007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23008 for as_dir in $PATH
23009 do
23010   IFS=$as_save_IFS
23011   test -z "$as_dir" && as_dir=.
23012     for ac_exec_ext in '' $ac_executable_extensions; do
23013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23014     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23016     break 2
23017   fi
23018 done
23019   done
23020 IFS=$as_save_IFS
23021
23022   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23023   ;;
23024 esac
23025 fi
23026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23027 if test -n "$PKG_CONFIG"; then
23028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23029 $as_echo "$PKG_CONFIG" >&6; }
23030 else
23031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 $as_echo "no" >&6; }
23033 fi
23034
23035
23036   fi
23037
23038   if test "$PKG_CONFIG" = "no" ; then
23039      echo "*** The pkg-config script could not be found. Make sure it is"
23040      echo "*** in your path, or set the PKG_CONFIG environment variable"
23041      echo "*** to the full path to pkg-config."
23042      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23043   else
23044      PKG_CONFIG_MIN_VERSION=0.9.0
23045      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23047 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23048
23049         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23050             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23051 $as_echo "yes" >&6; }
23052             succeeded=yes
23053
23054             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23055 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23056             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23057             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23058 $as_echo "$LIBART_CFLAGS" >&6; }
23059
23060             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23061 $as_echo_n "checking LIBART_LIBS... " >&6; }
23062             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23063             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23064 $as_echo "$LIBART_LIBS" >&6; }
23065         else
23066             LIBART_CFLAGS=""
23067             LIBART_LIBS=""
23068             ## If we have a custom action on failure, don't print errors, but
23069             ## do set a variable so people can do so.
23070             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23071             echo $LIBART_PKG_ERRORS
23072         fi
23073
23074
23075
23076      else
23077         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23078         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23079      fi
23080   fi
23081
23082   if test $succeeded = yes; then
23083      :
23084   else
23085      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
23086   fi
23087
23088
23089
23090
23091       # We require the XTest Extension to support java.awt.Robot.
23092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23093 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23094 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23095   $as_echo_n "(cached) " >&6
23096 else
23097   ac_check_lib_save_LIBS=$LIBS
23098 LIBS="-lXtst ${X_LIBS} $LIBS"
23099 if test x$gcc_no_link = xyes; then
23100   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23101 fi
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h.  */
23104
23105 /* Override any GCC internal prototype to avoid an error.
23106    Use char because int might match the return type of a GCC
23107    builtin and then its argument prototype would still apply.  */
23108 #ifdef __cplusplus
23109 extern "C"
23110 #endif
23111 char XTestQueryExtension ();
23112 int
23113 main ()
23114 {
23115 return XTestQueryExtension ();
23116   ;
23117   return 0;
23118 }
23119 _ACEOF
23120 if ac_fn_c_try_link "$LINENO"; then :
23121   ac_cv_lib_Xtst_XTestQueryExtension=yes
23122 else
23123   ac_cv_lib_Xtst_XTestQueryExtension=no
23124 fi
23125 rm -f core conftest.err conftest.$ac_objext \
23126     conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23128 fi
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23130 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23131 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23132   true
23133 else
23134   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23135 fi
23136
23137    fi
23138
23139    # On Solaris, and maybe other architectures, the Boehm collector
23140    # requires -ldl.
23141    if test "$GC" = boehm; then
23142       case "${host}" in
23143           mips-sgi-irix6*)
23144             # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is
23145             # missing.  It's unnecessary anyway since dlopen lives in libc.
23146             ;;
23147           *-*-darwin*)
23148             ;;
23149           *)
23150             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23151 $as_echo_n "checking for main in -ldl... " >&6; }
23152 if test "${ac_cv_lib_dl_main+set}" = set; then :
23153   $as_echo_n "(cached) " >&6
23154 else
23155   ac_check_lib_save_LIBS=$LIBS
23156 LIBS="-ldl  $LIBS"
23157 if test x$gcc_no_link = xyes; then
23158   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23159 fi
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h.  */
23162
23163
23164 int
23165 main ()
23166 {
23167 return main ();
23168   ;
23169   return 0;
23170 }
23171 _ACEOF
23172 if ac_fn_c_try_link "$LINENO"; then :
23173   ac_cv_lib_dl_main=yes
23174 else
23175   ac_cv_lib_dl_main=no
23176 fi
23177 rm -f core conftest.err conftest.$ac_objext \
23178     conftest$ac_exeext conftest.$ac_ext
23179 LIBS=$ac_check_lib_save_LIBS
23180 fi
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23182 $as_echo "$ac_cv_lib_dl_main" >&6; }
23183 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23184   SYSTEMSPEC="$SYSTEMSPEC -ldl"
23185 fi
23186
23187             ;;
23188       esac
23189    fi
23190 fi
23191
23192 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23193 case $build in
23194     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23195     *)         CLASSPATH_SEPARATOR=':' ;;
23196 esac
23197
23198
23199 # We must search the source tree for java.lang, since we still don't
23200 # have libgcj.jar nor java/lang/*.class
23201 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23202 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23203
23204 # Since some classes depend on this one, we need its source available
23205 # before we can do any GCJ compilation test :-(
23206 if test ! -f gnu/classpath/Configuration.java; then
23207   test -d gnu || mkdir gnu
23208   test -d gnu/classpath || mkdir gnu/classpath
23209   # Note that it is not crucial that all the values here be correct.
23210   sed -e "s,@prefix@,$expanded_prefix," \
23211       -e "s,@VERSION@,$VERSION," \
23212       -e "s,@LIBDEBUG@,false," \
23213       -e "s,@INIT_LOAD_LIBRARY@,false," \
23214       -e "s,@@,$LIBGCJDEBUG," \
23215       -e "s,@default_toolkit@,$TOOLKIT," \
23216       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23217       -e "s,@GTK_CAIRO_ENABLED@,false," \
23218       -e "s,@ECJ_JAR@,," \
23219       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23220         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23221         > gnu/classpath/Configuration.java
23222   # We do not want to redirect the output of the grep below to /dev/null,
23223   # but we add /dev/null to the input list so that grep will print the
23224   # filename of Configuration.java in case it finds any matches.
23225   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23226     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23227   fi
23228 fi
23229
23230
23231 if test -n "$ac_tool_prefix"; then
23232   for ac_prog in gcj
23233   do
23234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23237 $as_echo_n "checking for $ac_word... " >&6; }
23238 if test "${ac_cv_prog_GCJ+set}" = set; then :
23239   $as_echo_n "(cached) " >&6
23240 else
23241   if test -n "$GCJ"; then
23242   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23243 else
23244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23245 for as_dir in $PATH
23246 do
23247   IFS=$as_save_IFS
23248   test -z "$as_dir" && as_dir=.
23249     for ac_exec_ext in '' $ac_executable_extensions; do
23250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23251     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23253     break 2
23254   fi
23255 done
23256   done
23257 IFS=$as_save_IFS
23258
23259 fi
23260 fi
23261 GCJ=$ac_cv_prog_GCJ
23262 if test -n "$GCJ"; then
23263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23264 $as_echo "$GCJ" >&6; }
23265 else
23266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 $as_echo "no" >&6; }
23268 fi
23269
23270
23271     test -n "$GCJ" && break
23272   done
23273 fi
23274 if test -z "$GCJ"; then
23275   ac_ct_GCJ=$GCJ
23276   for ac_prog in gcj
23277 do
23278   # Extract the first word of "$ac_prog", so it can be a program name with args.
23279 set dummy $ac_prog; ac_word=$2
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23281 $as_echo_n "checking for $ac_word... " >&6; }
23282 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23283   $as_echo_n "(cached) " >&6
23284 else
23285   if test -n "$ac_ct_GCJ"; then
23286   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23287 else
23288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23289 for as_dir in $PATH
23290 do
23291   IFS=$as_save_IFS
23292   test -z "$as_dir" && as_dir=.
23293     for ac_exec_ext in '' $ac_executable_extensions; do
23294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23295     ac_cv_prog_ac_ct_GCJ="$ac_prog"
23296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23297     break 2
23298   fi
23299 done
23300   done
23301 IFS=$as_save_IFS
23302
23303 fi
23304 fi
23305 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23306 if test -n "$ac_ct_GCJ"; then
23307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23308 $as_echo "$ac_ct_GCJ" >&6; }
23309 else
23310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23312 fi
23313
23314
23315   test -n "$ac_ct_GCJ" && break
23316 done
23317
23318   if test "x$ac_ct_GCJ" = x; then
23319     GCJ="gcj"
23320   else
23321     case $cross_compiling:$ac_tool_warned in
23322 yes:)
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23325 ac_tool_warned=yes ;;
23326 esac
23327     GCJ=$ac_ct_GCJ
23328   fi
23329 fi
23330
23331 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23332 if test "x${GCJFLAGS-unset}" = xunset; then
23333    GCJFLAGS="-g -O2"
23334 fi
23335
23336
23337 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23338
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23340 $as_echo_n "checking dependency style of $depcc... " >&6; }
23341 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23342   $as_echo_n "(cached) " >&6
23343 else
23344   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23345   # We make a subdir and do the tests there.  Otherwise we can end up
23346   # making bogus files that we don't know about and never remove.  For
23347   # instance it was reported that on HP-UX the gcc test will end up
23348   # making a dummy file named `D' -- because `-MD' means `put the output
23349   # in D'.
23350   mkdir conftest.dir
23351   # Copy depcomp to subdir because otherwise we won't find it if we're
23352   # using a relative directory.
23353   cp "$am_depcomp" conftest.dir
23354   cd conftest.dir
23355   # We will build objects and dependencies in a subdirectory because
23356   # it helps to detect inapplicable dependency modes.  For instance
23357   # both Tru64's cc and ICC support -MD to output dependencies as a
23358   # side effect of compilation, but ICC will put the dependencies in
23359   # the current directory while Tru64 will put them in the object
23360   # directory.
23361   mkdir sub
23362
23363   am_cv_GCJ_dependencies_compiler_type=none
23364   if test "$am_compiler_list" = ""; then
23365      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23366   fi
23367   am__universal=false
23368
23369
23370   for depmode in $am_compiler_list; do
23371     # Setup a source with many dependencies, because some compilers
23372     # like to wrap large dependency lists on column 80 (with \), and
23373     # we should not choose a depcomp mode which is confused by this.
23374     #
23375     # We need to recreate these files for each test, as the compiler may
23376     # overwrite some of them when testing with obscure command lines.
23377     # This happens at least with the AIX C compiler.
23378     : > sub/conftest.c
23379     for i in 1 2 3 4 5 6; do
23380       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23381       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23382       # Solaris 8's {/usr,}/bin/sh.
23383       touch sub/conftst$i.h
23384     done
23385     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23386
23387     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23388     # mode.  It turns out that the SunPro C++ compiler does not properly
23389     # handle `-M -o', and we need to detect this.  Also, some Intel
23390     # versions had trouble with output in subdirs
23391     am__obj=sub/conftest.${OBJEXT-o}
23392     am__minus_obj="-o $am__obj"
23393     case $depmode in
23394     gcc)
23395       # This depmode causes a compiler race in universal mode.
23396       test "$am__universal" = false || continue
23397       ;;
23398     nosideeffect)
23399       # after this tag, mechanisms are not by side-effect, so they'll
23400       # only be used when explicitly requested
23401       if test "x$enable_dependency_tracking" = xyes; then
23402         continue
23403       else
23404         break
23405       fi
23406       ;;
23407     msvisualcpp | msvcmsys)
23408       # This compiler won't grok `-c -o', but also, the minuso test has
23409       # not run yet.  These depmodes are late enough in the game, and
23410       # so weak that their functioning should not be impacted.
23411       am__obj=conftest.${OBJEXT-o}
23412       am__minus_obj=
23413       ;;
23414     none) break ;;
23415     esac
23416     if depmode=$depmode \
23417        source=sub/conftest.c object=$am__obj \
23418        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23419        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23420          >/dev/null 2>conftest.err &&
23421        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23422        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23423        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23424        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23425       # icc doesn't choke on unknown options, it will just issue warnings
23426       # or remarks (even with -Werror).  So we grep stderr for any message
23427       # that says an option was ignored or not supported.
23428       # When given -MP, icc 7.0 and 7.1 complain thusly:
23429       #   icc: Command line warning: ignoring option '-M'; no argument required
23430       # The diagnosis changed in icc 8.0:
23431       #   icc: Command line remark: option '-MP' not supported
23432       if (grep 'ignoring option' conftest.err ||
23433           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23434         am_cv_GCJ_dependencies_compiler_type=$depmode
23435         break
23436       fi
23437     fi
23438   done
23439
23440   cd ..
23441   rm -rf conftest.dir
23442 else
23443   am_cv_GCJ_dependencies_compiler_type=none
23444 fi
23445
23446 fi
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23448 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23449 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23450
23451  if
23452   test "x$enable_dependency_tracking" != xno \
23453   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23454   am__fastdepGCJ_TRUE=
23455   am__fastdepGCJ_FALSE='#'
23456 else
23457   am__fastdepGCJ_TRUE='#'
23458   am__fastdepGCJ_FALSE=
23459 fi
23460
23461
23462
23463
23464 # Now remove it.
23465 rm -f gnu/classpath/Configuration.java
23466
23467 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23468
23469 # The cast to long int works around a bug in the HP C Compiler
23470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23472 # This bug is HP SR number 8606223364.
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23474 $as_echo_n "checking size of void *... " >&6; }
23475 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23476   $as_echo_n "(cached) " >&6
23477 else
23478   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23479
23480 else
23481   if test "$ac_cv_type_void_p" = yes; then
23482      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23484 { as_fn_set_status 77
23485 as_fn_error "cannot compute sizeof (void *)
23486 See \`config.log' for more details." "$LINENO" 5; }; }
23487    else
23488      ac_cv_sizeof_void_p=0
23489    fi
23490 fi
23491
23492 fi
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23494 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23495
23496
23497
23498 cat >>confdefs.h <<_ACEOF
23499 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23500 _ACEOF
23501
23502
23503
23504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23505 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23506 if test "${ac_cv_c_bigendian+set}" = set; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509   ac_cv_c_bigendian=unknown
23510     # See if we're dealing with a universal compiler.
23511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h.  */
23513 #ifndef __APPLE_CC__
23514                not a universal capable compiler
23515              #endif
23516              typedef int dummy;
23517
23518 _ACEOF
23519 if ac_fn_c_try_compile "$LINENO"; then :
23520
23521         # Check for potential -arch flags.  It is not universal unless
23522         # there are at least two -arch flags with different values.
23523         ac_arch=
23524         ac_prev=
23525         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23526          if test -n "$ac_prev"; then
23527            case $ac_word in
23528              i?86 | x86_64 | ppc | ppc64)
23529                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23530                  ac_arch=$ac_word
23531                else
23532                  ac_cv_c_bigendian=universal
23533                  break
23534                fi
23535                ;;
23536            esac
23537            ac_prev=
23538          elif test "x$ac_word" = "x-arch"; then
23539            ac_prev=arch
23540          fi
23541        done
23542 fi
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544     if test $ac_cv_c_bigendian = unknown; then
23545       # See if sys/param.h defines the BYTE_ORDER macro.
23546       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23547 /* end confdefs.h.  */
23548 #include <sys/types.h>
23549              #include <sys/param.h>
23550
23551 int
23552 main ()
23553 {
23554 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23555                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23556                      && LITTLE_ENDIAN)
23557               bogus endian macros
23558              #endif
23559
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 if ac_fn_c_try_compile "$LINENO"; then :
23565   # It does; now see whether it defined to BIG_ENDIAN or not.
23566          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23567 /* end confdefs.h.  */
23568 #include <sys/types.h>
23569                 #include <sys/param.h>
23570
23571 int
23572 main ()
23573 {
23574 #if BYTE_ORDER != BIG_ENDIAN
23575                  not big endian
23576                 #endif
23577
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 if ac_fn_c_try_compile "$LINENO"; then :
23583   ac_cv_c_bigendian=yes
23584 else
23585   ac_cv_c_bigendian=no
23586 fi
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 fi
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590     fi
23591     if test $ac_cv_c_bigendian = unknown; then
23592       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h.  */
23595 #include <limits.h>
23596
23597 int
23598 main ()
23599 {
23600 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23601               bogus endian macros
23602              #endif
23603
23604   ;
23605   return 0;
23606 }
23607 _ACEOF
23608 if ac_fn_c_try_compile "$LINENO"; then :
23609   # It does; now see whether it defined to _BIG_ENDIAN or not.
23610          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23611 /* end confdefs.h.  */
23612 #include <limits.h>
23613
23614 int
23615 main ()
23616 {
23617 #ifndef _BIG_ENDIAN
23618                  not big endian
23619                 #endif
23620
23621   ;
23622   return 0;
23623 }
23624 _ACEOF
23625 if ac_fn_c_try_compile "$LINENO"; then :
23626   ac_cv_c_bigendian=yes
23627 else
23628   ac_cv_c_bigendian=no
23629 fi
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 fi
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633     fi
23634     if test $ac_cv_c_bigendian = unknown; then
23635       # Compile a test program.
23636       if test "$cross_compiling" = yes; then :
23637   # Try to guess by grepping values from an object file.
23638          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h.  */
23640 short int ascii_mm[] =
23641                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23642                 short int ascii_ii[] =
23643                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23644                 int use_ascii (int i) {
23645                   return ascii_mm[i] + ascii_ii[i];
23646                 }
23647                 short int ebcdic_ii[] =
23648                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23649                 short int ebcdic_mm[] =
23650                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23651                 int use_ebcdic (int i) {
23652                   return ebcdic_mm[i] + ebcdic_ii[i];
23653                 }
23654                 extern int foo;
23655
23656 int
23657 main ()
23658 {
23659 return use_ascii (foo) == use_ebcdic (foo);
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 if ac_fn_c_try_compile "$LINENO"; then :
23665   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23666               ac_cv_c_bigendian=yes
23667             fi
23668             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23669               if test "$ac_cv_c_bigendian" = unknown; then
23670                 ac_cv_c_bigendian=no
23671               else
23672                 # finding both strings is unlikely to happen, but who knows?
23673                 ac_cv_c_bigendian=unknown
23674               fi
23675             fi
23676 fi
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23678 else
23679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680 /* end confdefs.h.  */
23681 $ac_includes_default
23682 int
23683 main ()
23684 {
23685
23686              /* Are we little or big endian?  From Harbison&Steele.  */
23687              union
23688              {
23689                long int l;
23690                char c[sizeof (long int)];
23691              } u;
23692              u.l = 1;
23693              return u.c[sizeof (long int) - 1] == 1;
23694
23695   ;
23696   return 0;
23697 }
23698 _ACEOF
23699 if ac_fn_c_try_run "$LINENO"; then :
23700   ac_cv_c_bigendian=no
23701 else
23702   ac_cv_c_bigendian=yes
23703 fi
23704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23705   conftest.$ac_objext conftest.beam conftest.$ac_ext
23706 fi
23707
23708     fi
23709 fi
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23711 $as_echo "$ac_cv_c_bigendian" >&6; }
23712  case $ac_cv_c_bigendian in #(
23713    yes)
23714      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23715 ;; #(
23716    no)
23717       ;; #(
23718    universal)
23719
23720 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23721
23722      ;; #(
23723    *)
23724      as_fn_error "unknown endianness
23725  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23726  esac
23727
23728
23729 ZLIBS=
23730 SYS_ZLIBS=
23731 ZINCS=
23732
23733 if test -z "$ZLIBSPEC"; then
23734    # Use zlib from the GCC tree.
23735    ZINCS='-I$(top_srcdir)/../zlib'
23736    ZLIBS=../zlib/libzgcj_convenience.la
23737 else
23738    # System's zlib.
23739    SYS_ZLIBS="$ZLIBSPEC"
23740 fi
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751  if test "$NATIVE" = yes; then
23752   NATIVE_TRUE=
23753   NATIVE_FALSE='#'
23754 else
23755   NATIVE_TRUE='#'
23756   NATIVE_FALSE=
23757 fi
23758
23759  if test "$enable_shared" = yes; then
23760   ENABLE_SHARED_TRUE=
23761   ENABLE_SHARED_FALSE='#'
23762 else
23763   ENABLE_SHARED_TRUE='#'
23764   ENABLE_SHARED_FALSE=
23765 fi
23766
23767  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23768   NEEDS_DATA_START_TRUE=
23769   NEEDS_DATA_START_FALSE='#'
23770 else
23771   NEEDS_DATA_START_TRUE='#'
23772   NEEDS_DATA_START_FALSE=
23773 fi
23774
23775  if test -z "${with_multisubdir}"; then
23776   INSTALL_BINARIES_TRUE=
23777   INSTALL_BINARIES_FALSE='#'
23778 else
23779   INSTALL_BINARIES_TRUE='#'
23780   INSTALL_BINARIES_FALSE=
23781 fi
23782
23783
23784
23785 # Process the option "--enable-version-specific-runtime-libs"
23786 # Calculate toolexeclibdir
23787 case ${version_specific_libs} in
23788   yes)
23789     # Need the gcc compiler version to know where to install libraries
23790     # and header files if --enable-version-specific-runtime-libs option
23791     # is selected.
23792     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23793     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23794     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23795     toolexeclibdir=$toolexecmainlibdir
23796     ;;
23797   no)
23798     if test -n "$with_cross_host" &&
23799        test x"$with_cross_host" != x"no"; then
23800       # Install a library built with a cross compiler in tooldir, not libdir.
23801       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23802       toolexecmainlibdir='$(toolexecdir)/lib'
23803     else
23804       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23805       toolexecmainlibdir='$(libdir)'
23806     fi
23807     multi_os_directory=`$CC -print-multi-os-directory`
23808     case $multi_os_directory in
23809       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23810       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23811     esac
23812     ;;
23813 esac
23814
23815
23816
23817
23818 # Determine gcj and libgcj version number.
23819 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23820 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23821 GCJVERSION=$gcjversion
23822
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define GCJVERSION "$GCJVERSION"
23826 _ACEOF
23827
23828
23829 # Determine where the standard .db file and GNU Classpath JNI
23830 # libraries are found.
23831 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23832 multi_os_directory=`$CC -print-multi-os-directory`
23833 case $multi_os_directory in
23834   .)
23835    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23836    ;;
23837   *)
23838    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23839    ;;
23840 esac
23841
23842
23843
23844
23845 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23846
23847
23848 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23849
23850
23851
23852 case "${with_gxx_include_dir}" in
23853   yes)
23854     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23855     ;;
23856   no | "")
23857     case "${enable_version_specific_runtime_libs}" in
23858       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23859       *)
23860         libstdcxx_incdir='c++/$(gcc_version)'
23861         gxx_include_dir='include/$(libstdcxx_incdir)'
23862         if test -n "$with_cross_host" &&
23863            test x"$with_cross_host" != x"no"; then
23864           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23865         else
23866           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23867         fi;;
23868     esac ;;
23869   *) gxx_include_dir=${with_gxx_include_dir} ;;
23870 esac
23871
23872
23873
23874
23875 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23876 # On that system, sys/ioctl.h will not include sys/filio.h unless
23877 # BSD_COMP is defined; just including sys/filio.h is simpler.
23878 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23879 # for now.  If you change this, you also must update natFile.cc.
23880 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23881                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23882                   sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23883                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23884                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23885 do :
23886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23888 eval as_val=\$$as_ac_Header
23889    if test "x$as_val" = x""yes; then :
23890   cat >>confdefs.h <<_ACEOF
23891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23892 _ACEOF
23893
23894 fi
23895
23896 done
23897
23898
23899 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23900 for ac_header in net/if.h
23901 do :
23902   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23903 #ifdef HAVE_SYS_SOCKET_H
23904 #include <sys/socket.h>
23905 #endif
23906
23907 "
23908 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23909   cat >>confdefs.h <<_ACEOF
23910 #define HAVE_NET_IF_H 1
23911 _ACEOF
23912
23913 fi
23914
23915 done
23916
23917
23918 for ac_header in inttypes.h
23919 do :
23920   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23921 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23922   cat >>confdefs.h <<_ACEOF
23923 #define HAVE_INTTYPES_H 1
23924 _ACEOF
23925
23926
23927 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23928
23929
23930 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23931
23932
23933 fi
23934
23935 done
23936
23937
23938 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23939 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23940
23941 else
23942
23943 cat >>confdefs.h <<_ACEOF
23944 #define ssize_t int
23945 _ACEOF
23946
23947 fi
23948
23949 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23950 #ifdef HAVE_MAGIC_H
23951 #include <magic.h>
23952 #endif
23953 "
23954 if test "x$ac_cv_type_magic_t" = x""yes; then :
23955
23956
23957 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23958
23959 fi
23960
23961
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23963 $as_echo_n "checking for in_addr_t... " >&6; }
23964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h.  */
23966 #include <sys/types.h>
23967 #if STDC_HEADERS
23968 #include <stdlib.h>
23969 #include <stddef.h>
23970 #endif
23971 #if HAVE_NETINET_IN_H
23972 #include <netinet/in.h>
23973 #endif
23974 int
23975 main ()
23976 {
23977 in_addr_t foo;
23978   ;
23979   return 0;
23980 }
23981 _ACEOF
23982 if ac_fn_c_try_compile "$LINENO"; then :
23983
23984 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23985
23986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23987 $as_echo "yes" >&6; }
23988 else
23989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23990 $as_echo "no" >&6; }
23991 fi
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23995 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h.  */
23998 #include <netinet/in.h>
23999 int
24000 main ()
24001 {
24002 struct ip_mreq mreq;
24003   ;
24004   return 0;
24005 }
24006 _ACEOF
24007 if ac_fn_c_try_compile "$LINENO"; then :
24008
24009 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
24010
24011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24012 $as_echo "yes" >&6; }
24013 else
24014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24015 $as_echo "no" >&6; }
24016 fi
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24020 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h.  */
24023 #include <netinet/in.h>
24024 int
24025 main ()
24026 {
24027 struct ipv6_mreq mreq6;
24028   ;
24029   return 0;
24030 }
24031 _ACEOF
24032 if ac_fn_c_try_compile "$LINENO"; then :
24033
24034 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24035
24036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24037 $as_echo "yes" >&6; }
24038 else
24039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040 $as_echo "no" >&6; }
24041 fi
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24045 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24047 /* end confdefs.h.  */
24048 #include <netinet/in.h>
24049 int
24050 main ()
24051 {
24052 struct sockaddr_in6 addr6;
24053   ;
24054   return 0;
24055 }
24056 _ACEOF
24057 if ac_fn_c_try_compile "$LINENO"; then :
24058
24059 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24060
24061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24062 $as_echo "yes" >&6; }
24063 else
24064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24065 $as_echo "no" >&6; }
24066 fi
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24070 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24072 /* end confdefs.h.  */
24073 #define _POSIX_PII_SOCKET
24074 #include <sys/types.h>
24075 #include <sys/socket.h>
24076 int
24077 main ()
24078 {
24079 socklen_t x = 5;
24080   ;
24081   return 0;
24082 }
24083 _ACEOF
24084 if ac_fn_c_try_compile "$LINENO"; then :
24085
24086 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24087
24088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24089 $as_echo "yes" >&6; }
24090 else
24091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24092 $as_echo "no" >&6; }
24093 fi
24094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24095
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24097 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h.  */
24100 #include <time.h>
24101 int
24102 main ()
24103 {
24104 struct tm tim; tim.tm_gmtoff = 0;
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 if ac_fn_c_try_compile "$LINENO"; then :
24110
24111 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24112
24113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114 $as_echo "yes" >&6; }
24115 else
24116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24119 $as_echo_n "checking for global timezone variable... " >&6; }
24120                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24121 /* end confdefs.h.  */
24122 #include <time.h>
24123 int
24124 main ()
24125 {
24126 void i(){long z2 = 2*timezone;}
24127   ;
24128   return 0;
24129 }
24130 _ACEOF
24131 if ac_fn_c_try_compile "$LINENO"; then :
24132
24133 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24134
24135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24136 $as_echo "yes" >&6; }
24137 else
24138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24140        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24141 $as_echo_n "checking for global _timezone variable... " >&6; }
24142               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24143 /* end confdefs.h.  */
24144 #include <time.h>
24145 int
24146 main ()
24147 {
24148 long z2 = _timezone;
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 if ac_fn_c_try_compile "$LINENO"; then :
24154
24155 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24156
24157           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24158 $as_echo "yes" >&6; }
24159 else
24160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24161 $as_echo "no" >&6; }
24162 fi
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164 fi
24165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166 fi
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168
24169 for ac_prog in perl
24170 do
24171   # Extract the first word of "$ac_prog", so it can be a program name with args.
24172 set dummy $ac_prog; ac_word=$2
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24174 $as_echo_n "checking for $ac_word... " >&6; }
24175 if test "${ac_cv_prog_PERL+set}" = set; then :
24176   $as_echo_n "(cached) " >&6
24177 else
24178   if test -n "$PERL"; then
24179   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24180 else
24181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24182 for as_dir in $PATH
24183 do
24184   IFS=$as_save_IFS
24185   test -z "$as_dir" && as_dir=.
24186     for ac_exec_ext in '' $ac_executable_extensions; do
24187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24188     ac_cv_prog_PERL="$ac_prog"
24189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24190     break 2
24191   fi
24192 done
24193   done
24194 IFS=$as_save_IFS
24195
24196 fi
24197 fi
24198 PERL=$ac_cv_prog_PERL
24199 if test -n "$PERL"; then
24200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24201 $as_echo "$PERL" >&6; }
24202 else
24203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24204 $as_echo "no" >&6; }
24205 fi
24206
24207
24208   test -n "$PERL" && break
24209 done
24210 test -n "$PERL" || PERL="false"
24211
24212
24213 SYSDEP_SOURCES=
24214 SIGNAL_HANDLER_AUX=
24215
24216 case "${host}" in
24217  i?86-*-linux*)
24218     SIGNAL_HANDLER=include/i386-signal.h
24219     ;;
24220  *-*-solaris2*)
24221     SIGNAL_HANDLER=include/solaris-signal.h
24222     ;;
24223 # ia64-*)
24224 #    SYSDEP_SOURCES=sysdep/ia64.c
24225 #    test -d sysdep || mkdir sysdep
24226 #    ;;
24227  hppa*-*-linux*)
24228     SIGNAL_HANDLER=include/pa-signal.h
24229     ;;
24230  hppa*-hp-hpux*)
24231     SIGNAL_HANDLER=include/hppa-signal.h
24232     ;;
24233  ia64-*-linux*)
24234     SIGNAL_HANDLER=include/dwarf2-signal.h
24235     ;;
24236  powerpc*-*-linux*)
24237     SIGNAL_HANDLER=include/powerpc-signal.h
24238     ;;
24239  alpha*-*-linux*)
24240     SIGNAL_HANDLER=include/dwarf2-signal.h
24241     ;;
24242  s390*-*-linux*)
24243     SIGNAL_HANDLER=include/s390-signal.h
24244     ;;
24245  x86_64*-*-linux*)
24246     SIGNAL_HANDLER=include/x86_64-signal.h
24247     SIGNAL_HANDLER_AUX=include/i386-signal.h
24248     ;;
24249  sparc*-*-linux*)
24250     SIGNAL_HANDLER=include/dwarf2-signal.h
24251     ;;
24252  sh*-*-linux*)
24253     SIGNAL_HANDLER=include/sh-signal.h
24254     ;;
24255  *mingw*)
24256     SIGNAL_HANDLER=include/win32-signal.h
24257     ;;
24258  mips*-*-linux*)
24259     SIGNAL_HANDLER=include/mips-signal.h
24260     ;;
24261  m68*-*-linux*)
24262     SIGNAL_HANDLER=include/dwarf2-signal.h
24263     ;;
24264  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24265     SIGNAL_HANDLER=include/darwin-signal.h
24266     ;;
24267  powerpc*-*-aix*)
24268     SIGNAL_HANDLER=include/aix-signal.h
24269     ;;
24270  *)
24271     SIGNAL_HANDLER=include/default-signal.h
24272     ;;
24273 esac
24274
24275 # If we're using sjlj exceptions, forget what we just learned.
24276 if test "$enable_sjlj_exceptions" = yes; then
24277    SIGNAL_HANDLER=include/default-signal.h
24278    SIGNAL_HANDLER_AUX=
24279 fi
24280
24281
24282
24283 if test -z "$SIGNAL_HANDLER_AUX"; then
24284   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24285 fi
24286
24287 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24288
24289
24290 if test "${multilib}" = "yes"; then
24291   multilib_arg="--enable-multilib"
24292 else
24293   multilib_arg=
24294 fi
24295
24296 # See if we support thread-local storage.
24297
24298
24299    # Check whether --enable-tls was given.
24300 if test "${enable_tls+set}" = set; then :
24301   enableval=$enable_tls;
24302       case "$enableval" in
24303        yes|no) ;;
24304        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24305       esac
24306
24307 else
24308   enable_tls=yes
24309 fi
24310
24311
24312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24313 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24314 if test "${gcc_cv_have_tls+set}" = set; then :
24315   $as_echo_n "(cached) " >&6
24316 else
24317
24318     if test "$cross_compiling" = yes; then :
24319                 if test x$gcc_no_link = xyes; then
24320   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24321 fi
24322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h.  */
24324 __thread int a; int b; int main() { return a = b; }
24325 _ACEOF
24326 if ac_fn_c_try_link "$LINENO"; then :
24327   chktls_save_LDFLAGS="$LDFLAGS"
24328                           case $host in
24329             *-*-linux*)
24330               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24331               ;;
24332           esac
24333           chktls_save_CFLAGS="$CFLAGS"
24334           CFLAGS="-fPIC $CFLAGS"
24335                   if test x$gcc_no_link = xyes; then
24336   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24337 fi
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h.  */
24340 int f() { return 0; }
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343   if test x$gcc_no_link = xyes; then
24344   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24345 fi
24346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h.  */
24348 __thread int a; int b; int f() { return a = b; }
24349 _ACEOF
24350 if ac_fn_c_try_link "$LINENO"; then :
24351   gcc_cv_have_tls=yes
24352 else
24353   gcc_cv_have_tls=no
24354 fi
24355 rm -f core conftest.err conftest.$ac_objext \
24356     conftest$ac_exeext conftest.$ac_ext
24357 else
24358   gcc_cv_have_tls=yes
24359 fi
24360 rm -f core conftest.err conftest.$ac_objext \
24361     conftest$ac_exeext conftest.$ac_ext
24362           CFLAGS="$chktls_save_CFLAGS"
24363           LDFLAGS="$chktls_save_LDFLAGS"
24364 else
24365   gcc_cv_have_tls=no
24366 fi
24367 rm -f core conftest.err conftest.$ac_objext \
24368     conftest$ac_exeext conftest.$ac_ext
24369
24370
24371 else
24372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h.  */
24374 __thread int a; int b; int main() { return a = b; }
24375 _ACEOF
24376 if ac_fn_c_try_run "$LINENO"; then :
24377                       chktls_save_LDFLAGS="$LDFLAGS"
24378       LDFLAGS="-static $LDFLAGS"
24379       if test x$gcc_no_link = xyes; then
24380   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24381 fi
24382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24383 /* end confdefs.h.  */
24384 int main() { return 0; }
24385 _ACEOF
24386 if ac_fn_c_try_link "$LINENO"; then :
24387   if test "$cross_compiling" = yes; then :
24388   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24390 as_fn_error "cannot run test program while cross compiling
24391 See \`config.log' for more details." "$LINENO" 5; }
24392 else
24393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h.  */
24395 __thread int a; int b; int main() { return a = b; }
24396 _ACEOF
24397 if ac_fn_c_try_run "$LINENO"; then :
24398   gcc_cv_have_tls=yes
24399 else
24400   gcc_cv_have_tls=no
24401 fi
24402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24403   conftest.$ac_objext conftest.beam conftest.$ac_ext
24404 fi
24405
24406 else
24407   gcc_cv_have_tls=yes
24408 fi
24409 rm -f core conftest.err conftest.$ac_objext \
24410     conftest$ac_exeext conftest.$ac_ext
24411       LDFLAGS="$chktls_save_LDFLAGS"
24412       if test $gcc_cv_have_tls = yes; then
24413                                                 chktls_save_CFLAGS="$CFLAGS"
24414         thread_CFLAGS=failed
24415         for flag in '' '-pthread' '-lpthread'; do
24416           CFLAGS="$flag $chktls_save_CFLAGS"
24417           if test x$gcc_no_link = xyes; then
24418   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24419 fi
24420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421 /* end confdefs.h.  */
24422 #include <pthread.h>
24423                 void *g(void *d) { return NULL; }
24424 int
24425 main ()
24426 {
24427 pthread_t t; pthread_create(&t,NULL,g,NULL);
24428   ;
24429   return 0;
24430 }
24431 _ACEOF
24432 if ac_fn_c_try_link "$LINENO"; then :
24433   thread_CFLAGS="$flag"
24434 fi
24435 rm -f core conftest.err conftest.$ac_objext \
24436     conftest$ac_exeext conftest.$ac_ext
24437           if test "X$thread_CFLAGS" != Xfailed; then
24438             break
24439           fi
24440         done
24441         CFLAGS="$chktls_save_CFLAGS"
24442         if test "X$thread_CFLAGS" != Xfailed; then
24443           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24444                                                   if test "$cross_compiling" = yes; then :
24445   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24447 as_fn_error "cannot run test program while cross compiling
24448 See \`config.log' for more details." "$LINENO" 5; }
24449 else
24450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h.  */
24452 #include <pthread.h>
24453                 __thread int a;
24454                 static int *volatile a_in_other_thread;
24455                 static void *
24456                 thread_func (void *arg)
24457                 {
24458                   a_in_other_thread = &a;
24459                   return (void *)0;
24460                 }
24461 int
24462 main ()
24463 {
24464 pthread_t thread;
24465                 void *thread_retval;
24466                 int *volatile a_in_main_thread;
24467                 a_in_main_thread = &a;
24468                 if (pthread_create (&thread, (pthread_attr_t *)0,
24469                                     thread_func, (void *)0))
24470                   return 0;
24471                 if (pthread_join (thread, &thread_retval))
24472                   return 0;
24473                 return (a_in_other_thread == a_in_main_thread);
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 if ac_fn_c_try_run "$LINENO"; then :
24479   gcc_cv_have_tls=yes
24480 else
24481   gcc_cv_have_tls=no
24482 fi
24483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24484   conftest.$ac_objext conftest.beam conftest.$ac_ext
24485 fi
24486
24487           CFLAGS="$chktls_save_CFLAGS"
24488         fi
24489       fi
24490 else
24491   gcc_cv_have_tls=no
24492 fi
24493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24494   conftest.$ac_objext conftest.beam conftest.$ac_ext
24495 fi
24496
24497 fi
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24499 $as_echo "$gcc_cv_have_tls" >&6; }
24500   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24501
24502 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24503
24504   fi
24505
24506 # For _Unwind_GetIPInfo.
24507
24508
24509 # Check whether --with-system-libunwind was given.
24510 if test "${with_system_libunwind+set}" = set; then :
24511   withval=$with_system_libunwind;
24512 fi
24513
24514   # If system-libunwind was not specifically set, pick a default setting.
24515   if test x$with_system_libunwind = x; then
24516     case ${target} in
24517       ia64-*-hpux*) with_system_libunwind=yes ;;
24518       *) with_system_libunwind=no ;;
24519     esac
24520   fi
24521   # Based on system-libunwind and target, do we have ipinfo?
24522   if  test x$with_system_libunwind = xyes; then
24523     case ${target} in
24524       ia64-*-*) have_unwind_getipinfo=no ;;
24525       *) have_unwind_getipinfo=yes ;;
24526     esac
24527   else
24528     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24529
24530     case ${target} in
24531       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24532       *) have_unwind_getipinfo=yes ;;
24533     esac
24534
24535   fi
24536
24537   if test x$have_unwind_getipinfo = xyes; then
24538
24539 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24540
24541   fi
24542
24543
24544 # See if linker supports anonymous version scripts.
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24546 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24547 if test "${libjava_cv_anon_version_script+set}" = set; then :
24548   $as_echo_n "(cached) " >&6
24549 else
24550   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24551    libjava_cv_anon_version_script=no
24552    CFLAGS="$CFLAGS -fPIC";
24553    LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24554    echo '{ global: globalsymb*; local: *; };' > conftest.map
24555    if test x$gcc_no_link = xyes; then
24556   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24557 fi
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h.  */
24560 void globalsymbol (void) {} void localsymbol (void) {}
24561 int
24562 main ()
24563 {
24564
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 if ac_fn_c_try_link "$LINENO"; then :
24570   libjava_cv_anon_version_script=gnu
24571 fi
24572 rm -f core conftest.err conftest.$ac_objext \
24573     conftest$ac_exeext conftest.$ac_ext
24574    if test x$libjava_cv_anon_version_script = xno; then
24575      case "$target_os" in
24576        solaris2*)
24577          LDFLAGS="$save_LDFLAGS"
24578          LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24579          # Sun ld doesn't understand wildcards here.
24580          echo '{ global: globalsymbol; local: *; };' > conftest.map
24581          if test x$gcc_no_link = xyes; then
24582   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24583 fi
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h.  */
24586 void globalsymbol (void) {} void localsymbol (void) {}
24587 int
24588 main ()
24589 {
24590
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 if ac_fn_c_try_link "$LINENO"; then :
24596   libjava_cv_anon_version_script=sun
24597 fi
24598 rm -f core conftest.err conftest.$ac_objext \
24599     conftest$ac_exeext conftest.$ac_ext
24600          ;;
24601      esac
24602    fi
24603    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24604
24605 fi
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24607 $as_echo "$libjava_cv_anon_version_script" >&6; }
24608  if test "$libjava_cv_anon_version_script" != no; then
24609   ANONVERSCRIPT_TRUE=
24610   ANONVERSCRIPT_FALSE='#'
24611 else
24612   ANONVERSCRIPT_TRUE='#'
24613   ANONVERSCRIPT_FALSE=
24614 fi
24615
24616  if test "$libjava_cv_anon_version_script" = gnu; then
24617   ANONVERSCRIPT_GNU_TRUE=
24618   ANONVERSCRIPT_GNU_FALSE='#'
24619 else
24620   ANONVERSCRIPT_GNU_TRUE='#'
24621   ANONVERSCRIPT_GNU_FALSE=
24622 fi
24623
24624  if test "$libjava_cv_anon_version_script" = sun; then
24625   ANONVERSCRIPT_SUN_TRUE=
24626   ANONVERSCRIPT_SUN_FALSE='#'
24627 else
24628   ANONVERSCRIPT_SUN_TRUE='#'
24629   ANONVERSCRIPT_SUN_FALSE=
24630 fi
24631
24632
24633 # Check if linker supports static linking on a per library basis
24634 LD_START_STATIC_SPEC=
24635 LD_FINISH_STATIC_SPEC=
24636 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24637   if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24638     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24639     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24640   fi
24641 fi
24642
24643
24644
24645 here=`${PWDCMD-pwd}`
24646
24647
24648 # We get this from the environment.
24649
24650
24651
24652 # Check whether --with-python-dir was given.
24653 if test "${with_python_dir+set}" = set; then :
24654   withval=$with_python_dir; with_python_dir=$withval
24655 else
24656   with_python_dir=""
24657 fi
24658
24659
24660 if test "x${with_python_dir}" = "x"
24661 then
24662   # Needed for installing Python modules during make install.
24663   python_mod_dir="\${prefix}/share/python"
24664   # Needed for substituting into aot-compile*
24665   python_mod_dir_expanded="${expanded_prefix}/share/python"
24666 else
24667   python_mod_dir="\${prefix}${with_python_dir}"
24668   python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24669 fi
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24671 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24672
24673
24674
24675 # needed for aot-compile-rpm
24676 MAKE=`which make`
24677
24678
24679 # Check whether --enable-aot-compile-rpm was given.
24680 if test "${enable_aot_compile_rpm+set}" = set; then :
24681   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24682     yes) AOT_RPM_ENABLED=yes ;;
24683     no)  AOT_RPM_ENABLED=no ;;
24684     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24685   esac
24686 else
24687   AOT_RPM_ENABLED=no
24688
24689 fi
24690
24691  if test "x${AOT_RPM_ENABLED}" = xyes; then
24692   INSTALL_AOT_RPM_TRUE=
24693   INSTALL_AOT_RPM_FALSE='#'
24694 else
24695   INSTALL_AOT_RPM_TRUE='#'
24696   INSTALL_AOT_RPM_FALSE=
24697 fi
24698
24699
24700 # Check whether --enable-java-home was given.
24701 if test "${enable_java_home+set}" = set; then :
24702   enableval=$enable_java_home; case "${enableval}" in
24703     yes) JAVA_HOME_ENABLED=yes ;;
24704     no)  JAVA_HOME_ENABLED=no ;;
24705     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24706   esac
24707 else
24708   JAVA_HOME_ENABLED=no
24709
24710 fi
24711
24712  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24713   CREATE_JAVA_HOME_TRUE=
24714   CREATE_JAVA_HOME_FALSE='#'
24715 else
24716   CREATE_JAVA_HOME_TRUE='#'
24717   CREATE_JAVA_HOME_FALSE=
24718 fi
24719
24720
24721 # Only do these checks if java-home above is enabled.
24722 if test "x${JAVA_HOME_ENABLED}" = xyes
24723 then
24724
24725
24726 # Check whether --with-gcc-suffix was given.
24727 if test "${with_gcc_suffix+set}" = set; then :
24728   withval=$with_gcc_suffix; gcc_suffix=$withval
24729 else
24730   gcc_suffix=""
24731 fi
24732
24733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24734 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24735
24736
24737
24738 # Check whether --with-arch-directory was given.
24739 if test "${with_arch_directory+set}" = set; then :
24740   withval=$with_arch_directory; host_cpu=$withval
24741 else
24742   host_cpu=""
24743 fi
24744
24745
24746
24747 # Check whether --with-os-directory was given.
24748 if test "${with_os_directory+set}" = set; then :
24749   withval=$with_os_directory; host_os=$withval
24750 else
24751   host_os=""
24752 fi
24753
24754
24755
24756 # Check whether --with-origin-name was given.
24757 if test "${with_origin_name+set}" = set; then :
24758   withval=$with_origin_name; origin_name=$withval
24759 else
24760   origin_name=gcj${gcc_suffix}
24761 fi
24762
24763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24764 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24765
24766
24767 # Check whether --with-arch-suffix was given.
24768 if test "${with_arch_suffix+set}" = set; then :
24769   withval=$with_arch_suffix; arch_suffix=$withval
24770 else
24771   arch_suffix=""
24772 fi
24773
24774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24775 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24776
24777
24778 # Check whether --with-jvm-root-dir was given.
24779 if test "${with_jvm_root_dir+set}" = set; then :
24780   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24781 else
24782   jvm_root_dir="\${prefix}/lib/jvm"
24783 fi
24784
24785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24786 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24787
24788
24789 # Check whether --with-jvm-jar-dir was given.
24790 if test "${with_jvm_jar_dir+set}" = set; then :
24791   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24792 else
24793   jvm_jar_dir=\${prefix}/lib/jvm-exports
24794 fi
24795
24796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24797 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24798
24799   JAVA_VERSION=1.5.0
24800   BUILD_VERSION=0
24801
24802
24803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24804 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24805
24806   jre_dir=jre
24807   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24808   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24809
24810   JVM_ROOT_DIR=${jvm_root_dir}
24811
24812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24813 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24814
24815   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24816
24817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24818 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24819
24820   JVM_JAR_DIR=${jvm_jar_dir}
24821
24822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24823 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24824
24825   JRE_DIR=${jre_dir}
24826
24827
24828   JRE_LNK=${jre_lnk}
24829
24830
24831   SDK_LNK=${sdk_lnk}
24832
24833
24834   SDK_BIN_DIR=${jvm_root_dir}/bin
24835
24836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24837 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24838
24839   SDK_LIB_DIR=${jvm_root_dir}/lib
24840
24841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24842 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24843
24844   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24845
24846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24847 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24848
24849   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24850
24851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24852 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24853
24854   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24855
24856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24857 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24858
24859   # Find gcj prefix using gcj found in PATH.
24860   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24861
24862   # Where do the gcj binaries live?
24863   # For jhbuild based builds, they all live in a sibling of bin called
24864   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24865   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24866
24867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24868 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24869
24870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24871 $as_echo "host is ${host}" >&6; }
24872   if test "x${host_cpu}" = "x"
24873   then
24874     case ${host} in
24875       *-mingw* | *-cygwin*)
24876         host_cpu=x86;;
24877       i486-* | i586-* | i686-*)
24878         host_cpu=i386;;
24879       x86_64-*)
24880         host_cpu=amd64;;
24881       *)
24882         host_cpu=${host_cpu};;
24883     esac
24884   fi
24885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24886 $as_echo "arch directory: ${host_cpu}" >&6; }
24887   CPU=${host_cpu}
24888
24889
24890   if test "x${host_os}" = "x"
24891   then
24892     case ${host} in
24893       *-mingw* | *-cygwin*)
24894         host_os=win32;;
24895       *-linux*)
24896         host_os=linux;;
24897       *)
24898         host_os=${host_os};;
24899     esac
24900   fi
24901   echo os directory: ${host_os}
24902   OS=${host_os}
24903
24904
24905   # make an expanded $libdir, for substituting into
24906   # scripts (and other non-Makefile things).
24907   LIBDIR=$libdir
24908   if test "x${exec_prefix}" = "xNONE"
24909   then
24910       lib_exec_prefix=$expanded_prefix
24911   else
24912       lib_exec_prefix=$exec_prefix
24913   fi
24914   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24915
24916 fi
24917
24918 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"
24919
24920
24921 if test ${multilib} = yes; then
24922   multilib_arg="--enable-multilib"
24923 else
24924   multilib_arg=
24925 fi
24926
24927 ac_config_files="$ac_config_files scripts/jar"
24928
24929 cat >confcache <<\_ACEOF
24930 # This file is a shell script that caches the results of configure
24931 # tests run on this system so they can be shared between configure
24932 # scripts and configure runs, see configure's option --config-cache.
24933 # It is not useful on other systems.  If it contains results you don't
24934 # want to keep, you may remove or edit it.
24935 #
24936 # config.status only pays attention to the cache file if you give it
24937 # the --recheck option to rerun configure.
24938 #
24939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24941 # following values.
24942
24943 _ACEOF
24944
24945 # The following way of writing the cache mishandles newlines in values,
24946 # but we know of no workaround that is simple, portable, and efficient.
24947 # So, we kill variables containing newlines.
24948 # Ultrix sh set writes to stderr and can't be redirected directly,
24949 # and sets the high bit in the cache file unless we assign to the vars.
24950 (
24951   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24952     eval ac_val=\$$ac_var
24953     case $ac_val in #(
24954     *${as_nl}*)
24955       case $ac_var in #(
24956       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24958       esac
24959       case $ac_var in #(
24960       _ | IFS | as_nl) ;; #(
24961       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24962       *) { eval $ac_var=; unset $ac_var;} ;;
24963       esac ;;
24964     esac
24965   done
24966
24967   (set) 2>&1 |
24968     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24969     *${as_nl}ac_space=\ *)
24970       # `set' does not quote correctly, so add quotes: double-quote
24971       # substitution turns \\\\ into \\, and sed turns \\ into \.
24972       sed -n \
24973         "s/'/'\\\\''/g;
24974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24975       ;; #(
24976     *)
24977       # `set' quotes correctly as required by POSIX, so do not add quotes.
24978       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24979       ;;
24980     esac |
24981     sort
24982 ) |
24983   sed '
24984      /^ac_cv_env_/b end
24985      t clear
24986      :clear
24987      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24988      t end
24989      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24990      :end' >>confcache
24991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24992   if test -w "$cache_file"; then
24993     test "x$cache_file" != "x/dev/null" &&
24994       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24995 $as_echo "$as_me: updating cache $cache_file" >&6;}
24996     cat confcache >$cache_file
24997   else
24998     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24999 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25000   fi
25001 fi
25002 rm -f confcache
25003
25004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25005 # Let make expand exec_prefix.
25006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25007
25008 DEFS=-DHAVE_CONFIG_H
25009
25010 ac_libobjs=
25011 ac_ltlibobjs=
25012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25013   # 1. Remove the extension, and $U if already installed.
25014   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25015   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25016   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25017   #    will be set to the directory where LIBOBJS objects are built.
25018   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25019   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25020 done
25021 LIBOBJS=$ac_libobjs
25022
25023 LTLIBOBJS=$ac_ltlibobjs
25024
25025
25026 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25027   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25029 fi
25030 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25031   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25033 fi
25034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25035   as_fn_error "conditional \"AMDEP\" was never defined.
25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25037 fi
25038 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25039   as_fn_error "conditional \"am__fastdepCC\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25041 fi
25042 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25043   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25045 fi
25046  if test -n "$EXEEXT"; then
25047   am__EXEEXT_TRUE=
25048   am__EXEEXT_FALSE='#'
25049 else
25050   am__EXEEXT_TRUE='#'
25051   am__EXEEXT_FALSE=
25052 fi
25053
25054 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25055   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25057 fi
25058 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25059   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25061 fi
25062 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25063   as_fn_error "conditional \"XLIB_AWT\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25065 fi
25066 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25067   as_fn_error "conditional \"X_AWT\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25069 fi
25070 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25071   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25073 fi
25074 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25075   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25077 fi
25078 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25079   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25081 fi
25082 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25083   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25085 fi
25086 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25087   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25089 fi
25090 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25091   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25093 fi
25094 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25095   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25097 fi
25098 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25099   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25101 fi
25102 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25103   as_fn_error "conditional \"INTERPRETER\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25105 fi
25106 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25107   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25109 fi
25110 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25111   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113 fi
25114 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25115   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117 fi
25118 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25119   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121 fi
25122 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25123   as_fn_error "conditional \"USING_NOGC\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125 fi
25126 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25127   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 fi
25130 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25131   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25133 fi
25134 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25135   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25137 fi
25138 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25139   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25141 fi
25142 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25143   as_fn_error "conditional \"USING_GCC\" was never defined.
25144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25145 fi
25146 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25147   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25149 fi
25150
25151 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25152   as_fn_error "conditional \"NATIVE\" was never defined.
25153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25154 fi
25155 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25156   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25158 fi
25159 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25160   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25162 fi
25163 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25164   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 fi
25167 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25168   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25170 fi
25171 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25172   as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25174 fi
25175 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25176   as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25178 fi
25179 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25180   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25182 fi
25183 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25184   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25186 fi
25187
25188 : ${CONFIG_STATUS=./config.status}
25189 ac_write_fail=0
25190 ac_clean_files_save=$ac_clean_files
25191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25193 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25194 as_write_fail=0
25195 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25196 #! $SHELL
25197 # Generated by $as_me.
25198 # Run this file to recreate the current configuration.
25199 # Compiler output produced by configure, useful for debugging
25200 # configure, is in config.log if it exists.
25201
25202 debug=false
25203 ac_cs_recheck=false
25204 ac_cs_silent=false
25205
25206 SHELL=\${CONFIG_SHELL-$SHELL}
25207 export SHELL
25208 _ASEOF
25209 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25210 ## -------------------- ##
25211 ## M4sh Initialization. ##
25212 ## -------------------- ##
25213
25214 # Be more Bourne compatible
25215 DUALCASE=1; export DUALCASE # for MKS sh
25216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25217   emulate sh
25218   NULLCMD=:
25219   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25220   # is contrary to our usage.  Disable this feature.
25221   alias -g '${1+"$@"}'='"$@"'
25222   setopt NO_GLOB_SUBST
25223 else
25224   case `(set -o) 2>/dev/null` in #(
25225   *posix*) :
25226     set -o posix ;; #(
25227   *) :
25228      ;;
25229 esac
25230 fi
25231
25232
25233 as_nl='
25234 '
25235 export as_nl
25236 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25237 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25239 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25240 # Prefer a ksh shell builtin over an external printf program on Solaris,
25241 # but without wasting forks for bash or zsh.
25242 if test -z "$BASH_VERSION$ZSH_VERSION" \
25243     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25244   as_echo='print -r --'
25245   as_echo_n='print -rn --'
25246 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25247   as_echo='printf %s\n'
25248   as_echo_n='printf %s'
25249 else
25250   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25251     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25252     as_echo_n='/usr/ucb/echo -n'
25253   else
25254     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25255     as_echo_n_body='eval
25256       arg=$1;
25257       case $arg in #(
25258       *"$as_nl"*)
25259         expr "X$arg" : "X\\(.*\\)$as_nl";
25260         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25261       esac;
25262       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25263     '
25264     export as_echo_n_body
25265     as_echo_n='sh -c $as_echo_n_body as_echo'
25266   fi
25267   export as_echo_body
25268   as_echo='sh -c $as_echo_body as_echo'
25269 fi
25270
25271 # The user is always right.
25272 if test "${PATH_SEPARATOR+set}" != set; then
25273   PATH_SEPARATOR=:
25274   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25275     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25276       PATH_SEPARATOR=';'
25277   }
25278 fi
25279
25280
25281 # IFS
25282 # We need space, tab and new line, in precisely that order.  Quoting is
25283 # there to prevent editors from complaining about space-tab.
25284 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25285 # splitting by setting IFS to empty value.)
25286 IFS=" ""        $as_nl"
25287
25288 # Find who we are.  Look in the path if we contain no directory separator.
25289 case $0 in #((
25290   *[\\/]* ) as_myself=$0 ;;
25291   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25292 for as_dir in $PATH
25293 do
25294   IFS=$as_save_IFS
25295   test -z "$as_dir" && as_dir=.
25296     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25297   done
25298 IFS=$as_save_IFS
25299
25300      ;;
25301 esac
25302 # We did not find ourselves, most probably we were run as `sh COMMAND'
25303 # in which case we are not to be found in the path.
25304 if test "x$as_myself" = x; then
25305   as_myself=$0
25306 fi
25307 if test ! -f "$as_myself"; then
25308   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25309   exit 1
25310 fi
25311
25312 # Unset variables that we do not need and which cause bugs (e.g. in
25313 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25314 # suppresses any "Segmentation fault" message there.  '((' could
25315 # trigger a bug in pdksh 5.2.14.
25316 for as_var in BASH_ENV ENV MAIL MAILPATH
25317 do eval test x\${$as_var+set} = xset \
25318   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25319 done
25320 PS1='$ '
25321 PS2='> '
25322 PS4='+ '
25323
25324 # NLS nuisances.
25325 LC_ALL=C
25326 export LC_ALL
25327 LANGUAGE=C
25328 export LANGUAGE
25329
25330 # CDPATH.
25331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25332
25333
25334 # as_fn_error ERROR [LINENO LOG_FD]
25335 # ---------------------------------
25336 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25337 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25338 # script with status $?, using 1 if that was 0.
25339 as_fn_error ()
25340 {
25341   as_status=$?; test $as_status -eq 0 && as_status=1
25342   if test "$3"; then
25343     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25344     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25345   fi
25346   $as_echo "$as_me: error: $1" >&2
25347   as_fn_exit $as_status
25348 } # as_fn_error
25349
25350
25351 # as_fn_set_status STATUS
25352 # -----------------------
25353 # Set $? to STATUS, without forking.
25354 as_fn_set_status ()
25355 {
25356   return $1
25357 } # as_fn_set_status
25358
25359 # as_fn_exit STATUS
25360 # -----------------
25361 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25362 as_fn_exit ()
25363 {
25364   set +e
25365   as_fn_set_status $1
25366   exit $1
25367 } # as_fn_exit
25368
25369 # as_fn_unset VAR
25370 # ---------------
25371 # Portably unset VAR.
25372 as_fn_unset ()
25373 {
25374   { eval $1=; unset $1;}
25375 }
25376 as_unset=as_fn_unset
25377 # as_fn_append VAR VALUE
25378 # ----------------------
25379 # Append the text in VALUE to the end of the definition contained in VAR. Take
25380 # advantage of any shell optimizations that allow amortized linear growth over
25381 # repeated appends, instead of the typical quadratic growth present in naive
25382 # implementations.
25383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25384   eval 'as_fn_append ()
25385   {
25386     eval $1+=\$2
25387   }'
25388 else
25389   as_fn_append ()
25390   {
25391     eval $1=\$$1\$2
25392   }
25393 fi # as_fn_append
25394
25395 # as_fn_arith ARG...
25396 # ------------------
25397 # Perform arithmetic evaluation on the ARGs, and store the result in the
25398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25399 # must be portable across $(()) and expr.
25400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25401   eval 'as_fn_arith ()
25402   {
25403     as_val=$(( $* ))
25404   }'
25405 else
25406   as_fn_arith ()
25407   {
25408     as_val=`expr "$@" || test $? -eq 1`
25409   }
25410 fi # as_fn_arith
25411
25412
25413 if expr a : '\(a\)' >/dev/null 2>&1 &&
25414    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25415   as_expr=expr
25416 else
25417   as_expr=false
25418 fi
25419
25420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25421   as_basename=basename
25422 else
25423   as_basename=false
25424 fi
25425
25426 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25427   as_dirname=dirname
25428 else
25429   as_dirname=false
25430 fi
25431
25432 as_me=`$as_basename -- "$0" ||
25433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25434          X"$0" : 'X\(//\)$' \| \
25435          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25436 $as_echo X/"$0" |
25437     sed '/^.*\/\([^/][^/]*\)\/*$/{
25438             s//\1/
25439             q
25440           }
25441           /^X\/\(\/\/\)$/{
25442             s//\1/
25443             q
25444           }
25445           /^X\/\(\/\).*/{
25446             s//\1/
25447             q
25448           }
25449           s/.*/./; q'`
25450
25451 # Avoid depending upon Character Ranges.
25452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25455 as_cr_digits='0123456789'
25456 as_cr_alnum=$as_cr_Letters$as_cr_digits
25457
25458 ECHO_C= ECHO_N= ECHO_T=
25459 case `echo -n x` in #(((((
25460 -n*)
25461   case `echo 'xy\c'` in
25462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25463   xy)  ECHO_C='\c';;
25464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25465        ECHO_T=' ';;
25466   esac;;
25467 *)
25468   ECHO_N='-n';;
25469 esac
25470
25471 rm -f conf$$ conf$$.exe conf$$.file
25472 if test -d conf$$.dir; then
25473   rm -f conf$$.dir/conf$$.file
25474 else
25475   rm -f conf$$.dir
25476   mkdir conf$$.dir 2>/dev/null
25477 fi
25478 if (echo >conf$$.file) 2>/dev/null; then
25479   if ln -s conf$$.file conf$$ 2>/dev/null; then
25480     as_ln_s='ln -s'
25481     # ... but there are two gotchas:
25482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25484     # In both cases, we have to default to `cp -p'.
25485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25486       as_ln_s='cp -p'
25487   elif ln conf$$.file conf$$ 2>/dev/null; then
25488     as_ln_s=ln
25489   else
25490     as_ln_s='cp -p'
25491   fi
25492 else
25493   as_ln_s='cp -p'
25494 fi
25495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25496 rmdir conf$$.dir 2>/dev/null
25497
25498
25499 # as_fn_mkdir_p
25500 # -------------
25501 # Create "$as_dir" as a directory, including parents if necessary.
25502 as_fn_mkdir_p ()
25503 {
25504
25505   case $as_dir in #(
25506   -*) as_dir=./$as_dir;;
25507   esac
25508   test -d "$as_dir" || eval $as_mkdir_p || {
25509     as_dirs=
25510     while :; do
25511       case $as_dir in #(
25512       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25513       *) as_qdir=$as_dir;;
25514       esac
25515       as_dirs="'$as_qdir' $as_dirs"
25516       as_dir=`$as_dirname -- "$as_dir" ||
25517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25518          X"$as_dir" : 'X\(//\)[^/]' \| \
25519          X"$as_dir" : 'X\(//\)$' \| \
25520          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25521 $as_echo X"$as_dir" |
25522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25523             s//\1/
25524             q
25525           }
25526           /^X\(\/\/\)[^/].*/{
25527             s//\1/
25528             q
25529           }
25530           /^X\(\/\/\)$/{
25531             s//\1/
25532             q
25533           }
25534           /^X\(\/\).*/{
25535             s//\1/
25536             q
25537           }
25538           s/.*/./; q'`
25539       test -d "$as_dir" && break
25540     done
25541     test -z "$as_dirs" || eval "mkdir $as_dirs"
25542   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25543
25544
25545 } # as_fn_mkdir_p
25546 if mkdir -p . 2>/dev/null; then
25547   as_mkdir_p='mkdir -p "$as_dir"'
25548 else
25549   test -d ./-p && rmdir ./-p
25550   as_mkdir_p=false
25551 fi
25552
25553 if test -x / >/dev/null 2>&1; then
25554   as_test_x='test -x'
25555 else
25556   if ls -dL / >/dev/null 2>&1; then
25557     as_ls_L_option=L
25558   else
25559     as_ls_L_option=
25560   fi
25561   as_test_x='
25562     eval sh -c '\''
25563       if test -d "$1"; then
25564         test -d "$1/.";
25565       else
25566         case $1 in #(
25567         -*)set "./$1";;
25568         esac;
25569         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25570         ???[sx]*):;;*)false;;esac;fi
25571     '\'' sh
25572   '
25573 fi
25574 as_executable_p=$as_test_x
25575
25576 # Sed expression to map a string onto a valid CPP name.
25577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25578
25579 # Sed expression to map a string onto a valid variable name.
25580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25581
25582
25583 exec 6>&1
25584 ## ----------------------------------- ##
25585 ## Main body of $CONFIG_STATUS script. ##
25586 ## ----------------------------------- ##
25587 _ASEOF
25588 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25589
25590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25591 # Save the log message, to keep $0 and so on meaningful, and to
25592 # report actual input values of CONFIG_FILES etc. instead of their
25593 # values after options handling.
25594 ac_log="
25595 This file was extended by libjava $as_me version-unused, which was
25596 generated by GNU Autoconf 2.64.  Invocation command line was
25597
25598   CONFIG_FILES    = $CONFIG_FILES
25599   CONFIG_HEADERS  = $CONFIG_HEADERS
25600   CONFIG_LINKS    = $CONFIG_LINKS
25601   CONFIG_COMMANDS = $CONFIG_COMMANDS
25602   $ $0 $@
25603
25604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25605 "
25606
25607 _ACEOF
25608
25609 case $ac_config_files in *"
25610 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25611 esac
25612
25613 case $ac_config_headers in *"
25614 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25615 esac
25616
25617
25618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25619 # Files that config.status was made for.
25620 config_files="$ac_config_files"
25621 config_headers="$ac_config_headers"
25622 config_links="$ac_config_links"
25623 config_commands="$ac_config_commands"
25624
25625 _ACEOF
25626
25627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25628 ac_cs_usage="\
25629 \`$as_me' instantiates files and other configuration actions
25630 from templates according to the current configuration.  Unless the files
25631 and actions are specified as TAGs, all are instantiated by default.
25632
25633 Usage: $0 [OPTION]... [TAG]...
25634
25635   -h, --help       print this help, then exit
25636   -V, --version    print version number and configuration settings, then exit
25637   -q, --quiet, --silent
25638                    do not print progress messages
25639   -d, --debug      don't remove temporary files
25640       --recheck    update $as_me by reconfiguring in the same conditions
25641       --file=FILE[:TEMPLATE]
25642                    instantiate the configuration file FILE
25643       --header=FILE[:TEMPLATE]
25644                    instantiate the configuration header FILE
25645
25646 Configuration files:
25647 $config_files
25648
25649 Configuration headers:
25650 $config_headers
25651
25652 Configuration links:
25653 $config_links
25654
25655 Configuration commands:
25656 $config_commands
25657
25658 Report bugs to the package provider."
25659
25660 _ACEOF
25661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25662 ac_cs_version="\\
25663 libjava config.status version-unused
25664 configured by $0, generated by GNU Autoconf 2.64,
25665   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25666
25667 Copyright (C) 2009 Free Software Foundation, Inc.
25668 This config.status script is free software; the Free Software Foundation
25669 gives unlimited permission to copy, distribute and modify it."
25670
25671 ac_pwd='$ac_pwd'
25672 srcdir='$srcdir'
25673 INSTALL='$INSTALL'
25674 MKDIR_P='$MKDIR_P'
25675 AWK='$AWK'
25676 test -n "\$AWK" || AWK=awk
25677 _ACEOF
25678
25679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25680 # The default lists apply if the user does not specify any file.
25681 ac_need_defaults=:
25682 while test $# != 0
25683 do
25684   case $1 in
25685   --*=*)
25686     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25687     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25688     ac_shift=:
25689     ;;
25690   *)
25691     ac_option=$1
25692     ac_optarg=$2
25693     ac_shift=shift
25694     ;;
25695   esac
25696
25697   case $ac_option in
25698   # Handling of the options.
25699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25700     ac_cs_recheck=: ;;
25701   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25702     $as_echo "$ac_cs_version"; exit ;;
25703   --debug | --debu | --deb | --de | --d | -d )
25704     debug=: ;;
25705   --file | --fil | --fi | --f )
25706     $ac_shift
25707     case $ac_optarg in
25708     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25709     esac
25710     as_fn_append CONFIG_FILES " '$ac_optarg'"
25711     ac_need_defaults=false;;
25712   --header | --heade | --head | --hea )
25713     $ac_shift
25714     case $ac_optarg in
25715     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25716     esac
25717     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25718     ac_need_defaults=false;;
25719   --he | --h)
25720     # Conflict between --help and --header
25721     as_fn_error "ambiguous option: \`$1'
25722 Try \`$0 --help' for more information.";;
25723   --help | --hel | -h )
25724     $as_echo "$ac_cs_usage"; exit ;;
25725   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25726   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25727     ac_cs_silent=: ;;
25728
25729   # This is an error.
25730   -*) as_fn_error "unrecognized option: \`$1'
25731 Try \`$0 --help' for more information." ;;
25732
25733   *) as_fn_append ac_config_targets " $1"
25734      ac_need_defaults=false ;;
25735
25736   esac
25737   shift
25738 done
25739
25740 ac_configure_extra_args=
25741
25742 if $ac_cs_silent; then
25743   exec 6>/dev/null
25744   ac_configure_extra_args="$ac_configure_extra_args --silent"
25745 fi
25746
25747 _ACEOF
25748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25749 if \$ac_cs_recheck; then
25750   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25751   shift
25752   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25753   CONFIG_SHELL='$SHELL'
25754   export CONFIG_SHELL
25755   exec "\$@"
25756 fi
25757
25758 _ACEOF
25759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25760 exec 5>>config.log
25761 {
25762   echo
25763   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25764 ## Running $as_me. ##
25765 _ASBOX
25766   $as_echo "$ac_log"
25767 } >&5
25768
25769 _ACEOF
25770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25771 #
25772 # INIT-COMMANDS
25773 #
25774
25775 srcdir="$srcdir"
25776 host="$host"
25777 target="$target"
25778 with_multisubdir="$with_multisubdir"
25779 with_multisrctop="$with_multisrctop"
25780 with_target_subdir="$with_target_subdir"
25781 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25782 multi_basedir="$multi_basedir"
25783 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25784 CC="$CC"
25785 CXX="$CXX"
25786 GFORTRAN="$GFORTRAN"
25787 GCJ="$GCJ"
25788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25789
25790
25791 # The HP-UX ksh and POSIX shell print the target directory to stdout
25792 # if CDPATH is set.
25793 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25794
25795 sed_quote_subst='$sed_quote_subst'
25796 double_quote_subst='$double_quote_subst'
25797 delay_variable_subst='$delay_variable_subst'
25798 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25799 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25800 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25801 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25802 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25803 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25804 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25805 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25806 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25807 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25808 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25809 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25810 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25811 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25812 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25813 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25814 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25815 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25816 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25817 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25818 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25819 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25820 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25821 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25822 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25823 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25824 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25825 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25826 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25827 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25828 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25829 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25830 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25831 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25832 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25833 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25834 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25835 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25836 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25837 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25838 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25839 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25840 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25841 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25842 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25843 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25844 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25845 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25846 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"`'
25847 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25848 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25849 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25850 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25851 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25852 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25853 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25854 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25855 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25856 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25857 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25858 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25859 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25860 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25861 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25862 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25863 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25864 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25865 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25866 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25867 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25868 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25869 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25870 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25871 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25872 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25873 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25874 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25875 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25876 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25877 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25878 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25879 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25880 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25881 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25882 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25883 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25884 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25885 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25886 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25887 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25888 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25889 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25890 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25891 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25892 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25893 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25894 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25895 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25896 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25897 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25898 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25899 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25900 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25901 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25902 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25903 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25904 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25905 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25906 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25907 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25908 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25909 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25910 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25911 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25912 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25913 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25914 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25915 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25916 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25917 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25918 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25919 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25920 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25921 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25922 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25923 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25924 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25925 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25926 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25927 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25928 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25929 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25930 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25931 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25932 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25933 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25934 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25935 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25936 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25937 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25938 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25939 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25940 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25941 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25942 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25943 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25944 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25945 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25946 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25947 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25948 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25949 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25950 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25951 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25952 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25953 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25954 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25955 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25956 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25957 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25958 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25959 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25960 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25961 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25962 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25963 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25964 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25965 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25966 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25967 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25968 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25969 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25970 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25971 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25972 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25973 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25974 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25975 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25976 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25977 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25978 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25979 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25980 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25981 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25982 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25983 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25984 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25985 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25986 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25987 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25988 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25989 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25990 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25991 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25992 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25993 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25994 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25995 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25996 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25997 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25998 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25999 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26000 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26001 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26002 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26003 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26004 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26005 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26006 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26007 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26008 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26009 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26010 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26011 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26012 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26013 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26014 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26015 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26016 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26017 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26018 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26019 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26020 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26021 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26022
26023 LTCC='$LTCC'
26024 LTCFLAGS='$LTCFLAGS'
26025 compiler='$compiler_DEFAULT'
26026
26027 # A function that is used when there is no print builtin or printf.
26028 func_fallback_echo ()
26029 {
26030   eval 'cat <<_LTECHO_EOF
26031 \$1
26032 _LTECHO_EOF'
26033 }
26034
26035 # Quote evaled strings.
26036 for var in SHELL \
26037 ECHO \
26038 SED \
26039 GREP \
26040 EGREP \
26041 FGREP \
26042 LD \
26043 NM \
26044 LN_S \
26045 lt_SP2NL \
26046 lt_NL2SP \
26047 reload_flag \
26048 OBJDUMP \
26049 deplibs_check_method \
26050 file_magic_cmd \
26051 AR \
26052 AR_FLAGS \
26053 STRIP \
26054 RANLIB \
26055 CC \
26056 CFLAGS \
26057 compiler \
26058 lt_cv_sys_global_symbol_pipe \
26059 lt_cv_sys_global_symbol_to_cdecl \
26060 lt_cv_sys_global_symbol_to_c_name_address \
26061 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26062 lt_prog_compiler_no_builtin_flag \
26063 lt_prog_compiler_wl \
26064 lt_prog_compiler_pic \
26065 lt_prog_compiler_static \
26066 lt_cv_prog_compiler_c_o \
26067 need_locks \
26068 DSYMUTIL \
26069 NMEDIT \
26070 LIPO \
26071 OTOOL \
26072 OTOOL64 \
26073 shrext_cmds \
26074 export_dynamic_flag_spec \
26075 whole_archive_flag_spec \
26076 compiler_needs_object \
26077 with_gnu_ld \
26078 allow_undefined_flag \
26079 no_undefined_flag \
26080 hardcode_libdir_flag_spec \
26081 hardcode_libdir_flag_spec_ld \
26082 hardcode_libdir_separator \
26083 fix_srcfile_path \
26084 exclude_expsyms \
26085 include_expsyms \
26086 file_list_spec \
26087 variables_saved_for_relink \
26088 libname_spec \
26089 library_names_spec \
26090 soname_spec \
26091 install_override_mode \
26092 finish_eval \
26093 old_striplib \
26094 striplib \
26095 compiler_lib_search_dirs \
26096 predep_objects \
26097 postdep_objects \
26098 predeps \
26099 postdeps \
26100 compiler_lib_search_path \
26101 LD_CXX \
26102 LD_GCJ \
26103 reload_flag_CXX \
26104 reload_flag_GCJ \
26105 compiler_CXX \
26106 compiler_GCJ \
26107 lt_prog_compiler_no_builtin_flag_CXX \
26108 lt_prog_compiler_no_builtin_flag_GCJ \
26109 lt_prog_compiler_wl_CXX \
26110 lt_prog_compiler_wl_GCJ \
26111 lt_prog_compiler_pic_CXX \
26112 lt_prog_compiler_pic_GCJ \
26113 lt_prog_compiler_static_CXX \
26114 lt_prog_compiler_static_GCJ \
26115 lt_cv_prog_compiler_c_o_CXX \
26116 lt_cv_prog_compiler_c_o_GCJ \
26117 export_dynamic_flag_spec_CXX \
26118 export_dynamic_flag_spec_GCJ \
26119 whole_archive_flag_spec_CXX \
26120 whole_archive_flag_spec_GCJ \
26121 compiler_needs_object_CXX \
26122 compiler_needs_object_GCJ \
26123 with_gnu_ld_CXX \
26124 with_gnu_ld_GCJ \
26125 allow_undefined_flag_CXX \
26126 allow_undefined_flag_GCJ \
26127 no_undefined_flag_CXX \
26128 no_undefined_flag_GCJ \
26129 hardcode_libdir_flag_spec_CXX \
26130 hardcode_libdir_flag_spec_GCJ \
26131 hardcode_libdir_flag_spec_ld_CXX \
26132 hardcode_libdir_flag_spec_ld_GCJ \
26133 hardcode_libdir_separator_CXX \
26134 hardcode_libdir_separator_GCJ \
26135 fix_srcfile_path_CXX \
26136 fix_srcfile_path_GCJ \
26137 exclude_expsyms_CXX \
26138 exclude_expsyms_GCJ \
26139 include_expsyms_CXX \
26140 include_expsyms_GCJ \
26141 file_list_spec_CXX \
26142 file_list_spec_GCJ \
26143 compiler_lib_search_dirs_CXX \
26144 compiler_lib_search_dirs_GCJ \
26145 predep_objects_CXX \
26146 predep_objects_GCJ \
26147 postdep_objects_CXX \
26148 postdep_objects_GCJ \
26149 predeps_CXX \
26150 predeps_GCJ \
26151 postdeps_CXX \
26152 postdeps_GCJ \
26153 compiler_lib_search_path_CXX \
26154 compiler_lib_search_path_GCJ; do
26155     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26156     *[\\\\\\\`\\"\\\$]*)
26157       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26158       ;;
26159     *)
26160       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26161       ;;
26162     esac
26163 done
26164
26165 # Double-quote double-evaled strings.
26166 for var in reload_cmds \
26167 old_postinstall_cmds \
26168 old_postuninstall_cmds \
26169 old_archive_cmds \
26170 extract_expsyms_cmds \
26171 old_archive_from_new_cmds \
26172 old_archive_from_expsyms_cmds \
26173 archive_cmds \
26174 archive_expsym_cmds \
26175 module_cmds \
26176 module_expsym_cmds \
26177 export_symbols_cmds \
26178 prelink_cmds \
26179 postinstall_cmds \
26180 postuninstall_cmds \
26181 finish_cmds \
26182 sys_lib_search_path_spec \
26183 sys_lib_dlsearch_path_spec \
26184 reload_cmds_CXX \
26185 reload_cmds_GCJ \
26186 old_archive_cmds_CXX \
26187 old_archive_cmds_GCJ \
26188 old_archive_from_new_cmds_CXX \
26189 old_archive_from_new_cmds_GCJ \
26190 old_archive_from_expsyms_cmds_CXX \
26191 old_archive_from_expsyms_cmds_GCJ \
26192 archive_cmds_CXX \
26193 archive_cmds_GCJ \
26194 archive_expsym_cmds_CXX \
26195 archive_expsym_cmds_GCJ \
26196 module_cmds_CXX \
26197 module_cmds_GCJ \
26198 module_expsym_cmds_CXX \
26199 module_expsym_cmds_GCJ \
26200 export_symbols_cmds_CXX \
26201 export_symbols_cmds_GCJ \
26202 prelink_cmds_CXX \
26203 prelink_cmds_GCJ; do
26204     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26205     *[\\\\\\\`\\"\\\$]*)
26206       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26207       ;;
26208     *)
26209       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26210       ;;
26211     esac
26212 done
26213
26214 ac_aux_dir='$ac_aux_dir'
26215 xsi_shell='$xsi_shell'
26216 lt_shell_append='$lt_shell_append'
26217
26218 # See if we are running on zsh, and set the options which allow our
26219 # commands through without removal of \ escapes INIT.
26220 if test -n "\${ZSH_VERSION+set}" ; then
26221    setopt NO_GLOB_SUBST
26222 fi
26223
26224
26225     PACKAGE='$PACKAGE'
26226     VERSION='$VERSION'
26227     TIMESTAMP='$TIMESTAMP'
26228     RM='$RM'
26229     ofile='$ofile'
26230
26231
26232
26233
26234
26235
26236
26237
26238 _ACEOF
26239
26240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26241
26242 # Handling of arguments.
26243 for ac_config_target in $ac_config_targets
26244 do
26245   case $ac_config_target in
26246     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26247     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26248     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26249     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26250     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26251     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26252     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26253     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26254     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26255     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26256     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26257     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26258     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26259     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26260     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26261     "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" ;;
26262     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26263     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26264     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26265     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26266     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26267     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26268     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26269     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26270     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26271     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26272     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26273     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26274     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26275     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26276     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26277     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26278     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26279     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26280     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26281     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26282
26283   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26284   esac
26285 done
26286
26287
26288 # If the user did not use the arguments to specify the items to instantiate,
26289 # then the envvar interface is used.  Set only those that are not.
26290 # We use the long form for the default assignment because of an extremely
26291 # bizarre bug on SunOS 4.1.3.
26292 if $ac_need_defaults; then
26293   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26294   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26295   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26296   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26297 fi
26298
26299 # Have a temporary directory for convenience.  Make it in the build tree
26300 # simply because there is no reason against having it here, and in addition,
26301 # creating and moving files from /tmp can sometimes cause problems.
26302 # Hook for its removal unless debugging.
26303 # Note that there is a small window in which the directory will not be cleaned:
26304 # after its creation but before its name has been assigned to `$tmp'.
26305 $debug ||
26306 {
26307   tmp=
26308   trap 'exit_status=$?
26309   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26310 ' 0
26311   trap 'as_fn_exit 1' 1 2 13 15
26312 }
26313 # Create a (secure) tmp directory for tmp files.
26314
26315 {
26316   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26317   test -n "$tmp" && test -d "$tmp"
26318 }  ||
26319 {
26320   tmp=./conf$$-$RANDOM
26321   (umask 077 && mkdir "$tmp")
26322 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26323
26324 # Set up the scripts for CONFIG_FILES section.
26325 # No need to generate them if there are no CONFIG_FILES.
26326 # This happens for instance with `./config.status config.h'.
26327 if test -n "$CONFIG_FILES"; then
26328
26329
26330 ac_cr=`echo X | tr X '\015'`
26331 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26332 # But we know of no other shell where ac_cr would be empty at this
26333 # point, so we can use a bashism as a fallback.
26334 if test "x$ac_cr" = x; then
26335   eval ac_cr=\$\'\\r\'
26336 fi
26337 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26338 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26339   ac_cs_awk_cr='\r'
26340 else
26341   ac_cs_awk_cr=$ac_cr
26342 fi
26343
26344 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26345 _ACEOF
26346
26347
26348 {
26349   echo "cat >conf$$subs.awk <<_ACEOF" &&
26350   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26351   echo "_ACEOF"
26352 } >conf$$subs.sh ||
26353   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26354 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26355 ac_delim='%!_!# '
26356 for ac_last_try in false false false false false :; do
26357   . ./conf$$subs.sh ||
26358     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26359
26360   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26361   if test $ac_delim_n = $ac_delim_num; then
26362     break
26363   elif $ac_last_try; then
26364     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26365   else
26366     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26367   fi
26368 done
26369 rm -f conf$$subs.sh
26370
26371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26372 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26373 _ACEOF
26374 sed -n '
26375 h
26376 s/^/S["/; s/!.*/"]=/
26377 p
26378 g
26379 s/^[^!]*!//
26380 :repl
26381 t repl
26382 s/'"$ac_delim"'$//
26383 t delim
26384 :nl
26385 h
26386 s/\(.\{148\}\).*/\1/
26387 t more1
26388 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26389 p
26390 n
26391 b repl
26392 :more1
26393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26394 p
26395 g
26396 s/.\{148\}//
26397 t nl
26398 :delim
26399 h
26400 s/\(.\{148\}\).*/\1/
26401 t more2
26402 s/["\\]/\\&/g; s/^/"/; s/$/"/
26403 p
26404 b
26405 :more2
26406 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26407 p
26408 g
26409 s/.\{148\}//
26410 t delim
26411 ' <conf$$subs.awk | sed '
26412 /^[^""]/{
26413   N
26414   s/\n//
26415 }
26416 ' >>$CONFIG_STATUS || ac_write_fail=1
26417 rm -f conf$$subs.awk
26418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26419 _ACAWK
26420 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26421   for (key in S) S_is_set[key] = 1
26422   FS = "\a"
26423
26424 }
26425 {
26426   line = $ 0
26427   nfields = split(line, field, "@")
26428   substed = 0
26429   len = length(field[1])
26430   for (i = 2; i < nfields; i++) {
26431     key = field[i]
26432     keylen = length(key)
26433     if (S_is_set[key]) {
26434       value = S[key]
26435       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26436       len += length(value) + length(field[++i])
26437       substed = 1
26438     } else
26439       len += 1 + keylen
26440   }
26441
26442   print line
26443 }
26444
26445 _ACAWK
26446 _ACEOF
26447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26448 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26449   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26450 else
26451   cat
26452 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26453   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26454 _ACEOF
26455
26456 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26457 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26458 # trailing colons and then remove the whole line if VPATH becomes empty
26459 # (actually we leave an empty line to preserve line numbers).
26460 if test "x$srcdir" = x.; then
26461   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26462 s/:*\$(srcdir):*/:/
26463 s/:*\${srcdir}:*/:/
26464 s/:*@srcdir@:*/:/
26465 s/^\([^=]*=[     ]*\):*/\1/
26466 s/:*$//
26467 s/^[^=]*=[       ]*$//
26468 }'
26469 fi
26470
26471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26472 fi # test -n "$CONFIG_FILES"
26473
26474 # Set up the scripts for CONFIG_HEADERS section.
26475 # No need to generate them if there are no CONFIG_HEADERS.
26476 # This happens for instance with `./config.status Makefile'.
26477 if test -n "$CONFIG_HEADERS"; then
26478 cat >"$tmp/defines.awk" <<\_ACAWK ||
26479 BEGIN {
26480 _ACEOF
26481
26482 # Transform confdefs.h into an awk script `defines.awk', embedded as
26483 # here-document in config.status, that substitutes the proper values into
26484 # config.h.in to produce config.h.
26485
26486 # Create a delimiter string that does not exist in confdefs.h, to ease
26487 # handling of long lines.
26488 ac_delim='%!_!# '
26489 for ac_last_try in false false :; do
26490   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26491   if test -z "$ac_t"; then
26492     break
26493   elif $ac_last_try; then
26494     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26495   else
26496     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26497   fi
26498 done
26499
26500 # For the awk script, D is an array of macro values keyed by name,
26501 # likewise P contains macro parameters if any.  Preserve backslash
26502 # newline sequences.
26503
26504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26505 sed -n '
26506 s/.\{148\}/&'"$ac_delim"'/g
26507 t rset
26508 :rset
26509 s/^[     ]*#[    ]*define[       ][      ]*/ /
26510 t def
26511 d
26512 :def
26513 s/\\$//
26514 t bsnl
26515 s/["\\]/\\&/g
26516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26517 D["\1"]=" \3"/p
26518 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26519 d
26520 :bsnl
26521 s/["\\]/\\&/g
26522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26523 D["\1"]=" \3\\\\\\n"\\/p
26524 t cont
26525 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26526 t cont
26527 d
26528 :cont
26529 n
26530 s/.\{148\}/&'"$ac_delim"'/g
26531 t clear
26532 :clear
26533 s/\\$//
26534 t bsnlc
26535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26536 d
26537 :bsnlc
26538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26539 b cont
26540 ' <confdefs.h | sed '
26541 s/'"$ac_delim"'/"\\\
26542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26543
26544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26545   for (key in D) D_is_set[key] = 1
26546   FS = "\a"
26547 }
26548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26549   line = \$ 0
26550   split(line, arg, " ")
26551   if (arg[1] == "#") {
26552     defundef = arg[2]
26553     mac1 = arg[3]
26554   } else {
26555     defundef = substr(arg[1], 2)
26556     mac1 = arg[2]
26557   }
26558   split(mac1, mac2, "(") #)
26559   macro = mac2[1]
26560   prefix = substr(line, 1, index(line, defundef) - 1)
26561   if (D_is_set[macro]) {
26562     # Preserve the white space surrounding the "#".
26563     print prefix "define", macro P[macro] D[macro]
26564     next
26565   } else {
26566     # Replace #undef with comments.  This is necessary, for example,
26567     # in the case of _POSIX_SOURCE, which is predefined and required
26568     # on some systems where configure will not decide to define it.
26569     if (defundef == "undef") {
26570       print "/*", prefix defundef, macro, "*/"
26571       next
26572     }
26573   }
26574 }
26575 { print }
26576 _ACAWK
26577 _ACEOF
26578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26579   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26580 fi # test -n "$CONFIG_HEADERS"
26581
26582
26583 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26584 shift
26585 for ac_tag
26586 do
26587   case $ac_tag in
26588   :[FHLC]) ac_mode=$ac_tag; continue;;
26589   esac
26590   case $ac_mode$ac_tag in
26591   :[FHL]*:*);;
26592   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26593   :[FH]-) ac_tag=-:-;;
26594   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26595   esac
26596   ac_save_IFS=$IFS
26597   IFS=:
26598   set x $ac_tag
26599   IFS=$ac_save_IFS
26600   shift
26601   ac_file=$1
26602   shift
26603
26604   case $ac_mode in
26605   :L) ac_source=$1;;
26606   :[FH])
26607     ac_file_inputs=
26608     for ac_f
26609     do
26610       case $ac_f in
26611       -) ac_f="$tmp/stdin";;
26612       *) # Look for the file first in the build tree, then in the source tree
26613          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26614          # because $ac_f cannot contain `:'.
26615          test -f "$ac_f" ||
26616            case $ac_f in
26617            [\\/$]*) false;;
26618            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26619            esac ||
26620            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26621       esac
26622       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26623       as_fn_append ac_file_inputs " '$ac_f'"
26624     done
26625
26626     # Let's still pretend it is `configure' which instantiates (i.e., don't
26627     # use $as_me), people would be surprised to read:
26628     #    /* config.h.  Generated by config.status.  */
26629     configure_input='Generated from '`
26630           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26631         `' by configure.'
26632     if test x"$ac_file" != x-; then
26633       configure_input="$ac_file.  $configure_input"
26634       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26635 $as_echo "$as_me: creating $ac_file" >&6;}
26636     fi
26637     # Neutralize special characters interpreted by sed in replacement strings.
26638     case $configure_input in #(
26639     *\&* | *\|* | *\\* )
26640        ac_sed_conf_input=`$as_echo "$configure_input" |
26641        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26642     *) ac_sed_conf_input=$configure_input;;
26643     esac
26644
26645     case $ac_tag in
26646     *:-:* | *:-) cat >"$tmp/stdin" \
26647       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26648     esac
26649     ;;
26650   esac
26651
26652   ac_dir=`$as_dirname -- "$ac_file" ||
26653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26654          X"$ac_file" : 'X\(//\)[^/]' \| \
26655          X"$ac_file" : 'X\(//\)$' \| \
26656          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26657 $as_echo X"$ac_file" |
26658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26659             s//\1/
26660             q
26661           }
26662           /^X\(\/\/\)[^/].*/{
26663             s//\1/
26664             q
26665           }
26666           /^X\(\/\/\)$/{
26667             s//\1/
26668             q
26669           }
26670           /^X\(\/\).*/{
26671             s//\1/
26672             q
26673           }
26674           s/.*/./; q'`
26675   as_dir="$ac_dir"; as_fn_mkdir_p
26676   ac_builddir=.
26677
26678 case "$ac_dir" in
26679 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26680 *)
26681   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26682   # A ".." for each directory in $ac_dir_suffix.
26683   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26684   case $ac_top_builddir_sub in
26685   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26686   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26687   esac ;;
26688 esac
26689 ac_abs_top_builddir=$ac_pwd
26690 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26691 # for backward compatibility:
26692 ac_top_builddir=$ac_top_build_prefix
26693
26694 case $srcdir in
26695   .)  # We are building in place.
26696     ac_srcdir=.
26697     ac_top_srcdir=$ac_top_builddir_sub
26698     ac_abs_top_srcdir=$ac_pwd ;;
26699   [\\/]* | ?:[\\/]* )  # Absolute name.
26700     ac_srcdir=$srcdir$ac_dir_suffix;
26701     ac_top_srcdir=$srcdir
26702     ac_abs_top_srcdir=$srcdir ;;
26703   *) # Relative name.
26704     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26705     ac_top_srcdir=$ac_top_build_prefix$srcdir
26706     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26707 esac
26708 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26709
26710
26711   case $ac_mode in
26712   :F)
26713   #
26714   # CONFIG_FILE
26715   #
26716
26717   case $INSTALL in
26718   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26719   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26720   esac
26721   ac_MKDIR_P=$MKDIR_P
26722   case $MKDIR_P in
26723   [\\/$]* | ?:[\\/]* ) ;;
26724   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26725   esac
26726 _ACEOF
26727
26728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26729 # If the template does not know about datarootdir, expand it.
26730 # FIXME: This hack should be removed a few years after 2.60.
26731 ac_datarootdir_hack=; ac_datarootdir_seen=
26732 ac_sed_dataroot='
26733 /datarootdir/ {
26734   p
26735   q
26736 }
26737 /@datadir@/p
26738 /@docdir@/p
26739 /@infodir@/p
26740 /@localedir@/p
26741 /@mandir@/p'
26742 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26743 *datarootdir*) ac_datarootdir_seen=yes;;
26744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26745   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26746 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26747 _ACEOF
26748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26749   ac_datarootdir_hack='
26750   s&@datadir@&$datadir&g
26751   s&@docdir@&$docdir&g
26752   s&@infodir@&$infodir&g
26753   s&@localedir@&$localedir&g
26754   s&@mandir@&$mandir&g
26755   s&\\\${datarootdir}&$datarootdir&g' ;;
26756 esac
26757 _ACEOF
26758
26759 # Neutralize VPATH when `$srcdir' = `.'.
26760 # Shell code in configure.ac might set extrasub.
26761 # FIXME: do we really want to maintain this feature?
26762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26763 ac_sed_extra="$ac_vpsub
26764 $extrasub
26765 _ACEOF
26766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26767 :t
26768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26769 s|@configure_input@|$ac_sed_conf_input|;t t
26770 s&@top_builddir@&$ac_top_builddir_sub&;t t
26771 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26772 s&@srcdir@&$ac_srcdir&;t t
26773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26774 s&@top_srcdir@&$ac_top_srcdir&;t t
26775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26776 s&@builddir@&$ac_builddir&;t t
26777 s&@abs_builddir@&$ac_abs_builddir&;t t
26778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26779 s&@INSTALL@&$ac_INSTALL&;t t
26780 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26781 $ac_datarootdir_hack
26782 "
26783 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26784   || as_fn_error "could not create $ac_file" "$LINENO" 5
26785
26786 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26787   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26788   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26789   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26790 which seems to be undefined.  Please make sure it is defined." >&5
26791 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26792 which seems to be undefined.  Please make sure it is defined." >&2;}
26793
26794   rm -f "$tmp/stdin"
26795   case $ac_file in
26796   -) cat "$tmp/out" && rm -f "$tmp/out";;
26797   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26798   esac \
26799   || as_fn_error "could not create $ac_file" "$LINENO" 5
26800  ;;
26801   :H)
26802   #
26803   # CONFIG_HEADER
26804   #
26805   if test x"$ac_file" != x-; then
26806     {
26807       $as_echo "/* $configure_input  */" \
26808       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26809     } >"$tmp/config.h" \
26810       || as_fn_error "could not create $ac_file" "$LINENO" 5
26811     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26812       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26814     else
26815       rm -f "$ac_file"
26816       mv "$tmp/config.h" "$ac_file" \
26817         || as_fn_error "could not create $ac_file" "$LINENO" 5
26818     fi
26819   else
26820     $as_echo "/* $configure_input  */" \
26821       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26822       || as_fn_error "could not create -" "$LINENO" 5
26823   fi
26824 # Compute "$ac_file"'s index in $config_headers.
26825 _am_arg="$ac_file"
26826 _am_stamp_count=1
26827 for _am_header in $config_headers :; do
26828   case $_am_header in
26829     $_am_arg | $_am_arg:* )
26830       break ;;
26831     * )
26832       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26833   esac
26834 done
26835 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26836 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26837          X"$_am_arg" : 'X\(//\)[^/]' \| \
26838          X"$_am_arg" : 'X\(//\)$' \| \
26839          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26840 $as_echo X"$_am_arg" |
26841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26842             s//\1/
26843             q
26844           }
26845           /^X\(\/\/\)[^/].*/{
26846             s//\1/
26847             q
26848           }
26849           /^X\(\/\/\)$/{
26850             s//\1/
26851             q
26852           }
26853           /^X\(\/\).*/{
26854             s//\1/
26855             q
26856           }
26857           s/.*/./; q'`/stamp-h$_am_stamp_count
26858  ;;
26859   :L)
26860   #
26861   # CONFIG_LINK
26862   #
26863
26864   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26865     :
26866   else
26867     # Prefer the file from the source tree if names are identical.
26868     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26869       ac_source=$srcdir/$ac_source
26870     fi
26871
26872     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26873 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26874
26875     if test ! -r "$ac_source"; then
26876       as_fn_error "$ac_source: file not found" "$LINENO" 5
26877     fi
26878     rm -f "$ac_file"
26879
26880     # Try a relative symlink, then a hard link, then a copy.
26881     case $srcdir in
26882     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26883         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26884     esac
26885     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26886       ln "$ac_source" "$ac_file" 2>/dev/null ||
26887       cp -p "$ac_source" "$ac_file" ||
26888       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26889   fi
26890  ;;
26891   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26892 $as_echo "$as_me: executing $ac_file commands" >&6;}
26893  ;;
26894   esac
26895
26896
26897   case $ac_file$ac_mode in
26898     "default-1":C)
26899 # Only add multilib support code if we just rebuilt the top-level
26900 # Makefile.
26901 case " $CONFIG_FILES " in
26902  *" Makefile "*)
26903    ac_file=Makefile . ${multi_basedir}/config-ml.in
26904    ;;
26905 esac ;;
26906     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26907   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26908   # are listed without --file.  Let's play safe and only enable the eval
26909   # if we detect the quoting.
26910   case $CONFIG_FILES in
26911   *\'*) eval set x "$CONFIG_FILES" ;;
26912   *)   set x $CONFIG_FILES ;;
26913   esac
26914   shift
26915   for mf
26916   do
26917     # Strip MF so we end up with the name of the file.
26918     mf=`echo "$mf" | sed -e 's/:.*$//'`
26919     # Check whether this is an Automake generated Makefile or not.
26920     # We used to match only the files named `Makefile.in', but
26921     # some people rename them; so instead we look at the file content.
26922     # Grep'ing the first line is not enough: some people post-process
26923     # each Makefile.in and add a new line on top of each file to say so.
26924     # Grep'ing the whole file is not good either: AIX grep has a line
26925     # limit of 2048, but all sed's we know have understand at least 4000.
26926     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26927       dirpart=`$as_dirname -- "$mf" ||
26928 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26929          X"$mf" : 'X\(//\)[^/]' \| \
26930          X"$mf" : 'X\(//\)$' \| \
26931          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26932 $as_echo X"$mf" |
26933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26934             s//\1/
26935             q
26936           }
26937           /^X\(\/\/\)[^/].*/{
26938             s//\1/
26939             q
26940           }
26941           /^X\(\/\/\)$/{
26942             s//\1/
26943             q
26944           }
26945           /^X\(\/\).*/{
26946             s//\1/
26947             q
26948           }
26949           s/.*/./; q'`
26950     else
26951       continue
26952     fi
26953     # Extract the definition of DEPDIR, am__include, and am__quote
26954     # from the Makefile without running `make'.
26955     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26956     test -z "$DEPDIR" && continue
26957     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26958     test -z "am__include" && continue
26959     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26960     # When using ansi2knr, U may be empty or an underscore; expand it
26961     U=`sed -n 's/^U = //p' < "$mf"`
26962     # Find all dependency output files, they are included files with
26963     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26964     # simplest approach to changing $(DEPDIR) to its actual value in the
26965     # expansion.
26966     for file in `sed -n "
26967       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26968          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26969       # Make sure the directory exists.
26970       test -f "$dirpart/$file" && continue
26971       fdir=`$as_dirname -- "$file" ||
26972 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26973          X"$file" : 'X\(//\)[^/]' \| \
26974          X"$file" : 'X\(//\)$' \| \
26975          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26976 $as_echo X"$file" |
26977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26978             s//\1/
26979             q
26980           }
26981           /^X\(\/\/\)[^/].*/{
26982             s//\1/
26983             q
26984           }
26985           /^X\(\/\/\)$/{
26986             s//\1/
26987             q
26988           }
26989           /^X\(\/\).*/{
26990             s//\1/
26991             q
26992           }
26993           s/.*/./; q'`
26994       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26995       # echo "creating $dirpart/$file"
26996       echo '# dummy' > "$dirpart/$file"
26997     done
26998   done
26999 }
27000  ;;
27001     "libtool":C)
27002
27003     # See if we are running on zsh, and set the options which allow our
27004     # commands through without removal of \ escapes.
27005     if test -n "${ZSH_VERSION+set}" ; then
27006       setopt NO_GLOB_SUBST
27007     fi
27008
27009     cfgfile="${ofile}T"
27010     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27011     $RM "$cfgfile"
27012
27013     cat <<_LT_EOF >> "$cfgfile"
27014 #! $SHELL
27015
27016 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27017 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27019 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27020 #
27021 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27022 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27023 #   Written by Gordon Matzigkeit, 1996
27024 #
27025 #   This file is part of GNU Libtool.
27026 #
27027 # GNU Libtool is free software; you can redistribute it and/or
27028 # modify it under the terms of the GNU General Public License as
27029 # published by the Free Software Foundation; either version 2 of
27030 # the License, or (at your option) any later version.
27031 #
27032 # As a special exception to the GNU General Public License,
27033 # if you distribute this file as part of a program or library that
27034 # is built using GNU Libtool, you may include this file under the
27035 # same distribution terms that you use for the rest of that program.
27036 #
27037 # GNU Libtool is distributed in the hope that it will be useful,
27038 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27039 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27040 # GNU General Public License for more details.
27041 #
27042 # You should have received a copy of the GNU General Public License
27043 # along with GNU Libtool; see the file COPYING.  If not, a copy
27044 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27045 # obtained by writing to the Free Software Foundation, Inc.,
27046 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27047
27048
27049 # The names of the tagged configurations supported by this script.
27050 available_tags="CXX GCJ "
27051
27052 # ### BEGIN LIBTOOL CONFIG
27053
27054 # Which release of libtool.m4 was used?
27055 macro_version=$macro_version
27056 macro_revision=$macro_revision
27057
27058 # Whether or not to build shared libraries.
27059 build_libtool_libs=$enable_shared
27060
27061 # Whether or not to build static libraries.
27062 build_old_libs=$enable_static
27063
27064 # What type of objects to build.
27065 pic_mode=$pic_mode
27066
27067 # Whether or not to optimize for fast installation.
27068 fast_install=$enable_fast_install
27069
27070 # Shell to use when invoking shell scripts.
27071 SHELL=$lt_SHELL
27072
27073 # An echo program that protects backslashes.
27074 ECHO=$lt_ECHO
27075
27076 # The host system.
27077 host_alias=$host_alias
27078 host=$host
27079 host_os=$host_os
27080
27081 # The build system.
27082 build_alias=$build_alias
27083 build=$build
27084 build_os=$build_os
27085
27086 # A sed program that does not truncate output.
27087 SED=$lt_SED
27088
27089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27090 Xsed="\$SED -e 1s/^X//"
27091
27092 # A grep program that handles long lines.
27093 GREP=$lt_GREP
27094
27095 # An ERE matcher.
27096 EGREP=$lt_EGREP
27097
27098 # A literal string matcher.
27099 FGREP=$lt_FGREP
27100
27101 # A BSD- or MS-compatible name lister.
27102 NM=$lt_NM
27103
27104 # Whether we need soft or hard links.
27105 LN_S=$lt_LN_S
27106
27107 # What is the maximum length of a command?
27108 max_cmd_len=$max_cmd_len
27109
27110 # Object file suffix (normally "o").
27111 objext=$ac_objext
27112
27113 # Executable file suffix (normally "").
27114 exeext=$exeext
27115
27116 # whether the shell understands "unset".
27117 lt_unset=$lt_unset
27118
27119 # turn spaces into newlines.
27120 SP2NL=$lt_lt_SP2NL
27121
27122 # turn newlines into spaces.
27123 NL2SP=$lt_lt_NL2SP
27124
27125 # An object symbol dumper.
27126 OBJDUMP=$lt_OBJDUMP
27127
27128 # Method to check whether dependent libraries are shared objects.
27129 deplibs_check_method=$lt_deplibs_check_method
27130
27131 # Command to use when deplibs_check_method == "file_magic".
27132 file_magic_cmd=$lt_file_magic_cmd
27133
27134 # The archiver.
27135 AR=$lt_AR
27136 AR_FLAGS=$lt_AR_FLAGS
27137
27138 # A symbol stripping program.
27139 STRIP=$lt_STRIP
27140
27141 # Commands used to install an old-style archive.
27142 RANLIB=$lt_RANLIB
27143 old_postinstall_cmds=$lt_old_postinstall_cmds
27144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27145
27146 # Whether to use a lock for old archive extraction.
27147 lock_old_archive_extraction=$lock_old_archive_extraction
27148
27149 # A C compiler.
27150 LTCC=$lt_CC
27151
27152 # LTCC compiler flags.
27153 LTCFLAGS=$lt_CFLAGS
27154
27155 # Take the output of nm and produce a listing of raw symbols and C names.
27156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27157
27158 # Transform the output of nm in a proper C declaration.
27159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27160
27161 # Transform the output of nm in a C name address pair.
27162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27163
27164 # Transform the output of nm in a C name address pair when lib prefix is needed.
27165 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27166
27167 # The name of the directory that contains temporary libtool files.
27168 objdir=$objdir
27169
27170 # Used to examine libraries when file_magic_cmd begins with "file".
27171 MAGIC_CMD=$MAGIC_CMD
27172
27173 # Must we lock files when doing compilation?
27174 need_locks=$lt_need_locks
27175
27176 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27177 DSYMUTIL=$lt_DSYMUTIL
27178
27179 # Tool to change global to local symbols on Mac OS X.
27180 NMEDIT=$lt_NMEDIT
27181
27182 # Tool to manipulate fat objects and archives on Mac OS X.
27183 LIPO=$lt_LIPO
27184
27185 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27186 OTOOL=$lt_OTOOL
27187
27188 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27189 OTOOL64=$lt_OTOOL64
27190
27191 # Old archive suffix (normally "a").
27192 libext=$libext
27193
27194 # Shared library suffix (normally ".so").
27195 shrext_cmds=$lt_shrext_cmds
27196
27197 # The commands to extract the exported symbol list from a shared archive.
27198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27199
27200 # Variables whose values should be saved in libtool wrapper scripts and
27201 # restored at link time.
27202 variables_saved_for_relink=$lt_variables_saved_for_relink
27203
27204 # Do we need the "lib" prefix for modules?
27205 need_lib_prefix=$need_lib_prefix
27206
27207 # Do we need a version for libraries?
27208 need_version=$need_version
27209
27210 # Library versioning type.
27211 version_type=$version_type
27212
27213 # Shared library runtime path variable.
27214 runpath_var=$runpath_var
27215
27216 # Shared library path variable.
27217 shlibpath_var=$shlibpath_var
27218
27219 # Is shlibpath searched before the hard-coded library search path?
27220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27221
27222 # Format of library name prefix.
27223 libname_spec=$lt_libname_spec
27224
27225 # List of archive names.  First name is the real one, the rest are links.
27226 # The last name is the one that the linker finds with -lNAME
27227 library_names_spec=$lt_library_names_spec
27228
27229 # The coded name of the library, if different from the real name.
27230 soname_spec=$lt_soname_spec
27231
27232 # Permission mode override for installation of shared libraries.
27233 install_override_mode=$lt_install_override_mode
27234
27235 # Command to use after installation of a shared archive.
27236 postinstall_cmds=$lt_postinstall_cmds
27237
27238 # Command to use after uninstallation of a shared archive.
27239 postuninstall_cmds=$lt_postuninstall_cmds
27240
27241 # Commands used to finish a libtool library installation in a directory.
27242 finish_cmds=$lt_finish_cmds
27243
27244 # As "finish_cmds", except a single script fragment to be evaled but
27245 # not shown.
27246 finish_eval=$lt_finish_eval
27247
27248 # Whether we should hardcode library paths into libraries.
27249 hardcode_into_libs=$hardcode_into_libs
27250
27251 # Compile-time system search path for libraries.
27252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27253
27254 # Run-time system search path for libraries.
27255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27256
27257 # Whether dlopen is supported.
27258 dlopen_support=$enable_dlopen
27259
27260 # Whether dlopen of programs is supported.
27261 dlopen_self=$enable_dlopen_self
27262
27263 # Whether dlopen of statically linked programs is supported.
27264 dlopen_self_static=$enable_dlopen_self_static
27265
27266 # Commands to strip libraries.
27267 old_striplib=$lt_old_striplib
27268 striplib=$lt_striplib
27269
27270
27271 # The linker used to build libraries.
27272 LD=$lt_LD
27273
27274 # How to create reloadable object files.
27275 reload_flag=$lt_reload_flag
27276 reload_cmds=$lt_reload_cmds
27277
27278 # Commands used to build an old-style archive.
27279 old_archive_cmds=$lt_old_archive_cmds
27280
27281 # A language specific compiler.
27282 CC=$lt_compiler
27283
27284 # Is the compiler the GNU compiler?
27285 with_gcc=$GCC
27286
27287 # Compiler flag to turn off builtin functions.
27288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27289
27290 # How to pass a linker flag through the compiler.
27291 wl=$lt_lt_prog_compiler_wl
27292
27293 # Additional compiler flags for building library objects.
27294 pic_flag=$lt_lt_prog_compiler_pic
27295
27296 # Compiler flag to prevent dynamic linking.
27297 link_static_flag=$lt_lt_prog_compiler_static
27298
27299 # Does compiler simultaneously support -c and -o options?
27300 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27301
27302 # Whether or not to add -lc for building shared libraries.
27303 build_libtool_need_lc=$archive_cmds_need_lc
27304
27305 # Whether or not to disallow shared libs when runtime libs are static.
27306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27307
27308 # Compiler flag to allow reflexive dlopens.
27309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27310
27311 # Compiler flag to generate shared objects directly from archives.
27312 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27313
27314 # Whether the compiler copes with passing no objects directly.
27315 compiler_needs_object=$lt_compiler_needs_object
27316
27317 # Create an old-style archive from a shared archive.
27318 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27319
27320 # Create a temporary old-style archive to link instead of a shared archive.
27321 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27322
27323 # Commands used to build a shared archive.
27324 archive_cmds=$lt_archive_cmds
27325 archive_expsym_cmds=$lt_archive_expsym_cmds
27326
27327 # Commands used to build a loadable module if different from building
27328 # a shared archive.
27329 module_cmds=$lt_module_cmds
27330 module_expsym_cmds=$lt_module_expsym_cmds
27331
27332 # Whether we are building with GNU ld or not.
27333 with_gnu_ld=$lt_with_gnu_ld
27334
27335 # Flag that allows shared libraries with undefined symbols to be built.
27336 allow_undefined_flag=$lt_allow_undefined_flag
27337
27338 # Flag that enforces no undefined symbols.
27339 no_undefined_flag=$lt_no_undefined_flag
27340
27341 # Flag to hardcode \$libdir into a binary during linking.
27342 # This must work even if \$libdir does not exist
27343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27344
27345 # If ld is used when linking, flag to hardcode \$libdir into a binary
27346 # during linking.  This must work even if \$libdir does not exist.
27347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27348
27349 # Whether we need a single "-rpath" flag with a separated argument.
27350 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27351
27352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27353 # DIR into the resulting binary.
27354 hardcode_direct=$hardcode_direct
27355
27356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27357 # DIR into the resulting binary and the resulting library dependency is
27358 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27359 # library is relocated.
27360 hardcode_direct_absolute=$hardcode_direct_absolute
27361
27362 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27363 # into the resulting binary.
27364 hardcode_minus_L=$hardcode_minus_L
27365
27366 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27367 # into the resulting binary.
27368 hardcode_shlibpath_var=$hardcode_shlibpath_var
27369
27370 # Set to "yes" if building a shared library automatically hardcodes DIR
27371 # into the library and all subsequent libraries and executables linked
27372 # against it.
27373 hardcode_automatic=$hardcode_automatic
27374
27375 # Set to yes if linker adds runtime paths of dependent libraries
27376 # to runtime path list.
27377 inherit_rpath=$inherit_rpath
27378
27379 # Whether libtool must link a program against all its dependency libraries.
27380 link_all_deplibs=$link_all_deplibs
27381
27382 # Fix the shell variable \$srcfile for the compiler.
27383 fix_srcfile_path=$lt_fix_srcfile_path
27384
27385 # Set to "yes" if exported symbols are required.
27386 always_export_symbols=$always_export_symbols
27387
27388 # The commands to list exported symbols.
27389 export_symbols_cmds=$lt_export_symbols_cmds
27390
27391 # Symbols that should not be listed in the preloaded symbols.
27392 exclude_expsyms=$lt_exclude_expsyms
27393
27394 # Symbols that must always be exported.
27395 include_expsyms=$lt_include_expsyms
27396
27397 # Commands necessary for linking programs (against libraries) with templates.
27398 prelink_cmds=$lt_prelink_cmds
27399
27400 # Specify filename containing input files.
27401 file_list_spec=$lt_file_list_spec
27402
27403 # How to hardcode a shared library path into an executable.
27404 hardcode_action=$hardcode_action
27405
27406 # The directories searched by this compiler when creating a shared library.
27407 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27408
27409 # Dependencies to place before and after the objects being linked to
27410 # create a shared library.
27411 predep_objects=$lt_predep_objects
27412 postdep_objects=$lt_postdep_objects
27413 predeps=$lt_predeps
27414 postdeps=$lt_postdeps
27415
27416 # The library search path used internally by the compiler when linking
27417 # a shared library.
27418 compiler_lib_search_path=$lt_compiler_lib_search_path
27419
27420 # ### END LIBTOOL CONFIG
27421
27422 _LT_EOF
27423
27424   case $host_os in
27425   aix3*)
27426     cat <<\_LT_EOF >> "$cfgfile"
27427 # AIX sometimes has problems with the GCC collect2 program.  For some
27428 # reason, if we set the COLLECT_NAMES environment variable, the problems
27429 # vanish in a puff of smoke.
27430 if test "X${COLLECT_NAMES+set}" != Xset; then
27431   COLLECT_NAMES=
27432   export COLLECT_NAMES
27433 fi
27434 _LT_EOF
27435     ;;
27436   esac
27437
27438
27439 ltmain="$ac_aux_dir/ltmain.sh"
27440
27441
27442   # We use sed instead of cat because bash on DJGPP gets confused if
27443   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27444   # text mode, it properly converts lines to CR/LF.  This bash problem
27445   # is reportedly fixed, but why not run on old versions too?
27446   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27447     || (rm -f "$cfgfile"; exit 1)
27448
27449   case $xsi_shell in
27450   yes)
27451     cat << \_LT_EOF >> "$cfgfile"
27452
27453 # func_dirname file append nondir_replacement
27454 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27455 # otherwise set result to NONDIR_REPLACEMENT.
27456 func_dirname ()
27457 {
27458   case ${1} in
27459     */*) func_dirname_result="${1%/*}${2}" ;;
27460     *  ) func_dirname_result="${3}" ;;
27461   esac
27462 }
27463
27464 # func_basename file
27465 func_basename ()
27466 {
27467   func_basename_result="${1##*/}"
27468 }
27469
27470 # func_dirname_and_basename file append nondir_replacement
27471 # perform func_basename and func_dirname in a single function
27472 # call:
27473 #   dirname:  Compute the dirname of FILE.  If nonempty,
27474 #             add APPEND to the result, otherwise set result
27475 #             to NONDIR_REPLACEMENT.
27476 #             value returned in "$func_dirname_result"
27477 #   basename: Compute filename of FILE.
27478 #             value retuned in "$func_basename_result"
27479 # Implementation must be kept synchronized with func_dirname
27480 # and func_basename. For efficiency, we do not delegate to
27481 # those functions but instead duplicate the functionality here.
27482 func_dirname_and_basename ()
27483 {
27484   case ${1} in
27485     */*) func_dirname_result="${1%/*}${2}" ;;
27486     *  ) func_dirname_result="${3}" ;;
27487   esac
27488   func_basename_result="${1##*/}"
27489 }
27490
27491 # func_stripname prefix suffix name
27492 # strip PREFIX and SUFFIX off of NAME.
27493 # PREFIX and SUFFIX must not contain globbing or regex special
27494 # characters, hashes, percent signs, but SUFFIX may contain a leading
27495 # dot (in which case that matches only a dot).
27496 func_stripname ()
27497 {
27498   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27499   # positional parameters, so assign one to ordinary parameter first.
27500   func_stripname_result=${3}
27501   func_stripname_result=${func_stripname_result#"${1}"}
27502   func_stripname_result=${func_stripname_result%"${2}"}
27503 }
27504
27505 # func_opt_split
27506 func_opt_split ()
27507 {
27508   func_opt_split_opt=${1%%=*}
27509   func_opt_split_arg=${1#*=}
27510 }
27511
27512 # func_lo2o object
27513 func_lo2o ()
27514 {
27515   case ${1} in
27516     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27517     *)    func_lo2o_result=${1} ;;
27518   esac
27519 }
27520
27521 # func_xform libobj-or-source
27522 func_xform ()
27523 {
27524   func_xform_result=${1%.*}.lo
27525 }
27526
27527 # func_arith arithmetic-term...
27528 func_arith ()
27529 {
27530   func_arith_result=$(( $* ))
27531 }
27532
27533 # func_len string
27534 # STRING may not start with a hyphen.
27535 func_len ()
27536 {
27537   func_len_result=${#1}
27538 }
27539
27540 _LT_EOF
27541     ;;
27542   *) # Bourne compatible functions.
27543     cat << \_LT_EOF >> "$cfgfile"
27544
27545 # func_dirname file append nondir_replacement
27546 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27547 # otherwise set result to NONDIR_REPLACEMENT.
27548 func_dirname ()
27549 {
27550   # Extract subdirectory from the argument.
27551   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27552   if test "X$func_dirname_result" = "X${1}"; then
27553     func_dirname_result="${3}"
27554   else
27555     func_dirname_result="$func_dirname_result${2}"
27556   fi
27557 }
27558
27559 # func_basename file
27560 func_basename ()
27561 {
27562   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27563 }
27564
27565
27566 # func_stripname prefix suffix name
27567 # strip PREFIX and SUFFIX off of NAME.
27568 # PREFIX and SUFFIX must not contain globbing or regex special
27569 # characters, hashes, percent signs, but SUFFIX may contain a leading
27570 # dot (in which case that matches only a dot).
27571 # func_strip_suffix prefix name
27572 func_stripname ()
27573 {
27574   case ${2} in
27575     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27576     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27577   esac
27578 }
27579
27580 # sed scripts:
27581 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27582 my_sed_long_arg='1s/^-[^=]*=//'
27583
27584 # func_opt_split
27585 func_opt_split ()
27586 {
27587   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27588   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27589 }
27590
27591 # func_lo2o object
27592 func_lo2o ()
27593 {
27594   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27595 }
27596
27597 # func_xform libobj-or-source
27598 func_xform ()
27599 {
27600   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27601 }
27602
27603 # func_arith arithmetic-term...
27604 func_arith ()
27605 {
27606   func_arith_result=`expr "$@"`
27607 }
27608
27609 # func_len string
27610 # STRING may not start with a hyphen.
27611 func_len ()
27612 {
27613   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27614 }
27615
27616 _LT_EOF
27617 esac
27618
27619 case $lt_shell_append in
27620   yes)
27621     cat << \_LT_EOF >> "$cfgfile"
27622
27623 # func_append var value
27624 # Append VALUE to the end of shell variable VAR.
27625 func_append ()
27626 {
27627   eval "$1+=\$2"
27628 }
27629 _LT_EOF
27630     ;;
27631   *)
27632     cat << \_LT_EOF >> "$cfgfile"
27633
27634 # func_append var value
27635 # Append VALUE to the end of shell variable VAR.
27636 func_append ()
27637 {
27638   eval "$1=\$$1\$2"
27639 }
27640
27641 _LT_EOF
27642     ;;
27643   esac
27644
27645
27646   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27647     || (rm -f "$cfgfile"; exit 1)
27648
27649   mv -f "$cfgfile" "$ofile" ||
27650     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27651   chmod +x "$ofile"
27652
27653
27654     cat <<_LT_EOF >> "$ofile"
27655
27656 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27657
27658 # The linker used to build libraries.
27659 LD=$lt_LD_CXX
27660
27661 # How to create reloadable object files.
27662 reload_flag=$lt_reload_flag_CXX
27663 reload_cmds=$lt_reload_cmds_CXX
27664
27665 # Commands used to build an old-style archive.
27666 old_archive_cmds=$lt_old_archive_cmds_CXX
27667
27668 # A language specific compiler.
27669 CC=$lt_compiler_CXX
27670
27671 # Is the compiler the GNU compiler?
27672 with_gcc=$GCC_CXX
27673
27674 # Compiler flag to turn off builtin functions.
27675 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27676
27677 # How to pass a linker flag through the compiler.
27678 wl=$lt_lt_prog_compiler_wl_CXX
27679
27680 # Additional compiler flags for building library objects.
27681 pic_flag=$lt_lt_prog_compiler_pic_CXX
27682
27683 # Compiler flag to prevent dynamic linking.
27684 link_static_flag=$lt_lt_prog_compiler_static_CXX
27685
27686 # Does compiler simultaneously support -c and -o options?
27687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27688
27689 # Whether or not to add -lc for building shared libraries.
27690 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27691
27692 # Whether or not to disallow shared libs when runtime libs are static.
27693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27694
27695 # Compiler flag to allow reflexive dlopens.
27696 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27697
27698 # Compiler flag to generate shared objects directly from archives.
27699 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27700
27701 # Whether the compiler copes with passing no objects directly.
27702 compiler_needs_object=$lt_compiler_needs_object_CXX
27703
27704 # Create an old-style archive from a shared archive.
27705 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27706
27707 # Create a temporary old-style archive to link instead of a shared archive.
27708 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27709
27710 # Commands used to build a shared archive.
27711 archive_cmds=$lt_archive_cmds_CXX
27712 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27713
27714 # Commands used to build a loadable module if different from building
27715 # a shared archive.
27716 module_cmds=$lt_module_cmds_CXX
27717 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27718
27719 # Whether we are building with GNU ld or not.
27720 with_gnu_ld=$lt_with_gnu_ld_CXX
27721
27722 # Flag that allows shared libraries with undefined symbols to be built.
27723 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27724
27725 # Flag that enforces no undefined symbols.
27726 no_undefined_flag=$lt_no_undefined_flag_CXX
27727
27728 # Flag to hardcode \$libdir into a binary during linking.
27729 # This must work even if \$libdir does not exist
27730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27731
27732 # If ld is used when linking, flag to hardcode \$libdir into a binary
27733 # during linking.  This must work even if \$libdir does not exist.
27734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27735
27736 # Whether we need a single "-rpath" flag with a separated argument.
27737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27738
27739 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27740 # DIR into the resulting binary.
27741 hardcode_direct=$hardcode_direct_CXX
27742
27743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27744 # DIR into the resulting binary and the resulting library dependency is
27745 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27746 # library is relocated.
27747 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27748
27749 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27750 # into the resulting binary.
27751 hardcode_minus_L=$hardcode_minus_L_CXX
27752
27753 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27754 # into the resulting binary.
27755 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27756
27757 # Set to "yes" if building a shared library automatically hardcodes DIR
27758 # into the library and all subsequent libraries and executables linked
27759 # against it.
27760 hardcode_automatic=$hardcode_automatic_CXX
27761
27762 # Set to yes if linker adds runtime paths of dependent libraries
27763 # to runtime path list.
27764 inherit_rpath=$inherit_rpath_CXX
27765
27766 # Whether libtool must link a program against all its dependency libraries.
27767 link_all_deplibs=$link_all_deplibs_CXX
27768
27769 # Fix the shell variable \$srcfile for the compiler.
27770 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27771
27772 # Set to "yes" if exported symbols are required.
27773 always_export_symbols=$always_export_symbols_CXX
27774
27775 # The commands to list exported symbols.
27776 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27777
27778 # Symbols that should not be listed in the preloaded symbols.
27779 exclude_expsyms=$lt_exclude_expsyms_CXX
27780
27781 # Symbols that must always be exported.
27782 include_expsyms=$lt_include_expsyms_CXX
27783
27784 # Commands necessary for linking programs (against libraries) with templates.
27785 prelink_cmds=$lt_prelink_cmds_CXX
27786
27787 # Specify filename containing input files.
27788 file_list_spec=$lt_file_list_spec_CXX
27789
27790 # How to hardcode a shared library path into an executable.
27791 hardcode_action=$hardcode_action_CXX
27792
27793 # The directories searched by this compiler when creating a shared library.
27794 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27795
27796 # Dependencies to place before and after the objects being linked to
27797 # create a shared library.
27798 predep_objects=$lt_predep_objects_CXX
27799 postdep_objects=$lt_postdep_objects_CXX
27800 predeps=$lt_predeps_CXX
27801 postdeps=$lt_postdeps_CXX
27802
27803 # The library search path used internally by the compiler when linking
27804 # a shared library.
27805 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27806
27807 # ### END LIBTOOL TAG CONFIG: CXX
27808 _LT_EOF
27809
27810
27811     cat <<_LT_EOF >> "$ofile"
27812
27813 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27814
27815 # The linker used to build libraries.
27816 LD=$lt_LD_GCJ
27817
27818 # How to create reloadable object files.
27819 reload_flag=$lt_reload_flag_GCJ
27820 reload_cmds=$lt_reload_cmds_GCJ
27821
27822 # Commands used to build an old-style archive.
27823 old_archive_cmds=$lt_old_archive_cmds_GCJ
27824
27825 # A language specific compiler.
27826 CC=$lt_compiler_GCJ
27827
27828 # Is the compiler the GNU compiler?
27829 with_gcc=$GCC_GCJ
27830
27831 # Compiler flag to turn off builtin functions.
27832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27833
27834 # How to pass a linker flag through the compiler.
27835 wl=$lt_lt_prog_compiler_wl_GCJ
27836
27837 # Additional compiler flags for building library objects.
27838 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27839
27840 # Compiler flag to prevent dynamic linking.
27841 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27842
27843 # Does compiler simultaneously support -c and -o options?
27844 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27845
27846 # Whether or not to add -lc for building shared libraries.
27847 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27848
27849 # Whether or not to disallow shared libs when runtime libs are static.
27850 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27851
27852 # Compiler flag to allow reflexive dlopens.
27853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27854
27855 # Compiler flag to generate shared objects directly from archives.
27856 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27857
27858 # Whether the compiler copes with passing no objects directly.
27859 compiler_needs_object=$lt_compiler_needs_object_GCJ
27860
27861 # Create an old-style archive from a shared archive.
27862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27863
27864 # Create a temporary old-style archive to link instead of a shared archive.
27865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27866
27867 # Commands used to build a shared archive.
27868 archive_cmds=$lt_archive_cmds_GCJ
27869 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27870
27871 # Commands used to build a loadable module if different from building
27872 # a shared archive.
27873 module_cmds=$lt_module_cmds_GCJ
27874 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27875
27876 # Whether we are building with GNU ld or not.
27877 with_gnu_ld=$lt_with_gnu_ld_GCJ
27878
27879 # Flag that allows shared libraries with undefined symbols to be built.
27880 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27881
27882 # Flag that enforces no undefined symbols.
27883 no_undefined_flag=$lt_no_undefined_flag_GCJ
27884
27885 # Flag to hardcode \$libdir into a binary during linking.
27886 # This must work even if \$libdir does not exist
27887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27888
27889 # If ld is used when linking, flag to hardcode \$libdir into a binary
27890 # during linking.  This must work even if \$libdir does not exist.
27891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27892
27893 # Whether we need a single "-rpath" flag with a separated argument.
27894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27895
27896 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27897 # DIR into the resulting binary.
27898 hardcode_direct=$hardcode_direct_GCJ
27899
27900 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27901 # DIR into the resulting binary and the resulting library dependency is
27902 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27903 # library is relocated.
27904 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27905
27906 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27907 # into the resulting binary.
27908 hardcode_minus_L=$hardcode_minus_L_GCJ
27909
27910 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27911 # into the resulting binary.
27912 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27913
27914 # Set to "yes" if building a shared library automatically hardcodes DIR
27915 # into the library and all subsequent libraries and executables linked
27916 # against it.
27917 hardcode_automatic=$hardcode_automatic_GCJ
27918
27919 # Set to yes if linker adds runtime paths of dependent libraries
27920 # to runtime path list.
27921 inherit_rpath=$inherit_rpath_GCJ
27922
27923 # Whether libtool must link a program against all its dependency libraries.
27924 link_all_deplibs=$link_all_deplibs_GCJ
27925
27926 # Fix the shell variable \$srcfile for the compiler.
27927 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27928
27929 # Set to "yes" if exported symbols are required.
27930 always_export_symbols=$always_export_symbols_GCJ
27931
27932 # The commands to list exported symbols.
27933 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27934
27935 # Symbols that should not be listed in the preloaded symbols.
27936 exclude_expsyms=$lt_exclude_expsyms_GCJ
27937
27938 # Symbols that must always be exported.
27939 include_expsyms=$lt_include_expsyms_GCJ
27940
27941 # Commands necessary for linking programs (against libraries) with templates.
27942 prelink_cmds=$lt_prelink_cmds_GCJ
27943
27944 # Specify filename containing input files.
27945 file_list_spec=$lt_file_list_spec_GCJ
27946
27947 # How to hardcode a shared library path into an executable.
27948 hardcode_action=$hardcode_action_GCJ
27949
27950 # The directories searched by this compiler when creating a shared library.
27951 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27952
27953 # Dependencies to place before and after the objects being linked to
27954 # create a shared library.
27955 predep_objects=$lt_predep_objects_GCJ
27956 postdep_objects=$lt_postdep_objects_GCJ
27957 predeps=$lt_predeps_GCJ
27958 postdeps=$lt_postdeps_GCJ
27959
27960 # The library search path used internally by the compiler when linking
27961 # a shared library.
27962 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27963
27964 # ### END LIBTOOL TAG CONFIG: GCJ
27965 _LT_EOF
27966
27967  ;;
27968     "scripts/jar":F) chmod +x scripts/jar ;;
27969
27970   esac
27971 done # for ac_tag
27972
27973
27974 as_fn_exit 0
27975 _ACEOF
27976 ac_clean_files=$ac_clean_files_save
27977
27978 test $ac_write_fail = 0 ||
27979   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27980
27981
27982 # configure is writing to config.log, and then calls config.status.
27983 # config.status does its own redirection, appending to config.log.
27984 # Unfortunately, on DOS this fails, as config.log is still kept open
27985 # by configure, so config.status won't be able to write to it; its
27986 # output is simply discarded.  So we exec the FD to /dev/null,
27987 # effectively closing config.log, so it can be properly (re)opened and
27988 # appended to by config.status.  When coming back to configure, we
27989 # need to make the FD available again.
27990 if test "$no_create" != yes; then
27991   ac_cs_success=:
27992   ac_config_status_args=
27993   test "$silent" = yes &&
27994     ac_config_status_args="$ac_config_status_args --quiet"
27995   exec 5>/dev/null
27996   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27997   exec 5>>config.log
27998   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27999   # would make configure fail if this is the last instruction.
28000   $ac_cs_success || as_fn_exit $?
28001 fi
28002
28003 #
28004 # CONFIG_SUBDIRS section.
28005 #
28006 if test "$no_recursion" != yes; then
28007
28008   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28009   # so they do not pile up.
28010   ac_sub_configure_args=
28011   ac_prev=
28012   eval "set x $ac_configure_args"
28013   shift
28014   for ac_arg
28015   do
28016     if test -n "$ac_prev"; then
28017       ac_prev=
28018       continue
28019     fi
28020     case $ac_arg in
28021     -cache-file | --cache-file | --cache-fil | --cache-fi \
28022     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28023       ac_prev=cache_file ;;
28024     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28025     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28026     | --c=*)
28027       ;;
28028     --config-cache | -C)
28029       ;;
28030     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28031       ac_prev=srcdir ;;
28032     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28033       ;;
28034     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28035       ac_prev=prefix ;;
28036     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28037       ;;
28038     --disable-option-checking)
28039       ;;
28040     *)
28041       case $ac_arg in
28042       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28043       esac
28044       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28045     esac
28046   done
28047
28048   # Always prepend --prefix to ensure using the same prefix
28049   # in subdir configurations.
28050   ac_arg="--prefix=$prefix"
28051   case $ac_arg in
28052   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28053   esac
28054   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28055
28056   # Pass --silent
28057   if test "$silent" = yes; then
28058     ac_sub_configure_args="--silent $ac_sub_configure_args"
28059   fi
28060
28061   # Always prepend --disable-option-checking to silence warnings, since
28062   # different subdirs can have different --enable and --with options.
28063   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28064
28065   ac_popdir=`pwd`
28066   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28067
28068     # Do not complain, so a configure script can configure whichever
28069     # parts of a large source tree are present.
28070     test -d "$srcdir/$ac_dir" || continue
28071
28072     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28073     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28074     $as_echo "$ac_msg" >&6
28075     as_dir="$ac_dir"; as_fn_mkdir_p
28076     ac_builddir=.
28077
28078 case "$ac_dir" in
28079 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28080 *)
28081   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28082   # A ".." for each directory in $ac_dir_suffix.
28083   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28084   case $ac_top_builddir_sub in
28085   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28086   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28087   esac ;;
28088 esac
28089 ac_abs_top_builddir=$ac_pwd
28090 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28091 # for backward compatibility:
28092 ac_top_builddir=$ac_top_build_prefix
28093
28094 case $srcdir in
28095   .)  # We are building in place.
28096     ac_srcdir=.
28097     ac_top_srcdir=$ac_top_builddir_sub
28098     ac_abs_top_srcdir=$ac_pwd ;;
28099   [\\/]* | ?:[\\/]* )  # Absolute name.
28100     ac_srcdir=$srcdir$ac_dir_suffix;
28101     ac_top_srcdir=$srcdir
28102     ac_abs_top_srcdir=$srcdir ;;
28103   *) # Relative name.
28104     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28105     ac_top_srcdir=$ac_top_build_prefix$srcdir
28106     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28107 esac
28108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28109
28110
28111     cd "$ac_dir"
28112
28113     # Check for guested configure; otherwise get Cygnus style configure.
28114     if test -f "$ac_srcdir/configure.gnu"; then
28115       ac_sub_configure=$ac_srcdir/configure.gnu
28116     elif test -f "$ac_srcdir/configure"; then
28117       ac_sub_configure=$ac_srcdir/configure
28118     elif test -f "$ac_srcdir/configure.in"; then
28119       # This should be Cygnus configure.
28120       ac_sub_configure=$ac_aux_dir/configure
28121     else
28122       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28123 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28124       ac_sub_configure=
28125     fi
28126
28127     # The recursion is here.
28128     if test -n "$ac_sub_configure"; then
28129       # Make the cache file name correct relative to the subdirectory.
28130       case $cache_file in
28131       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28132       *) # Relative name.
28133         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28134       esac
28135
28136       { $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
28137 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28138       # The eval makes quoting arguments work.
28139       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28140            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28141         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28142     fi
28143
28144     cd "$ac_popdir"
28145   done
28146 fi
28147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28149 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28150 fi
28151