OSDN Git Service

5e92946deb9219aaf5f41986b929afc2a71a44d6
[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 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='libjava'
697 PACKAGE_TARNAME='libjava'
698 PACKAGE_VERSION='version-unused'
699 PACKAGE_STRING='libjava version-unused'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 ac_unique_file="java/lang/System.java"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 enable_option_checking=no
741 ac_subst_vars='am__EXEEXT_FALSE
742 am__EXEEXT_TRUE
743 LTLIBOBJS
744 LIBOBJS
745 LIBDIR
746 OS
747 CPU
748 GCJ_BIN_DIR
749 JRE_LIB_DIR
750 JRE_BIN_DIR
751 SDK_INCLUDE_DIR
752 SDK_LIB_DIR
753 SDK_BIN_DIR
754 SDK_LNK
755 JRE_LNK
756 JRE_DIR
757 JVM_JAR_DIR
758 JVM_JAR_ROOT_DIR
759 JVM_ROOT_DIR
760 BUILD_VERSION
761 JAVA_VERSION
762 gcc_suffix
763 CREATE_JAVA_HOME_FALSE
764 CREATE_JAVA_HOME_TRUE
765 INSTALL_AOT_RPM_FALSE
766 INSTALL_AOT_RPM_TRUE
767 MAKE
768 python_mod_dir_expanded
769 python_mod_dir
770 here
771 LD_FINISH_STATIC_SPEC
772 LD_START_STATIC_SPEC
773 ANONVERSCRIPT_FALSE
774 ANONVERSCRIPT_TRUE
775 SYSDEP_SOURCES
776 PERL
777 libstdcxx_incdir
778 gxx_include_dir
779 gcjsubdir
780 dbexecdir
781 GCJVERSION
782 toolexeclibdir
783 toolexecmainlibdir
784 toolexecdir
785 GCC_UNWIND_INCLUDE
786 INSTALL_BINARIES_FALSE
787 INSTALL_BINARIES_TRUE
788 NEEDS_DATA_START_FALSE
789 NEEDS_DATA_START_TRUE
790 ENABLE_SHARED_FALSE
791 ENABLE_SHARED_TRUE
792 NATIVE_FALSE
793 NATIVE_TRUE
794 ATOMICSPEC
795 IEEESPEC
796 BACKTRACESPEC
797 EXCEPTIONSPEC
798 CHECKREFSPEC
799 DIVIDESPEC
800 ZINCS
801 SYS_ZLIBS
802 ZLIBS
803 CLASSPATH_SEPARATOR
804 LIBART_LIBS
805 LIBART_CFLAGS
806 GLIB_LIBS
807 GLIB_CFLAGS
808 GTK_LIBS
809 GTK_CFLAGS
810 PKG_CONFIG
811 LTLIBICONV
812 LIBICONV
813 USING_GCC_FALSE
814 USING_GCC_TRUE
815 HASH_SYNC_SPEC
816 LIBGCJ_BC_SPEC
817 LIBGCJ_SPEC
818 USE_LIBGCJ_BC_FALSE
819 USE_LIBGCJ_BC_TRUE
820 USING_NO_THREADS_FALSE
821 USING_NO_THREADS_TRUE
822 USING_WIN32_THREADS_FALSE
823 USING_WIN32_THREADS_TRUE
824 USING_POSIX_THREADS_FALSE
825 USING_POSIX_THREADS_TRUE
826 THREADCXXFLAGS
827 THREADLDFLAGS
828 THREADSTARTFILESPEC
829 THREADSPEC
830 THREADDEPS
831 THREADINCS
832 THREADLIBS
833 USING_NOGC_FALSE
834 USING_NOGC_TRUE
835 USING_BOEHMGC_FALSE
836 USING_BOEHMGC_TRUE
837 GCTESTSPEC
838 JC1GCSPEC
839 GCSPEC
840 GCDEPS
841 GCINCS
842 GCLIBS
843 LIBGCJTESTSPEC
844 LIBSTDCXXSPEC
845 extra_ldflags
846 extra_gij_ldflags
847 extra_ldflags_libjava
848 X_EXTRA_LIBS
849 X_LIBS
850 X_PRE_LIBS
851 X_CFLAGS
852 XMKMF
853 ZLIBTESTSPEC
854 ZLIBSPEC
855 SYSTEMSPEC
856 USING_DARWIN_CRT_FALSE
857 USING_DARWIN_CRT_TRUE
858 USING_POSIX_PLATFORM_FALSE
859 USING_POSIX_PLATFORM_TRUE
860 USING_WIN32_PLATFORM_FALSE
861 USING_WIN32_PLATFORM_TRUE
862 PLATFORM
863 LIBFFIINCS
864 LIBFFI
865 INTERPRETER_FALSE
866 INTERPRETER_TRUE
867 INTERPRETER
868 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
869 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
870 SUPPRESS_LIBGCJ_BC_FALSE
871 SUPPRESS_LIBGCJ_BC_TRUE
872 JAVA_HOME
873 JAVA_HOME_SET_FALSE
874 JAVA_HOME_SET_TRUE
875 INSTALL_ECJ_JAR_FALSE
876 INSTALL_ECJ_JAR_TRUE
877 BUILD_ECJ1_FALSE
878 BUILD_ECJ1_TRUE
879 ECJ_JAR
880 ECJ_BUILD_JAR
881 TESTSUBDIR_FALSE
882 TESTSUBDIR_TRUE
883 subdirs
884 am__fastdepGCJ_FALSE
885 am__fastdepGCJ_TRUE
886 GCJDEPMODE
887 GCJFLAGS
888 GCJ
889 CXXCPP
890 CPP
891 OTOOL64
892 OTOOL
893 LIPO
894 NMEDIT
895 DSYMUTIL
896 lt_ECHO
897 OBJDUMP
898 NM
899 ac_ct_DUMPBIN
900 DUMPBIN
901 FGREP
902 EGREP
903 GREP
904 SED
905 LIBTOOL
906 DIRLTDL
907 LIBLTDL
908 INCLTDL
909 host_exeext
910 GCJH
911 GCJ_FOR_ECJX
912 X_AWT_FALSE
913 X_AWT_TRUE
914 XLIB_AWT_FALSE
915 XLIB_AWT_TRUE
916 TOOLKIT
917 LIBGCJDEBUG
918 BUILD_SUBLIBS_FALSE
919 BUILD_SUBLIBS_TRUE
920 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
921 LIBGCJ_LD_SYMBOLIC
922 LIBGCJ_JAVAFLAGS
923 LIBGCJ_CXXFLAGS
924 LIBGCJ_CFLAGS
925 MAINT
926 MAINTAINER_MODE_FALSE
927 MAINTAINER_MODE_TRUE
928 UNZIP
929 ZIP
930 JAR
931 RANLIB
932 AR
933 LD
934 AS
935 am__fastdepCXX_FALSE
936 am__fastdepCXX_TRUE
937 CXXDEPMODE
938 am__fastdepCC_FALSE
939 am__fastdepCC_TRUE
940 CCDEPMODE
941 AMDEPBACKSLASH
942 AMDEP_FALSE
943 AMDEP_TRUE
944 am__quote
945 am__include
946 DEPDIR
947 am__untar
948 am__tar
949 AMTAR
950 am__leading_dot
951 SET_MAKE
952 AWK
953 mkdir_p
954 MKDIR_P
955 INSTALL_STRIP_PROGRAM
956 STRIP
957 install_sh
958 MAKEINFO
959 AUTOHEADER
960 AUTOMAKE
961 AUTOCONF
962 ACLOCAL
963 VERSION
964 PACKAGE
965 CYGPATH_W
966 am__isrc
967 INSTALL_DATA
968 INSTALL_SCRIPT
969 INSTALL_PROGRAM
970 ac_ct_CXX
971 CXXFLAGS
972 CXX
973 OBJEXT
974 EXEEXT
975 ac_ct_CC
976 CPPFLAGS
977 LDFLAGS
978 CFLAGS
979 CC
980 JAVA_MAINTAINER_MODE_FALSE
981 JAVA_MAINTAINER_MODE_TRUE
982 CREATE_GJDOC_FALSE
983 CREATE_GJDOC_TRUE
984 ANTLR_JAR
985 mkinstalldirs
986 LN_S
987 target_noncanonical
988 target_os
989 target_vendor
990 target_cpu
991 target
992 host_os
993 host_vendor
994 host_cpu
995 host
996 multi_basedir
997 target_subdir
998 host_subdir
999 build_subdir
1000 build_libsubdir
1001 build_os
1002 build_vendor
1003 build_cpu
1004 build
1005 target_alias
1006 host_alias
1007 build_alias
1008 LIBS
1009 ECHO_T
1010 ECHO_N
1011 ECHO_C
1012 DEFS
1013 mandir
1014 localedir
1015 libdir
1016 psdir
1017 pdfdir
1018 dvidir
1019 htmldir
1020 infodir
1021 docdir
1022 oldincludedir
1023 includedir
1024 localstatedir
1025 sharedstatedir
1026 sysconfdir
1027 datadir
1028 datarootdir
1029 libexecdir
1030 sbindir
1031 bindir
1032 program_transform_name
1033 prefix
1034 exec_prefix
1035 PACKAGE_URL
1036 PACKAGE_BUGREPORT
1037 PACKAGE_STRING
1038 PACKAGE_VERSION
1039 PACKAGE_TARNAME
1040 PACKAGE_NAME
1041 PATH_SEPARATOR
1042 SHELL'
1043 ac_subst_files=''
1044 ac_user_opts='
1045 enable_option_checking
1046 with_build_libsubdir
1047 with_target_subdir
1048 enable_multilib
1049 with_cross_host
1050 with_newlib
1051 enable_version_specific_runtime_libs
1052 enable_plugin
1053 enable_gconf_peer
1054 with_antlr_jar
1055 enable_gjdoc
1056 enable_java_maintainer_mode
1057 enable_dependency_tracking
1058 enable_maintainer_mode
1059 enable_libgcj_sublibs
1060 enable_libgcj_debug
1061 with_escher
1062 enable_java_awt
1063 enable_shared
1064 enable_static
1065 with_pic
1066 enable_fast_install
1067 with_gnu_ld
1068 enable_libtool_lock
1069 enable_getenv_properties
1070 enable_hash_synchronization
1071 with_ecj_jar
1072 with_java_home
1073 enable_libgcj_bc
1074 enable_reduced_reflection
1075 with_win32_nlsapi
1076 enable_gc_debug
1077 enable_interpreter
1078 enable_sjlj_exceptions
1079 enable_java_net
1080 with_libffi
1081 enable_jvmpi
1082 with_ecos
1083 with_system_zlib
1084 with_x
1085 enable_java_gc
1086 enable_rpath
1087 with_libiconv_prefix
1088 enable_tls
1089 with_system_libunwind
1090 with_python_dir
1091 enable_aot_compile_rpm
1092 enable_java_home
1093 with_gcc_suffix
1094 with_arch_directory
1095 with_os_directory
1096 with_origin_name
1097 with_arch_suffix
1098 with_jvm_root_dir
1099 with_jvm_jar_dir
1100 '
1101       ac_precious_vars='build_alias
1102 host_alias
1103 target_alias
1104 CPP
1105 CPPFLAGS
1106 CXX
1107 CXXFLAGS
1108 LDFLAGS
1109 LIBS
1110 CCC
1111 CXXCPP
1112 XMKMF'
1113 ac_subdirs_all='classpath libltdl'
1114
1115 # Initialize some variables set by options.
1116 ac_init_help=
1117 ac_init_version=false
1118 ac_unrecognized_opts=
1119 ac_unrecognized_sep=
1120 # The variables have the same names as the options, with
1121 # dashes changed to underlines.
1122 cache_file=/dev/null
1123 exec_prefix=NONE
1124 no_create=
1125 no_recursion=
1126 prefix=NONE
1127 program_prefix=NONE
1128 program_suffix=NONE
1129 program_transform_name=s,x,x,
1130 silent=
1131 site=
1132 srcdir=
1133 verbose=
1134 x_includes=NONE
1135 x_libraries=NONE
1136
1137 # Installation directory options.
1138 # These are left unexpanded so users can "make install exec_prefix=/foo"
1139 # and all the variables that are supposed to be based on exec_prefix
1140 # by default will actually change.
1141 # Use braces instead of parens because sh, perl, etc. also accept them.
1142 # (The list follows the same order as the GNU Coding Standards.)
1143 bindir='${exec_prefix}/bin'
1144 sbindir='${exec_prefix}/sbin'
1145 libexecdir='${exec_prefix}/libexec'
1146 datarootdir='${prefix}/share'
1147 datadir='${datarootdir}'
1148 sysconfdir='${prefix}/etc'
1149 sharedstatedir='${prefix}/com'
1150 localstatedir='${prefix}/var'
1151 includedir='${prefix}/include'
1152 oldincludedir='/usr/include'
1153 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1154 infodir='${datarootdir}/info'
1155 htmldir='${docdir}'
1156 dvidir='${docdir}'
1157 pdfdir='${docdir}'
1158 psdir='${docdir}'
1159 libdir='${exec_prefix}/lib'
1160 localedir='${datarootdir}/locale'
1161 mandir='${datarootdir}/man'
1162
1163 ac_prev=
1164 ac_dashdash=
1165 for ac_option
1166 do
1167   # If the previous option needs an argument, assign it.
1168   if test -n "$ac_prev"; then
1169     eval $ac_prev=\$ac_option
1170     ac_prev=
1171     continue
1172   fi
1173
1174   case $ac_option in
1175   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1176   *)    ac_optarg=yes ;;
1177   esac
1178
1179   # Accept the important Cygnus configure options, so we can diagnose typos.
1180
1181   case $ac_dashdash$ac_option in
1182   --)
1183     ac_dashdash=yes ;;
1184
1185   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1186     ac_prev=bindir ;;
1187   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1188     bindir=$ac_optarg ;;
1189
1190   -build | --build | --buil | --bui | --bu)
1191     ac_prev=build_alias ;;
1192   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1193     build_alias=$ac_optarg ;;
1194
1195   -cache-file | --cache-file | --cache-fil | --cache-fi \
1196   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1197     ac_prev=cache_file ;;
1198   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1199   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1200     cache_file=$ac_optarg ;;
1201
1202   --config-cache | -C)
1203     cache_file=config.cache ;;
1204
1205   -datadir | --datadir | --datadi | --datad)
1206     ac_prev=datadir ;;
1207   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1208     datadir=$ac_optarg ;;
1209
1210   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1211   | --dataroo | --dataro | --datar)
1212     ac_prev=datarootdir ;;
1213   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1214   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1215     datarootdir=$ac_optarg ;;
1216
1217   -disable-* | --disable-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error "invalid feature name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "enable_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval enable_$ac_useropt=no ;;
1232
1233   -docdir | --docdir | --docdi | --doc | --do)
1234     ac_prev=docdir ;;
1235   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1236     docdir=$ac_optarg ;;
1237
1238   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1239     ac_prev=dvidir ;;
1240   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1241     dvidir=$ac_optarg ;;
1242
1243   -enable-* | --enable-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error "invalid feature name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "enable_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval enable_$ac_useropt=\$ac_optarg ;;
1258
1259   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1260   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1261   | --exec | --exe | --ex)
1262     ac_prev=exec_prefix ;;
1263   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1264   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1265   | --exec=* | --exe=* | --ex=*)
1266     exec_prefix=$ac_optarg ;;
1267
1268   -gas | --gas | --ga | --g)
1269     # Obsolete; use --with-gas.
1270     with_gas=yes ;;
1271
1272   -help | --help | --hel | --he | -h)
1273     ac_init_help=long ;;
1274   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1275     ac_init_help=recursive ;;
1276   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1277     ac_init_help=short ;;
1278
1279   -host | --host | --hos | --ho)
1280     ac_prev=host_alias ;;
1281   -host=* | --host=* | --hos=* | --ho=*)
1282     host_alias=$ac_optarg ;;
1283
1284   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1285     ac_prev=htmldir ;;
1286   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1287   | --ht=*)
1288     htmldir=$ac_optarg ;;
1289
1290   -includedir | --includedir | --includedi | --included | --include \
1291   | --includ | --inclu | --incl | --inc)
1292     ac_prev=includedir ;;
1293   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1294   | --includ=* | --inclu=* | --incl=* | --inc=*)
1295     includedir=$ac_optarg ;;
1296
1297   -infodir | --infodir | --infodi | --infod | --info | --inf)
1298     ac_prev=infodir ;;
1299   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1300     infodir=$ac_optarg ;;
1301
1302   -libdir | --libdir | --libdi | --libd)
1303     ac_prev=libdir ;;
1304   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1305     libdir=$ac_optarg ;;
1306
1307   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1308   | --libexe | --libex | --libe)
1309     ac_prev=libexecdir ;;
1310   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1311   | --libexe=* | --libex=* | --libe=*)
1312     libexecdir=$ac_optarg ;;
1313
1314   -localedir | --localedir | --localedi | --localed | --locale)
1315     ac_prev=localedir ;;
1316   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1317     localedir=$ac_optarg ;;
1318
1319   -localstatedir | --localstatedir | --localstatedi | --localstated \
1320   | --localstate | --localstat | --localsta | --localst | --locals)
1321     ac_prev=localstatedir ;;
1322   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1323   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1324     localstatedir=$ac_optarg ;;
1325
1326   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1327     ac_prev=mandir ;;
1328   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1329     mandir=$ac_optarg ;;
1330
1331   -nfp | --nfp | --nf)
1332     # Obsolete; use --without-fp.
1333     with_fp=no ;;
1334
1335   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1336   | --no-cr | --no-c | -n)
1337     no_create=yes ;;
1338
1339   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1340   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1341     no_recursion=yes ;;
1342
1343   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1344   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1345   | --oldin | --oldi | --old | --ol | --o)
1346     ac_prev=oldincludedir ;;
1347   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1348   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1349   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1350     oldincludedir=$ac_optarg ;;
1351
1352   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1353     ac_prev=prefix ;;
1354   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1355     prefix=$ac_optarg ;;
1356
1357   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1358   | --program-pre | --program-pr | --program-p)
1359     ac_prev=program_prefix ;;
1360   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1361   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1362     program_prefix=$ac_optarg ;;
1363
1364   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1365   | --program-suf | --program-su | --program-s)
1366     ac_prev=program_suffix ;;
1367   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1368   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1369     program_suffix=$ac_optarg ;;
1370
1371   -program-transform-name | --program-transform-name \
1372   | --program-transform-nam | --program-transform-na \
1373   | --program-transform-n | --program-transform- \
1374   | --program-transform | --program-transfor \
1375   | --program-transfo | --program-transf \
1376   | --program-trans | --program-tran \
1377   | --progr-tra | --program-tr | --program-t)
1378     ac_prev=program_transform_name ;;
1379   -program-transform-name=* | --program-transform-name=* \
1380   | --program-transform-nam=* | --program-transform-na=* \
1381   | --program-transform-n=* | --program-transform-=* \
1382   | --program-transform=* | --program-transfor=* \
1383   | --program-transfo=* | --program-transf=* \
1384   | --program-trans=* | --program-tran=* \
1385   | --progr-tra=* | --program-tr=* | --program-t=*)
1386     program_transform_name=$ac_optarg ;;
1387
1388   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1389     ac_prev=pdfdir ;;
1390   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1391     pdfdir=$ac_optarg ;;
1392
1393   -psdir | --psdir | --psdi | --psd | --ps)
1394     ac_prev=psdir ;;
1395   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1396     psdir=$ac_optarg ;;
1397
1398   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399   | -silent | --silent | --silen | --sile | --sil)
1400     silent=yes ;;
1401
1402   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1403     ac_prev=sbindir ;;
1404   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1405   | --sbi=* | --sb=*)
1406     sbindir=$ac_optarg ;;
1407
1408   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410   | --sharedst | --shareds | --shared | --share | --shar \
1411   | --sha | --sh)
1412     ac_prev=sharedstatedir ;;
1413   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1416   | --sha=* | --sh=*)
1417     sharedstatedir=$ac_optarg ;;
1418
1419   -site | --site | --sit)
1420     ac_prev=site ;;
1421   -site=* | --site=* | --sit=*)
1422     site=$ac_optarg ;;
1423
1424   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1425     ac_prev=srcdir ;;
1426   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427     srcdir=$ac_optarg ;;
1428
1429   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430   | --syscon | --sysco | --sysc | --sys | --sy)
1431     ac_prev=sysconfdir ;;
1432   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434     sysconfdir=$ac_optarg ;;
1435
1436   -target | --target | --targe | --targ | --tar | --ta | --t)
1437     ac_prev=target_alias ;;
1438   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439     target_alias=$ac_optarg ;;
1440
1441   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1442     verbose=yes ;;
1443
1444   -version | --version | --versio | --versi | --vers | -V)
1445     ac_init_version=: ;;
1446
1447   -with-* | --with-*)
1448     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449     # Reject names that are not valid shell variable names.
1450     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451       as_fn_error "invalid package name: $ac_useropt"
1452     ac_useropt_orig=$ac_useropt
1453     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454     case $ac_user_opts in
1455       *"
1456 "with_$ac_useropt"
1457 "*) ;;
1458       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459          ac_unrecognized_sep=', ';;
1460     esac
1461     eval with_$ac_useropt=\$ac_optarg ;;
1462
1463   -without-* | --without-*)
1464     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465     # Reject names that are not valid shell variable names.
1466     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467       as_fn_error "invalid package name: $ac_useropt"
1468     ac_useropt_orig=$ac_useropt
1469     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470     case $ac_user_opts in
1471       *"
1472 "with_$ac_useropt"
1473 "*) ;;
1474       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1475          ac_unrecognized_sep=', ';;
1476     esac
1477     eval with_$ac_useropt=no ;;
1478
1479   --x)
1480     # Obsolete; use --with-x.
1481     with_x=yes ;;
1482
1483   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1484   | --x-incl | --x-inc | --x-in | --x-i)
1485     ac_prev=x_includes ;;
1486   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1487   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1488     x_includes=$ac_optarg ;;
1489
1490   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1491   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1492     ac_prev=x_libraries ;;
1493   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1494   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1495     x_libraries=$ac_optarg ;;
1496
1497   -*) as_fn_error "unrecognized option: \`$ac_option'
1498 Try \`$0 --help' for more information."
1499     ;;
1500
1501   *=*)
1502     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1503     # Reject names that are not valid shell variable names.
1504     case $ac_envvar in #(
1505       '' | [0-9]* | *[!_$as_cr_alnum]* )
1506       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1507     esac
1508     eval $ac_envvar=\$ac_optarg
1509     export $ac_envvar ;;
1510
1511   *)
1512     # FIXME: should be removed in autoconf 3.0.
1513     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1514     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1515       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1516     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1517     ;;
1518
1519   esac
1520 done
1521
1522 if test -n "$ac_prev"; then
1523   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1524   as_fn_error "missing argument to $ac_option"
1525 fi
1526
1527 if test -n "$ac_unrecognized_opts"; then
1528   case $enable_option_checking in
1529     no) ;;
1530     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1531     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1532   esac
1533 fi
1534
1535 # Check all directory arguments for consistency.
1536 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1537                 datadir sysconfdir sharedstatedir localstatedir includedir \
1538                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1539                 libdir localedir mandir
1540 do
1541   eval ac_val=\$$ac_var
1542   # Remove trailing slashes.
1543   case $ac_val in
1544     */ )
1545       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1546       eval $ac_var=\$ac_val;;
1547   esac
1548   # Be sure to have absolute directory names.
1549   case $ac_val in
1550     [\\/$]* | ?:[\\/]* )  continue;;
1551     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1552   esac
1553   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1554 done
1555
1556 # There might be people who depend on the old broken behavior: `$host'
1557 # used to hold the argument of --host etc.
1558 # FIXME: To remove some day.
1559 build=$build_alias
1560 host=$host_alias
1561 target=$target_alias
1562
1563 # FIXME: To remove some day.
1564 if test "x$host_alias" != x; then
1565   if test "x$build_alias" = x; then
1566     cross_compiling=maybe
1567     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1568     If a cross compiler is detected then cross compile mode will be used." >&2
1569   elif test "x$build_alias" != "x$host_alias"; then
1570     cross_compiling=yes
1571   fi
1572 fi
1573
1574 ac_tool_prefix=
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1576
1577 test "$silent" = yes && exec 6>/dev/null
1578
1579
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583   as_fn_error "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585   as_fn_error "pwd does not report name of working directory"
1586
1587
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590   ac_srcdir_defaulted=yes
1591   # Try the directory containing this script, then the parent directory.
1592   ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594          X"$as_myself" : 'X\(//\)[^/]' \| \
1595          X"$as_myself" : 'X\(//\)$' \| \
1596          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_myself" |
1598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1599             s//\1/
1600             q
1601           }
1602           /^X\(\/\/\)[^/].*/{
1603             s//\1/
1604             q
1605           }
1606           /^X\(\/\/\)$/{
1607             s//\1/
1608             q
1609           }
1610           /^X\(\/\).*/{
1611             s//\1/
1612             q
1613           }
1614           s/.*/./; q'`
1615   srcdir=$ac_confdir
1616   if test ! -r "$srcdir/$ac_unique_file"; then
1617     srcdir=..
1618   fi
1619 else
1620   ac_srcdir_defaulted=no
1621 fi
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1625 fi
1626 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1627 ac_abs_confdir=`(
1628         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1629         pwd)`
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1632   srcdir=.
1633 fi
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1637 case $srcdir in
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1639 esac
1640 for ac_var in $ac_precious_vars; do
1641   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642   eval ac_env_${ac_var}_value=\$${ac_var}
1643   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1645 done
1646
1647 #
1648 # Report the --help message.
1649 #
1650 if test "$ac_init_help" = "long"; then
1651   # Omit some internal or obsolete options to make the list less imposing.
1652   # This message is too long to be a string in the A/UX 3.1 sh.
1653   cat <<_ACEOF
1654 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1655
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1657
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE.  See below for descriptions of some of the useful variables.
1660
1661 Defaults for the options are specified in brackets.
1662
1663 Configuration:
1664   -h, --help              display this help and exit
1665       --help=short        display options specific to this package
1666       --help=recursive    display the short help of all the included packages
1667   -V, --version           display version information and exit
1668   -q, --quiet, --silent   do not print \`checking...' messages
1669       --cache-file=FILE   cache test results in FILE [disabled]
1670   -C, --config-cache      alias for \`--cache-file=config.cache'
1671   -n, --no-create         do not create output files
1672       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1673
1674 Installation directories:
1675   --prefix=PREFIX         install architecture-independent files in PREFIX
1676                           [$ac_default_prefix]
1677   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1678                           [PREFIX]
1679
1680 By default, \`make install' will install all the files in
1681 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1682 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683 for instance \`--prefix=\$HOME'.
1684
1685 For better control, use the options below.
1686
1687 Fine tuning of the installation directories:
1688   --bindir=DIR            user executables [EPREFIX/bin]
1689   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1690   --libexecdir=DIR        program executables [EPREFIX/libexec]
1691   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1692   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1693   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1694   --libdir=DIR            object code libraries [EPREFIX/lib]
1695   --includedir=DIR        C header files [PREFIX/include]
1696   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1697   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1698   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1699   --infodir=DIR           info documentation [DATAROOTDIR/info]
1700   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1701   --mandir=DIR            man documentation [DATAROOTDIR/man]
1702   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1703   --htmldir=DIR           html documentation [DOCDIR]
1704   --dvidir=DIR            dvi documentation [DOCDIR]
1705   --pdfdir=DIR            pdf documentation [DOCDIR]
1706   --psdir=DIR             ps documentation [DOCDIR]
1707 _ACEOF
1708
1709   cat <<\_ACEOF
1710
1711 Program names:
1712   --program-prefix=PREFIX            prepend PREFIX to installed program names
1713   --program-suffix=SUFFIX            append SUFFIX to installed program names
1714   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1715
1716 X features:
1717   --x-includes=DIR    X include files are in DIR
1718   --x-libraries=DIR   X library files are in DIR
1719
1720 System types:
1721   --build=BUILD     configure for building on BUILD [guessed]
1722   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1723   --target=TARGET   configure for building compilers for TARGET [HOST]
1724 _ACEOF
1725 fi
1726
1727 if test -n "$ac_init_help"; then
1728   case $ac_init_help in
1729      short | recursive ) echo "Configuration of libjava version-unused:";;
1730    esac
1731   cat <<\_ACEOF
1732
1733 Optional Features:
1734   --disable-option-checking  ignore unrecognized --enable/--with options
1735   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1736   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1737   --enable-multilib       build many library versions (default)
1738   --enable-version-specific-runtime-libs
1739                           specify that runtime libraries should be installed
1740                           in a compiler-specific directory
1741   --enable-plugin         build gcjwebplugin web browser plugin
1742   --enable-gconf-peer     compile GConf native peers for util.preferences
1743   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1744                           default=yes
1745   --enable-java-maintainer-mode
1746                           allow rebuilding of .class and .h files
1747   --disable-dependency-tracking  speeds up one-time build
1748   --enable-dependency-tracking   do not reject slow dependency extractors
1749   --enable-maintainer-mode  enable make rules and dependencies not useful
1750                           (and sometimes confusing) to the casual installer
1751   --enable-libgcj-sublibs build libgcj as many sub-libraries
1752   --enable-libgcj-debug   enable runtime debugging code
1753   --enable-java-awt       list of AWT peer implementations to be built
1754   --enable-shared[=PKGS]  build shared libraries [default=yes]
1755   --enable-static[=PKGS]  build static libraries [default=yes]
1756   --enable-fast-install[=PKGS]
1757                           optimize for fast installation [default=yes]
1758   --disable-libtool-lock  avoid locking (might break parallel builds)
1759   --disable-getenv-properties
1760                           don't set system properties from GCJ_PROPERTIES
1761   --enable-hash-synchronization
1762                           use global hash table for monitor locks
1763   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1764                           libgcj
1765   --enable-reduced-reflection
1766                           enable or disable(default) -freduced-reflection when
1767                           building portions of libgcj
1768   --enable-gc-debug       include full support for pointer backtracing etc.
1769   --enable-interpreter    enable interpreter
1770   --enable-sjlj-exceptions
1771                           force use of builtin_setjmp for exceptions
1772   --disable-java-net      disable java.net
1773   --disable-jvmpi         disable JVMPI support
1774   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1775   --disable-rpath         do not hardcode runtime library paths
1776   --enable-tls            Use thread-local storage [default=yes]
1777   --enable-aot-compile-rpm
1778                           enable installation of aot-compile-rpm [default=no]
1779   --enable-java-home      create a standard JDK-style directory layout in the
1780                           install tree [default=no]
1781
1782 Optional Packages:
1783   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1784   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1785   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1786   --with-target-subdir=SUBDIR
1787                           configure in a subdirectory
1788   --with-cross-host=HOST  configure with a cross compiler from HOST
1789   --with-newlib           configure with newlib
1790   --with-antlr-jar=file   Use ANTLR from the specified jar file
1791   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1792   --with-pic              try to use only PIC/non-PIC objects [default=use
1793                           both]
1794   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1795   --with-ecj-jar=FILE     use preinstalled ecj jar
1796   --with-java-home=DIRECTORY
1797                           value of java.home system property
1798   --with-win32-nlsapi=ansi or unicows or unicode
1799                           native MinGW libgcj Win32 OS API (default is ansi)
1800   --without-libffi        don't use libffi
1801   --with-ecos             enable runtime eCos target support
1802   --with-system-zlib      use installed libz
1803   --with-x                use the X Window System
1804   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1805   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1806   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1807   --with-system-libunwind use installed libunwind
1808   --with-python-dir       the location to install Python modules. This path
1809                           should NOT include the prefix.
1810   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1811   --with-arch-directory   the arch directory under jre/lib (defaults to
1812                           auto-detect)
1813   --with-os-directory     the os directory under include (defaults to
1814                           auto-detect)
1815   --with-origin-name      the JPackage origin name of this package (default is
1816                           gcj${gcc_suffix}
1817   --with-arch-suffix      the arch directory suffix (default is the empty
1818                           string
1819   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1820   --with-jvm-jar-dir      where to install jars (default is
1821                           ${prefix}/lib/jvm-exports)
1822
1823 Some influential environment variables:
1824   CC          C compiler command
1825   CFLAGS      C compiler flags
1826   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1827               nonstandard directory <lib dir>
1828   LIBS        libraries to pass to the linker, e.g. -l<library>
1829   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1830               you have headers in a nonstandard directory <include dir>
1831   CXX         C++ compiler command
1832   CXXFLAGS    C++ compiler flags
1833   CPP         C preprocessor
1834   CXXCPP      C++ preprocessor
1835   XMKMF       Path to xmkmf, Makefile generator for X Window System
1836
1837 Use these variables to override the choices made by `configure' or to help
1838 it to find libraries and programs with nonstandard names/locations.
1839
1840 Report bugs to the package provider.
1841 _ACEOF
1842 ac_status=$?
1843 fi
1844
1845 if test "$ac_init_help" = "recursive"; then
1846   # If there are subdirs, report their specific --help.
1847   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1848     test -d "$ac_dir" ||
1849       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1850       continue
1851     ac_builddir=.
1852
1853 case "$ac_dir" in
1854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1855 *)
1856   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1857   # A ".." for each directory in $ac_dir_suffix.
1858   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1859   case $ac_top_builddir_sub in
1860   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1861   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1862   esac ;;
1863 esac
1864 ac_abs_top_builddir=$ac_pwd
1865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1866 # for backward compatibility:
1867 ac_top_builddir=$ac_top_build_prefix
1868
1869 case $srcdir in
1870   .)  # We are building in place.
1871     ac_srcdir=.
1872     ac_top_srcdir=$ac_top_builddir_sub
1873     ac_abs_top_srcdir=$ac_pwd ;;
1874   [\\/]* | ?:[\\/]* )  # Absolute name.
1875     ac_srcdir=$srcdir$ac_dir_suffix;
1876     ac_top_srcdir=$srcdir
1877     ac_abs_top_srcdir=$srcdir ;;
1878   *) # Relative name.
1879     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1880     ac_top_srcdir=$ac_top_build_prefix$srcdir
1881     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1882 esac
1883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1884
1885     cd "$ac_dir" || { ac_status=$?; continue; }
1886     # Check for guested configure.
1887     if test -f "$ac_srcdir/configure.gnu"; then
1888       echo &&
1889       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1890     elif test -f "$ac_srcdir/configure"; then
1891       echo &&
1892       $SHELL "$ac_srcdir/configure" --help=recursive
1893     else
1894       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1895     fi || ac_status=$?
1896     cd "$ac_pwd" || { ac_status=$?; break; }
1897   done
1898 fi
1899
1900 test -n "$ac_init_help" && exit $ac_status
1901 if $ac_init_version; then
1902   cat <<\_ACEOF
1903 libjava configure version-unused
1904 generated by GNU Autoconf 2.64
1905
1906 Copyright (C) 2009 Free Software Foundation, Inc.
1907 This configure script is free software; the Free Software Foundation
1908 gives unlimited permission to copy, distribute and modify it.
1909 _ACEOF
1910   exit
1911 fi
1912
1913 ## ------------------------ ##
1914 ## Autoconf initialization. ##
1915 ## ------------------------ ##
1916
1917 # ac_fn_c_try_compile LINENO
1918 # --------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_c_try_compile ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   rm -f conftest.$ac_objext
1924   if { { ac_try="$ac_compile"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_compile") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && {
1940          test -z "$ac_c_werror_flag" ||
1941          test ! -s conftest.err
1942        } && test -s conftest.$ac_objext; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948         ac_retval=1
1949 fi
1950   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951   return $ac_retval
1952
1953 } # ac_fn_c_try_compile
1954
1955 # ac_fn_cxx_try_compile LINENO
1956 # ----------------------------
1957 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_compile ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   rm -f conftest.$ac_objext
1962   if { { ac_try="$ac_compile"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_compile") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } && {
1978          test -z "$ac_cxx_werror_flag" ||
1979          test ! -s conftest.err
1980        } && test -s conftest.$ac_objext; then :
1981   ac_retval=0
1982 else
1983   $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986         ac_retval=1
1987 fi
1988   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989   return $ac_retval
1990
1991 } # ac_fn_cxx_try_compile
1992
1993 # ac_fn_c_try_link LINENO
1994 # -----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_c_try_link ()
1997 {
1998   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999   rm -f conftest.$ac_objext conftest$ac_exeext
2000   if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003   *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007   (eval "$ac_link") 2>conftest.err
2008   ac_status=$?
2009   if test -s conftest.err; then
2010     grep -v '^ *+' conftest.err >conftest.er1
2011     cat conftest.er1 >&5
2012     mv -f conftest.er1 conftest.err
2013   fi
2014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015   test $ac_status = 0; } && {
2016          test -z "$ac_c_werror_flag" ||
2017          test ! -s conftest.err
2018        } && test -s conftest$ac_exeext && {
2019          test "$cross_compiling" = yes ||
2020          $as_test_x conftest$ac_exeext
2021        }; then :
2022   ac_retval=0
2023 else
2024   $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027         ac_retval=1
2028 fi
2029   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031   # interfere with the next link command; also delete a directory that is
2032   # left behind by Apple's compiler.  We do this before executing the actions.
2033   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035   return $ac_retval
2036
2037 } # ac_fn_c_try_link
2038
2039 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2040 # -------------------------------------------------------
2041 # Tests whether HEADER exists and can be compiled using the include files in
2042 # INCLUDES, setting the cache variable VAR accordingly.
2043 ac_fn_c_check_header_compile ()
2044 {
2045   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2049   $as_echo_n "(cached) " >&6
2050 else
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $4
2054 #include <$2>
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057   eval "$3=yes"
2058 else
2059   eval "$3=no"
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 eval ac_res=\$$3
2064                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067
2068 } # ac_fn_c_check_header_compile
2069
2070 # ac_fn_c_try_cpp LINENO
2071 # ----------------------
2072 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_c_try_cpp ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   if { { ac_try="$ac_cpp conftest.$ac_ext"
2077 case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2084   ac_status=$?
2085   if test -s conftest.err; then
2086     grep -v '^ *+' conftest.err >conftest.er1
2087     cat conftest.er1 >&5
2088     mv -f conftest.er1 conftest.err
2089   fi
2090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091   test $ac_status = 0; } >/dev/null && {
2092          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2093          test ! -s conftest.err
2094        }; then :
2095   ac_retval=0
2096 else
2097   $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100     ac_retval=1
2101 fi
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103   return $ac_retval
2104
2105 } # ac_fn_c_try_cpp
2106
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2111 ac_fn_c_try_run ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   if { { ac_try="$ac_link"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_link") 2>&5
2122   ac_status=$?
2123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125   { { case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131   (eval "$ac_try") 2>&5
2132   ac_status=$?
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; }; }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: program exited with status $ac_status" >&5
2138        $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141        ac_retval=$ac_status
2142 fi
2143   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145   return $ac_retval
2146
2147 } # ac_fn_c_try_run
2148
2149 # ac_fn_c_check_func LINENO FUNC VAR
2150 # ----------------------------------
2151 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2152 ac_fn_c_check_func ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   if test x$gcc_no_link = xyes; then
2161   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2162 fi
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2167 #define $2 innocuous_$2
2168
2169 /* System header to define __stub macros and hopefully few prototypes,
2170     which can conflict with char $2 (); below.
2171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2172     <limits.h> exists even on freestanding compilers.  */
2173
2174 #ifdef __STDC__
2175 # include <limits.h>
2176 #else
2177 # include <assert.h>
2178 #endif
2179
2180 #undef $2
2181
2182 /* Override any GCC internal prototype to avoid an error.
2183    Use char because int might match the return type of a GCC
2184    builtin and then its argument prototype would still apply.  */
2185 #ifdef __cplusplus
2186 extern "C"
2187 #endif
2188 char $2 ();
2189 /* The GNU C library defines this for functions which it implements
2190     to always fail with ENOSYS.  Some functions are actually named
2191     something starting with __ and the normal name is an alias.  */
2192 #if defined __stub_$2 || defined __stub___$2
2193 choke me
2194 #endif
2195
2196 int
2197 main ()
2198 {
2199 return $2 ();
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_link "$LINENO"; then :
2205   eval "$3=yes"
2206 else
2207   eval "$3=no"
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext \
2210     conftest$ac_exeext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$3
2213                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216
2217 } # ac_fn_c_check_func
2218
2219 # ac_fn_cxx_try_cpp LINENO
2220 # ------------------------
2221 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2222 ac_fn_cxx_try_cpp ()
2223 {
2224   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225   if { { ac_try="$ac_cpp conftest.$ac_ext"
2226 case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2233   ac_status=$?
2234   if test -s conftest.err; then
2235     grep -v '^ *+' conftest.err >conftest.er1
2236     cat conftest.er1 >&5
2237     mv -f conftest.er1 conftest.err
2238   fi
2239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240   test $ac_status = 0; } >/dev/null && {
2241          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2242          test ! -s conftest.err
2243        }; then :
2244   ac_retval=0
2245 else
2246   $as_echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249     ac_retval=1
2250 fi
2251   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252   return $ac_retval
2253
2254 } # ac_fn_cxx_try_cpp
2255
2256 # ac_fn_cxx_try_link LINENO
2257 # -------------------------
2258 # Try to link conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_link ()
2260 {
2261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262   rm -f conftest.$ac_objext conftest$ac_exeext
2263   if { { ac_try="$ac_link"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270   (eval "$ac_link") 2>conftest.err
2271   ac_status=$?
2272   if test -s conftest.err; then
2273     grep -v '^ *+' conftest.err >conftest.er1
2274     cat conftest.er1 >&5
2275     mv -f conftest.er1 conftest.err
2276   fi
2277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278   test $ac_status = 0; } && {
2279          test -z "$ac_cxx_werror_flag" ||
2280          test ! -s conftest.err
2281        } && test -s conftest$ac_exeext && {
2282          test "$cross_compiling" = yes ||
2283          $as_test_x conftest$ac_exeext
2284        }; then :
2285   ac_retval=0
2286 else
2287   $as_echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290         ac_retval=1
2291 fi
2292   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2293   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2294   # interfere with the next link command; also delete a directory that is
2295   # left behind by Apple's compiler.  We do this before executing the actions.
2296   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2297   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298   return $ac_retval
2299
2300 } # ac_fn_cxx_try_link
2301
2302 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2303 # -------------------------------------------------------
2304 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2305 # the include files in INCLUDES and setting the cache variable VAR
2306 # accordingly.
2307 ac_fn_c_check_header_mongrel ()
2308 {
2309   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314   $as_echo_n "(cached) " >&6
2315 fi
2316 eval ac_res=\$$3
2317                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 else
2320   # Is the header compilable?
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2322 $as_echo_n "checking $2 usability... " >&6; }
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 #include <$2>
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329   ac_header_compiler=yes
2330 else
2331   ac_header_compiler=no
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2335 $as_echo "$ac_header_compiler" >&6; }
2336
2337 # Is the header present?
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2339 $as_echo_n "checking $2 presence... " >&6; }
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h.  */
2342 #include <$2>
2343 _ACEOF
2344 if ac_fn_c_try_cpp "$LINENO"; then :
2345   ac_header_preproc=yes
2346 else
2347   ac_header_preproc=no
2348 fi
2349 rm -f conftest.err conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2351 $as_echo "$ac_header_preproc" >&6; }
2352
2353 # So?  What about this header?
2354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2355   yes:no: )
2356     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2357 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2360     ;;
2361   no:yes:* )
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2363 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2365 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2366     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2367 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2368     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2369 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2370     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2372     ;;
2373 esac
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375 $as_echo_n "checking for $2... " >&6; }
2376 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   eval "$3=\$ac_header_compiler"
2380 fi
2381 eval ac_res=\$$3
2382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 fi
2385   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386
2387 } # ac_fn_c_check_header_mongrel
2388
2389 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2390 # ----------------------------------------------------
2391 # Tries to find if the field MEMBER exists in type AGGR, after including
2392 # INCLUDES, setting cache variable VAR accordingly.
2393 ac_fn_c_check_member ()
2394 {
2395   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2397 $as_echo_n "checking for $2.$3... " >&6; }
2398 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h.  */
2403 $5
2404 int
2405 main ()
2406 {
2407 static $2 ac_aggr;
2408 if (ac_aggr.$3)
2409 return 0;
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_c_try_compile "$LINENO"; then :
2415   eval "$4=yes"
2416 else
2417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $5
2420 int
2421 main ()
2422 {
2423 static $2 ac_aggr;
2424 if (sizeof ac_aggr.$3)
2425 return 0;
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   eval "$4=yes"
2432 else
2433   eval "$4=no"
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 fi
2439 eval ac_res=\$$4
2440                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443
2444 } # ac_fn_c_check_member
2445
2446 # ac_fn_c_check_decl LINENO SYMBOL VAR
2447 # ------------------------------------
2448 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449 ac_fn_c_check_decl ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453 $as_echo_n "checking whether $2 is declared... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455   $as_echo_n "(cached) " >&6
2456 else
2457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h.  */
2459 $4
2460 int
2461 main ()
2462 {
2463 #ifndef $2
2464   (void) $2;
2465 #endif
2466
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_c_try_compile "$LINENO"; then :
2472   eval "$3=yes"
2473 else
2474   eval "$3=no"
2475 fi
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 eval ac_res=\$$3
2479                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482
2483 } # ac_fn_c_check_decl
2484
2485 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2486 # --------------------------------------------
2487 # Tries to find the compile-time value of EXPR in a program that includes
2488 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2489 # computed
2490 ac_fn_c_compute_int ()
2491 {
2492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493   if test "$cross_compiling" = yes; then
2494     # Depending upon the size, compute the lo and hi bounds.
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h.  */
2497 $4
2498 int
2499 main ()
2500 {
2501 static int test_array [1 - 2 * !(($2) >= 0)];
2502 test_array [0] = 0
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_compile "$LINENO"; then :
2509   ac_lo=0 ac_mid=0
2510   while :; do
2511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h.  */
2513 $4
2514 int
2515 main ()
2516 {
2517 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2518 test_array [0] = 0
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   ac_hi=$ac_mid; break
2526 else
2527   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2528                         if test $ac_lo -le $ac_mid; then
2529                           ac_lo= ac_hi=
2530                           break
2531                         fi
2532                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535   done
2536 else
2537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 int
2541 main ()
2542 {
2543 static int test_array [1 - 2 * !(($2) < 0)];
2544 test_array [0] = 0
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 if ac_fn_c_try_compile "$LINENO"; then :
2551   ac_hi=-1 ac_mid=-1
2552   while :; do
2553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 $4
2556 int
2557 main ()
2558 {
2559 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2560 test_array [0] = 0
2561
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567   ac_lo=$ac_mid; break
2568 else
2569   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2570                         if test $ac_mid -le $ac_hi; then
2571                           ac_lo= ac_hi=
2572                           break
2573                         fi
2574                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577   done
2578 else
2579   ac_lo= ac_hi=
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 # Binary search between lo and hi bounds.
2585 while test "x$ac_lo" != "x$ac_hi"; do
2586   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589 $4
2590 int
2591 main ()
2592 {
2593 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2594 test_array [0] = 0
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601   ac_hi=$ac_mid
2602 else
2603   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2604 fi
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 done
2607 case $ac_lo in #((
2608 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2609 '') ac_retval=1 ;;
2610 esac
2611   else
2612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 $4
2615 static long int longval () { return $2; }
2616 static unsigned long int ulongval () { return $2; }
2617 #include <stdio.h>
2618 #include <stdlib.h>
2619 int
2620 main ()
2621 {
2622
2623   FILE *f = fopen ("conftest.val", "w");
2624   if (! f)
2625     return 1;
2626   if (($2) < 0)
2627     {
2628       long int i = longval ();
2629       if (i != ($2))
2630         return 1;
2631       fprintf (f, "%ld", i);
2632     }
2633   else
2634     {
2635       unsigned long int i = ulongval ();
2636       if (i != ($2))
2637         return 1;
2638       fprintf (f, "%lu", i);
2639     }
2640   /* Do not output a trailing newline, as this causes \r\n confusion
2641      on some platforms.  */
2642   return ferror (f) || fclose (f) != 0;
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_c_try_run "$LINENO"; then :
2649   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2650 else
2651   ac_retval=1
2652 fi
2653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2654   conftest.$ac_objext conftest.beam conftest.$ac_ext
2655 rm -f conftest.val
2656
2657   fi
2658   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659   return $ac_retval
2660
2661 } # ac_fn_c_compute_int
2662
2663 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2664 # -------------------------------------------
2665 # Tests whether TYPE exists after having included INCLUDES, setting cache
2666 # variable VAR accordingly.
2667 ac_fn_c_check_type ()
2668 {
2669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671 $as_echo_n "checking for $2... " >&6; }
2672 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   eval "$3=no"
2676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h.  */
2678 $4
2679 int
2680 main ()
2681 {
2682 if (sizeof ($2))
2683          return 0;
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h.  */
2691 $4
2692 int
2693 main ()
2694 {
2695 if (sizeof (($2)))
2696             return 0;
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 if ac_fn_c_try_compile "$LINENO"; then :
2702
2703 else
2704   eval "$3=yes"
2705 fi
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 fi
2710 eval ac_res=\$$3
2711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2712 $as_echo "$ac_res" >&6; }
2713   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2714
2715 } # ac_fn_c_check_type
2716 cat >config.log <<_ACEOF
2717 This file contains any messages produced by compilers while
2718 running configure, to aid debugging if configure makes a mistake.
2719
2720 It was created by libjava $as_me version-unused, which was
2721 generated by GNU Autoconf 2.64.  Invocation command line was
2722
2723   $ $0 $@
2724
2725 _ACEOF
2726 exec 5>>config.log
2727 {
2728 cat <<_ASUNAME
2729 ## --------- ##
2730 ## Platform. ##
2731 ## --------- ##
2732
2733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2738
2739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2740 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2741
2742 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2743 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2745 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2746 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2747 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2748 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2749
2750 _ASUNAME
2751
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     $as_echo "PATH: $as_dir"
2758   done
2759 IFS=$as_save_IFS
2760
2761 } >&5
2762
2763 cat >&5 <<_ACEOF
2764
2765
2766 ## ----------- ##
2767 ## Core tests. ##
2768 ## ----------- ##
2769
2770 _ACEOF
2771
2772
2773 # Keep a trace of the command line.
2774 # Strip out --no-create and --no-recursion so they do not pile up.
2775 # Strip out --silent because we don't want to record it for future runs.
2776 # Also quote any args containing shell meta-characters.
2777 # Make two passes to allow for proper duplicate-argument suppression.
2778 ac_configure_args=
2779 ac_configure_args0=
2780 ac_configure_args1=
2781 ac_must_keep_next=false
2782 for ac_pass in 1 2
2783 do
2784   for ac_arg
2785   do
2786     case $ac_arg in
2787     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2788     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2789     | -silent | --silent | --silen | --sile | --sil)
2790       continue ;;
2791     *\'*)
2792       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2793     esac
2794     case $ac_pass in
2795     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2796     2)
2797       as_fn_append ac_configure_args1 " '$ac_arg'"
2798       if test $ac_must_keep_next = true; then
2799         ac_must_keep_next=false # Got value, back to normal.
2800       else
2801         case $ac_arg in
2802           *=* | --config-cache | -C | -disable-* | --disable-* \
2803           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2804           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2805           | -with-* | --with-* | -without-* | --without-* | --x)
2806             case "$ac_configure_args0 " in
2807               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2808             esac
2809             ;;
2810           -* ) ac_must_keep_next=true ;;
2811         esac
2812       fi
2813       as_fn_append ac_configure_args " '$ac_arg'"
2814       ;;
2815     esac
2816   done
2817 done
2818 { ac_configure_args0=; unset ac_configure_args0;}
2819 { ac_configure_args1=; unset ac_configure_args1;}
2820
2821 # When interrupted or exit'd, cleanup temporary files, and complete
2822 # config.log.  We remove comments because anyway the quotes in there
2823 # would cause problems or look ugly.
2824 # WARNING: Use '\'' to represent an apostrophe within the trap.
2825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2826 trap 'exit_status=$?
2827   # Save into config.log some information that might help in debugging.
2828   {
2829     echo
2830
2831     cat <<\_ASBOX
2832 ## ---------------- ##
2833 ## Cache variables. ##
2834 ## ---------------- ##
2835 _ASBOX
2836     echo
2837     # The following way of writing the cache mishandles newlines in values,
2838 (
2839   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2840     eval ac_val=\$$ac_var
2841     case $ac_val in #(
2842     *${as_nl}*)
2843       case $ac_var in #(
2844       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2846       esac
2847       case $ac_var in #(
2848       _ | IFS | as_nl) ;; #(
2849       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2850       *) { eval $ac_var=; unset $ac_var;} ;;
2851       esac ;;
2852     esac
2853   done
2854   (set) 2>&1 |
2855     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2856     *${as_nl}ac_space=\ *)
2857       sed -n \
2858         "s/'\''/'\''\\\\'\'''\''/g;
2859           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2860       ;; #(
2861     *)
2862       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2863       ;;
2864     esac |
2865     sort
2866 )
2867     echo
2868
2869     cat <<\_ASBOX
2870 ## ----------------- ##
2871 ## Output variables. ##
2872 ## ----------------- ##
2873 _ASBOX
2874     echo
2875     for ac_var in $ac_subst_vars
2876     do
2877       eval ac_val=\$$ac_var
2878       case $ac_val in
2879       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2880       esac
2881       $as_echo "$ac_var='\''$ac_val'\''"
2882     done | sort
2883     echo
2884
2885     if test -n "$ac_subst_files"; then
2886       cat <<\_ASBOX
2887 ## ------------------- ##
2888 ## File substitutions. ##
2889 ## ------------------- ##
2890 _ASBOX
2891       echo
2892       for ac_var in $ac_subst_files
2893       do
2894         eval ac_val=\$$ac_var
2895         case $ac_val in
2896         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2897         esac
2898         $as_echo "$ac_var='\''$ac_val'\''"
2899       done | sort
2900       echo
2901     fi
2902
2903     if test -s confdefs.h; then
2904       cat <<\_ASBOX
2905 ## ----------- ##
2906 ## confdefs.h. ##
2907 ## ----------- ##
2908 _ASBOX
2909       echo
2910       cat confdefs.h
2911       echo
2912     fi
2913     test "$ac_signal" != 0 &&
2914       $as_echo "$as_me: caught signal $ac_signal"
2915     $as_echo "$as_me: exit $exit_status"
2916   } >&5
2917   rm -f core *.core core.conftest.* &&
2918     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2919     exit $exit_status
2920 ' 0
2921 for ac_signal in 1 2 13 15; do
2922   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2923 done
2924 ac_signal=0
2925
2926 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2927 rm -f -r conftest* confdefs.h
2928
2929 $as_echo "/* confdefs.h */" > confdefs.h
2930
2931 # Predefined preprocessor variables.
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_NAME "$PACKAGE_NAME"
2935 _ACEOF
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2939 _ACEOF
2940
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2943 _ACEOF
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_STRING "$PACKAGE_STRING"
2947 _ACEOF
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2951 _ACEOF
2952
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_URL "$PACKAGE_URL"
2955 _ACEOF
2956
2957
2958 # Let the site file select an alternate cache file if it wants to.
2959 # Prefer an explicitly selected file to automatically selected ones.
2960 ac_site_file1=NONE
2961 ac_site_file2=NONE
2962 if test -n "$CONFIG_SITE"; then
2963   ac_site_file1=$CONFIG_SITE
2964 elif test "x$prefix" != xNONE; then
2965   ac_site_file1=$prefix/share/config.site
2966   ac_site_file2=$prefix/etc/config.site
2967 else
2968   ac_site_file1=$ac_default_prefix/share/config.site
2969   ac_site_file2=$ac_default_prefix/etc/config.site
2970 fi
2971 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2972 do
2973   test "x$ac_site_file" = xNONE && continue
2974   if test -r "$ac_site_file"; then
2975     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2976 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2977     sed 's/^/| /' "$ac_site_file" >&5
2978     . "$ac_site_file"
2979   fi
2980 done
2981
2982 if test -r "$cache_file"; then
2983   # Some versions of bash will fail to source /dev/null (special
2984   # files actually), so we avoid doing that.
2985   if test -f "$cache_file"; then
2986     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2987 $as_echo "$as_me: loading cache $cache_file" >&6;}
2988     case $cache_file in
2989       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2990       *)                      . "./$cache_file";;
2991     esac
2992   fi
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2995 $as_echo "$as_me: creating cache $cache_file" >&6;}
2996   >$cache_file
2997 fi
2998
2999 # Check that the precious variables saved in the cache have kept the same
3000 # value.
3001 ac_cache_corrupted=false
3002 for ac_var in $ac_precious_vars; do
3003   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3004   eval ac_new_set=\$ac_env_${ac_var}_set
3005   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3006   eval ac_new_val=\$ac_env_${ac_var}_value
3007   case $ac_old_set,$ac_new_set in
3008     set,)
3009       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3010 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3011       ac_cache_corrupted=: ;;
3012     ,set)
3013       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3014 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3015       ac_cache_corrupted=: ;;
3016     ,);;
3017     *)
3018       if test "x$ac_old_val" != "x$ac_new_val"; then
3019         # differences in whitespace do not lead to failure.
3020         ac_old_val_w=`echo x $ac_old_val`
3021         ac_new_val_w=`echo x $ac_new_val`
3022         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3023           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3024 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3025           ac_cache_corrupted=:
3026         else
3027           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3028 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3029           eval $ac_var=\$ac_old_val
3030         fi
3031         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3032 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3033         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3034 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3035       fi;;
3036   esac
3037   # Pass precious variables to config.status.
3038   if test "$ac_new_set" = set; then
3039     case $ac_new_val in
3040     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3041     *) ac_arg=$ac_var=$ac_new_val ;;
3042     esac
3043     case " $ac_configure_args " in
3044       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3045       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3046     esac
3047   fi
3048 done
3049 if $ac_cache_corrupted; then
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3053 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3054   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3055 fi
3056 ## -------------------- ##
3057 ## Main body of script. ##
3058 ## -------------------- ##
3059
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065
3066
3067
3068
3069
3070
3071
3072
3073 ac_aux_dir=
3074 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3075   for ac_t in install-sh install.sh shtool; do
3076     if test -f "$ac_dir/$ac_t"; then
3077       ac_aux_dir=$ac_dir
3078       ac_install_sh="$ac_aux_dir/$ac_t -c"
3079       break 2
3080     fi
3081   done
3082 done
3083 if test -z "$ac_aux_dir"; then
3084   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3085 fi
3086
3087 # These three variables are undocumented and unsupported,
3088 # and are intended to be withdrawn in a future Autoconf release.
3089 # They can cause serious problems if a builder's source tree is in a directory
3090 # whose full name contains unusual characters.
3091 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3092 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3093 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3094
3095
3096 # Make sure we can run config.sub.
3097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3098   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3099
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3101 $as_echo_n "checking build system type... " >&6; }
3102 if test "${ac_cv_build+set}" = set; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   ac_build_alias=$build_alias
3106 test "x$ac_build_alias" = x &&
3107   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3108 test "x$ac_build_alias" = x &&
3109   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3110 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3111   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3112
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3115 $as_echo "$ac_cv_build" >&6; }
3116 case $ac_cv_build in
3117 *-*-*) ;;
3118 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3119 esac
3120 build=$ac_cv_build
3121 ac_save_IFS=$IFS; IFS='-'
3122 set x $ac_cv_build
3123 shift
3124 build_cpu=$1
3125 build_vendor=$2
3126 shift; shift
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3129 build_os=$*
3130 IFS=$ac_save_IFS
3131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3132
3133
3134  case ${build_alias} in
3135   "") build_noncanonical=${build} ;;
3136   *) build_noncanonical=${build_alias} ;;
3137 esac
3138
3139  case ${host_alias} in
3140   "") host_noncanonical=${build_noncanonical} ;;
3141   *) host_noncanonical=${host_alias} ;;
3142 esac
3143
3144  case ${target_alias} in
3145   "") target_noncanonical=${host_noncanonical} ;;
3146   *) target_noncanonical=${target_alias} ;;
3147 esac
3148
3149
3150 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3151 # have matching libraries, they should use host libraries: Makefile.tpl
3152 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3153 # However, they still use the build modules, because the corresponding
3154 # host modules (e.g. bison) are only built for the host when bootstrap
3155 # finishes. So:
3156 # - build_subdir is where we find build modules, and never changes.
3157 # - build_libsubdir is where we find build libraries, and can be overridden.
3158
3159 # Prefix 'build-' so this never conflicts with target_subdir.
3160 build_subdir="build-${build_noncanonical}"
3161
3162 # Check whether --with-build-libsubdir was given.
3163 if test "${with_build_libsubdir+set}" = set; then :
3164   withval=$with_build_libsubdir; build_libsubdir="$withval"
3165 else
3166   build_libsubdir="$build_subdir"
3167 fi
3168
3169 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3170 if ( test $srcdir = . && test -d gcc ) \
3171    || test -d $srcdir/../host-${host_noncanonical}; then
3172   host_subdir="host-${host_noncanonical}"
3173 else
3174   host_subdir=.
3175 fi
3176 # No prefix.
3177 target_subdir=${target_noncanonical}
3178
3179
3180 # We use these options to decide which functions to include.
3181
3182 # Check whether --with-target-subdir was given.
3183 if test "${with_target_subdir+set}" = set; then :
3184   withval=$with_target_subdir;
3185 fi
3186
3187
3188 # We may get other options which we don't document:
3189 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3190
3191 # Find the rest of the source tree framework.
3192 # Default to --enable-multilib
3193 # Check whether --enable-multilib was given.
3194 if test "${enable_multilib+set}" = set; then :
3195   enableval=$enable_multilib; case "$enableval" in
3196   yes) multilib=yes ;;
3197   no)  multilib=no ;;
3198   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3199  esac
3200 else
3201   multilib=yes
3202 fi
3203
3204
3205 # We may get other options which we leave undocumented:
3206 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3207 # See config-ml.in if you want the gory details.
3208
3209 if test "$srcdir" = "."; then
3210   if test "$with_target_subdir" != "."; then
3211     multi_basedir="$srcdir/$with_multisrctop../.."
3212   else
3213     multi_basedir="$srcdir/$with_multisrctop.."
3214   fi
3215 else
3216   multi_basedir="$srcdir/.."
3217 fi
3218
3219
3220 # Even if the default multilib is not a cross compilation,
3221 # it may be that some of the other multilibs are.
3222 if test $cross_compiling = no && test $multilib = yes \
3223    && test "x${with_multisubdir}" != x ; then
3224    cross_compiling=maybe
3225 fi
3226
3227 ac_config_commands="$ac_config_commands default-1"
3228
3229
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3231 $as_echo_n "checking host system type... " >&6; }
3232 if test "${ac_cv_host+set}" = set; then :
3233   $as_echo_n "(cached) " >&6
3234 else
3235   if test "x$host_alias" = x; then
3236   ac_cv_host=$ac_cv_build
3237 else
3238   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3239     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3240 fi
3241
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3244 $as_echo "$ac_cv_host" >&6; }
3245 case $ac_cv_host in
3246 *-*-*) ;;
3247 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3248 esac
3249 host=$ac_cv_host
3250 ac_save_IFS=$IFS; IFS='-'
3251 set x $ac_cv_host
3252 shift
3253 host_cpu=$1
3254 host_vendor=$2
3255 shift; shift
3256 # Remember, the first character of IFS is used to create $*,
3257 # except with old shells:
3258 host_os=$*
3259 IFS=$ac_save_IFS
3260 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3261
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3264 $as_echo_n "checking target system type... " >&6; }
3265 if test "${ac_cv_target+set}" = set; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   if test "x$target_alias" = x; then
3269   ac_cv_target=$ac_cv_host
3270 else
3271   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3272     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3273 fi
3274
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3277 $as_echo "$ac_cv_target" >&6; }
3278 case $ac_cv_target in
3279 *-*-*) ;;
3280 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3281 esac
3282 target=$ac_cv_target
3283 ac_save_IFS=$IFS; IFS='-'
3284 set x $ac_cv_target
3285 shift
3286 target_cpu=$1
3287 target_vendor=$2
3288 shift; shift
3289 # Remember, the first character of IFS is used to create $*,
3290 # except with old shells:
3291 target_os=$*
3292 IFS=$ac_save_IFS
3293 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3294
3295
3296 # The aliases save the names the user supplied, while $host etc.
3297 # will get canonicalized.
3298 test -n "$target_alias" &&
3299   test "$program_prefix$program_suffix$program_transform_name" = \
3300     NONENONEs,x,x, &&
3301   program_prefix=${target_alias}-
3302
3303  case ${build_alias} in
3304   "") build_noncanonical=${build} ;;
3305   *) build_noncanonical=${build_alias} ;;
3306 esac
3307
3308  case ${target_alias} in
3309   "") target_noncanonical=${host_noncanonical} ;;
3310   *) target_noncanonical=${target_alias} ;;
3311 esac
3312
3313
3314
3315
3316 # This works around the fact that libtool configuration may change LD
3317 # for this particular configuration, but some shells, instead of
3318 # keeping the changes in LD private, export them just because LD is
3319 # exported.
3320 ORIGINAL_LD_FOR_MULTILIBS=$LD
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3323 $as_echo_n "checking whether ln -s works... " >&6; }
3324 LN_S=$as_ln_s
3325 if test "$LN_S" = "ln -s"; then
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328 else
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3330 $as_echo "no, using $LN_S" >&6; }
3331 fi
3332
3333
3334 # This works around an automake problem.
3335 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3336
3337
3338
3339 # Check whether --with-cross-host was given.
3340 if test "${with_cross_host+set}" = set; then :
3341   withval=$with_cross_host;
3342 fi
3343
3344
3345
3346 # Check whether --with-newlib was given.
3347 if test "${with_newlib+set}" = set; then :
3348   withval=$with_newlib;
3349 fi
3350
3351
3352 # Check whether --enable-version-specific-runtime-libs was given.
3353 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3354   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3355       yes) version_specific_libs=yes ;;
3356       no)  version_specific_libs=no ;;
3357       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3358      esac
3359 else
3360   version_specific_libs=no
3361
3362 fi
3363
3364
3365 # Check whether --enable-plugin was given.
3366 if test "${enable_plugin+set}" = set; then :
3367   enableval=$enable_plugin; case "$enableval" in
3368       yes) plugin_enabled=yes ;;
3369       no)  plugin_enabled=no ;;
3370       *)   as_fn_error "Unknown argument to enable/disable plugin" "$LINENO" 5;;
3371      esac
3372 else
3373   plugin_enabled=no
3374
3375 fi
3376
3377
3378 # Check whether --enable-gconf-peer was given.
3379 if test "${enable_gconf_peer+set}" = set; then :
3380   enableval=$enable_gconf_peer; case "$enableval" in
3381       yes) gconf_enabled=yes ;;
3382       no)  gconf_enabled=no ;;
3383       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3384      esac
3385 else
3386   gconf_enabled=no
3387
3388 fi
3389
3390
3391
3392 # Check whether --with-antlr-jar was given.
3393 if test "${with_antlr_jar+set}" = set; then :
3394   withval=$with_antlr_jar;
3395              ANTLR_JAR=$withval
3396
3397 else
3398
3399              ANTLR_JAR=
3400
3401 fi
3402
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3405 $as_echo_n "checking for antlr.jar... " >&6; }
3406 if test "x$ANTLR_JAR" = x; then
3407     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3408         /usr/share/antlr/lib /usr/share/java /usr/lib;
3409     do
3410         if test -f "$antlr_lib_home/antlr.jar"; then
3411             # FIXME: version check for antlr needed without using a VM
3412             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3413             break
3414         fi
3415     done
3416     if test "x$ANTLR_JAR" = x; then
3417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3418 $as_echo "not found" >&6; }
3419     else
3420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3421 $as_echo "$ANTLR_JAR" >&6; }
3422     fi
3423 else
3424     if test -f "${ANTLR_JAR}"; then
3425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3426 $as_echo "$ANTLR_JAR" >&6; }
3427     else
3428         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3429     fi
3430 fi
3431
3432
3433 # Check whether --enable-gjdoc was given.
3434 if test "${enable_gjdoc+set}" = set; then :
3435   enableval=$enable_gjdoc; case "${enableval}" in
3436                 yes) BUILD_GJDOC=yes ;;
3437                 no) BUILD_GJDOC=no ;;
3438                 *) BUILD_GJDOC=yes ;;
3439               esac
3440 else
3441   BUILD_GJDOC=maybe
3442 fi
3443
3444
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3446 $as_echo_n "checking whether to build gjdoc... " >&6; }
3447 if test "x$BUILD_GJDOC" = xmaybe; then
3448     if test -f "${ANTLR_JAR}"; then
3449         BUILD_GJDOC=yes
3450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 $as_echo "yes" >&6; }
3452     else
3453         BUILD_GJDOC=no
3454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3455 $as_echo "no, antlr.jar not found" >&6; }
3456     fi
3457 else
3458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3459 $as_echo "$BUILD_GJDOC" >&6; }
3460 fi
3461  if test "x${BUILD_GJDOC}" = xyes; then
3462   CREATE_GJDOC_TRUE=
3463   CREATE_GJDOC_FALSE='#'
3464 else
3465   CREATE_GJDOC_TRUE='#'
3466   CREATE_GJDOC_FALSE=
3467 fi
3468
3469
3470 # Check whether --enable-java-maintainer-mode was given.
3471 if test "${enable_java_maintainer_mode+set}" = set; then :
3472   enableval=$enable_java_maintainer_mode;
3473 fi
3474
3475  if test "$enable_java_maintainer_mode" = yes; then
3476   JAVA_MAINTAINER_MODE_TRUE=
3477   JAVA_MAINTAINER_MODE_FALSE='#'
3478 else
3479   JAVA_MAINTAINER_MODE_TRUE='#'
3480   JAVA_MAINTAINER_MODE_FALSE=
3481 fi
3482
3483
3484 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3485
3486
3487 # (1) We use an abnormal CXX (without library references), so we
3488 # must cache it under a different name.
3489 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3490 # the non-multilib-adjusted value will be used in multilibs.
3491 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3492 # (4) As another side effect, automake doesn't automatically include them
3493 # in Makefile.in.
3494 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3495 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3496 # used in later tests.  This may not be necessary in libjava; I don't know.
3497
3498
3499 save_CXXFLAGS="$CXXFLAGS"
3500 CXXFLAGS="$CXXFLAGS -fno-builtin"
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 if test -n "$ac_tool_prefix"; then
3507   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$CC"; then
3515   ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522     for ac_exec_ext in '' $ac_executable_extensions; do
3523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529   done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544 fi
3545 if test -z "$ac_cv_prog_CC"; then
3546   ac_ct_CC=$CC
3547   # Extract the first word of "gcc", so it can be a program name with args.
3548 set dummy gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   if test -n "$ac_ct_CC"; then
3555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564     ac_cv_prog_ac_ct_CC="gcc"
3565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569   done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583   if test "x$ac_ct_CC" = x; then
3584     CC=""
3585   else
3586     case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3591 esac
3592     CC=$ac_ct_CC
3593   fi
3594 else
3595   CC="$ac_cv_prog_CC"
3596 fi
3597
3598 if test -z "$CC"; then
3599           if test -n "$ac_tool_prefix"; then
3600     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}cc; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_CC+set}" = set; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   if test -n "$CC"; then
3608   ac_cv_prog_CC="$CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617     ac_cv_prog_CC="${ac_tool_prefix}cc"
3618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622   done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 fi
3635
3636
3637   fi
3638 fi
3639 if test -z "$CC"; then
3640   # Extract the first word of "cc", so it can be a program name with args.
3641 set dummy cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_prog_CC+set}" = set; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   if test -n "$CC"; then
3648   ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650   ac_prog_rejected=no
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654   IFS=$as_save_IFS
3655   test -z "$as_dir" && as_dir=.
3656     for ac_exec_ext in '' $ac_executable_extensions; do
3657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3659        ac_prog_rejected=yes
3660        continue
3661      fi
3662     ac_cv_prog_CC="cc"
3663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664     break 2
3665   fi
3666 done
3667   done
3668 IFS=$as_save_IFS
3669
3670 if test $ac_prog_rejected = yes; then
3671   # We found a bogon in the path, so make sure we never use it.
3672   set dummy $ac_cv_prog_CC
3673   shift
3674   if test $# != 0; then
3675     # We chose a different compiler from the bogus one.
3676     # However, it has the same basename, so the bogon will be chosen
3677     # first if we set CC to just the basename; use the full file name.
3678     shift
3679     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3680   fi
3681 fi
3682 fi
3683 fi
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3688 else
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 fi
3692
3693
3694 fi
3695 if test -z "$CC"; then
3696   if test -n "$ac_tool_prefix"; then
3697   for ac_prog in cl.exe
3698   do
3699     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if test "${ac_cv_prog_CC+set}" = set; then :
3704   $as_echo_n "(cached) " >&6
3705 else
3706   if test -n "$CC"; then
3707   ac_cv_prog_CC="$CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721   done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3730 else
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735
3736     test -n "$CC" && break
3737   done
3738 fi
3739 if test -z "$CC"; then
3740   ac_ct_CC=$CC
3741   for ac_prog in cl.exe
3742 do
3743   # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$ac_ct_CC"; then
3751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760     ac_cv_prog_ac_ct_CC="$ac_prog"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780   test -n "$ac_ct_CC" && break
3781 done
3782
3783   if test "x$ac_ct_CC" = x; then
3784     CC=""
3785   else
3786     case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792     CC=$ac_ct_CC
3793   fi
3794 fi
3795
3796 fi
3797
3798
3799 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "no acceptable C compiler found in \$PATH
3802 See \`config.log' for more details." "$LINENO" 5; }
3803
3804 # Provide some information about the compiler.
3805 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3806 set X $ac_compile
3807 ac_compiler=$2
3808 for ac_option in --version -v -V -qversion; do
3809   { { ac_try="$ac_compiler $ac_option >&5"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817   ac_status=$?
3818   if test -s conftest.err; then
3819     sed '10a\
3820 ... rest of stderr output deleted ...
3821          10q' conftest.err >conftest.er1
3822     cat conftest.er1 >&5
3823     rm -f conftest.er1 conftest.err
3824   fi
3825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826   test $ac_status = 0; }
3827 done
3828
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 # FIXME: Cleanup?
3841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3842   (eval $ac_link) 2>&5
3843   ac_status=$?
3844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845   test $ac_status = 0; }; then :
3846   gcc_no_link=no
3847 else
3848   gcc_no_link=yes
3849 fi
3850 if test x$gcc_no_link = xyes; then
3851   # Setting cross_compile will disable run tests; it will
3852   # also disable AC_CHECK_FILE but that's generally
3853   # correct if we can't link.
3854   cross_compiling=yes
3855   EXEEXT=
3856 else
3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3882 do
3883   case $ac_file in
3884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886   esac
3887 done
3888 rm -f $ac_rmfiles
3889
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897   (eval "$ac_link_default") 2>&5
3898   ac_status=$?
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; }; then :
3901   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3907 do
3908   test -f "$ac_file" || continue
3909   case $ac_file in
3910     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911         ;;
3912     [ab].out )
3913         # We found the default executable, but exeext='' is most
3914         # certainly right.
3915         break;;
3916     *.* )
3917         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918         then :; else
3919            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920         fi
3921         # We set ac_cv_exeext here because the later test for it is not
3922         # safe: cross compilers may not add the suffix if given an `-o'
3923         # argument, so we may need to know it at that point already.
3924         # Even if this section looks crufty: it has the advantage of
3925         # actually working.
3926         break;;
3927     * )
3928         break;;
3929   esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933 else
3934   ac_file=''
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
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_set_status 77
3945 as_fn_error "C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3947 fi
3948 ac_exeext=$ac_cv_exeext
3949
3950 # Check that the compiler produces executables we can run.  If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956   if { ac_try='./$ac_file'
3957   { { case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963   (eval "$ac_try") 2>&5
3964   ac_status=$?
3965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966   test $ac_status = 0; }; }; then
3967     cross_compiling=no
3968   else
3969     if test "$cross_compiling" = maybe; then
3970         cross_compiling=yes
3971     else
3972         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3977     fi
3978   fi
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3982
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run.  If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001   (eval "$ac_link") 2>&5
4002   ac_status=$?
4003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }; then :
4005   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4008 # `rm'.
4009 for ac_file in conftest.exe conftest conftest.*; do
4010   test -f "$ac_file" || continue
4011   case $ac_file in
4012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014           break;;
4015     * ) break;;
4016   esac
4017 done
4018 else
4019   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4023 fi
4024 rm -f conftest$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4027
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4030 ac_exeext=$EXEEXT
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4033 $as_echo_n "checking for suffix of object files... " >&6; }
4034 if test "${ac_cv_objext+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039
4040 int
4041 main ()
4042 {
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 rm -f conftest.o conftest.obj
4049 if { { ac_try="$ac_compile"
4050 case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056   (eval "$ac_compile") 2>&5
4057   ac_status=$?
4058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059   test $ac_status = 0; }; then :
4060   for ac_file in conftest.o conftest.obj conftest.*; do
4061   test -f "$ac_file" || continue;
4062   case $ac_file in
4063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4064     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4065        break;;
4066   esac
4067 done
4068 else
4069   $as_echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error "cannot compute suffix of object files: cannot compile
4075 See \`config.log' for more details." "$LINENO" 5; }
4076 fi
4077 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4080 $as_echo "$ac_cv_objext" >&6; }
4081 OBJEXT=$ac_cv_objext
4082 ac_objext=$OBJEXT
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4085 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094 #ifndef __GNUC__
4095        choke me
4096 #endif
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103   ac_compiler_gnu=yes
4104 else
4105   ac_compiler_gnu=no
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4113 if test $ac_compiler_gnu = yes; then
4114   GCC=yes
4115 else
4116   GCC=
4117 fi
4118 ac_test_CFLAGS=${CFLAGS+set}
4119 ac_save_CFLAGS=$CFLAGS
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4122 if test "${ac_cv_prog_cc_g+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   ac_save_c_werror_flag=$ac_c_werror_flag
4126    ac_c_werror_flag=yes
4127    ac_cv_prog_cc_g=no
4128    CFLAGS="-g"
4129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h.  */
4131
4132 int
4133 main ()
4134 {
4135
4136   ;
4137   return 0;
4138 }
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141   ac_cv_prog_cc_g=yes
4142 else
4143   CFLAGS=""
4144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156
4157 else
4158   ac_c_werror_flag=$ac_save_c_werror_flag
4159          CFLAGS="-g"
4160          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h.  */
4162
4163 int
4164 main ()
4165 {
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172   ac_cv_prog_cc_g=yes
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179    ac_c_werror_flag=$ac_save_c_werror_flag
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4182 $as_echo "$ac_cv_prog_cc_g" >&6; }
4183 if test "$ac_test_CFLAGS" = set; then
4184   CFLAGS=$ac_save_CFLAGS
4185 elif test $ac_cv_prog_cc_g = yes; then
4186   if test "$GCC" = yes; then
4187     CFLAGS="-g -O2"
4188   else
4189     CFLAGS="-g"
4190   fi
4191 else
4192   if test "$GCC" = yes; then
4193     CFLAGS="-O2"
4194   else
4195     CFLAGS=
4196   fi
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4200 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   ac_cv_prog_cc_c89=no
4204 ac_save_CC=$CC
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h.  */
4207 #include <stdarg.h>
4208 #include <stdio.h>
4209 #include <sys/types.h>
4210 #include <sys/stat.h>
4211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4212 struct buf { int x; };
4213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4214 static char *e (p, i)
4215      char **p;
4216      int i;
4217 {
4218   return p[i];
4219 }
4220 static char *f (char * (*g) (char **, int), char **p, ...)
4221 {
4222   char *s;
4223   va_list v;
4224   va_start (v,p);
4225   s = g (p, va_arg (v,int));
4226   va_end (v);
4227   return s;
4228 }
4229
4230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4231    function prototypes and stuff, but not '\xHH' hex character constants.
4232    These don't provoke an error unfortunately, instead are silently treated
4233    as 'x'.  The following induces an error, until -std is added to get
4234    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4235    array size at least.  It's necessary to write '\x00'==0 to get something
4236    that's true only with -std.  */
4237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238
4239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4240    inside strings and character constants.  */
4241 #define FOO(x) 'x'
4242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243
4244 int test (int i, double x);
4245 struct s1 {int (*f) (int a);};
4246 struct s2 {int (*f) (double a);};
4247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248 int argc;
4249 char **argv;
4250 int
4251 main ()
4252 {
4253 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4259         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 do
4261   CC="$ac_save_CC $ac_arg"
4262   if ac_fn_c_try_compile "$LINENO"; then :
4263   ac_cv_prog_cc_c89=$ac_arg
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext
4266   test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 done
4268 rm -f conftest.$ac_ext
4269 CC=$ac_save_CC
4270
4271 fi
4272 # AC_CACHE_VAL
4273 case "x$ac_cv_prog_cc_c89" in
4274   x)
4275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4276 $as_echo "none needed" >&6; } ;;
4277   xno)
4278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279 $as_echo "unsupported" >&6; } ;;
4280   *)
4281     CC="$CC $ac_cv_prog_cc_c89"
4282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4283 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 esac
4285 if test "x$ac_cv_prog_cc_c89" != xno; then :
4286
4287 fi
4288
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294
4295 ac_ext=cpp
4296 ac_cpp='$CXXCPP $CPPFLAGS'
4297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4300 if test -z "$CXX"; then
4301   if test -n "$CCC"; then
4302     CXX=$CCC
4303   else
4304     if test -n "$ac_tool_prefix"; then
4305   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306   do
4307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_CXX+set}" = set; then :
4312   $as_echo_n "(cached) " >&6
4313 else
4314   if test -n "$CXX"; then
4315   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322     for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329   done
4330 IFS=$as_save_IFS
4331
4332 fi
4333 fi
4334 CXX=$ac_cv_prog_CXX
4335 if test -n "$CXX"; then
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4337 $as_echo "$CXX" >&6; }
4338 else
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4341 fi
4342
4343
4344     test -n "$CXX" && break
4345   done
4346 fi
4347 if test -z "$CXX"; then
4348   ac_ct_CXX=$CXX
4349   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 do
4351   # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   if test -n "$ac_ct_CXX"; then
4359   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364   IFS=$as_save_IFS
4365   test -z "$as_dir" && as_dir=.
4366     for ac_exec_ext in '' $ac_executable_extensions; do
4367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368     ac_cv_prog_ac_ct_CXX="$ac_prog"
4369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370     break 2
4371   fi
4372 done
4373   done
4374 IFS=$as_save_IFS
4375
4376 fi
4377 fi
4378 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4379 if test -n "$ac_ct_CXX"; then
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4381 $as_echo "$ac_ct_CXX" >&6; }
4382 else
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386
4387
4388   test -n "$ac_ct_CXX" && break
4389 done
4390
4391   if test "x$ac_ct_CXX" = x; then
4392     CXX="g++"
4393   else
4394     case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400     CXX=$ac_ct_CXX
4401   fi
4402 fi
4403
4404   fi
4405 fi
4406 # Provide some information about the compiler.
4407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4408 set X $ac_compile
4409 ac_compiler=$2
4410 for ac_option in --version -v -V -qversion; do
4411   { { ac_try="$ac_compiler $ac_option >&5"
4412 case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419   ac_status=$?
4420   if test -s conftest.err; then
4421     sed '10a\
4422 ... rest of stderr output deleted ...
4423          10q' conftest.err >conftest.er1
4424     cat conftest.er1 >&5
4425     rm -f conftest.er1 conftest.err
4426   fi
4427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428   test $ac_status = 0; }
4429 done
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4432 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4433 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438
4439 int
4440 main ()
4441 {
4442 #ifndef __GNUC__
4443        choke me
4444 #endif
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_cxx_try_compile "$LINENO"; then :
4451   ac_compiler_gnu=yes
4452 else
4453   ac_compiler_gnu=no
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4457
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4460 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4461 if test $ac_compiler_gnu = yes; then
4462   GXX=yes
4463 else
4464   GXX=
4465 fi
4466 ac_test_CXXFLAGS=${CXXFLAGS+set}
4467 ac_save_CXXFLAGS=$CXXFLAGS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4469 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4470 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4471   $as_echo_n "(cached) " >&6
4472 else
4473   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4474    ac_cxx_werror_flag=yes
4475    ac_cv_prog_cxx_g=no
4476    CXXFLAGS="-g"
4477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h.  */
4479
4480 int
4481 main ()
4482 {
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4489   ac_cv_prog_cxx_g=yes
4490 else
4491   CXXFLAGS=""
4492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h.  */
4494
4495 int
4496 main ()
4497 {
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_cxx_try_compile "$LINENO"; then :
4504
4505 else
4506   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4507          CXXFLAGS="-g"
4508          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4520   ac_cv_prog_cxx_g=yes
4521 fi
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4530 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4531 if test "$ac_test_CXXFLAGS" = set; then
4532   CXXFLAGS=$ac_save_CXXFLAGS
4533 elif test $ac_cv_prog_cxx_g = yes; then
4534   if test "$GXX" = yes; then
4535     CXXFLAGS="-g -O2"
4536   else
4537     CXXFLAGS="-g"
4538   fi
4539 else
4540   if test "$GXX" = yes; then
4541     CXXFLAGS="-O2"
4542   else
4543     CXXFLAGS=
4544   fi
4545 fi
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552 CXXFLAGS="$save_CXXFLAGS"
4553
4554
4555
4556
4557
4558 am__api_version='1.11'
4559
4560 # Find a good install program.  We prefer a C program (faster),
4561 # so one script is as good as another.  But avoid the broken or
4562 # incompatible versions:
4563 # SysV /etc/install, /usr/sbin/install
4564 # SunOS /usr/etc/install
4565 # IRIX /sbin/install
4566 # AIX /bin/install
4567 # AmigaOS /C/install, which installs bootblocks on floppy discs
4568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4571 # OS/2's system install, which has a completely different semantic
4572 # ./install, which can be erroneously created by make from ./install.sh.
4573 # Reject install programs that cannot install multiple files.
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4575 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4576 if test -z "$INSTALL"; then
4577 if test "${ac_cv_path_install+set}" = set; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585     # Account for people who put trailing slashes in PATH elements.
4586 case $as_dir/ in #((
4587   ./ | .// | /[cC]/* | \
4588   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4589   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4590   /usr/ucb/* ) ;;
4591   *)
4592     # OSF1 and SCO ODT 3.0 have their own names for install.
4593     # Don't use installbsd from OSF since it installs stuff as root
4594     # by default.
4595     for ac_prog in ginstall scoinst install; do
4596       for ac_exec_ext in '' $ac_executable_extensions; do
4597         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4598           if test $ac_prog = install &&
4599             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4600             # AIX install.  It has an incompatible calling convention.
4601             :
4602           elif test $ac_prog = install &&
4603             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4604             # program-specific install script used by HP pwplus--don't use.
4605             :
4606           else
4607             rm -rf conftest.one conftest.two conftest.dir
4608             echo one > conftest.one
4609             echo two > conftest.two
4610             mkdir conftest.dir
4611             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4612               test -s conftest.one && test -s conftest.two &&
4613               test -s conftest.dir/conftest.one &&
4614               test -s conftest.dir/conftest.two
4615             then
4616               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4617               break 3
4618             fi
4619           fi
4620         fi
4621       done
4622     done
4623     ;;
4624 esac
4625
4626   done
4627 IFS=$as_save_IFS
4628
4629 rm -rf conftest.one conftest.two conftest.dir
4630
4631 fi
4632   if test "${ac_cv_path_install+set}" = set; then
4633     INSTALL=$ac_cv_path_install
4634   else
4635     # As a last resort, use the slow shell script.  Don't cache a
4636     # value for INSTALL within a source directory, because that will
4637     # break other packages using the cache if that directory is
4638     # removed, or if the value is a relative name.
4639     INSTALL=$ac_install_sh
4640   fi
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4643 $as_echo "$INSTALL" >&6; }
4644
4645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4646 # It thinks the first close brace ends the variable substitution.
4647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4648
4649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4650
4651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4654 $as_echo_n "checking whether build environment is sane... " >&6; }
4655 # Just in case
4656 sleep 1
4657 echo timestamp > conftest.file
4658 # Reject unsafe characters in $srcdir or the absolute working directory
4659 # name.  Accept space and tab only in the latter.
4660 am_lf='
4661 '
4662 case `pwd` in
4663   *[\\\"\#\$\&\'\`$am_lf]*)
4664     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4665 esac
4666 case $srcdir in
4667   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4668     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4669 esac
4670
4671 # Do `set' in a subshell so we don't clobber the current shell's
4672 # arguments.  Must try -L first in case configure is actually a
4673 # symlink; some systems play weird games with the mod time of symlinks
4674 # (eg FreeBSD returns the mod time of the symlink's containing
4675 # directory).
4676 if (
4677    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4678    if test "$*" = "X"; then
4679       # -L didn't work.
4680       set X `ls -t "$srcdir/configure" conftest.file`
4681    fi
4682    rm -f conftest.file
4683    if test "$*" != "X $srcdir/configure conftest.file" \
4684       && test "$*" != "X conftest.file $srcdir/configure"; then
4685
4686       # If neither matched, then we have a broken ls.  This can happen
4687       # if, for instance, CONFIG_SHELL is bash and it inherits a
4688       # broken ls alias from the environment.  This has actually
4689       # happened.  Such a system could not be considered "sane".
4690       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4691 alias in your environment" "$LINENO" 5
4692    fi
4693
4694    test "$2" = conftest.file
4695    )
4696 then
4697    # Ok.
4698    :
4699 else
4700    as_fn_error "newly created file is older than distributed files!
4701 Check your system clock" "$LINENO" 5
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4704 $as_echo "yes" >&6; }
4705 test "$program_prefix" != NONE &&
4706   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4707 # Use a double $ so make ignores it.
4708 test "$program_suffix" != NONE &&
4709   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4710 # Double any \ or $.
4711 # By default was `s,x,x', remove it if useless.
4712 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4713 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4714
4715 # expand $ac_aux_dir to an absolute path
4716 am_aux_dir=`cd $ac_aux_dir && pwd`
4717
4718 if test x"${MISSING+set}" != xset; then
4719   case $am_aux_dir in
4720   *\ * | *\     *)
4721     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4722   *)
4723     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4724   esac
4725 fi
4726 # Use eval to expand $SHELL
4727 if eval "$MISSING --run true"; then
4728   am_missing_run="$MISSING --run "
4729 else
4730   am_missing_run=
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4732 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4733 fi
4734
4735 if test x"${install_sh}" != xset; then
4736   case $am_aux_dir in
4737   *\ * | *\     *)
4738     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4739   *)
4740     install_sh="\${SHELL} $am_aux_dir/install-sh"
4741   esac
4742 fi
4743
4744 # Installed binaries are usually stripped using `strip' when the user
4745 # run `make install-strip'.  However `strip' might not be the right
4746 # tool to use in cross-compilation environments, therefore Automake
4747 # will honor the `STRIP' environment variable to overrule this program.
4748 if test "$cross_compiling" != no; then
4749   if test -n "$ac_tool_prefix"; then
4750   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}strip; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_STRIP+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if test -n "$STRIP"; then
4758   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 STRIP=$ac_cv_prog_STRIP
4778 if test -n "$STRIP"; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4780 $as_echo "$STRIP" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 if test -z "$ac_cv_prog_STRIP"; then
4789   ac_ct_STRIP=$STRIP
4790   # Extract the first word of "strip", so it can be a program name with args.
4791 set dummy strip; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   if test -n "$ac_ct_STRIP"; then
4798   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805     for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_prog_ac_ct_STRIP="strip"
4808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812   done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4818 if test -n "$ac_ct_STRIP"; then
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4820 $as_echo "$ac_ct_STRIP" >&6; }
4821 else
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826   if test "x$ac_ct_STRIP" = x; then
4827     STRIP=":"
4828   else
4829     case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835     STRIP=$ac_ct_STRIP
4836   fi
4837 else
4838   STRIP="$ac_cv_prog_STRIP"
4839 fi
4840
4841 fi
4842 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4845 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4846 if test -z "$MKDIR_P"; then
4847   if test "${ac_cv_path_mkdir+set}" = set; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_prog in mkdir gmkdir; do
4856          for ac_exec_ext in '' $ac_executable_extensions; do
4857            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4858            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4859              'mkdir (GNU coreutils) '* | \
4860              'mkdir (coreutils) '* | \
4861              'mkdir (fileutils) '4.1*)
4862                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4863                break 3;;
4864            esac
4865          done
4866        done
4867   done
4868 IFS=$as_save_IFS
4869
4870 fi
4871
4872   if test "${ac_cv_path_mkdir+set}" = set; then
4873     MKDIR_P="$ac_cv_path_mkdir -p"
4874   else
4875     # As a last resort, use the slow shell script.  Don't cache a
4876     # value for MKDIR_P within a source directory, because that will
4877     # break other packages using the cache if that directory is
4878     # removed, or if the value is a relative name.
4879     test -d ./--version && rmdir ./--version
4880     MKDIR_P="$ac_install_sh -d"
4881   fi
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4884 $as_echo "$MKDIR_P" >&6; }
4885
4886 mkdir_p="$MKDIR_P"
4887 case $mkdir_p in
4888   [\\/$]* | ?:[\\/]*) ;;
4889   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4890 esac
4891
4892 for ac_prog in gawk mawk nawk awk
4893 do
4894   # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_AWK+set}" = set; then :
4899   $as_echo_n "(cached) " >&6
4900 else
4901   if test -n "$AWK"; then
4902   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     ac_cv_prog_AWK="$ac_prog"
4912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916   done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 AWK=$ac_cv_prog_AWK
4922 if test -n "$AWK"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4924 $as_echo "$AWK" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930
4931   test -n "$AWK" && break
4932 done
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4935 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4936 set x ${MAKE-make}
4937 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4938 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   cat >conftest.make <<\_ACEOF
4942 SHELL = /bin/sh
4943 all:
4944         @echo '@@@%%%=$(MAKE)=@@@%%%'
4945 _ACEOF
4946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4947 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4948   *@@@%%%=?*=@@@%%%*)
4949     eval ac_cv_prog_make_${ac_make}_set=yes;;
4950   *)
4951     eval ac_cv_prog_make_${ac_make}_set=no;;
4952 esac
4953 rm -f conftest.make
4954 fi
4955 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4957 $as_echo "yes" >&6; }
4958   SET_MAKE=
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962   SET_MAKE="MAKE=${MAKE-make}"
4963 fi
4964
4965 rm -rf .tst 2>/dev/null
4966 mkdir .tst 2>/dev/null
4967 if test -d .tst; then
4968   am__leading_dot=.
4969 else
4970   am__leading_dot=_
4971 fi
4972 rmdir .tst 2>/dev/null
4973
4974 DEPDIR="${am__leading_dot}deps"
4975
4976 ac_config_commands="$ac_config_commands depfiles"
4977
4978
4979 am_make=${MAKE-make}
4980 cat > confinc << 'END'
4981 am__doit:
4982         @echo this is the am__doit target
4983 .PHONY: am__doit
4984 END
4985 # If we don't find an include directive, just comment out the code.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4987 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4988 am__include="#"
4989 am__quote=
4990 _am_result=none
4991 # First try GNU make style include.
4992 echo "include confinc" > confmf
4993 # Ignore all kinds of additional output from `make'.
4994 case `$am_make -s -f confmf 2> /dev/null` in #(
4995 *the\ am__doit\ target*)
4996   am__include=include
4997   am__quote=
4998   _am_result=GNU
4999   ;;
5000 esac
5001 # Now try BSD make style include.
5002 if test "$am__include" = "#"; then
5003    echo '.include "confinc"' > confmf
5004    case `$am_make -s -f confmf 2> /dev/null` in #(
5005    *the\ am__doit\ target*)
5006      am__include=.include
5007      am__quote="\""
5008      _am_result=BSD
5009      ;;
5010    esac
5011 fi
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5015 $as_echo "$_am_result" >&6; }
5016 rm -f confinc confmf
5017
5018 # Check whether --enable-dependency-tracking was given.
5019 if test "${enable_dependency_tracking+set}" = set; then :
5020   enableval=$enable_dependency_tracking;
5021 fi
5022
5023 if test "x$enable_dependency_tracking" != xno; then
5024   am_depcomp="$ac_aux_dir/depcomp"
5025   AMDEPBACKSLASH='\'
5026 fi
5027  if test "x$enable_dependency_tracking" != xno; then
5028   AMDEP_TRUE=
5029   AMDEP_FALSE='#'
5030 else
5031   AMDEP_TRUE='#'
5032   AMDEP_FALSE=
5033 fi
5034
5035
5036 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5037   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5038   # is not polluted with repeated "-I."
5039   am__isrc=' -I$(srcdir)'
5040   # test to see if srcdir already configured
5041   if test -f $srcdir/config.status; then
5042     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5043   fi
5044 fi
5045
5046 # test whether we have cygpath
5047 if test -z "$CYGPATH_W"; then
5048   if (cygpath --version) >/dev/null 2>/dev/null; then
5049     CYGPATH_W='cygpath -w'
5050   else
5051     CYGPATH_W=echo
5052   fi
5053 fi
5054
5055
5056 # Define the identity of the package.
5057  PACKAGE='libjava'
5058  VERSION='version-unused'
5059
5060
5061 cat >>confdefs.h <<_ACEOF
5062 #define PACKAGE "$PACKAGE"
5063 _ACEOF
5064
5065
5066 cat >>confdefs.h <<_ACEOF
5067 #define VERSION "$VERSION"
5068 _ACEOF
5069
5070 # Some tools Automake needs.
5071
5072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5073
5074
5075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5076
5077
5078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5079
5080
5081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5082
5083
5084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5085
5086 # We need awk for the "check" target.  The system "awk" is bad on
5087 # some platforms.
5088 # Always define AMTAR for backward compatibility.
5089
5090 AMTAR=${AMTAR-"${am_missing_run}tar"}
5091
5092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5093
5094
5095
5096
5097 depcc="$CC"   am_compiler_list=
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5100 $as_echo_n "checking dependency style of $depcc... " >&6; }
5101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5105   # We make a subdir and do the tests there.  Otherwise we can end up
5106   # making bogus files that we don't know about and never remove.  For
5107   # instance it was reported that on HP-UX the gcc test will end up
5108   # making a dummy file named `D' -- because `-MD' means `put the output
5109   # in D'.
5110   mkdir conftest.dir
5111   # Copy depcomp to subdir because otherwise we won't find it if we're
5112   # using a relative directory.
5113   cp "$am_depcomp" conftest.dir
5114   cd conftest.dir
5115   # We will build objects and dependencies in a subdirectory because
5116   # it helps to detect inapplicable dependency modes.  For instance
5117   # both Tru64's cc and ICC support -MD to output dependencies as a
5118   # side effect of compilation, but ICC will put the dependencies in
5119   # the current directory while Tru64 will put them in the object
5120   # directory.
5121   mkdir sub
5122
5123   am_cv_CC_dependencies_compiler_type=none
5124   if test "$am_compiler_list" = ""; then
5125      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5126   fi
5127   am__universal=false
5128   case " $depcc " in #(
5129      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5130      esac
5131
5132   for depmode in $am_compiler_list; do
5133     # Setup a source with many dependencies, because some compilers
5134     # like to wrap large dependency lists on column 80 (with \), and
5135     # we should not choose a depcomp mode which is confused by this.
5136     #
5137     # We need to recreate these files for each test, as the compiler may
5138     # overwrite some of them when testing with obscure command lines.
5139     # This happens at least with the AIX C compiler.
5140     : > sub/conftest.c
5141     for i in 1 2 3 4 5 6; do
5142       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144       # Solaris 8's {/usr,}/bin/sh.
5145       touch sub/conftst$i.h
5146     done
5147     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5148
5149     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5150     # mode.  It turns out that the SunPro C++ compiler does not properly
5151     # handle `-M -o', and we need to detect this.  Also, some Intel
5152     # versions had trouble with output in subdirs
5153     am__obj=sub/conftest.${OBJEXT-o}
5154     am__minus_obj="-o $am__obj"
5155     case $depmode in
5156     gcc)
5157       # This depmode causes a compiler race in universal mode.
5158       test "$am__universal" = false || continue
5159       ;;
5160     nosideeffect)
5161       # after this tag, mechanisms are not by side-effect, so they'll
5162       # only be used when explicitly requested
5163       if test "x$enable_dependency_tracking" = xyes; then
5164         continue
5165       else
5166         break
5167       fi
5168       ;;
5169     msvisualcpp | msvcmsys)
5170       # This compiler won't grok `-c -o', but also, the minuso test has
5171       # not run yet.  These depmodes are late enough in the game, and
5172       # so weak that their functioning should not be impacted.
5173       am__obj=conftest.${OBJEXT-o}
5174       am__minus_obj=
5175       ;;
5176     none) break ;;
5177     esac
5178     if depmode=$depmode \
5179        source=sub/conftest.c object=$am__obj \
5180        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5181        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5182          >/dev/null 2>conftest.err &&
5183        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5184        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5185        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5186        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5187       # icc doesn't choke on unknown options, it will just issue warnings
5188       # or remarks (even with -Werror).  So we grep stderr for any message
5189       # that says an option was ignored or not supported.
5190       # When given -MP, icc 7.0 and 7.1 complain thusly:
5191       #   icc: Command line warning: ignoring option '-M'; no argument required
5192       # The diagnosis changed in icc 8.0:
5193       #   icc: Command line remark: option '-MP' not supported
5194       if (grep 'ignoring option' conftest.err ||
5195           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5196         am_cv_CC_dependencies_compiler_type=$depmode
5197         break
5198       fi
5199     fi
5200   done
5201
5202   cd ..
5203   rm -rf conftest.dir
5204 else
5205   am_cv_CC_dependencies_compiler_type=none
5206 fi
5207
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5210 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5211 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5212
5213  if
5214   test "x$enable_dependency_tracking" != xno \
5215   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5216   am__fastdepCC_TRUE=
5217   am__fastdepCC_FALSE='#'
5218 else
5219   am__fastdepCC_TRUE='#'
5220   am__fastdepCC_FALSE=
5221 fi
5222
5223
5224 depcc="$CXX"  am_compiler_list=
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5227 $as_echo_n "checking dependency style of $depcc... " >&6; }
5228 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5232   # We make a subdir and do the tests there.  Otherwise we can end up
5233   # making bogus files that we don't know about and never remove.  For
5234   # instance it was reported that on HP-UX the gcc test will end up
5235   # making a dummy file named `D' -- because `-MD' means `put the output
5236   # in D'.
5237   mkdir conftest.dir
5238   # Copy depcomp to subdir because otherwise we won't find it if we're
5239   # using a relative directory.
5240   cp "$am_depcomp" conftest.dir
5241   cd conftest.dir
5242   # We will build objects and dependencies in a subdirectory because
5243   # it helps to detect inapplicable dependency modes.  For instance
5244   # both Tru64's cc and ICC support -MD to output dependencies as a
5245   # side effect of compilation, but ICC will put the dependencies in
5246   # the current directory while Tru64 will put them in the object
5247   # directory.
5248   mkdir sub
5249
5250   am_cv_CXX_dependencies_compiler_type=none
5251   if test "$am_compiler_list" = ""; then
5252      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5253   fi
5254   am__universal=false
5255   case " $depcc " in #(
5256      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5257      esac
5258
5259   for depmode in $am_compiler_list; do
5260     # Setup a source with many dependencies, because some compilers
5261     # like to wrap large dependency lists on column 80 (with \), and
5262     # we should not choose a depcomp mode which is confused by this.
5263     #
5264     # We need to recreate these files for each test, as the compiler may
5265     # overwrite some of them when testing with obscure command lines.
5266     # This happens at least with the AIX C compiler.
5267     : > sub/conftest.c
5268     for i in 1 2 3 4 5 6; do
5269       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5270       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5271       # Solaris 8's {/usr,}/bin/sh.
5272       touch sub/conftst$i.h
5273     done
5274     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5275
5276     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5277     # mode.  It turns out that the SunPro C++ compiler does not properly
5278     # handle `-M -o', and we need to detect this.  Also, some Intel
5279     # versions had trouble with output in subdirs
5280     am__obj=sub/conftest.${OBJEXT-o}
5281     am__minus_obj="-o $am__obj"
5282     case $depmode in
5283     gcc)
5284       # This depmode causes a compiler race in universal mode.
5285       test "$am__universal" = false || continue
5286       ;;
5287     nosideeffect)
5288       # after this tag, mechanisms are not by side-effect, so they'll
5289       # only be used when explicitly requested
5290       if test "x$enable_dependency_tracking" = xyes; then
5291         continue
5292       else
5293         break
5294       fi
5295       ;;
5296     msvisualcpp | msvcmsys)
5297       # This compiler won't grok `-c -o', but also, the minuso test has
5298       # not run yet.  These depmodes are late enough in the game, and
5299       # so weak that their functioning should not be impacted.
5300       am__obj=conftest.${OBJEXT-o}
5301       am__minus_obj=
5302       ;;
5303     none) break ;;
5304     esac
5305     if depmode=$depmode \
5306        source=sub/conftest.c object=$am__obj \
5307        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5308        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5309          >/dev/null 2>conftest.err &&
5310        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5311        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5312        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5313        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5314       # icc doesn't choke on unknown options, it will just issue warnings
5315       # or remarks (even with -Werror).  So we grep stderr for any message
5316       # that says an option was ignored or not supported.
5317       # When given -MP, icc 7.0 and 7.1 complain thusly:
5318       #   icc: Command line warning: ignoring option '-M'; no argument required
5319       # The diagnosis changed in icc 8.0:
5320       #   icc: Command line remark: option '-MP' not supported
5321       if (grep 'ignoring option' conftest.err ||
5322           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5323         am_cv_CXX_dependencies_compiler_type=$depmode
5324         break
5325       fi
5326     fi
5327   done
5328
5329   cd ..
5330   rm -rf conftest.dir
5331 else
5332   am_cv_CXX_dependencies_compiler_type=none
5333 fi
5334
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5337 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5338 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5339
5340  if
5341   test "x$enable_dependency_tracking" != xno \
5342   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5343   am__fastdepCXX_TRUE=
5344   am__fastdepCXX_FALSE='#'
5345 else
5346   am__fastdepCXX_TRUE='#'
5347   am__fastdepCXX_FALSE=
5348 fi
5349
5350
5351
5352
5353 if test -n "$ac_tool_prefix"; then
5354   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}as; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_prog_AS+set}" = set; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   if test -n "$AS"; then
5362   ac_cv_prog_AS="$AS" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   test -z "$as_dir" && as_dir=.
5369     for ac_exec_ext in '' $ac_executable_extensions; do
5370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371     ac_cv_prog_AS="${ac_tool_prefix}as"
5372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376   done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 AS=$ac_cv_prog_AS
5382 if test -n "$AS"; then
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5384 $as_echo "$AS" >&6; }
5385 else
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 fi
5392 if test -z "$ac_cv_prog_AS"; then
5393   ac_ct_AS=$AS
5394   # Extract the first word of "as", so it can be a program name with args.
5395 set dummy as; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$ac_ct_AS"; then
5402   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_ac_ct_AS="as"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5422 if test -n "$ac_ct_AS"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5424 $as_echo "$ac_ct_AS" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430   if test "x$ac_ct_AS" = x; then
5431     AS=""
5432   else
5433     case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439     AS=$ac_ct_AS
5440   fi
5441 else
5442   AS="$ac_cv_prog_AS"
5443 fi
5444
5445 if test -n "$ac_tool_prefix"; then
5446   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}ld; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_LD+set}" = set; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -n "$LD"; then
5454   ac_cv_prog_LD="$LD" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_LD="${ac_tool_prefix}ld"
5464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468   done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 LD=$ac_cv_prog_LD
5474 if test -n "$LD"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5476 $as_echo "$LD" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483 fi
5484 if test -z "$ac_cv_prog_LD"; then
5485   ac_ct_LD=$LD
5486   # Extract the first word of "ld", so it can be a program name with args.
5487 set dummy ld; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   if test -n "$ac_ct_LD"; then
5494   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501     for ac_exec_ext in '' $ac_executable_extensions; do
5502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503     ac_cv_prog_ac_ct_LD="ld"
5504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508   done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5514 if test -n "$ac_ct_LD"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5516 $as_echo "$ac_ct_LD" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522   if test "x$ac_ct_LD" = x; then
5523     LD=""
5524   else
5525     case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531     LD=$ac_ct_LD
5532   fi
5533 else
5534   LD="$ac_cv_prog_LD"
5535 fi
5536
5537 if test -n "$ac_tool_prefix"; then
5538   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5539 set dummy ${ac_tool_prefix}ar; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_AR+set}" = set; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$AR"; then
5546   ac_cv_prog_AR="$AR" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_AR="${ac_tool_prefix}ar"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 AR=$ac_cv_prog_AR
5566 if test -n "$AR"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5568 $as_echo "$AR" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575 fi
5576 if test -z "$ac_cv_prog_AR"; then
5577   ac_ct_AR=$AR
5578   # Extract the first word of "ar", so it can be a program name with args.
5579 set dummy ar; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   if test -n "$ac_ct_AR"; then
5586   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591   IFS=$as_save_IFS
5592   test -z "$as_dir" && as_dir=.
5593     for ac_exec_ext in '' $ac_executable_extensions; do
5594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595     ac_cv_prog_ac_ct_AR="ar"
5596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597     break 2
5598   fi
5599 done
5600   done
5601 IFS=$as_save_IFS
5602
5603 fi
5604 fi
5605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5606 if test -n "$ac_ct_AR"; then
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5608 $as_echo "$ac_ct_AR" >&6; }
5609 else
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 fi
5613
5614   if test "x$ac_ct_AR" = x; then
5615     AR=""
5616   else
5617     case $cross_compiling:$ac_tool_warned in
5618 yes:)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5622 esac
5623     AR=$ac_ct_AR
5624   fi
5625 else
5626   AR="$ac_cv_prog_AR"
5627 fi
5628
5629 if test -n "$ac_tool_prefix"; then
5630   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if test -n "$RANLIB"; then
5638   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645     for ac_exec_ext in '' $ac_executable_extensions; do
5646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652   done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5661 else
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 fi
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669   ac_ct_RANLIB=$RANLIB
5670   # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   if test -n "$ac_ct_RANLIB"; then
5678   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685     for ac_exec_ext in '' $ac_executable_extensions; do
5686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687     ac_cv_prog_ac_ct_RANLIB="ranlib"
5688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692   done
5693 IFS=$as_save_IFS
5694
5695 fi
5696 fi
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5704 fi
5705
5706   if test "x$ac_ct_RANLIB" = x; then
5707     RANLIB=":"
5708   else
5709     case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715     RANLIB=$ac_ct_RANLIB
5716   fi
5717 else
5718   RANLIB="$ac_cv_prog_RANLIB"
5719 fi
5720
5721 for ac_prog in gawk mawk nawk awk
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_AWK+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if test -n "$AWK"; then
5731   ac_cv_prog_AWK="$AWK" # 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_AWK="$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 AWK=$ac_cv_prog_AWK
5751 if test -n "$AWK"; then
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5753 $as_echo "$AWK" >&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 "$AWK" && break
5761 done
5762
5763 for ac_prog in jar fastjar gjar
5764 do
5765   # Extract the first word of "$ac_prog", so it can be a program name with args.
5766 set dummy $ac_prog; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if test "${ac_cv_prog_JAR+set}" = set; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$JAR"; then
5773   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_prog_JAR="$ac_prog"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 JAR=$ac_cv_prog_JAR
5793 if test -n "$JAR"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5795 $as_echo "$JAR" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802   test -n "$JAR" && break
5803 done
5804 test -n "$JAR" || JAR="no"
5805
5806 # Extract the first word of "zip", so it can be a program name with args.
5807 set dummy zip; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_path_ZIP+set}" = set; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $ZIP in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5834   ;;
5835 esac
5836 fi
5837 ZIP=$ac_cv_path_ZIP
5838 if test -n "$ZIP"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5840 $as_echo "$ZIP" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847 # Extract the first word of "unzip", so it can be a program name with args.
5848 set dummy unzip; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_path_UNZIP+set}" = set; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   case $UNZIP in
5855   [\\/]* | ?:[\\/]*)
5856   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5857   ;;
5858   *)
5859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864     for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871   done
5872 IFS=$as_save_IFS
5873
5874   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5875   ;;
5876 esac
5877 fi
5878 UNZIP=$ac_cv_path_UNZIP
5879 if test -n "$UNZIP"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5881 $as_echo "$UNZIP" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887
5888
5889 # We need a jar that supports -@.  This is a GNU extension.
5890 if test "$JAR" != no; then
5891    rm -f config-test.jar
5892    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5893    if test -f config-test.jar; then
5894      rm -f config-test.jar
5895    else
5896      JAR=no
5897    fi
5898 fi
5899
5900 # Prefer the jar we found, but fall back to our jar script.
5901 if test "$JAR" = no; then
5902   if test "$ZIP" = no; then
5903     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5904   else
5905     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5906     JAR=`pwd`/scripts/jar
5907   fi
5908 fi
5909
5910
5911
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5914 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5915     # Check whether --enable-maintainer-mode was given.
5916 if test "${enable_maintainer_mode+set}" = set; then :
5917   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5918 else
5919   USE_MAINTAINER_MODE=no
5920 fi
5921
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5923 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5924    if test $USE_MAINTAINER_MODE = yes; then
5925   MAINTAINER_MODE_TRUE=
5926   MAINTAINER_MODE_FALSE='#'
5927 else
5928   MAINTAINER_MODE_TRUE='#'
5929   MAINTAINER_MODE_FALSE=
5930 fi
5931
5932   MAINT=$MAINTAINER_MODE_TRUE
5933
5934
5935
5936
5937
5938 # configure.host sets the following important variables
5939 #       libgcj_cflags    - host specific C compiler flags
5940 #       libgcj_cxxflags  - host specific C++ compiler flags
5941 #       libgcj_javaflags - host specific Java compiler flags
5942 # and a number of others; see the list at the start of the file.
5943
5944 libgcj_cflags=
5945 libgcj_cxxflags=
5946 libgcj_javaflags=
5947
5948 . ${srcdir}/configure.host
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5952 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5956 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5957   acl_cv_prog_gnu_ld=yes
5958 else
5959   acl_cv_prog_gnu_ld=no
5960 fi
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5963 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5964 with_gnu_ld=$acl_cv_prog_gnu_ld
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5967 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5968 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971
5972 acl_cv_prog_gnu_ld_symbolic=no
5973
5974 if test x"$with_gnu_ld" = x"yes"; then
5975   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5976     acl_cv_prog_gnu_ld_symbolic=yes
5977   fi
5978 fi
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5981 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5982 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5983   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5984 else
5985   SYMBOLIC_LDFLAGS=''
5986 fi
5987
5988 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5989 if test -z "$libgcj_ld_symbolic"; then
5990   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5991 fi
5992
5993 LIBGCJ_CFLAGS="${libgcj_cflags}"
5994 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5995 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5996 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5997 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5998
5999
6000
6001
6002
6003
6004 # Only use libltdl for non-newlib builds.
6005 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6007 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6008 library_names_spec=
6009 libname_spec='lib$name'
6010 soname_spec=
6011 shrext=".so"
6012 postinstall_cmds=
6013 postuninstall_cmds=
6014 finish_cmds=
6015 finish_eval=
6016 shlibpath_var=
6017 shlibpath_overrides_runpath=unknown
6018 version_type=none
6019 dynamic_linker="$host_os ld.so"
6020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6021 if test "$GCC" = yes; then
6022   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6023   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6024     # if the path contains ";" then we assume it to be the separator
6025     # otherwise default to the standard path separator (i.e. ":") - it is
6026     # assumed that no part of a normal pathname contains ";" but that should
6027     # okay in the real world where ";" in dirpaths is itself problematic.
6028     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6029   else
6030     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6031   fi
6032 else
6033   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6034 fi
6035 need_lib_prefix=unknown
6036 hardcode_into_libs=no
6037
6038 # when you set need_version to no, make sure it does not cause -set_version
6039 # flags to be left without arguments
6040 need_version=unknown
6041
6042 case $host_os in
6043 aix3*)
6044   version_type=linux
6045   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6046   shlibpath_var=LIBPATH
6047
6048   # AIX 3 has no versioning support, so we append a major version to the name.
6049   soname_spec='${libname}${release}${shared_ext}$major'
6050   ;;
6051
6052 aix[4-9]*)
6053   version_type=linux
6054   need_lib_prefix=no
6055   need_version=no
6056   hardcode_into_libs=yes
6057   if test "$host_cpu" = ia64; then
6058     # AIX 5 supports IA64
6059     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6060     shlibpath_var=LD_LIBRARY_PATH
6061   else
6062     # With GCC up to 2.95.x, collect2 would create an import file
6063     # for dependence libraries.  The import file would start with
6064     # the line `#! .'.  This would cause the generated library to
6065     # depend on `.', always an invalid library.  This was fixed in
6066     # development snapshots of GCC prior to 3.0.
6067     case $host_os in
6068       aix4 | aix4.[01] | aix4.[01].*)
6069       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6070            echo ' yes '
6071            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6072         :
6073       else
6074         can_build_shared=no
6075       fi
6076       ;;
6077     esac
6078     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6079     # soname into executable. Probably we can add versioning support to
6080     # collect2, so additional links can be useful in future.
6081     if test "$aix_use_runtimelinking" = yes; then
6082       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6083       # instead of lib<name>.a to let people know that these are not
6084       # typical AIX shared libraries.
6085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6086     else
6087       # We preserve .a as extension for shared libraries through AIX4.2
6088       # and later when we are not doing run time linking.
6089       library_names_spec='${libname}${release}.a $libname.a'
6090       soname_spec='${libname}${release}${shared_ext}$major'
6091     fi
6092     shlibpath_var=LIBPATH
6093   fi
6094   ;;
6095
6096 amigaos*)
6097   library_names_spec='$libname.ixlibrary $libname.a'
6098   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6099   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'
6100   ;;
6101
6102 beos*)
6103   library_names_spec='${libname}${shared_ext}'
6104   dynamic_linker="$host_os ld.so"
6105   shlibpath_var=LIBRARY_PATH
6106   ;;
6107
6108 bsdi4*)
6109   version_type=linux
6110   need_version=no
6111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6112   soname_spec='${libname}${release}${shared_ext}$major'
6113   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6114   shlibpath_var=LD_LIBRARY_PATH
6115   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6116   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6117   # the default ld.so.conf also contains /usr/contrib/lib and
6118   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6119   # libtool to hard-code these into programs
6120   ;;
6121
6122 cygwin* | mingw* | pw32*)
6123   version_type=windows
6124   shrext=".dll"
6125   need_version=no
6126   need_lib_prefix=no
6127
6128   case $GCC,$host_os in
6129   yes,cygwin* | yes,mingw* | yes,pw32*)
6130     library_names_spec='$libname.dll.a'
6131     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6132     postinstall_cmds='base_file=`basename \${file}`~
6133       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6134       dldir=$destdir/`dirname \$dlpath`~
6135       test -d \$dldir || mkdir -p \$dldir~
6136       $install_prog $dir/$dlname \$dldir/$dlname'
6137     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6138       dlpath=$dir/\$dldll~
6139        $rm \$dlpath'
6140     shlibpath_overrides_runpath=yes
6141
6142     case $host_os in
6143     cygwin*)
6144       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6145       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6146       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6147       ;;
6148     mingw*)
6149       # MinGW DLLs use traditional 'lib' prefix
6150       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6151       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6152       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6153         # It is most probably a Windows format PATH printed by
6154         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6155         # path with ; separators, and with drive letters. We can handle the
6156         # drive letters (cygwin fileutils understands them), so leave them,
6157         # especially as we might pass files found there to a mingw objdump,
6158         # which wouldn't understand a cygwinified path. Ahh.
6159         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6160       else
6161         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6162       fi
6163       ;;
6164     pw32*)
6165       # pw32 DLLs use 'pw' prefix rather than 'lib'
6166       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6167       ;;
6168     esac
6169     ;;
6170
6171   *)
6172     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6173     ;;
6174   esac
6175   dynamic_linker='Win32 ld.exe'
6176   # FIXME: first we should search . and the directory the executable is in
6177   shlibpath_var=PATH
6178   ;;
6179
6180 darwin* | rhapsody*)
6181   dynamic_linker="$host_os dyld"
6182   version_type=darwin
6183   need_lib_prefix=no
6184   need_version=no
6185   # FIXME: Relying on posixy $() will cause problems for
6186   #        cross-compilation, but unfortunately the echo tests do not
6187   #        yet detect zsh echo's removal of \ escapes.
6188   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6189   soname_spec='${libname}${release}${major}$shared_ext'
6190   shlibpath_overrides_runpath=yes
6191   shlibpath_var=DYLD_LIBRARY_PATH
6192   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6193   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6194   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6195   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"`
6196   fi
6197   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6198   ;;
6199
6200 dgux*)
6201   version_type=linux
6202   need_lib_prefix=no
6203   need_version=no
6204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6205   soname_spec='${libname}${release}${shared_ext}$major'
6206   shlibpath_var=LD_LIBRARY_PATH
6207   ;;
6208
6209 freebsd1*)
6210   dynamic_linker=no
6211   ;;
6212
6213 freebsd*)
6214   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6215   version_type=freebsd-$objformat
6216   case $version_type in
6217     freebsd-elf*)
6218       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6219       need_version=no
6220       need_lib_prefix=no
6221       ;;
6222     freebsd-*)
6223       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6224       need_version=yes
6225       ;;
6226   esac
6227   shlibpath_var=LD_LIBRARY_PATH
6228   case $host_os in
6229   freebsd2*)
6230     shlibpath_overrides_runpath=yes
6231     ;;
6232   freebsd3.01* | freebsdelf3.01*)
6233     shlibpath_overrides_runpath=yes
6234     hardcode_into_libs=yes
6235     ;;
6236   *) # from 3.2 on
6237     shlibpath_overrides_runpath=no
6238     hardcode_into_libs=yes
6239     ;;
6240   esac
6241   ;;
6242
6243 gnu*)
6244   version_type=linux
6245   need_lib_prefix=no
6246   need_version=no
6247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6248   soname_spec='${libname}${release}${shared_ext}$major'
6249   shlibpath_var=LD_LIBRARY_PATH
6250   hardcode_into_libs=yes
6251   ;;
6252
6253 hpux9* | hpux10* | hpux11*)
6254   # Give a soname corresponding to the major version so that dld.sl refuses to
6255   # link against other versions.
6256   version_type=sunos
6257   need_lib_prefix=no
6258   need_version=no
6259   case "$host_cpu" in
6260   ia64*)
6261     shrext='.so'
6262     hardcode_into_libs=yes
6263     dynamic_linker="$host_os dld.so"
6264     shlibpath_var=LD_LIBRARY_PATH
6265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6267     soname_spec='${libname}${release}${shared_ext}$major'
6268     if test "X$HPUX_IA64_MODE" = X32; then
6269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6270     else
6271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6272     fi
6273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6274     ;;
6275    hppa*64*)
6276      shrext='.sl'
6277      hardcode_into_libs=yes
6278      dynamic_linker="$host_os dld.sl"
6279      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6280      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6282      soname_spec='${libname}${release}${shared_ext}$major'
6283      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6284      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6285      ;;
6286    *)
6287     shrext='.sl'
6288     dynamic_linker="$host_os dld.sl"
6289     shlibpath_var=SHLIB_PATH
6290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6292     soname_spec='${libname}${release}${shared_ext}$major'
6293     ;;
6294   esac
6295   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6296   postinstall_cmds='chmod 555 $lib'
6297   ;;
6298
6299 irix5* | irix6* | nonstopux*)
6300   case $host_os in
6301     nonstopux*) version_type=nonstopux ;;
6302     *)
6303         if test "$lt_cv_prog_gnu_ld" = yes; then
6304                 version_type=linux
6305         else
6306                 version_type=irix
6307         fi ;;
6308   esac
6309   need_lib_prefix=no
6310   need_version=no
6311   soname_spec='${libname}${release}${shared_ext}$major'
6312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6313   case $host_os in
6314   irix5* | nonstopux*)
6315     libsuff= shlibsuff=
6316     ;;
6317   *)
6318     case $LD in # libtool.m4 will add one of these switches to LD
6319     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6320       libsuff= shlibsuff= libmagic=32-bit;;
6321     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6322       libsuff=32 shlibsuff=N32 libmagic=N32;;
6323     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6324       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6325     *) libsuff= shlibsuff= libmagic=never-match;;
6326     esac
6327     ;;
6328   esac
6329   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6330   shlibpath_overrides_runpath=no
6331   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6332   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6333   hardcode_into_libs=yes
6334   ;;
6335
6336 # No shared lib support for Linux oldld, aout, or coff.
6337 linux*oldld* | linux*aout* | linux*coff*)
6338   dynamic_linker=no
6339   ;;
6340
6341 # This must be Linux ELF.
6342 linux*|k*bsd*-gnu)
6343   version_type=linux
6344   need_lib_prefix=no
6345   need_version=no
6346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6347   soname_spec='${libname}${release}${shared_ext}$major'
6348   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6349   shlibpath_var=LD_LIBRARY_PATH
6350   shlibpath_overrides_runpath=no
6351   # This implies no fast_install, which is unacceptable.
6352   # Some rework will be needed to allow for fast_install
6353   # before this can be enabled.
6354   hardcode_into_libs=yes
6355
6356   # We used to test for /lib/ld.so.1 and disable shared libraries on
6357   # powerpc, because MkLinux only supported shared libraries with the
6358   # GNU dynamic linker.  Since this was broken with cross compilers,
6359   # most powerpc-linux boxes support dynamic linking these days and
6360   # people can always --disable-shared, the test was removed, and we
6361   # assume the GNU/Linux dynamic linker is in use.
6362   dynamic_linker='GNU/Linux ld.so'
6363   ;;
6364
6365 netbsd*)
6366   version_type=sunos
6367   need_lib_prefix=no
6368   need_version=no
6369   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6371     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6372     dynamic_linker='NetBSD (a.out) ld.so'
6373   else
6374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6375     soname_spec='${libname}${release}${shared_ext}$major'
6376     dynamic_linker='NetBSD ld.elf_so'
6377   fi
6378   shlibpath_var=LD_LIBRARY_PATH
6379   shlibpath_overrides_runpath=yes
6380   hardcode_into_libs=yes
6381   ;;
6382
6383 newsos6)
6384   version_type=linux
6385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6386   shlibpath_var=LD_LIBRARY_PATH
6387   shlibpath_overrides_runpath=yes
6388   ;;
6389
6390 nto-qnx)
6391   version_type=linux
6392   need_lib_prefix=no
6393   need_version=no
6394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6395   soname_spec='${libname}${release}${shared_ext}$major'
6396   shlibpath_var=LD_LIBRARY_PATH
6397   shlibpath_overrides_runpath=yes
6398   ;;
6399
6400 openbsd*)
6401   version_type=sunos
6402   need_lib_prefix=no
6403   need_version=no
6404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6406   shlibpath_var=LD_LIBRARY_PATH
6407   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6408     case $host_os in
6409       openbsd2.[89] | openbsd2.[89].*)
6410         shlibpath_overrides_runpath=no
6411         ;;
6412       *)
6413         shlibpath_overrides_runpath=yes
6414         ;;
6415       esac
6416   else
6417     shlibpath_overrides_runpath=yes
6418   fi
6419   ;;
6420
6421 os2*)
6422   libname_spec='$name'
6423   shrext=".dll"
6424   need_lib_prefix=no
6425   library_names_spec='$libname${shared_ext} $libname.a'
6426   dynamic_linker='OS/2 ld.exe'
6427   shlibpath_var=LIBPATH
6428   ;;
6429
6430 osf3* | osf4* | osf5*)
6431   version_type=osf
6432   need_lib_prefix=no
6433   need_version=no
6434   soname_spec='${libname}${release}${shared_ext}$major'
6435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6436   shlibpath_var=LD_LIBRARY_PATH
6437   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6438   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6439   ;;
6440
6441 sco3.2v5*)
6442   version_type=osf
6443   soname_spec='${libname}${release}${shared_ext}$major'
6444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6445   shlibpath_var=LD_LIBRARY_PATH
6446   ;;
6447
6448 solaris*)
6449   version_type=linux
6450   need_lib_prefix=no
6451   need_version=no
6452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6453   soname_spec='${libname}${release}${shared_ext}$major'
6454   shlibpath_var=LD_LIBRARY_PATH
6455   shlibpath_overrides_runpath=yes
6456   hardcode_into_libs=yes
6457   # ldd complains unless libraries are executable
6458   postinstall_cmds='chmod +x $lib'
6459   ;;
6460
6461 sunos4*)
6462   version_type=sunos
6463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6464   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6465   shlibpath_var=LD_LIBRARY_PATH
6466   shlibpath_overrides_runpath=yes
6467   if test "$with_gnu_ld" = yes; then
6468     need_lib_prefix=no
6469   fi
6470   need_version=yes
6471   ;;
6472
6473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6474   version_type=linux
6475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6476   soname_spec='${libname}${release}${shared_ext}$major'
6477   shlibpath_var=LD_LIBRARY_PATH
6478   case $host_vendor in
6479     sni)
6480       shlibpath_overrides_runpath=no
6481       need_lib_prefix=no
6482       export_dynamic_flag_spec='${wl}-Blargedynsym'
6483       runpath_var=LD_RUN_PATH
6484       ;;
6485     siemens)
6486       need_lib_prefix=no
6487       ;;
6488     motorola)
6489       need_lib_prefix=no
6490       need_version=no
6491       shlibpath_overrides_runpath=no
6492       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6493       ;;
6494   esac
6495   ;;
6496
6497 sysv4*MP*)
6498   if test -d /usr/nec ;then
6499     version_type=linux
6500     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6501     soname_spec='$libname${shared_ext}.$major'
6502     shlibpath_var=LD_LIBRARY_PATH
6503   fi
6504   ;;
6505
6506 uts4*)
6507   version_type=linux
6508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6509   soname_spec='${libname}${release}${shared_ext}$major'
6510   shlibpath_var=LD_LIBRARY_PATH
6511   ;;
6512
6513 *)
6514   dynamic_linker=no
6515   ;;
6516 esac
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6518 $as_echo "$dynamic_linker" >&6; }
6519 test "$dynamic_linker" = no && can_build_shared=no
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6523 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6524 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   libltdl_cv_shlibpath_var="$shlibpath_var"
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6530 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6531 if test -n "$libltdl_cv_shlibpath_var"; then
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6535 _ACEOF
6536
6537 fi
6538
6539 fi
6540
6541 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6542
6543
6544 # Possibly build libgcj as many sub-libraries.
6545 # Check whether --enable-libgcj-sublibs was given.
6546 if test "${enable_libgcj_sublibs+set}" = set; then :
6547   enableval=$enable_libgcj_sublibs;
6548 fi
6549
6550
6551 if test -z "$enable_libgcj_sublibs"; then
6552    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6553 fi
6554  if test "$enable_libgcj_sublibs" = yes; then
6555   BUILD_SUBLIBS_TRUE=
6556   BUILD_SUBLIBS_FALSE='#'
6557 else
6558   BUILD_SUBLIBS_TRUE='#'
6559   BUILD_SUBLIBS_FALSE=
6560 fi
6561
6562 if test "$enable_libgcj_sublibs" = yes ; then
6563   # In theory we could make do with only one override and simply
6564   # tag "_bc" onto the end of it when we use it to generate the
6565   # spec, but that's an ugly thing to do when there are multiple
6566   # words in the string and you're relying on the ordering to
6567   # append the correct one.
6568   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6569   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6570 fi
6571
6572
6573 # See if the user has requested runtime debugging.
6574 LIBGCJDEBUG="disable"
6575
6576 # Check whether --enable-libgcj-debug was given.
6577 if test "${enable_libgcj_debug+set}" = set; then :
6578   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6579
6580 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6581
6582     LIBGCJDEBUG="enable"
6583   fi
6584 fi
6585
6586
6587
6588 # Check whether --with-escher was given.
6589 if test "${with_escher+set}" = set; then :
6590   withval=$with_escher;
6591 fi
6592
6593 case "$with_escher" in
6594 "")
6595         use_escher=false
6596         ;;
6597 "no")
6598         use_escher=false
6599         ;;
6600 "yes")
6601         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6602         ;;
6603 *)
6604         use_escher=true
6605         ;;
6606 esac
6607
6608 # Determine which AWT peer libraries to build
6609 # Check whether --enable-java-awt was given.
6610 if test "${enable_java_awt+set}" = set; then :
6611   enableval=$enable_java_awt;
6612 fi
6613
6614
6615 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6616 use_xlib_awt=""
6617 use_gtk_awt=""
6618 use_qt_awt=""
6619 use_x_awt=""
6620 # The default toolkit to use is the first one specified.
6621 TOOLKIT=
6622
6623
6624 for peer in $peerlibs ; do
6625   case $peer in
6626     xlib)
6627       if test "$no_x" = yes; then
6628         echo "*** xlib peers requested but no X library available" 1>&2
6629         exit 1
6630       else
6631         use_xlib_awt="yes"
6632         if test -z "$TOOLKIT"; then
6633            TOOLKIT=gnu.awt.xlib.XToolkit
6634         fi
6635       fi
6636       ;;
6637     gtk)
6638       if test "$no_x" = yes; then
6639          echo "*** gtk peers requested but no X library available" 1>&2
6640          exit 1
6641       else
6642          use_gtk_awt=yes
6643          if test -z "$TOOLKIT"; then
6644             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6645          fi
6646       fi
6647       ;;
6648     qt)
6649       if test "$no_x" = yes; then
6650          # Perhaps we should admit the possibility of embedded Qt.
6651          echo "*** Qt peers requested but no X library available" 1>&2
6652          exit 1
6653       else
6654          use_qt_awt=yes
6655          if test -z "$TOOLKIT"; then
6656             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6657          fi
6658       fi
6659       ;;
6660     x)
6661       use_x_awt=yes
6662       if test -z "$TOOLKIT"; then
6663          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6664       fi
6665       ;;
6666     no)
6667       use_xlib_awt=
6668       use_gtk_awt=
6669       use_qt_awt=
6670       use_x_awt=
6671       break
6672       ;;
6673     *)
6674       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6675       exit 1
6676   esac
6677 done
6678
6679  if test "$use_xlib_awt" = yes; then
6680   XLIB_AWT_TRUE=
6681   XLIB_AWT_FALSE='#'
6682 else
6683   XLIB_AWT_TRUE='#'
6684   XLIB_AWT_FALSE=
6685 fi
6686
6687  if test "$use_x_awt" = yes; then
6688   X_AWT_TRUE=
6689   X_AWT_FALSE='#'
6690 else
6691   X_AWT_TRUE='#'
6692   X_AWT_FALSE=
6693 fi
6694
6695
6696
6697 cat >>confdefs.h <<_ACEOF
6698 #define AWT_TOOLKIT "$TOOLKIT"
6699 _ACEOF
6700
6701
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define LIBGCJ_PREFIX "$prefix"
6705 _ACEOF
6706
6707
6708 # Create standard.omit based on decisions we just made.
6709 cp $srcdir/standard.omit.in standard.omit
6710 if test "$use_xlib_awt" != yes; then
6711    echo gnu/awt/xlib >> standard.omit
6712    echo gnu/gcj/xlib >> standard.omit
6713 fi
6714 if test "$use_x_awt" != yes; then
6715    echo gnu/java/awt/peer/x >> standard.omit
6716 fi
6717
6718 # Tools that need to be compiled against classpath's tools classes
6719 : > vm-tools-packages
6720 for package in gnu/gcj/tools/gc_analyze ; do
6721     echo $package >> standard.omit
6722     echo $package >> vm-tools-packages
6723 done
6724
6725 if test -z "${with_multisubdir}"; then
6726    builddotdot=.
6727 else
6728    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6729 fi
6730
6731 NATIVE=yes
6732
6733 # Which gcj and host gcj (for ecjx) do we use?
6734 which_gcj=default
6735 host_exeext=${ac_exeext}
6736 GCJ_FOR_ECJX=
6737 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6738 if test -n "${with_cross_host}"; then
6739   # We are being configured with a cross compiler. We can't
6740   # use ac_exeext, because that is for the target platform.
6741   NATIVE=no
6742   cross_host_exeext=
6743   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6744   case "${with_cross_host}" in
6745      *mingw* | *cygwin*)
6746          cross_host_exeext=.exe
6747      ;;
6748   esac
6749   host_exeext=${cross_host_exeext}
6750   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6751      if test x"$build_noncanonical" = x"$with_cross_host"; then
6752         # Ordinary cross (host!=target and host=build)
6753         which_gcj=built
6754      else
6755         # Canadian cross (host!=target and host!=build)
6756         which_gcj=cross
6757      fi
6758   else
6759      which_gcj=cross
6760   fi
6761 else
6762   # We are being configured with a native or crossed-native compiler
6763   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6764      if test x"$build" = x"$host"; then
6765         # True native build (host=target and host=build)
6766         which_gcj=built
6767      else
6768         # Crossed-native build (host=target and host!=build)
6769         which_gcj=cross
6770      fi
6771   else
6772      which_gcj=path
6773   fi
6774 fi
6775 libgcjdir=`${PWDCMD-pwd}`
6776 case $GCJ in
6777 *" -B"*)
6778   # Just in case there is a comma in the build dir, quote it for the
6779   # sed command below.
6780   case $libgcjdir in
6781   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6782   *) qlibgcjdir=$libgcjdir;;
6783   esac
6784   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6785   ;;
6786 *)
6787   GCJ=$GCJ" -B$libgcjdir/"
6788   ;;
6789 esac
6790 case "${which_gcj}" in
6791    built)
6792       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6793    ;;
6794    cross)
6795       if test "x${with_newlib}" = "xyes"; then
6796          # FIXME (comment): Why is this needed?
6797          GCC_UNWIND_INCLUDE=
6798       fi
6799       GCJH='$(target_noncanonical)-gcjh'
6800    ;;
6801    path)
6802       GCJH=gcjh
6803    ;;
6804 esac
6805 JAVAC="$GCJ -C"
6806 export JAVAC
6807
6808
6809
6810
6811
6812 # Create it, so that compile/link tests don't fail
6813 test -f libgcj.spec || touch libgcj.spec
6814
6815
6816
6817 # Set up to configure Classpath.
6818 # FIXME: no supported way to pass args in autoconf.
6819 # Disable tool wrappers to avoid ltdl.h configure check.
6820 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6821 ac_configure_args="$ac_configure_args --disable-load-library"
6822 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6823 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6824 dir1=`cd $srcdir && pwd`
6825 dir2=`pwd`
6826 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6827 ac_configure_args="$ac_configure_args --disable-core-jni"
6828 ac_configure_args="$ac_configure_args --disable-examples"
6829 ac_configure_args="$ac_configure_args --with-glibj=build"
6830 if test "$plugin_enabled" != yes; then
6831   ac_configure_args="$ac_configure_args --disable-plugin"
6832 fi
6833 if test "$gconf_enabled" != yes; then
6834   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6835   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6836 fi
6837 if test "$use_gtk_awt" != yes; then
6838   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6839 fi
6840 if test "$use_qt_awt" != yes; then
6841   ac_configure_args="$ac_configure_args --disable-qt-peer"
6842 else
6843   # We need this as qt is disabled by default in classpath.
6844   ac_configure_args="$ac_configure_args --enable-qt-peer"
6845 fi
6846 if test "$use_x_awt" != yes; then
6847   ac_configure_args="$ac_configure_args --without-escher"
6848 else
6849   # We need this as escher is disabled by default in classpath.
6850   if test "$use_escher" != true; then
6851     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6852   else
6853     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6854   fi
6855 fi
6856 if test "x$BUILD_GJDOC" = xno; then
6857   ac_configure_args="$ac_configure_args --disable-gjdoc"
6858 fi
6859 # -Werror causes unavoidable problems in code using alsa.
6860 ac_configure_args="$ac_configure_args --disable-regen-headers"
6861 ac_configure_args="$ac_configure_args --disable-Werror"
6862
6863 # Only use libltdl for non-newlib builds.
6864 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6865      case $enable_ltdl_convenience in
6866   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6867   "") enable_ltdl_convenience=yes
6868       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6869   esac
6870   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6871   LTDLINCL='-I${top_srcdir}/''libltdl'
6872   # For backwards non-gettext consistent compatibility...
6873   INCLTDL="$LTDLINCL"
6874
6875    enable_dlopen=yes
6876
6877
6878
6879    DIRLTDL=libltdl
6880
6881 $as_echo "#define USE_LTDL 1" >>confdefs.h
6882
6883    # Sigh.  Libtool's macro doesn't do the right thing.
6884    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6885    # FIXME: this is a hack.
6886    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6887    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6888 fi
6889
6890
6891
6892 case `pwd` in
6893   *\ * | *\     *)
6894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6895 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6896 esac
6897
6898
6899
6900 macro_version='2.2.6'
6901 macro_revision='1.3012'
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 ltmain="$ac_aux_dir/ltmain.sh"
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6918 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6919 if test "${ac_cv_path_SED+set}" = set; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6923      for ac_i in 1 2 3 4 5 6 7; do
6924        ac_script="$ac_script$as_nl$ac_script"
6925      done
6926      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6927      { ac_script=; unset ac_script;}
6928      if test -z "$SED"; then
6929   ac_path_SED_found=false
6930   # Loop through the user's path and test for each of PROGNAME-LIST
6931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936     for ac_prog in sed gsed; do
6937     for ac_exec_ext in '' $ac_executable_extensions; do
6938       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6939       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6940 # Check for GNU ac_path_SED and select it if it is found.
6941   # Check for GNU $ac_path_SED
6942 case `"$ac_path_SED" --version 2>&1` in
6943 *GNU*)
6944   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6945 *)
6946   ac_count=0
6947   $as_echo_n 0123456789 >"conftest.in"
6948   while :
6949   do
6950     cat "conftest.in" "conftest.in" >"conftest.tmp"
6951     mv "conftest.tmp" "conftest.in"
6952     cp "conftest.in" "conftest.nl"
6953     $as_echo '' >> "conftest.nl"
6954     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6955     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6956     as_fn_arith $ac_count + 1 && ac_count=$as_val
6957     if test $ac_count -gt ${ac_path_SED_max-0}; then
6958       # Best one so far, save it but keep looking for a better one
6959       ac_cv_path_SED="$ac_path_SED"
6960       ac_path_SED_max=$ac_count
6961     fi
6962     # 10*(2^10) chars as input seems more than enough
6963     test $ac_count -gt 10 && break
6964   done
6965   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6966 esac
6967
6968       $ac_path_SED_found && break 3
6969     done
6970   done
6971   done
6972 IFS=$as_save_IFS
6973   if test -z "$ac_cv_path_SED"; then
6974     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6975   fi
6976 else
6977   ac_cv_path_SED=$SED
6978 fi
6979
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6982 $as_echo "$ac_cv_path_SED" >&6; }
6983  SED="$ac_cv_path_SED"
6984   rm -f conftest.sed
6985
6986 test -z "$SED" && SED=sed
6987 Xsed="$SED -e 1s/^X//"
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7000 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7001 if test "${ac_cv_path_GREP+set}" = set; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   if test -z "$GREP"; then
7005   ac_path_GREP_found=false
7006   # Loop through the user's path and test for each of PROGNAME-LIST
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_prog in grep ggrep; do
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7015       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7016 # Check for GNU ac_path_GREP and select it if it is found.
7017   # Check for GNU $ac_path_GREP
7018 case `"$ac_path_GREP" --version 2>&1` in
7019 *GNU*)
7020   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7021 *)
7022   ac_count=0
7023   $as_echo_n 0123456789 >"conftest.in"
7024   while :
7025   do
7026     cat "conftest.in" "conftest.in" >"conftest.tmp"
7027     mv "conftest.tmp" "conftest.in"
7028     cp "conftest.in" "conftest.nl"
7029     $as_echo 'GREP' >> "conftest.nl"
7030     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7031     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7032     as_fn_arith $ac_count + 1 && ac_count=$as_val
7033     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7034       # Best one so far, save it but keep looking for a better one
7035       ac_cv_path_GREP="$ac_path_GREP"
7036       ac_path_GREP_max=$ac_count
7037     fi
7038     # 10*(2^10) chars as input seems more than enough
7039     test $ac_count -gt 10 && break
7040   done
7041   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7042 esac
7043
7044       $ac_path_GREP_found && break 3
7045     done
7046   done
7047   done
7048 IFS=$as_save_IFS
7049   if test -z "$ac_cv_path_GREP"; then
7050     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7051   fi
7052 else
7053   ac_cv_path_GREP=$GREP
7054 fi
7055
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7058 $as_echo "$ac_cv_path_GREP" >&6; }
7059  GREP="$ac_cv_path_GREP"
7060
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7063 $as_echo_n "checking for egrep... " >&6; }
7064 if test "${ac_cv_path_EGREP+set}" = set; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7068    then ac_cv_path_EGREP="$GREP -E"
7069    else
7070      if test -z "$EGREP"; then
7071   ac_path_EGREP_found=false
7072   # Loop through the user's path and test for each of PROGNAME-LIST
7073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_prog in egrep; do
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7081       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7082 # Check for GNU ac_path_EGREP and select it if it is found.
7083   # Check for GNU $ac_path_EGREP
7084 case `"$ac_path_EGREP" --version 2>&1` in
7085 *GNU*)
7086   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7087 *)
7088   ac_count=0
7089   $as_echo_n 0123456789 >"conftest.in"
7090   while :
7091   do
7092     cat "conftest.in" "conftest.in" >"conftest.tmp"
7093     mv "conftest.tmp" "conftest.in"
7094     cp "conftest.in" "conftest.nl"
7095     $as_echo 'EGREP' >> "conftest.nl"
7096     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098     as_fn_arith $ac_count + 1 && ac_count=$as_val
7099     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7100       # Best one so far, save it but keep looking for a better one
7101       ac_cv_path_EGREP="$ac_path_EGREP"
7102       ac_path_EGREP_max=$ac_count
7103     fi
7104     # 10*(2^10) chars as input seems more than enough
7105     test $ac_count -gt 10 && break
7106   done
7107   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7108 esac
7109
7110       $ac_path_EGREP_found && break 3
7111     done
7112   done
7113   done
7114 IFS=$as_save_IFS
7115   if test -z "$ac_cv_path_EGREP"; then
7116     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7117   fi
7118 else
7119   ac_cv_path_EGREP=$EGREP
7120 fi
7121
7122    fi
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7125 $as_echo "$ac_cv_path_EGREP" >&6; }
7126  EGREP="$ac_cv_path_EGREP"
7127
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7130 $as_echo_n "checking for fgrep... " >&6; }
7131 if test "${ac_cv_path_FGREP+set}" = set; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7135    then ac_cv_path_FGREP="$GREP -F"
7136    else
7137      if test -z "$FGREP"; then
7138   ac_path_FGREP_found=false
7139   # Loop through the user's path and test for each of PROGNAME-LIST
7140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145     for ac_prog in fgrep; do
7146     for ac_exec_ext in '' $ac_executable_extensions; do
7147       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7148       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7149 # Check for GNU ac_path_FGREP and select it if it is found.
7150   # Check for GNU $ac_path_FGREP
7151 case `"$ac_path_FGREP" --version 2>&1` in
7152 *GNU*)
7153   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7154 *)
7155   ac_count=0
7156   $as_echo_n 0123456789 >"conftest.in"
7157   while :
7158   do
7159     cat "conftest.in" "conftest.in" >"conftest.tmp"
7160     mv "conftest.tmp" "conftest.in"
7161     cp "conftest.in" "conftest.nl"
7162     $as_echo 'FGREP' >> "conftest.nl"
7163     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7165     as_fn_arith $ac_count + 1 && ac_count=$as_val
7166     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7167       # Best one so far, save it but keep looking for a better one
7168       ac_cv_path_FGREP="$ac_path_FGREP"
7169       ac_path_FGREP_max=$ac_count
7170     fi
7171     # 10*(2^10) chars as input seems more than enough
7172     test $ac_count -gt 10 && break
7173   done
7174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7175 esac
7176
7177       $ac_path_FGREP_found && break 3
7178     done
7179   done
7180   done
7181 IFS=$as_save_IFS
7182   if test -z "$ac_cv_path_FGREP"; then
7183     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7184   fi
7185 else
7186   ac_cv_path_FGREP=$FGREP
7187 fi
7188
7189    fi
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7192 $as_echo "$ac_cv_path_FGREP" >&6; }
7193  FGREP="$ac_cv_path_FGREP"
7194
7195
7196 test -z "$GREP" && GREP=grep
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 # Check whether --with-gnu-ld was given.
7217 if test "${with_gnu_ld+set}" = set; then :
7218   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7219 else
7220   with_gnu_ld=no
7221 fi
7222
7223 ac_prog=ld
7224 if test "$GCC" = yes; then
7225   # Check if gcc -print-prog-name=ld gives a path.
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7227 $as_echo_n "checking for ld used by $CC... " >&6; }
7228   case $host in
7229   *-*-mingw*)
7230     # gcc leaves a trailing carriage return which upsets mingw
7231     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7232   *)
7233     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7234   esac
7235   case $ac_prog in
7236     # Accept absolute paths.
7237     [\\/]* | ?:[\\/]*)
7238       re_direlt='/[^/][^/]*/\.\./'
7239       # Canonicalize the pathname of ld
7240       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7241       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7242         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7243       done
7244       test -z "$LD" && LD="$ac_prog"
7245       ;;
7246   "")
7247     # If it fails, then pretend we aren't using GCC.
7248     ac_prog=ld
7249     ;;
7250   *)
7251     # If it is relative, then search for the first ld in PATH.
7252     with_gnu_ld=unknown
7253     ;;
7254   esac
7255 elif test "$with_gnu_ld" = yes; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7257 $as_echo_n "checking for GNU ld... " >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7260 $as_echo_n "checking for non-GNU ld... " >&6; }
7261 fi
7262 if test "${lt_cv_path_LD+set}" = set; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -z "$LD"; then
7266   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7267   for ac_dir in $PATH; do
7268     IFS="$lt_save_ifs"
7269     test -z "$ac_dir" && ac_dir=.
7270     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7271       lt_cv_path_LD="$ac_dir/$ac_prog"
7272       # Check to see if the program is GNU ld.  I'd rather use --version,
7273       # but apparently some variants of GNU ld only accept -v.
7274       # Break only if it was the GNU/non-GNU ld that we prefer.
7275       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7276       *GNU* | *'with BFD'*)
7277         test "$with_gnu_ld" != no && break
7278         ;;
7279       *)
7280         test "$with_gnu_ld" != yes && break
7281         ;;
7282       esac
7283     fi
7284   done
7285   IFS="$lt_save_ifs"
7286 else
7287   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7288 fi
7289 fi
7290
7291 LD="$lt_cv_path_LD"
7292 if test -n "$LD"; then
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7294 $as_echo "$LD" >&6; }
7295 else
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 fi
7299 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7302 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7306 case `$LD -v 2>&1 </dev/null` in
7307 *GNU* | *'with BFD'*)
7308   lt_cv_prog_gnu_ld=yes
7309   ;;
7310 *)
7311   lt_cv_prog_gnu_ld=no
7312   ;;
7313 esac
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7316 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7317 with_gnu_ld=$lt_cv_prog_gnu_ld
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7328 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7329 if test "${lt_cv_path_NM+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$NM"; then
7333   # Let the user override the test.
7334   lt_cv_path_NM="$NM"
7335 else
7336   lt_nm_to_check="${ac_tool_prefix}nm"
7337   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7338     lt_nm_to_check="$lt_nm_to_check nm"
7339   fi
7340   for lt_tmp_nm in $lt_nm_to_check; do
7341     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7343       IFS="$lt_save_ifs"
7344       test -z "$ac_dir" && ac_dir=.
7345       tmp_nm="$ac_dir/$lt_tmp_nm"
7346       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7347         # Check to see if the nm accepts a BSD-compat flag.
7348         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7349         #   nm: unknown option "B" ignored
7350         # Tru64's nm complains that /dev/null is an invalid object file
7351         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7352         */dev/null* | *'Invalid file or object type'*)
7353           lt_cv_path_NM="$tmp_nm -B"
7354           break
7355           ;;
7356         *)
7357           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7358           */dev/null*)
7359             lt_cv_path_NM="$tmp_nm -p"
7360             break
7361             ;;
7362           *)
7363             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7364             continue # so that we can try to find one that supports BSD flags
7365             ;;
7366           esac
7367           ;;
7368         esac
7369       fi
7370     done
7371     IFS="$lt_save_ifs"
7372   done
7373   : ${lt_cv_path_NM=no}
7374 fi
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7377 $as_echo "$lt_cv_path_NM" >&6; }
7378 if test "$lt_cv_path_NM" != "no"; then
7379   NM="$lt_cv_path_NM"
7380 else
7381   # Didn't find any BSD compatible name lister, look for dumpbin.
7382   if test -n "$ac_tool_prefix"; then
7383   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7384   do
7385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7390   $as_echo_n "(cached) " >&6
7391 else
7392   if test -n "$DUMPBIN"; then
7393   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400     for ac_exec_ext in '' $ac_executable_extensions; do
7401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407   done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 DUMPBIN=$ac_cv_prog_DUMPBIN
7413 if test -n "$DUMPBIN"; then
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7415 $as_echo "$DUMPBIN" >&6; }
7416 else
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421
7422     test -n "$DUMPBIN" && break
7423   done
7424 fi
7425 if test -z "$DUMPBIN"; then
7426   ac_ct_DUMPBIN=$DUMPBIN
7427   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7428 do
7429   # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$ac_ct_DUMPBIN"; then
7437   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7457 if test -n "$ac_ct_DUMPBIN"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7459 $as_echo "$ac_ct_DUMPBIN" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466   test -n "$ac_ct_DUMPBIN" && break
7467 done
7468
7469   if test "x$ac_ct_DUMPBIN" = x; then
7470     DUMPBIN=":"
7471   else
7472     case $cross_compiling:$ac_tool_warned in
7473 yes:)
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476 ac_tool_warned=yes ;;
7477 esac
7478     DUMPBIN=$ac_ct_DUMPBIN
7479   fi
7480 fi
7481
7482
7483   if test "$DUMPBIN" != ":"; then
7484     NM="$DUMPBIN"
7485   fi
7486 fi
7487 test -z "$NM" && NM=nm
7488
7489
7490
7491
7492
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7496 if test "${lt_cv_nm_interface+set}" = set; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   lt_cv_nm_interface="BSD nm"
7500   echo "int some_variable = 0;" > conftest.$ac_ext
7501   (eval echo "\"\$as_me:7501: $ac_compile\"" >&5)
7502   (eval "$ac_compile" 2>conftest.err)
7503   cat conftest.err >&5
7504   (eval echo "\"\$as_me:7504: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7505   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7506   cat conftest.err >&5
7507   (eval echo "\"\$as_me:7507: output\"" >&5)
7508   cat conftest.out >&5
7509   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7510     lt_cv_nm_interface="MS dumpbin"
7511   fi
7512   rm -f conftest*
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7515 $as_echo "$lt_cv_nm_interface" >&6; }
7516
7517 # find the maximum length of command line arguments
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7519 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7520 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523     i=0
7524   teststring="ABCD"
7525
7526   case $build_os in
7527   msdosdjgpp*)
7528     # On DJGPP, this test can blow up pretty badly due to problems in libc
7529     # (any single argument exceeding 2000 bytes causes a buffer overrun
7530     # during glob expansion).  Even if it were fixed, the result of this
7531     # check would be larger than it should be.
7532     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7533     ;;
7534
7535   gnu*)
7536     # Under GNU Hurd, this test is not required because there is
7537     # no limit to the length of command line arguments.
7538     # Libtool will interpret -1 as no limit whatsoever
7539     lt_cv_sys_max_cmd_len=-1;
7540     ;;
7541
7542   cygwin* | mingw* | cegcc*)
7543     # On Win9x/ME, this test blows up -- it succeeds, but takes
7544     # about 5 minutes as the teststring grows exponentially.
7545     # Worse, since 9x/ME are not pre-emptively multitasking,
7546     # you end up with a "frozen" computer, even though with patience
7547     # the test eventually succeeds (with a max line length of 256k).
7548     # Instead, let's just punt: use the minimum linelength reported by
7549     # all of the supported platforms: 8192 (on NT/2K/XP).
7550     lt_cv_sys_max_cmd_len=8192;
7551     ;;
7552
7553   amigaos*)
7554     # On AmigaOS with pdksh, this test takes hours, literally.
7555     # So we just punt and use a minimum line length of 8192.
7556     lt_cv_sys_max_cmd_len=8192;
7557     ;;
7558
7559   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7560     # This has been around since 386BSD, at least.  Likely further.
7561     if test -x /sbin/sysctl; then
7562       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7563     elif test -x /usr/sbin/sysctl; then
7564       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7565     else
7566       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7567     fi
7568     # And add a safety zone
7569     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7570     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7571     ;;
7572
7573   interix*)
7574     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7575     lt_cv_sys_max_cmd_len=196608
7576     ;;
7577
7578   osf*)
7579     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7580     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7581     # nice to cause kernel panics so lets avoid the loop below.
7582     # First set a reasonable default.
7583     lt_cv_sys_max_cmd_len=16384
7584     #
7585     if test -x /sbin/sysconfig; then
7586       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7587         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7588       esac
7589     fi
7590     ;;
7591   sco3.2v5*)
7592     lt_cv_sys_max_cmd_len=102400
7593     ;;
7594   sysv5* | sco5v6* | sysv4.2uw2*)
7595     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7596     if test -n "$kargmax"; then
7597       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7598     else
7599       lt_cv_sys_max_cmd_len=32768
7600     fi
7601     ;;
7602   *)
7603     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7604     if test -n "$lt_cv_sys_max_cmd_len"; then
7605       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7606       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7607     else
7608       # Make teststring a little bigger before we do anything with it.
7609       # a 1K string should be a reasonable start.
7610       for i in 1 2 3 4 5 6 7 8 ; do
7611         teststring=$teststring$teststring
7612       done
7613       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7614       # If test is not a shell built-in, we'll probably end up computing a
7615       # maximum length that is only half of the actual maximum length, but
7616       # we can't tell.
7617       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7618                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7619               test $i != 17 # 1/2 MB should be enough
7620       do
7621         i=`expr $i + 1`
7622         teststring=$teststring$teststring
7623       done
7624       # Only check the string length outside the loop.
7625       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7626       teststring=
7627       # Add a significant safety factor because C++ compilers can tack on
7628       # massive amounts of additional arguments before passing them to the
7629       # linker.  It appears as though 1/2 is a usable value.
7630       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7631     fi
7632     ;;
7633   esac
7634
7635 fi
7636
7637 if test -n $lt_cv_sys_max_cmd_len ; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7639 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7642 $as_echo "none" >&6; }
7643 fi
7644 max_cmd_len=$lt_cv_sys_max_cmd_len
7645
7646
7647
7648
7649
7650
7651 : ${CP="cp -f"}
7652 : ${MV="mv -f"}
7653 : ${RM="rm -f"}
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7656 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7657 # Try some XSI features
7658 xsi_shell=no
7659 ( _lt_dummy="a/b/c"
7660   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7661       = c,a/b,, \
7662     && eval 'test $(( 1 + 1 )) -eq 2 \
7663     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7664   && xsi_shell=yes
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7666 $as_echo "$xsi_shell" >&6; }
7667
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7670 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7671 lt_shell_append=no
7672 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7673     >/dev/null 2>&1 \
7674   && lt_shell_append=yes
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7676 $as_echo "$lt_shell_append" >&6; }
7677
7678
7679 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7680   lt_unset=unset
7681 else
7682   lt_unset=false
7683 fi
7684
7685
7686
7687
7688
7689 # test EBCDIC or ASCII
7690 case `echo X|tr X '\101'` in
7691  A) # ASCII based system
7692     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7693   lt_SP2NL='tr \040 \012'
7694   lt_NL2SP='tr \015\012 \040\040'
7695   ;;
7696  *) # EBCDIC based system
7697   lt_SP2NL='tr \100 \n'
7698   lt_NL2SP='tr \r\n \100\100'
7699   ;;
7700 esac
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7711 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7712 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   lt_cv_ld_reload_flag='-r'
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7718 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7719 reload_flag=$lt_cv_ld_reload_flag
7720 case $reload_flag in
7721 "" | " "*) ;;
7722 *) reload_flag=" $reload_flag" ;;
7723 esac
7724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7725 case $host_os in
7726   darwin*)
7727     if test "$GCC" = yes; then
7728       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7729     else
7730       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7731     fi
7732     ;;
7733 esac
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743 if test -n "$ac_tool_prefix"; then
7744   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7745 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$OBJDUMP"; then
7752   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 OBJDUMP=$ac_cv_prog_OBJDUMP
7772 if test -n "$OBJDUMP"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7774 $as_echo "$OBJDUMP" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781 fi
7782 if test -z "$ac_cv_prog_OBJDUMP"; then
7783   ac_ct_OBJDUMP=$OBJDUMP
7784   # Extract the first word of "objdump", so it can be a program name with args.
7785 set dummy objdump; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7789   $as_echo_n "(cached) " >&6
7790 else
7791   if test -n "$ac_ct_OBJDUMP"; then
7792   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799     for ac_exec_ext in '' $ac_executable_extensions; do
7800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806   done
7807 IFS=$as_save_IFS
7808
7809 fi
7810 fi
7811 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7812 if test -n "$ac_ct_OBJDUMP"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7814 $as_echo "$ac_ct_OBJDUMP" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820   if test "x$ac_ct_OBJDUMP" = x; then
7821     OBJDUMP="false"
7822   else
7823     case $cross_compiling:$ac_tool_warned in
7824 yes:)
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7827 ac_tool_warned=yes ;;
7828 esac
7829     OBJDUMP=$ac_ct_OBJDUMP
7830   fi
7831 else
7832   OBJDUMP="$ac_cv_prog_OBJDUMP"
7833 fi
7834
7835 test -z "$OBJDUMP" && OBJDUMP=objdump
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7846 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7847 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   lt_cv_file_magic_cmd='$MAGIC_CMD'
7851 lt_cv_file_magic_test_file=
7852 lt_cv_deplibs_check_method='unknown'
7853 # Need to set the preceding variable on all platforms that support
7854 # interlibrary dependencies.
7855 # 'none' -- dependencies not supported.
7856 # `unknown' -- same as none, but documents that we really don't know.
7857 # 'pass_all' -- all dependencies passed with no checks.
7858 # 'test_compile' -- check by making test program.
7859 # 'file_magic [[regex]]' -- check by looking for files in library path
7860 # which responds to the $file_magic_cmd with a given extended regex.
7861 # If you have `file' or equivalent on your system and you're not sure
7862 # whether `pass_all' will *always* work, you probably want this one.
7863
7864 case $host_os in
7865 aix[4-9]*)
7866   lt_cv_deplibs_check_method=pass_all
7867   ;;
7868
7869 beos*)
7870   lt_cv_deplibs_check_method=pass_all
7871   ;;
7872
7873 bsdi[45]*)
7874   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7875   lt_cv_file_magic_cmd='/usr/bin/file -L'
7876   lt_cv_file_magic_test_file=/shlib/libc.so
7877   ;;
7878
7879 cygwin*)
7880   # func_win32_libid is a shell function defined in ltmain.sh
7881   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7882   lt_cv_file_magic_cmd='func_win32_libid'
7883   ;;
7884
7885 mingw* | pw32*)
7886   # Base MSYS/MinGW do not provide the 'file' command needed by
7887   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7888   # unless we find 'file', for example because we are cross-compiling.
7889   if ( file / ) >/dev/null 2>&1; then
7890     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7891     lt_cv_file_magic_cmd='func_win32_libid'
7892   else
7893     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7894     lt_cv_file_magic_cmd='$OBJDUMP -f'
7895   fi
7896   ;;
7897
7898 cegcc)
7899   # use the weaker test based on 'objdump'. See mingw*.
7900   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7901   lt_cv_file_magic_cmd='$OBJDUMP -f'
7902   ;;
7903
7904 darwin* | rhapsody*)
7905   lt_cv_deplibs_check_method=pass_all
7906   ;;
7907
7908 freebsd* | dragonfly*)
7909   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7910     case $host_cpu in
7911     i*86 )
7912       # Not sure whether the presence of OpenBSD here was a mistake.
7913       # Let's accept both of them until this is cleared up.
7914       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7915       lt_cv_file_magic_cmd=/usr/bin/file
7916       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7917       ;;
7918     esac
7919   else
7920     lt_cv_deplibs_check_method=pass_all
7921   fi
7922   ;;
7923
7924 gnu*)
7925   lt_cv_deplibs_check_method=pass_all
7926   ;;
7927
7928 hpux10.20* | hpux11*)
7929   lt_cv_file_magic_cmd=/usr/bin/file
7930   case $host_cpu in
7931   ia64*)
7932     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7933     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7934     ;;
7935   hppa*64*)
7936     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7937     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7938     ;;
7939   *)
7940     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7941     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7942     ;;
7943   esac
7944   ;;
7945
7946 interix[3-9]*)
7947   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7948   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7949   ;;
7950
7951 irix5* | irix6* | nonstopux*)
7952   case $LD in
7953   *-32|*"-32 ") libmagic=32-bit;;
7954   *-n32|*"-n32 ") libmagic=N32;;
7955   *-64|*"-64 ") libmagic=64-bit;;
7956   *) libmagic=never-match;;
7957   esac
7958   lt_cv_deplibs_check_method=pass_all
7959   ;;
7960
7961 # This must be Linux ELF.
7962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7963   lt_cv_deplibs_check_method=pass_all
7964   ;;
7965
7966 netbsd*)
7967   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7968     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7969   else
7970     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7971   fi
7972   ;;
7973
7974 newos6*)
7975   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7976   lt_cv_file_magic_cmd=/usr/bin/file
7977   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7978   ;;
7979
7980 *nto* | *qnx*)
7981   lt_cv_deplibs_check_method=pass_all
7982   ;;
7983
7984 openbsd*)
7985   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7986     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7987   else
7988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7989   fi
7990   ;;
7991
7992 osf3* | osf4* | osf5*)
7993   lt_cv_deplibs_check_method=pass_all
7994   ;;
7995
7996 rdos*)
7997   lt_cv_deplibs_check_method=pass_all
7998   ;;
7999
8000 solaris*)
8001   lt_cv_deplibs_check_method=pass_all
8002   ;;
8003
8004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8005   lt_cv_deplibs_check_method=pass_all
8006   ;;
8007
8008 sysv4 | sysv4.3*)
8009   case $host_vendor in
8010   motorola)
8011     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]'
8012     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8013     ;;
8014   ncr)
8015     lt_cv_deplibs_check_method=pass_all
8016     ;;
8017   sequent)
8018     lt_cv_file_magic_cmd='/bin/file'
8019     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8020     ;;
8021   sni)
8022     lt_cv_file_magic_cmd='/bin/file'
8023     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8024     lt_cv_file_magic_test_file=/lib/libc.so
8025     ;;
8026   siemens)
8027     lt_cv_deplibs_check_method=pass_all
8028     ;;
8029   pc)
8030     lt_cv_deplibs_check_method=pass_all
8031     ;;
8032   esac
8033   ;;
8034
8035 tpf*)
8036   lt_cv_deplibs_check_method=pass_all
8037   ;;
8038 esac
8039
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8042 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8043 file_magic_cmd=$lt_cv_file_magic_cmd
8044 deplibs_check_method=$lt_cv_deplibs_check_method
8045 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 if test -n "$ac_tool_prefix"; then
8059   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}ar; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_AR+set}" = set; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   if test -n "$AR"; then
8067   ac_cv_prog_AR="$AR" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074     for ac_exec_ext in '' $ac_executable_extensions; do
8075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076     ac_cv_prog_AR="${ac_tool_prefix}ar"
8077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078     break 2
8079   fi
8080 done
8081   done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 AR=$ac_cv_prog_AR
8087 if test -n "$AR"; then
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8089 $as_echo "$AR" >&6; }
8090 else
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095
8096 fi
8097 if test -z "$ac_cv_prog_AR"; then
8098   ac_ct_AR=$AR
8099   # Extract the first word of "ar", so it can be a program name with args.
8100 set dummy ar; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   if test -n "$ac_ct_AR"; then
8107   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116     ac_cv_prog_ac_ct_AR="ar"
8117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123
8124 fi
8125 fi
8126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8127 if test -n "$ac_ct_AR"; then
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8129 $as_echo "$ac_ct_AR" >&6; }
8130 else
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135   if test "x$ac_ct_AR" = x; then
8136     AR="false"
8137   else
8138     case $cross_compiling:$ac_tool_warned in
8139 yes:)
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142 ac_tool_warned=yes ;;
8143 esac
8144     AR=$ac_ct_AR
8145   fi
8146 else
8147   AR="$ac_cv_prog_AR"
8148 fi
8149
8150 test -z "$AR" && AR=ar
8151 test -z "$AR_FLAGS" && AR_FLAGS=cru
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 if test -n "$ac_tool_prefix"; then
8164   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}strip; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_STRIP+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   if test -n "$STRIP"; then
8172   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 STRIP=$ac_cv_prog_STRIP
8192 if test -n "$STRIP"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8194 $as_echo "$STRIP" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_STRIP"; then
8203   ac_ct_STRIP=$STRIP
8204   # Extract the first word of "strip", so it can be a program name with args.
8205 set dummy strip; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$ac_ct_STRIP"; then
8212   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_ac_ct_STRIP="strip"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8232 if test -n "$ac_ct_STRIP"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8234 $as_echo "$ac_ct_STRIP" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240   if test "x$ac_ct_STRIP" = x; then
8241     STRIP=":"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249     STRIP=$ac_ct_STRIP
8250   fi
8251 else
8252   STRIP="$ac_cv_prog_STRIP"
8253 fi
8254
8255 test -z "$STRIP" && STRIP=:
8256
8257
8258
8259
8260
8261
8262 if test -n "$ac_tool_prefix"; then
8263   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   if test -n "$RANLIB"; then
8271   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278     for ac_exec_ext in '' $ac_executable_extensions; do
8279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282     break 2
8283   fi
8284 done
8285   done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 RANLIB=$ac_cv_prog_RANLIB
8291 if test -n "$RANLIB"; then
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8293 $as_echo "$RANLIB" >&6; }
8294 else
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300 fi
8301 if test -z "$ac_cv_prog_RANLIB"; then
8302   ac_ct_RANLIB=$RANLIB
8303   # Extract the first word of "ranlib", so it can be a program name with args.
8304 set dummy ranlib; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   if test -n "$ac_ct_RANLIB"; then
8311   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316   IFS=$as_save_IFS
8317   test -z "$as_dir" && as_dir=.
8318     for ac_exec_ext in '' $ac_executable_extensions; do
8319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320     ac_cv_prog_ac_ct_RANLIB="ranlib"
8321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325   done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8331 if test -n "$ac_ct_RANLIB"; then
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8333 $as_echo "$ac_ct_RANLIB" >&6; }
8334 else
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339   if test "x$ac_ct_RANLIB" = x; then
8340     RANLIB=":"
8341   else
8342     case $cross_compiling:$ac_tool_warned in
8343 yes:)
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8346 ac_tool_warned=yes ;;
8347 esac
8348     RANLIB=$ac_ct_RANLIB
8349   fi
8350 else
8351   RANLIB="$ac_cv_prog_RANLIB"
8352 fi
8353
8354 test -z "$RANLIB" && RANLIB=:
8355
8356
8357
8358
8359
8360
8361 # Determine commands to create old-style static archives.
8362 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8363 old_postinstall_cmds='chmod 644 $oldlib'
8364 old_postuninstall_cmds=
8365
8366 if test -n "$RANLIB"; then
8367   case $host_os in
8368   openbsd*)
8369     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8370     ;;
8371   *)
8372     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8373     ;;
8374   esac
8375   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411 # If no C compiler was specified, use CC.
8412 LTCC=${LTCC-"$CC"}
8413
8414 # If no C compiler flags were specified, use CFLAGS.
8415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8416
8417 # Allow CC to be a program name with arguments.
8418 compiler=$CC
8419
8420
8421 # Check for command to grab the raw symbol name followed by C symbol from nm.
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8423 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8424 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427
8428 # These are sane defaults that work on at least a few old systems.
8429 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8430
8431 # Character class describing NM global symbol codes.
8432 symcode='[BCDEGRST]'
8433
8434 # Regexp to match symbols that can be accessed directly from C.
8435 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8436
8437 # Define system-specific variables.
8438 case $host_os in
8439 aix*)
8440   symcode='[BCDT]'
8441   ;;
8442 cygwin* | mingw* | pw32* | cegcc*)
8443   symcode='[ABCDGISTW]'
8444   ;;
8445 hpux*)
8446   if test "$host_cpu" = ia64; then
8447     symcode='[ABCDEGRST]'
8448   fi
8449   ;;
8450 irix* | nonstopux*)
8451   symcode='[BCDEGRST]'
8452   ;;
8453 osf*)
8454   symcode='[BCDEGQRST]'
8455   ;;
8456 solaris*)
8457   symcode='[BDRT]'
8458   ;;
8459 sco3.2v5*)
8460   symcode='[DT]'
8461   ;;
8462 sysv4.2uw2*)
8463   symcode='[DT]'
8464   ;;
8465 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8466   symcode='[ABDT]'
8467   ;;
8468 sysv4)
8469   symcode='[DFNSTU]'
8470   ;;
8471 esac
8472
8473 # If we're using GNU nm, then use its standard symbol codes.
8474 case `$NM -V 2>&1` in
8475 *GNU* | *'with BFD'*)
8476   symcode='[ABCDGIRSTW]' ;;
8477 esac
8478
8479 # Transform an extracted symbol line into a proper C declaration.
8480 # Some systems (esp. on ia64) link data and code symbols differently,
8481 # so use this general approach.
8482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8483
8484 # Transform an extracted symbol line into symbol name and symbol address
8485 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8486 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'"
8487
8488 # Handle CRLF in mingw tool chain
8489 opt_cr=
8490 case $build_os in
8491 mingw*)
8492   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8493   ;;
8494 esac
8495
8496 # Try without a prefix underscore, then with it.
8497 for ac_symprfx in "" "_"; do
8498
8499   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8500   symxfrm="\\1 $ac_symprfx\\2 \\2"
8501
8502   # Write the raw and C identifiers.
8503   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8504     # Fake it for dumpbin and say T for any non-static function
8505     # and D for any global variable.
8506     # Also find C++ and __fastcall symbols from MSVC++,
8507     # which start with @ or ?.
8508     lt_cv_sys_global_symbol_pipe="$AWK '"\
8509 "     {last_section=section; section=\$ 3};"\
8510 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8511 "     \$ 0!~/External *\|/{next};"\
8512 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8513 "     {if(hide[section]) next};"\
8514 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8515 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8516 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8517 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8518 "     ' prfx=^$ac_symprfx"
8519   else
8520     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8521   fi
8522
8523   # Check to see that the pipe works correctly.
8524   pipe_works=no
8525
8526   rm -f conftest*
8527   cat > conftest.$ac_ext <<_LT_EOF
8528 #ifdef __cplusplus
8529 extern "C" {
8530 #endif
8531 char nm_test_var;
8532 void nm_test_func(void);
8533 void nm_test_func(void){}
8534 #ifdef __cplusplus
8535 }
8536 #endif
8537 int main(){nm_test_var='a';nm_test_func();return(0);}
8538 _LT_EOF
8539
8540   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8541   (eval $ac_compile) 2>&5
8542   ac_status=$?
8543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8544   test $ac_status = 0; }; then
8545     # Now try to grab the symbols.
8546     nlist=conftest.nm
8547     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8548   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8549   ac_status=$?
8550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551   test $ac_status = 0; } && test -s "$nlist"; then
8552       # Try sorting and uniquifying the output.
8553       if sort "$nlist" | uniq > "$nlist"T; then
8554         mv -f "$nlist"T "$nlist"
8555       else
8556         rm -f "$nlist"T
8557       fi
8558
8559       # Make sure that we snagged all the symbols we need.
8560       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8561         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8562           cat <<_LT_EOF > conftest.$ac_ext
8563 #ifdef __cplusplus
8564 extern "C" {
8565 #endif
8566
8567 _LT_EOF
8568           # Now generate the symbol file.
8569           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8570
8571           cat <<_LT_EOF >> conftest.$ac_ext
8572
8573 /* The mapping between symbol names and symbols.  */
8574 const struct {
8575   const char *name;
8576   void       *address;
8577 }
8578 lt__PROGRAM__LTX_preloaded_symbols[] =
8579 {
8580   { "@PROGRAM@", (void *) 0 },
8581 _LT_EOF
8582           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8583           cat <<\_LT_EOF >> conftest.$ac_ext
8584   {0, (void *) 0}
8585 };
8586
8587 /* This works around a problem in FreeBSD linker */
8588 #ifdef FREEBSD_WORKAROUND
8589 static const void *lt_preloaded_setup() {
8590   return lt__PROGRAM__LTX_preloaded_symbols;
8591 }
8592 #endif
8593
8594 #ifdef __cplusplus
8595 }
8596 #endif
8597 _LT_EOF
8598           # Now try linking the two files.
8599           mv conftest.$ac_objext conftstm.$ac_objext
8600           lt_save_LIBS="$LIBS"
8601           lt_save_CFLAGS="$CFLAGS"
8602           LIBS="conftstm.$ac_objext"
8603           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8604           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8605   (eval $ac_link) 2>&5
8606   ac_status=$?
8607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8608   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8609             pipe_works=yes
8610           fi
8611           LIBS="$lt_save_LIBS"
8612           CFLAGS="$lt_save_CFLAGS"
8613         else
8614           echo "cannot find nm_test_func in $nlist" >&5
8615         fi
8616       else
8617         echo "cannot find nm_test_var in $nlist" >&5
8618       fi
8619     else
8620       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8621     fi
8622   else
8623     echo "$progname: failed program was:" >&5
8624     cat conftest.$ac_ext >&5
8625   fi
8626   rm -rf conftest* conftst*
8627
8628   # Do not use the global_symbol_pipe unless it works.
8629   if test "$pipe_works" = yes; then
8630     break
8631   else
8632     lt_cv_sys_global_symbol_pipe=
8633   fi
8634 done
8635
8636 fi
8637
8638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8639   lt_cv_sys_global_symbol_to_cdecl=
8640 fi
8641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8643 $as_echo "failed" >&6; }
8644 else
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8646 $as_echo "ok" >&6; }
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 # Check whether --enable-libtool-lock was given.
8672 if test "${enable_libtool_lock+set}" = set; then :
8673   enableval=$enable_libtool_lock;
8674 fi
8675
8676 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8677
8678 # Some flags need to be propagated to the compiler or linker for good
8679 # libtool support.
8680 case $host in
8681 ia64-*-hpux*)
8682   # Find out which ABI we are using.
8683   echo 'int i;' > conftest.$ac_ext
8684   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8685   (eval $ac_compile) 2>&5
8686   ac_status=$?
8687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688   test $ac_status = 0; }; then
8689     case `/usr/bin/file conftest.$ac_objext` in
8690       *ELF-32*)
8691         HPUX_IA64_MODE="32"
8692         ;;
8693       *ELF-64*)
8694         HPUX_IA64_MODE="64"
8695         ;;
8696     esac
8697   fi
8698   rm -rf conftest*
8699   ;;
8700 *-*-irix6*)
8701   # Find out which ABI we are using.
8702   echo '#line 8702 "configure"' > conftest.$ac_ext
8703   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8704   (eval $ac_compile) 2>&5
8705   ac_status=$?
8706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8707   test $ac_status = 0; }; then
8708     if test "$lt_cv_prog_gnu_ld" = yes; then
8709       case `/usr/bin/file conftest.$ac_objext` in
8710         *32-bit*)
8711           LD="${LD-ld} -melf32bsmip"
8712           ;;
8713         *N32*)
8714           LD="${LD-ld} -melf32bmipn32"
8715           ;;
8716         *64-bit*)
8717           LD="${LD-ld} -melf64bmip"
8718         ;;
8719       esac
8720     else
8721       case `/usr/bin/file conftest.$ac_objext` in
8722         *32-bit*)
8723           LD="${LD-ld} -32"
8724           ;;
8725         *N32*)
8726           LD="${LD-ld} -n32"
8727           ;;
8728         *64-bit*)
8729           LD="${LD-ld} -64"
8730           ;;
8731       esac
8732     fi
8733   fi
8734   rm -rf conftest*
8735   ;;
8736
8737 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8738 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8739   # Find out which ABI we are using.
8740   echo 'int i;' > conftest.$ac_ext
8741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8742   (eval $ac_compile) 2>&5
8743   ac_status=$?
8744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745   test $ac_status = 0; }; then
8746     case `/usr/bin/file conftest.o` in
8747       *32-bit*)
8748         case $host in
8749           x86_64-*kfreebsd*-gnu)
8750             LD="${LD-ld} -m elf_i386_fbsd"
8751             ;;
8752           x86_64-*linux*)
8753             LD="${LD-ld} -m elf_i386"
8754             ;;
8755           ppc64-*linux*|powerpc64-*linux*)
8756             LD="${LD-ld} -m elf32ppclinux"
8757             ;;
8758           s390x-*linux*)
8759             LD="${LD-ld} -m elf_s390"
8760             ;;
8761           sparc64-*linux*)
8762             LD="${LD-ld} -m elf32_sparc"
8763             ;;
8764         esac
8765         ;;
8766       *64-bit*)
8767         case $host in
8768           x86_64-*kfreebsd*-gnu)
8769             LD="${LD-ld} -m elf_x86_64_fbsd"
8770             ;;
8771           x86_64-*linux*)
8772             LD="${LD-ld} -m elf_x86_64"
8773             ;;
8774           ppc*-*linux*|powerpc*-*linux*)
8775             LD="${LD-ld} -m elf64ppc"
8776             ;;
8777           s390*-*linux*|s390*-*tpf*)
8778             LD="${LD-ld} -m elf64_s390"
8779             ;;
8780           sparc*-*linux*)
8781             LD="${LD-ld} -m elf64_sparc"
8782             ;;
8783         esac
8784         ;;
8785     esac
8786   fi
8787   rm -rf conftest*
8788   ;;
8789
8790 *-*-sco3.2v5*)
8791   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8792   SAVE_CFLAGS="$CFLAGS"
8793   CFLAGS="$CFLAGS -belf"
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8795 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8796 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8804
8805      if test x$gcc_no_link = xyes; then
8806   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8807 fi
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h.  */
8810
8811 int
8812 main ()
8813 {
8814
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"; then :
8820   lt_cv_cc_needs_belf=yes
8821 else
8822   lt_cv_cc_needs_belf=no
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825     conftest$ac_exeext conftest.$ac_ext
8826      ac_ext=c
8827 ac_cpp='$CPP $CPPFLAGS'
8828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8834 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8835   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8836     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8837     CFLAGS="$SAVE_CFLAGS"
8838   fi
8839   ;;
8840 sparc*-*solaris*)
8841   # Find out which ABI we are using.
8842   echo 'int i;' > conftest.$ac_ext
8843   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8844   (eval $ac_compile) 2>&5
8845   ac_status=$?
8846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8847   test $ac_status = 0; }; then
8848     case `/usr/bin/file conftest.o` in
8849     *64-bit*)
8850       case $lt_cv_prog_gnu_ld in
8851       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8852       *)
8853         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8854           LD="${LD-ld} -64"
8855         fi
8856         ;;
8857       esac
8858       ;;
8859     esac
8860   fi
8861   rm -rf conftest*
8862   ;;
8863 esac
8864
8865 need_locks="$enable_libtool_lock"
8866
8867
8868   case $host_os in
8869     rhapsody* | darwin*)
8870     if test -n "$ac_tool_prefix"; then
8871   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8872 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8876   $as_echo_n "(cached) " >&6
8877 else
8878   if test -n "$DSYMUTIL"; then
8879   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884   IFS=$as_save_IFS
8885   test -z "$as_dir" && as_dir=.
8886     for ac_exec_ext in '' $ac_executable_extensions; do
8887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890     break 2
8891   fi
8892 done
8893   done
8894 IFS=$as_save_IFS
8895
8896 fi
8897 fi
8898 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8899 if test -n "$DSYMUTIL"; then
8900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8901 $as_echo "$DSYMUTIL" >&6; }
8902 else
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908 fi
8909 if test -z "$ac_cv_prog_DSYMUTIL"; then
8910   ac_ct_DSYMUTIL=$DSYMUTIL
8911   # Extract the first word of "dsymutil", so it can be a program name with args.
8912 set dummy dsymutil; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8916   $as_echo_n "(cached) " >&6
8917 else
8918   if test -n "$ac_ct_DSYMUTIL"; then
8919   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8920 else
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8923 do
8924   IFS=$as_save_IFS
8925   test -z "$as_dir" && as_dir=.
8926     for ac_exec_ext in '' $ac_executable_extensions; do
8927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930     break 2
8931   fi
8932 done
8933   done
8934 IFS=$as_save_IFS
8935
8936 fi
8937 fi
8938 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8939 if test -n "$ac_ct_DSYMUTIL"; then
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8941 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8942 else
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8945 fi
8946
8947   if test "x$ac_ct_DSYMUTIL" = x; then
8948     DSYMUTIL=":"
8949   else
8950     case $cross_compiling:$ac_tool_warned in
8951 yes:)
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954 ac_tool_warned=yes ;;
8955 esac
8956     DSYMUTIL=$ac_ct_DSYMUTIL
8957   fi
8958 else
8959   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8960 fi
8961
8962     if test -n "$ac_tool_prefix"; then
8963   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8964 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   if test -n "$NMEDIT"; then
8971   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8972 else
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8975 do
8976   IFS=$as_save_IFS
8977   test -z "$as_dir" && as_dir=.
8978     for ac_exec_ext in '' $ac_executable_extensions; do
8979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8980     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982     break 2
8983   fi
8984 done
8985   done
8986 IFS=$as_save_IFS
8987
8988 fi
8989 fi
8990 NMEDIT=$ac_cv_prog_NMEDIT
8991 if test -n "$NMEDIT"; then
8992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8993 $as_echo "$NMEDIT" >&6; }
8994 else
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8997 fi
8998
8999
9000 fi
9001 if test -z "$ac_cv_prog_NMEDIT"; then
9002   ac_ct_NMEDIT=$NMEDIT
9003   # Extract the first word of "nmedit", so it can be a program name with args.
9004 set dummy nmedit; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   if test -n "$ac_ct_NMEDIT"; then
9011   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016   IFS=$as_save_IFS
9017   test -z "$as_dir" && as_dir=.
9018     for ac_exec_ext in '' $ac_executable_extensions; do
9019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022     break 2
9023   fi
9024 done
9025   done
9026 IFS=$as_save_IFS
9027
9028 fi
9029 fi
9030 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9031 if test -n "$ac_ct_NMEDIT"; then
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9033 $as_echo "$ac_ct_NMEDIT" >&6; }
9034 else
9035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9037 fi
9038
9039   if test "x$ac_ct_NMEDIT" = x; then
9040     NMEDIT=":"
9041   else
9042     case $cross_compiling:$ac_tool_warned in
9043 yes:)
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046 ac_tool_warned=yes ;;
9047 esac
9048     NMEDIT=$ac_ct_NMEDIT
9049   fi
9050 else
9051   NMEDIT="$ac_cv_prog_NMEDIT"
9052 fi
9053
9054     if test -n "$ac_tool_prefix"; then
9055   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9056 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_LIPO+set}" = set; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   if test -n "$LIPO"; then
9063   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079
9080 fi
9081 fi
9082 LIPO=$ac_cv_prog_LIPO
9083 if test -n "$LIPO"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9085 $as_echo "$LIPO" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092 fi
9093 if test -z "$ac_cv_prog_LIPO"; then
9094   ac_ct_LIPO=$LIPO
9095   # Extract the first word of "lipo", so it can be a program name with args.
9096 set dummy lipo; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   if test -n "$ac_ct_LIPO"; then
9103   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9104 else
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9107 do
9108   IFS=$as_save_IFS
9109   test -z "$as_dir" && as_dir=.
9110     for ac_exec_ext in '' $ac_executable_extensions; do
9111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9112     ac_cv_prog_ac_ct_LIPO="lipo"
9113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114     break 2
9115   fi
9116 done
9117   done
9118 IFS=$as_save_IFS
9119
9120 fi
9121 fi
9122 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9123 if test -n "$ac_ct_LIPO"; then
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9125 $as_echo "$ac_ct_LIPO" >&6; }
9126 else
9127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128 $as_echo "no" >&6; }
9129 fi
9130
9131   if test "x$ac_ct_LIPO" = x; then
9132     LIPO=":"
9133   else
9134     case $cross_compiling:$ac_tool_warned in
9135 yes:)
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9138 ac_tool_warned=yes ;;
9139 esac
9140     LIPO=$ac_ct_LIPO
9141   fi
9142 else
9143   LIPO="$ac_cv_prog_LIPO"
9144 fi
9145
9146     if test -n "$ac_tool_prefix"; then
9147   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9148 set dummy ${ac_tool_prefix}otool; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9152   $as_echo_n "(cached) " >&6
9153 else
9154   if test -n "$OTOOL"; then
9155   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   test -z "$as_dir" && as_dir=.
9162     for ac_exec_ext in '' $ac_executable_extensions; do
9163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166     break 2
9167   fi
9168 done
9169   done
9170 IFS=$as_save_IFS
9171
9172 fi
9173 fi
9174 OTOOL=$ac_cv_prog_OTOOL
9175 if test -n "$OTOOL"; then
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9177 $as_echo "$OTOOL" >&6; }
9178 else
9179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9181 fi
9182
9183
9184 fi
9185 if test -z "$ac_cv_prog_OTOOL"; then
9186   ac_ct_OTOOL=$OTOOL
9187   # Extract the first word of "otool", so it can be a program name with args.
9188 set dummy otool; ac_word=$2
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 $as_echo_n "checking for $ac_word... " >&6; }
9191 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9192   $as_echo_n "(cached) " >&6
9193 else
9194   if test -n "$ac_ct_OTOOL"; then
9195   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9196 else
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9199 do
9200   IFS=$as_save_IFS
9201   test -z "$as_dir" && as_dir=.
9202     for ac_exec_ext in '' $ac_executable_extensions; do
9203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204     ac_cv_prog_ac_ct_OTOOL="otool"
9205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206     break 2
9207   fi
9208 done
9209   done
9210 IFS=$as_save_IFS
9211
9212 fi
9213 fi
9214 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9215 if test -n "$ac_ct_OTOOL"; then
9216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9217 $as_echo "$ac_ct_OTOOL" >&6; }
9218 else
9219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9221 fi
9222
9223   if test "x$ac_ct_OTOOL" = x; then
9224     OTOOL=":"
9225   else
9226     case $cross_compiling:$ac_tool_warned in
9227 yes:)
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9230 ac_tool_warned=yes ;;
9231 esac
9232     OTOOL=$ac_ct_OTOOL
9233   fi
9234 else
9235   OTOOL="$ac_cv_prog_OTOOL"
9236 fi
9237
9238     if test -n "$ac_tool_prefix"; then
9239   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9240 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9244   $as_echo_n "(cached) " >&6
9245 else
9246   if test -n "$OTOOL64"; then
9247   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9248 else
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252   IFS=$as_save_IFS
9253   test -z "$as_dir" && as_dir=.
9254     for ac_exec_ext in '' $ac_executable_extensions; do
9255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258     break 2
9259   fi
9260 done
9261   done
9262 IFS=$as_save_IFS
9263
9264 fi
9265 fi
9266 OTOOL64=$ac_cv_prog_OTOOL64
9267 if test -n "$OTOOL64"; then
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9269 $as_echo "$OTOOL64" >&6; }
9270 else
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9273 fi
9274
9275
9276 fi
9277 if test -z "$ac_cv_prog_OTOOL64"; then
9278   ac_ct_OTOOL64=$OTOOL64
9279   # Extract the first word of "otool64", so it can be a program name with args.
9280 set dummy otool64; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9284   $as_echo_n "(cached) " >&6
9285 else
9286   if test -n "$ac_ct_OTOOL64"; then
9287   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292   IFS=$as_save_IFS
9293   test -z "$as_dir" && as_dir=.
9294     for ac_exec_ext in '' $ac_executable_extensions; do
9295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296     ac_cv_prog_ac_ct_OTOOL64="otool64"
9297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298     break 2
9299   fi
9300 done
9301   done
9302 IFS=$as_save_IFS
9303
9304 fi
9305 fi
9306 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9307 if test -n "$ac_ct_OTOOL64"; then
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9309 $as_echo "$ac_ct_OTOOL64" >&6; }
9310 else
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9313 fi
9314
9315   if test "x$ac_ct_OTOOL64" = x; then
9316     OTOOL64=":"
9317   else
9318     case $cross_compiling:$ac_tool_warned in
9319 yes:)
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9322 ac_tool_warned=yes ;;
9323 esac
9324     OTOOL64=$ac_ct_OTOOL64
9325   fi
9326 else
9327   OTOOL64="$ac_cv_prog_OTOOL64"
9328 fi
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9357 $as_echo_n "checking for -single_module linker flag... " >&6; }
9358 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9359   $as_echo_n "(cached) " >&6
9360 else
9361   lt_cv_apple_cc_single_mod=no
9362       if test -z "${LT_MULTI_MODULE}"; then
9363         # By default we will add the -single_module flag. You can override
9364         # by either setting the environment variable LT_MULTI_MODULE
9365         # non-empty at configure time, or by adding -multi_module to the
9366         # link flags.
9367         rm -rf libconftest.dylib*
9368         echo "int foo(void){return 1;}" > conftest.c
9369         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9370 -dynamiclib -Wl,-single_module conftest.c" >&5
9371         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9372           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9373         _lt_result=$?
9374         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9375           lt_cv_apple_cc_single_mod=yes
9376         else
9377           cat conftest.err >&5
9378         fi
9379         rm -rf libconftest.dylib*
9380         rm -f conftest.*
9381       fi
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9384 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9386 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9387 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   lt_cv_ld_exported_symbols_list=no
9391       save_LDFLAGS=$LDFLAGS
9392       echo "_main" > conftest.sym
9393       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9394       if test x$gcc_no_link = xyes; then
9395   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9396 fi
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h.  */
9399
9400 int
9401 main ()
9402 {
9403
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"; then :
9409   lt_cv_ld_exported_symbols_list=yes
9410 else
9411   lt_cv_ld_exported_symbols_list=no
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414     conftest$ac_exeext conftest.$ac_ext
9415         LDFLAGS="$save_LDFLAGS"
9416
9417 fi
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9419 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9420     case $host_os in
9421     rhapsody* | darwin1.[012])
9422       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9423     darwin1.*)
9424       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9425     darwin*) # darwin 5.x on
9426       # if running on 10.5 or later, the deployment target defaults
9427       # to the OS version, if on x86, and 10.4, the deployment
9428       # target defaults to 10.4. Don't you love it?
9429       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9430         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9431           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9432         10.[012]*)
9433           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9434         10.*)
9435           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9436       esac
9437     ;;
9438   esac
9439     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9440       _lt_dar_single_mod='$single_module'
9441     fi
9442     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9443       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9444     else
9445       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9446     fi
9447     if test "$DSYMUTIL" != ":"; then
9448       _lt_dsymutil='~$DSYMUTIL $lib || :'
9449     else
9450       _lt_dsymutil=
9451     fi
9452     ;;
9453   esac
9454
9455 ac_ext=c
9456 ac_cpp='$CPP $CPPFLAGS'
9457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9461 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9462 # On Suns, sometimes $CPP names a directory.
9463 if test -n "$CPP" && test -d "$CPP"; then
9464   CPP=
9465 fi
9466 if test -z "$CPP"; then
9467   if test "${ac_cv_prog_CPP+set}" = set; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470       # Double quotes because CPP needs to be expanded
9471     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9472     do
9473       ac_preproc_ok=false
9474 for ac_c_preproc_warn_flag in '' yes
9475 do
9476   # Use a header file that comes with gcc, so configuring glibc
9477   # with a fresh cross-compiler works.
9478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479   # <limits.h> exists even on freestanding compilers.
9480   # On the NeXT, cc -E runs the code through the compiler's parser,
9481   # not just through cpp. "Syntax error" is here to catch this case.
9482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h.  */
9484 #ifdef __STDC__
9485 # include <limits.h>
9486 #else
9487 # include <assert.h>
9488 #endif
9489                      Syntax error
9490 _ACEOF
9491 if ac_fn_c_try_cpp "$LINENO"; then :
9492
9493 else
9494   # Broken: fails on valid input.
9495 continue
9496 fi
9497 rm -f conftest.err conftest.$ac_ext
9498
9499   # OK, works on sane cases.  Now check whether nonexistent headers
9500   # can be detected and how.
9501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h.  */
9503 #include <ac_nonexistent.h>
9504 _ACEOF
9505 if ac_fn_c_try_cpp "$LINENO"; then :
9506   # Broken: success on invalid input.
9507 continue
9508 else
9509   # Passes both tests.
9510 ac_preproc_ok=:
9511 break
9512 fi
9513 rm -f conftest.err conftest.$ac_ext
9514
9515 done
9516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9517 rm -f conftest.err conftest.$ac_ext
9518 if $ac_preproc_ok; then :
9519   break
9520 fi
9521
9522     done
9523     ac_cv_prog_CPP=$CPP
9524
9525 fi
9526   CPP=$ac_cv_prog_CPP
9527 else
9528   ac_cv_prog_CPP=$CPP
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9531 $as_echo "$CPP" >&6; }
9532 ac_preproc_ok=false
9533 for ac_c_preproc_warn_flag in '' yes
9534 do
9535   # Use a header file that comes with gcc, so configuring glibc
9536   # with a fresh cross-compiler works.
9537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9538   # <limits.h> exists even on freestanding compilers.
9539   # On the NeXT, cc -E runs the code through the compiler's parser,
9540   # not just through cpp. "Syntax error" is here to catch this case.
9541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h.  */
9543 #ifdef __STDC__
9544 # include <limits.h>
9545 #else
9546 # include <assert.h>
9547 #endif
9548                      Syntax error
9549 _ACEOF
9550 if ac_fn_c_try_cpp "$LINENO"; then :
9551
9552 else
9553   # Broken: fails on valid input.
9554 continue
9555 fi
9556 rm -f conftest.err conftest.$ac_ext
9557
9558   # OK, works on sane cases.  Now check whether nonexistent headers
9559   # can be detected and how.
9560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h.  */
9562 #include <ac_nonexistent.h>
9563 _ACEOF
9564 if ac_fn_c_try_cpp "$LINENO"; then :
9565   # Broken: success on invalid input.
9566 continue
9567 else
9568   # Passes both tests.
9569 ac_preproc_ok=:
9570 break
9571 fi
9572 rm -f conftest.err conftest.$ac_ext
9573
9574 done
9575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9576 rm -f conftest.err conftest.$ac_ext
9577 if $ac_preproc_ok; then :
9578
9579 else
9580   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9582 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9583 See \`config.log' for more details." "$LINENO" 5; }
9584 fi
9585
9586 ac_ext=c
9587 ac_cpp='$CPP $CPPFLAGS'
9588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9591
9592
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9594 $as_echo_n "checking for ANSI C header files... " >&6; }
9595 if test "${ac_cv_header_stdc+set}" = set; then :
9596   $as_echo_n "(cached) " >&6
9597 else
9598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h.  */
9600 #include <stdlib.h>
9601 #include <stdarg.h>
9602 #include <string.h>
9603 #include <float.h>
9604
9605 int
9606 main ()
9607 {
9608
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_compile "$LINENO"; then :
9614   ac_cv_header_stdc=yes
9615 else
9616   ac_cv_header_stdc=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619
9620 if test $ac_cv_header_stdc = yes; then
9621   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h.  */
9624 #include <string.h>
9625
9626 _ACEOF
9627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9628   $EGREP "memchr" >/dev/null 2>&1; then :
9629
9630 else
9631   ac_cv_header_stdc=no
9632 fi
9633 rm -f conftest*
9634
9635 fi
9636
9637 if test $ac_cv_header_stdc = yes; then
9638   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h.  */
9641 #include <stdlib.h>
9642
9643 _ACEOF
9644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9645   $EGREP "free" >/dev/null 2>&1; then :
9646
9647 else
9648   ac_cv_header_stdc=no
9649 fi
9650 rm -f conftest*
9651
9652 fi
9653
9654 if test $ac_cv_header_stdc = yes; then
9655   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9656   if test "$cross_compiling" = yes; then :
9657   :
9658 else
9659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h.  */
9661 #include <ctype.h>
9662 #include <stdlib.h>
9663 #if ((' ' & 0x0FF) == 0x020)
9664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9666 #else
9667 # define ISLOWER(c) \
9668                    (('a' <= (c) && (c) <= 'i') \
9669                      || ('j' <= (c) && (c) <= 'r') \
9670                      || ('s' <= (c) && (c) <= 'z'))
9671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9672 #endif
9673
9674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9675 int
9676 main ()
9677 {
9678   int i;
9679   for (i = 0; i < 256; i++)
9680     if (XOR (islower (i), ISLOWER (i))
9681         || toupper (i) != TOUPPER (i))
9682       return 2;
9683   return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_run "$LINENO"; then :
9687
9688 else
9689   ac_cv_header_stdc=no
9690 fi
9691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9692   conftest.$ac_objext conftest.beam conftest.$ac_ext
9693 fi
9694
9695 fi
9696 fi
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9698 $as_echo "$ac_cv_header_stdc" >&6; }
9699 if test $ac_cv_header_stdc = yes; then
9700
9701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9702
9703 fi
9704
9705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9707                   inttypes.h stdint.h unistd.h
9708 do :
9709   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9711 "
9712 eval as_val=\$$as_ac_Header
9713    if test "x$as_val" = x""yes; then :
9714   cat >>confdefs.h <<_ACEOF
9715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9716 _ACEOF
9717
9718 fi
9719
9720 done
9721
9722
9723 for ac_header in dlfcn.h
9724 do :
9725   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9726 "
9727 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9728   cat >>confdefs.h <<_ACEOF
9729 #define HAVE_DLFCN_H 1
9730 _ACEOF
9731
9732 fi
9733
9734 done
9735
9736
9737
9738 ac_ext=cpp
9739 ac_cpp='$CXXCPP $CPPFLAGS'
9740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9743 if test -z "$CXX"; then
9744   if test -n "$CCC"; then
9745     CXX=$CCC
9746   else
9747     if test -n "$ac_tool_prefix"; then
9748   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9749   do
9750     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if test "${ac_cv_prog_CXX+set}" = set; then :
9755   $as_echo_n "(cached) " >&6
9756 else
9757   if test -n "$CXX"; then
9758   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9759 else
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9762 do
9763   IFS=$as_save_IFS
9764   test -z "$as_dir" && as_dir=.
9765     for ac_exec_ext in '' $ac_executable_extensions; do
9766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769     break 2
9770   fi
9771 done
9772   done
9773 IFS=$as_save_IFS
9774
9775 fi
9776 fi
9777 CXX=$ac_cv_prog_CXX
9778 if test -n "$CXX"; then
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9780 $as_echo "$CXX" >&6; }
9781 else
9782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9784 fi
9785
9786
9787     test -n "$CXX" && break
9788   done
9789 fi
9790 if test -z "$CXX"; then
9791   ac_ct_CXX=$CXX
9792   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9793 do
9794   # Extract the first word of "$ac_prog", so it can be a program name with args.
9795 set dummy $ac_prog; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9799   $as_echo_n "(cached) " >&6
9800 else
9801   if test -n "$ac_ct_CXX"; then
9802   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807   IFS=$as_save_IFS
9808   test -z "$as_dir" && as_dir=.
9809     for ac_exec_ext in '' $ac_executable_extensions; do
9810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811     ac_cv_prog_ac_ct_CXX="$ac_prog"
9812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813     break 2
9814   fi
9815 done
9816   done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9822 if test -n "$ac_ct_CXX"; then
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9824 $as_echo "$ac_ct_CXX" >&6; }
9825 else
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830
9831   test -n "$ac_ct_CXX" && break
9832 done
9833
9834   if test "x$ac_ct_CXX" = x; then
9835     CXX="g++"
9836   else
9837     case $cross_compiling:$ac_tool_warned in
9838 yes:)
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9841 ac_tool_warned=yes ;;
9842 esac
9843     CXX=$ac_ct_CXX
9844   fi
9845 fi
9846
9847   fi
9848 fi
9849 # Provide some information about the compiler.
9850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9851 set X $ac_compile
9852 ac_compiler=$2
9853 for ac_option in --version -v -V -qversion; do
9854   { { ac_try="$ac_compiler $ac_option >&5"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9860 $as_echo "$ac_try_echo"; } >&5
9861   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9862   ac_status=$?
9863   if test -s conftest.err; then
9864     sed '10a\
9865 ... rest of stderr output deleted ...
9866          10q' conftest.err >conftest.er1
9867     cat conftest.er1 >&5
9868     rm -f conftest.er1 conftest.err
9869   fi
9870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871   test $ac_status = 0; }
9872 done
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9875 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9876 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9877   $as_echo_n "(cached) " >&6
9878 else
9879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h.  */
9881
9882 int
9883 main ()
9884 {
9885 #ifndef __GNUC__
9886        choke me
9887 #endif
9888
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 if ac_fn_cxx_try_compile "$LINENO"; then :
9894   ac_compiler_gnu=yes
9895 else
9896   ac_compiler_gnu=no
9897 fi
9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9900
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9903 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9904 if test $ac_compiler_gnu = yes; then
9905   GXX=yes
9906 else
9907   GXX=
9908 fi
9909 ac_test_CXXFLAGS=${CXXFLAGS+set}
9910 ac_save_CXXFLAGS=$CXXFLAGS
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9912 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9913 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9917    ac_cxx_werror_flag=yes
9918    ac_cv_prog_cxx_g=no
9919    CXXFLAGS="-g"
9920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h.  */
9922
9923 int
9924 main ()
9925 {
9926
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 if ac_fn_cxx_try_compile "$LINENO"; then :
9932   ac_cv_prog_cxx_g=yes
9933 else
9934   CXXFLAGS=""
9935       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h.  */
9937
9938 int
9939 main ()
9940 {
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 if ac_fn_cxx_try_compile "$LINENO"; then :
9947
9948 else
9949   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9950          CXXFLAGS="-g"
9951          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h.  */
9953
9954 int
9955 main ()
9956 {
9957
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 if ac_fn_cxx_try_compile "$LINENO"; then :
9963   ac_cv_prog_cxx_g=yes
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9973 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9974 if test "$ac_test_CXXFLAGS" = set; then
9975   CXXFLAGS=$ac_save_CXXFLAGS
9976 elif test $ac_cv_prog_cxx_g = yes; then
9977   if test "$GXX" = yes; then
9978     CXXFLAGS="-g -O2"
9979   else
9980     CXXFLAGS="-g"
9981   fi
9982 else
9983   if test "$GXX" = yes; then
9984     CXXFLAGS="-O2"
9985   else
9986     CXXFLAGS=
9987   fi
9988 fi
9989 ac_ext=c
9990 ac_cpp='$CPP $CPPFLAGS'
9991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9994
9995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9996     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9997     (test "X$CXX" != "Xg++"))) ; then
9998   ac_ext=cpp
9999 ac_cpp='$CXXCPP $CPPFLAGS'
10000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10004 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10005 if test -z "$CXXCPP"; then
10006   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10007   $as_echo_n "(cached) " >&6
10008 else
10009       # Double quotes because CXXCPP needs to be expanded
10010     for CXXCPP in "$CXX -E" "/lib/cpp"
10011     do
10012       ac_preproc_ok=false
10013 for ac_cxx_preproc_warn_flag in '' yes
10014 do
10015   # Use a header file that comes with gcc, so configuring glibc
10016   # with a fresh cross-compiler works.
10017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018   # <limits.h> exists even on freestanding compilers.
10019   # On the NeXT, cc -E runs the code through the compiler's parser,
10020   # not just through cpp. "Syntax error" is here to catch this case.
10021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h.  */
10023 #ifdef __STDC__
10024 # include <limits.h>
10025 #else
10026 # include <assert.h>
10027 #endif
10028                      Syntax error
10029 _ACEOF
10030 if ac_fn_cxx_try_cpp "$LINENO"; then :
10031
10032 else
10033   # Broken: fails on valid input.
10034 continue
10035 fi
10036 rm -f conftest.err conftest.$ac_ext
10037
10038   # OK, works on sane cases.  Now check whether nonexistent headers
10039   # can be detected and how.
10040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h.  */
10042 #include <ac_nonexistent.h>
10043 _ACEOF
10044 if ac_fn_cxx_try_cpp "$LINENO"; then :
10045   # Broken: success on invalid input.
10046 continue
10047 else
10048   # Passes both tests.
10049 ac_preproc_ok=:
10050 break
10051 fi
10052 rm -f conftest.err conftest.$ac_ext
10053
10054 done
10055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10056 rm -f conftest.err conftest.$ac_ext
10057 if $ac_preproc_ok; then :
10058   break
10059 fi
10060
10061     done
10062     ac_cv_prog_CXXCPP=$CXXCPP
10063
10064 fi
10065   CXXCPP=$ac_cv_prog_CXXCPP
10066 else
10067   ac_cv_prog_CXXCPP=$CXXCPP
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10070 $as_echo "$CXXCPP" >&6; }
10071 ac_preproc_ok=false
10072 for ac_cxx_preproc_warn_flag in '' yes
10073 do
10074   # Use a header file that comes with gcc, so configuring glibc
10075   # with a fresh cross-compiler works.
10076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077   # <limits.h> exists even on freestanding compilers.
10078   # On the NeXT, cc -E runs the code through the compiler's parser,
10079   # not just through cpp. "Syntax error" is here to catch this case.
10080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h.  */
10082 #ifdef __STDC__
10083 # include <limits.h>
10084 #else
10085 # include <assert.h>
10086 #endif
10087                      Syntax error
10088 _ACEOF
10089 if ac_fn_cxx_try_cpp "$LINENO"; then :
10090
10091 else
10092   # Broken: fails on valid input.
10093 continue
10094 fi
10095 rm -f conftest.err conftest.$ac_ext
10096
10097   # OK, works on sane cases.  Now check whether nonexistent headers
10098   # can be detected and how.
10099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h.  */
10101 #include <ac_nonexistent.h>
10102 _ACEOF
10103 if ac_fn_cxx_try_cpp "$LINENO"; then :
10104   # Broken: success on invalid input.
10105 continue
10106 else
10107   # Passes both tests.
10108 ac_preproc_ok=:
10109 break
10110 fi
10111 rm -f conftest.err conftest.$ac_ext
10112
10113 done
10114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10115 rm -f conftest.err conftest.$ac_ext
10116 if $ac_preproc_ok; then :
10117
10118 else
10119   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10121 _lt_caught_CXX_error=yes; }
10122 fi
10123
10124 ac_ext=c
10125 ac_cpp='$CPP $CPPFLAGS'
10126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10129
10130 else
10131   _lt_caught_CXX_error=yes
10132 fi
10133
10134
10135
10136
10137
10138 # Set options
10139
10140
10141
10142
10143   enable_win32_dll=no
10144
10145
10146             # Check whether --enable-shared was given.
10147 if test "${enable_shared+set}" = set; then :
10148   enableval=$enable_shared; p=${PACKAGE-default}
10149     case $enableval in
10150     yes) enable_shared=yes ;;
10151     no) enable_shared=no ;;
10152     *)
10153       enable_shared=no
10154       # Look at the argument we got.  We use all the common list separators.
10155       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10156       for pkg in $enableval; do
10157         IFS="$lt_save_ifs"
10158         if test "X$pkg" = "X$p"; then
10159           enable_shared=yes
10160         fi
10161       done
10162       IFS="$lt_save_ifs"
10163       ;;
10164     esac
10165 else
10166   enable_shared=yes
10167 fi
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177   # Check whether --enable-static was given.
10178 if test "${enable_static+set}" = set; then :
10179   enableval=$enable_static; p=${PACKAGE-default}
10180     case $enableval in
10181     yes) enable_static=yes ;;
10182     no) enable_static=no ;;
10183     *)
10184      enable_static=no
10185       # Look at the argument we got.  We use all the common list separators.
10186       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10187       for pkg in $enableval; do
10188         IFS="$lt_save_ifs"
10189         if test "X$pkg" = "X$p"; then
10190           enable_static=yes
10191         fi
10192       done
10193       IFS="$lt_save_ifs"
10194       ;;
10195     esac
10196 else
10197   enable_static=yes
10198 fi
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209 # Check whether --with-pic was given.
10210 if test "${with_pic+set}" = set; then :
10211   withval=$with_pic; pic_mode="$withval"
10212 else
10213   pic_mode=default
10214 fi
10215
10216
10217 test -z "$pic_mode" && pic_mode=default
10218
10219
10220
10221
10222
10223
10224
10225   # Check whether --enable-fast-install was given.
10226 if test "${enable_fast_install+set}" = set; then :
10227   enableval=$enable_fast_install; p=${PACKAGE-default}
10228     case $enableval in
10229     yes) enable_fast_install=yes ;;
10230     no) enable_fast_install=no ;;
10231     *)
10232       enable_fast_install=no
10233       # Look at the argument we got.  We use all the common list separators.
10234       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10235       for pkg in $enableval; do
10236         IFS="$lt_save_ifs"
10237         if test "X$pkg" = "X$p"; then
10238           enable_fast_install=yes
10239         fi
10240       done
10241       IFS="$lt_save_ifs"
10242       ;;
10243     esac
10244 else
10245   enable_fast_install=yes
10246 fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258 # This can be used to rebuild libtool when needed
10259 LIBTOOL_DEPS="$ltmain"
10260
10261 # Always use our own libtool.
10262 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288 test -z "$LN_S" && LN_S="ln -s"
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 if test -n "${ZSH_VERSION+set}" ; then
10304    setopt NO_GLOB_SUBST
10305 fi
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10308 $as_echo_n "checking for objdir... " >&6; }
10309 if test "${lt_cv_objdir+set}" = set; then :
10310   $as_echo_n "(cached) " >&6
10311 else
10312   rm -f .libs 2>/dev/null
10313 mkdir .libs 2>/dev/null
10314 if test -d .libs; then
10315   lt_cv_objdir=.libs
10316 else
10317   # MS-DOS does not allow filenames that begin with a dot.
10318   lt_cv_objdir=_libs
10319 fi
10320 rmdir .libs 2>/dev/null
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10323 $as_echo "$lt_cv_objdir" >&6; }
10324 objdir=$lt_cv_objdir
10325
10326
10327
10328
10329
10330 cat >>confdefs.h <<_ACEOF
10331 #define LT_OBJDIR "$lt_cv_objdir/"
10332 _ACEOF
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350 case $host_os in
10351 aix3*)
10352   # AIX sometimes has problems with the GCC collect2 program.  For some
10353   # reason, if we set the COLLECT_NAMES environment variable, the problems
10354   # vanish in a puff of smoke.
10355   if test "X${COLLECT_NAMES+set}" != Xset; then
10356     COLLECT_NAMES=
10357     export COLLECT_NAMES
10358   fi
10359   ;;
10360 esac
10361
10362 # Sed substitution that helps us do robust quoting.  It backslashifies
10363 # metacharacters that are still active within double-quoted strings.
10364 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10365
10366 # Same as above, but do not quote variable references.
10367 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10368
10369 # Sed substitution to delay expansion of an escaped shell variable in a
10370 # double_quote_subst'ed string.
10371 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10372
10373 # Sed substitution to delay expansion of an escaped single quote.
10374 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10375
10376 # Sed substitution to avoid accidental globbing in evaled expressions
10377 no_glob_subst='s/\*/\\\*/g'
10378
10379 # Global variables:
10380 ofile=libtool
10381 can_build_shared=yes
10382
10383 # All known linkers require a `.a' archive for static linking (except MSVC,
10384 # which needs '.lib').
10385 libext=a
10386
10387 with_gnu_ld="$lt_cv_prog_gnu_ld"
10388
10389 old_CC="$CC"
10390 old_CFLAGS="$CFLAGS"
10391
10392 # Set sane defaults for various variables
10393 test -z "$CC" && CC=cc
10394 test -z "$LTCC" && LTCC=$CC
10395 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10396 test -z "$LD" && LD=ld
10397 test -z "$ac_objext" && ac_objext=o
10398
10399 for cc_temp in $compiler""; do
10400   case $cc_temp in
10401     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10402     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10403     \-*) ;;
10404     *) break;;
10405   esac
10406 done
10407 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10408
10409
10410 # Only perform the check for file, if the check method requires it
10411 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10412 case $deplibs_check_method in
10413 file_magic*)
10414   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10416 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10417 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10418   $as_echo_n "(cached) " >&6
10419 else
10420   case $MAGIC_CMD in
10421 [\\/*] |  ?:[\\/]*)
10422   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10423   ;;
10424 *)
10425   lt_save_MAGIC_CMD="$MAGIC_CMD"
10426   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10427   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10428   for ac_dir in $ac_dummy; do
10429     IFS="$lt_save_ifs"
10430     test -z "$ac_dir" && ac_dir=.
10431     if test -f $ac_dir/${ac_tool_prefix}file; then
10432       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10433       if test -n "$file_magic_test_file"; then
10434         case $deplibs_check_method in
10435         "file_magic "*)
10436           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10437           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10438           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10439             $EGREP "$file_magic_regex" > /dev/null; then
10440             :
10441           else
10442             cat <<_LT_EOF 1>&2
10443
10444 *** Warning: the command libtool uses to detect shared libraries,
10445 *** $file_magic_cmd, produces output that libtool cannot recognize.
10446 *** The result is that libtool may fail to recognize shared libraries
10447 *** as such.  This will affect the creation of libtool libraries that
10448 *** depend on shared libraries, but programs linked with such libtool
10449 *** libraries will work regardless of this problem.  Nevertheless, you
10450 *** may want to report the problem to your system manager and/or to
10451 *** bug-libtool@gnu.org
10452
10453 _LT_EOF
10454           fi ;;
10455         esac
10456       fi
10457       break
10458     fi
10459   done
10460   IFS="$lt_save_ifs"
10461   MAGIC_CMD="$lt_save_MAGIC_CMD"
10462   ;;
10463 esac
10464 fi
10465
10466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10467 if test -n "$MAGIC_CMD"; then
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10469 $as_echo "$MAGIC_CMD" >&6; }
10470 else
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 fi
10474
10475
10476
10477
10478
10479 if test -z "$lt_cv_path_MAGIC_CMD"; then
10480   if test -n "$ac_tool_prefix"; then
10481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10482 $as_echo_n "checking for file... " >&6; }
10483 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10484   $as_echo_n "(cached) " >&6
10485 else
10486   case $MAGIC_CMD in
10487 [\\/*] |  ?:[\\/]*)
10488   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10489   ;;
10490 *)
10491   lt_save_MAGIC_CMD="$MAGIC_CMD"
10492   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10493   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10494   for ac_dir in $ac_dummy; do
10495     IFS="$lt_save_ifs"
10496     test -z "$ac_dir" && ac_dir=.
10497     if test -f $ac_dir/file; then
10498       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10499       if test -n "$file_magic_test_file"; then
10500         case $deplibs_check_method in
10501         "file_magic "*)
10502           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10503           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10504           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10505             $EGREP "$file_magic_regex" > /dev/null; then
10506             :
10507           else
10508             cat <<_LT_EOF 1>&2
10509
10510 *** Warning: the command libtool uses to detect shared libraries,
10511 *** $file_magic_cmd, produces output that libtool cannot recognize.
10512 *** The result is that libtool may fail to recognize shared libraries
10513 *** as such.  This will affect the creation of libtool libraries that
10514 *** depend on shared libraries, but programs linked with such libtool
10515 *** libraries will work regardless of this problem.  Nevertheless, you
10516 *** may want to report the problem to your system manager and/or to
10517 *** bug-libtool@gnu.org
10518
10519 _LT_EOF
10520           fi ;;
10521         esac
10522       fi
10523       break
10524     fi
10525   done
10526   IFS="$lt_save_ifs"
10527   MAGIC_CMD="$lt_save_MAGIC_CMD"
10528   ;;
10529 esac
10530 fi
10531
10532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10533 if test -n "$MAGIC_CMD"; then
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10535 $as_echo "$MAGIC_CMD" >&6; }
10536 else
10537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10539 fi
10540
10541
10542   else
10543     MAGIC_CMD=:
10544   fi
10545 fi
10546
10547   fi
10548   ;;
10549 esac
10550
10551 # Use C for the default configuration in the libtool script
10552
10553 lt_save_CC="$CC"
10554 ac_ext=c
10555 ac_cpp='$CPP $CPPFLAGS'
10556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560
10561 # Source file extension for C test sources.
10562 ac_ext=c
10563
10564 # Object file extension for compiled C test sources.
10565 objext=o
10566 objext=$objext
10567
10568 # Code to be used in simple compile tests
10569 lt_simple_compile_test_code="int some_variable = 0;"
10570
10571 # Code to be used in simple link tests
10572 lt_simple_link_test_code='int main(){return(0);}'
10573
10574
10575
10576
10577
10578
10579
10580 # If no C compiler was specified, use CC.
10581 LTCC=${LTCC-"$CC"}
10582
10583 # If no C compiler flags were specified, use CFLAGS.
10584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10585
10586 # Allow CC to be a program name with arguments.
10587 compiler=$CC
10588
10589 # Save the default compiler, since it gets overwritten when the other
10590 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10591 compiler_DEFAULT=$CC
10592
10593 # save warnings/boilerplate of simple test code
10594 ac_outfile=conftest.$ac_objext
10595 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10597 _lt_compiler_boilerplate=`cat conftest.err`
10598 $RM conftest*
10599
10600 ac_outfile=conftest.$ac_objext
10601 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10603 _lt_linker_boilerplate=`cat conftest.err`
10604 $RM -r conftest*
10605
10606
10607 ## CAVEAT EMPTOR:
10608 ## There is no encapsulation within the following macros, do not change
10609 ## the running order or otherwise move them around unless you know exactly
10610 ## what you are doing...
10611 if test -n "$compiler"; then
10612
10613 lt_prog_compiler_no_builtin_flag=
10614
10615 if test "$GCC" = yes; then
10616   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10617
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10619 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10620 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10621   $as_echo_n "(cached) " >&6
10622 else
10623   lt_cv_prog_compiler_rtti_exceptions=no
10624    ac_outfile=conftest.$ac_objext
10625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10626    lt_compiler_flag="-fno-rtti -fno-exceptions"
10627    # Insert the option either (1) after the last *FLAGS variable, or
10628    # (2) before a word containing "conftest.", or (3) at the end.
10629    # Note that $ac_compile itself does not contain backslashes and begins
10630    # with a dollar sign (not a hyphen), so the echo should work correctly.
10631    # The option is referenced via a variable to avoid confusing sed.
10632    lt_compile=`echo "$ac_compile" | $SED \
10633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10635    -e 's:$: $lt_compiler_flag:'`
10636    (eval echo "\"\$as_me:10636: $lt_compile\"" >&5)
10637    (eval "$lt_compile" 2>conftest.err)
10638    ac_status=$?
10639    cat conftest.err >&5
10640    echo "$as_me:10640: \$? = $ac_status" >&5
10641    if (exit $ac_status) && test -s "$ac_outfile"; then
10642      # The compiler can only warn and ignore the option if not recognized
10643      # So say no if there are warnings other than the usual output.
10644      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10645      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10646      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10647        lt_cv_prog_compiler_rtti_exceptions=yes
10648      fi
10649    fi
10650    $RM conftest*
10651
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10654 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10655
10656 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10657     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10658 else
10659     :
10660 fi
10661
10662 fi
10663
10664
10665
10666
10667
10668
10669   lt_prog_compiler_wl=
10670 lt_prog_compiler_pic=
10671 lt_prog_compiler_static=
10672
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10675
10676   if test "$GCC" = yes; then
10677     lt_prog_compiler_wl='-Wl,'
10678     lt_prog_compiler_static='-static'
10679
10680     case $host_os in
10681       aix*)
10682       # All AIX code is PIC.
10683       if test "$host_cpu" = ia64; then
10684         # AIX 5 now supports IA64 processor
10685         lt_prog_compiler_static='-Bstatic'
10686       fi
10687       ;;
10688
10689     amigaos*)
10690       case $host_cpu in
10691       powerpc)
10692             # see comment about AmigaOS4 .so support
10693             lt_prog_compiler_pic='-fPIC'
10694         ;;
10695       m68k)
10696             # FIXME: we need at least 68020 code to build shared libraries, but
10697             # adding the `-m68020' flag to GCC prevents building anything better,
10698             # like `-m68040'.
10699             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10700         ;;
10701       esac
10702       ;;
10703
10704     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10705       # PIC is the default for these OSes.
10706       ;;
10707
10708     mingw* | cygwin* | pw32* | os2* | cegcc*)
10709       # This hack is so that the source file can tell whether it is being
10710       # built for inclusion in a dll (and should export symbols for example).
10711       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10712       # (--disable-auto-import) libraries
10713       lt_prog_compiler_pic='-DDLL_EXPORT'
10714       ;;
10715
10716     darwin* | rhapsody*)
10717       # PIC is the default on this platform
10718       # Common symbols not allowed in MH_DYLIB files
10719       lt_prog_compiler_pic='-fno-common'
10720       ;;
10721
10722     hpux*)
10723       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10724       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10725       # sets the default TLS model and affects inlining.
10726       case $host_cpu in
10727       hppa*64*)
10728         # +Z the default
10729         ;;
10730       *)
10731         lt_prog_compiler_pic='-fPIC'
10732         ;;
10733       esac
10734       ;;
10735
10736     interix[3-9]*)
10737       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10738       # Instead, we relocate shared libraries at runtime.
10739       ;;
10740
10741     msdosdjgpp*)
10742       # Just because we use GCC doesn't mean we suddenly get shared libraries
10743       # on systems that don't support them.
10744       lt_prog_compiler_can_build_shared=no
10745       enable_shared=no
10746       ;;
10747
10748     *nto* | *qnx*)
10749       # QNX uses GNU C++, but need to define -shared option too, otherwise
10750       # it will coredump.
10751       lt_prog_compiler_pic='-fPIC -shared'
10752       ;;
10753
10754     sysv4*MP*)
10755       if test -d /usr/nec; then
10756         lt_prog_compiler_pic=-Kconform_pic
10757       fi
10758       ;;
10759
10760     *)
10761       lt_prog_compiler_pic='-fPIC'
10762       ;;
10763     esac
10764   else
10765     # PORTME Check for flag to pass linker flags through the system compiler.
10766     case $host_os in
10767     aix*)
10768       lt_prog_compiler_wl='-Wl,'
10769       if test "$host_cpu" = ia64; then
10770         # AIX 5 now supports IA64 processor
10771         lt_prog_compiler_static='-Bstatic'
10772       else
10773         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10774       fi
10775       ;;
10776
10777     mingw* | cygwin* | pw32* | os2* | cegcc*)
10778       # This hack is so that the source file can tell whether it is being
10779       # built for inclusion in a dll (and should export symbols for example).
10780       lt_prog_compiler_pic='-DDLL_EXPORT'
10781       ;;
10782
10783     hpux9* | hpux10* | hpux11*)
10784       lt_prog_compiler_wl='-Wl,'
10785       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10786       # not for PA HP-UX.
10787       case $host_cpu in
10788       hppa*64*|ia64*)
10789         # +Z the default
10790         ;;
10791       *)
10792         lt_prog_compiler_pic='+Z'
10793         ;;
10794       esac
10795       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10796       lt_prog_compiler_static='${wl}-a ${wl}archive'
10797       ;;
10798
10799     irix5* | irix6* | nonstopux*)
10800       lt_prog_compiler_wl='-Wl,'
10801       # PIC (with -KPIC) is the default.
10802       lt_prog_compiler_static='-non_shared'
10803       ;;
10804
10805     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10806       case $cc_basename in
10807       # old Intel for x86_64 which still supported -KPIC.
10808       ecc*)
10809         lt_prog_compiler_wl='-Wl,'
10810         lt_prog_compiler_pic='-KPIC'
10811         lt_prog_compiler_static='-static'
10812         ;;
10813       # icc used to be incompatible with GCC.
10814       # ICC 10 doesn't accept -KPIC any more.
10815       icc* | ifort*)
10816         lt_prog_compiler_wl='-Wl,'
10817         lt_prog_compiler_pic='-fPIC'
10818         lt_prog_compiler_static='-static'
10819         ;;
10820       # Lahey Fortran 8.1.
10821       lf95*)
10822         lt_prog_compiler_wl='-Wl,'
10823         lt_prog_compiler_pic='--shared'
10824         lt_prog_compiler_static='--static'
10825         ;;
10826       pgcc* | pgf77* | pgf90* | pgf95*)
10827         # Portland Group compilers (*not* the Pentium gcc compiler,
10828         # which looks to be a dead project)
10829         lt_prog_compiler_wl='-Wl,'
10830         lt_prog_compiler_pic='-fpic'
10831         lt_prog_compiler_static='-Bstatic'
10832         ;;
10833       ccc*)
10834         lt_prog_compiler_wl='-Wl,'
10835         # All Alpha code is PIC.
10836         lt_prog_compiler_static='-non_shared'
10837         ;;
10838       xl*)
10839         # IBM XL C 8.0/Fortran 10.1 on PPC
10840         lt_prog_compiler_wl='-Wl,'
10841         lt_prog_compiler_pic='-qpic'
10842         lt_prog_compiler_static='-qstaticlink'
10843         ;;
10844       *)
10845         case `$CC -V 2>&1 | sed 5q` in
10846         *Sun\ C*)
10847           # Sun C 5.9
10848           lt_prog_compiler_pic='-KPIC'
10849           lt_prog_compiler_static='-Bstatic'
10850           lt_prog_compiler_wl='-Wl,'
10851           ;;
10852         *Sun\ F*)
10853           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10854           lt_prog_compiler_pic='-KPIC'
10855           lt_prog_compiler_static='-Bstatic'
10856           lt_prog_compiler_wl=''
10857           ;;
10858         esac
10859         ;;
10860       esac
10861       ;;
10862
10863     newsos6)
10864       lt_prog_compiler_pic='-KPIC'
10865       lt_prog_compiler_static='-Bstatic'
10866       ;;
10867
10868     *nto* | *qnx*)
10869       # QNX uses GNU C++, but need to define -shared option too, otherwise
10870       # it will coredump.
10871       lt_prog_compiler_pic='-fPIC -shared'
10872       ;;
10873
10874     osf3* | osf4* | osf5*)
10875       lt_prog_compiler_wl='-Wl,'
10876       # All OSF/1 code is PIC.
10877       lt_prog_compiler_static='-non_shared'
10878       ;;
10879
10880     rdos*)
10881       lt_prog_compiler_static='-non_shared'
10882       ;;
10883
10884     solaris*)
10885       lt_prog_compiler_pic='-KPIC'
10886       lt_prog_compiler_static='-Bstatic'
10887       case $cc_basename in
10888       f77* | f90* | f95*)
10889         lt_prog_compiler_wl='-Qoption ld ';;
10890       *)
10891         lt_prog_compiler_wl='-Wl,';;
10892       esac
10893       ;;
10894
10895     sunos4*)
10896       lt_prog_compiler_wl='-Qoption ld '
10897       lt_prog_compiler_pic='-PIC'
10898       lt_prog_compiler_static='-Bstatic'
10899       ;;
10900
10901     sysv4 | sysv4.2uw2* | sysv4.3*)
10902       lt_prog_compiler_wl='-Wl,'
10903       lt_prog_compiler_pic='-KPIC'
10904       lt_prog_compiler_static='-Bstatic'
10905       ;;
10906
10907     sysv4*MP*)
10908       if test -d /usr/nec ;then
10909         lt_prog_compiler_pic='-Kconform_pic'
10910         lt_prog_compiler_static='-Bstatic'
10911       fi
10912       ;;
10913
10914     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10915       lt_prog_compiler_wl='-Wl,'
10916       lt_prog_compiler_pic='-KPIC'
10917       lt_prog_compiler_static='-Bstatic'
10918       ;;
10919
10920     unicos*)
10921       lt_prog_compiler_wl='-Wl,'
10922       lt_prog_compiler_can_build_shared=no
10923       ;;
10924
10925     uts4*)
10926       lt_prog_compiler_pic='-pic'
10927       lt_prog_compiler_static='-Bstatic'
10928       ;;
10929
10930     *)
10931       lt_prog_compiler_can_build_shared=no
10932       ;;
10933     esac
10934   fi
10935
10936 case $host_os in
10937   # For platforms which do not support PIC, -DPIC is meaningless:
10938   *djgpp*)
10939     lt_prog_compiler_pic=
10940     ;;
10941   *)
10942     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10943     ;;
10944 esac
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10946 $as_echo "$lt_prog_compiler_pic" >&6; }
10947
10948
10949
10950
10951
10952
10953 #
10954 # Check to make sure the PIC flag actually works.
10955 #
10956 if test -n "$lt_prog_compiler_pic"; then
10957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10958 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10959 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10960   $as_echo_n "(cached) " >&6
10961 else
10962   lt_cv_prog_compiler_pic_works=no
10963    ac_outfile=conftest.$ac_objext
10964    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10966    # Insert the option either (1) after the last *FLAGS variable, or
10967    # (2) before a word containing "conftest.", or (3) at the end.
10968    # Note that $ac_compile itself does not contain backslashes and begins
10969    # with a dollar sign (not a hyphen), so the echo should work correctly.
10970    # The option is referenced via a variable to avoid confusing sed.
10971    lt_compile=`echo "$ac_compile" | $SED \
10972    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10974    -e 's:$: $lt_compiler_flag:'`
10975    (eval echo "\"\$as_me:10975: $lt_compile\"" >&5)
10976    (eval "$lt_compile" 2>conftest.err)
10977    ac_status=$?
10978    cat conftest.err >&5
10979    echo "$as_me:10979: \$? = $ac_status" >&5
10980    if (exit $ac_status) && test -s "$ac_outfile"; then
10981      # The compiler can only warn and ignore the option if not recognized
10982      # So say no if there are warnings other than the usual output.
10983      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10984      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10985      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10986        lt_cv_prog_compiler_pic_works=yes
10987      fi
10988    fi
10989    $RM conftest*
10990
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10993 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10994
10995 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10996     case $lt_prog_compiler_pic in
10997      "" | " "*) ;;
10998      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10999      esac
11000 else
11001     lt_prog_compiler_pic=
11002      lt_prog_compiler_can_build_shared=no
11003 fi
11004
11005 fi
11006
11007
11008
11009
11010
11011
11012 #
11013 # Check to make sure the static flag actually works.
11014 #
11015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11017 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11018 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   lt_cv_prog_compiler_static_works=no
11022    save_LDFLAGS="$LDFLAGS"
11023    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11024    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11025    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11026      # The linker can only warn and ignore the option if not recognized
11027      # So say no if there are warnings
11028      if test -s conftest.err; then
11029        # Append any errors to the config.log.
11030        cat conftest.err 1>&5
11031        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11032        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11033        if diff conftest.exp conftest.er2 >/dev/null; then
11034          lt_cv_prog_compiler_static_works=yes
11035        fi
11036      else
11037        lt_cv_prog_compiler_static_works=yes
11038      fi
11039    fi
11040    $RM -r conftest*
11041    LDFLAGS="$save_LDFLAGS"
11042
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11045 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11046
11047 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11048     :
11049 else
11050     lt_prog_compiler_static=
11051 fi
11052
11053
11054
11055
11056
11057
11058
11059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11061 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11062   $as_echo_n "(cached) " >&6
11063 else
11064   lt_cv_prog_compiler_c_o=no
11065    $RM -r conftest 2>/dev/null
11066    mkdir conftest
11067    cd conftest
11068    mkdir out
11069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11070
11071    lt_compiler_flag="-o out/conftest2.$ac_objext"
11072    # Insert the option either (1) after the last *FLAGS variable, or
11073    # (2) before a word containing "conftest.", or (3) at the end.
11074    # Note that $ac_compile itself does not contain backslashes and begins
11075    # with a dollar sign (not a hyphen), so the echo should work correctly.
11076    lt_compile=`echo "$ac_compile" | $SED \
11077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11079    -e 's:$: $lt_compiler_flag:'`
11080    (eval echo "\"\$as_me:11080: $lt_compile\"" >&5)
11081    (eval "$lt_compile" 2>out/conftest.err)
11082    ac_status=$?
11083    cat out/conftest.err >&5
11084    echo "$as_me:11084: \$? = $ac_status" >&5
11085    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11086    then
11087      # The compiler can only warn and ignore the option if not recognized
11088      # So say no if there are warnings
11089      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11090      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11091      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11092        lt_cv_prog_compiler_c_o=yes
11093      fi
11094    fi
11095    chmod u+w . 2>&5
11096    $RM conftest*
11097    # SGI C++ compiler will create directory out/ii_files/ for
11098    # template instantiation
11099    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11100    $RM out/* && rmdir out
11101    cd ..
11102    $RM -r conftest
11103    $RM conftest*
11104
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11107 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11108
11109
11110
11111
11112
11113
11114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11116 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11117   $as_echo_n "(cached) " >&6
11118 else
11119   lt_cv_prog_compiler_c_o=no
11120    $RM -r conftest 2>/dev/null
11121    mkdir conftest
11122    cd conftest
11123    mkdir out
11124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11125
11126    lt_compiler_flag="-o out/conftest2.$ac_objext"
11127    # Insert the option either (1) after the last *FLAGS variable, or
11128    # (2) before a word containing "conftest.", or (3) at the end.
11129    # Note that $ac_compile itself does not contain backslashes and begins
11130    # with a dollar sign (not a hyphen), so the echo should work correctly.
11131    lt_compile=`echo "$ac_compile" | $SED \
11132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11134    -e 's:$: $lt_compiler_flag:'`
11135    (eval echo "\"\$as_me:11135: $lt_compile\"" >&5)
11136    (eval "$lt_compile" 2>out/conftest.err)
11137    ac_status=$?
11138    cat out/conftest.err >&5
11139    echo "$as_me:11139: \$? = $ac_status" >&5
11140    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11141    then
11142      # The compiler can only warn and ignore the option if not recognized
11143      # So say no if there are warnings
11144      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11145      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11146      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11147        lt_cv_prog_compiler_c_o=yes
11148      fi
11149    fi
11150    chmod u+w . 2>&5
11151    $RM conftest*
11152    # SGI C++ compiler will create directory out/ii_files/ for
11153    # template instantiation
11154    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11155    $RM out/* && rmdir out
11156    cd ..
11157    $RM -r conftest
11158    $RM conftest*
11159
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11163
11164
11165
11166
11167 hard_links="nottested"
11168 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11169   # do not overwrite the value of need_locks provided by the user
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11171 $as_echo_n "checking if we can lock with hard links... " >&6; }
11172   hard_links=yes
11173   $RM conftest*
11174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11175   touch conftest.a
11176   ln conftest.a conftest.b 2>&5 || hard_links=no
11177   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11179 $as_echo "$hard_links" >&6; }
11180   if test "$hard_links" = no; then
11181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11182 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11183     need_locks=warn
11184   fi
11185 else
11186   need_locks=no
11187 fi
11188
11189
11190
11191
11192
11193
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11195 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11196
11197   runpath_var=
11198   allow_undefined_flag=
11199   always_export_symbols=no
11200   archive_cmds=
11201   archive_expsym_cmds=
11202   compiler_needs_object=no
11203   enable_shared_with_static_runtimes=no
11204   export_dynamic_flag_spec=
11205   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11206   hardcode_automatic=no
11207   hardcode_direct=no
11208   hardcode_direct_absolute=no
11209   hardcode_libdir_flag_spec=
11210   hardcode_libdir_flag_spec_ld=
11211   hardcode_libdir_separator=
11212   hardcode_minus_L=no
11213   hardcode_shlibpath_var=unsupported
11214   inherit_rpath=no
11215   link_all_deplibs=unknown
11216   module_cmds=
11217   module_expsym_cmds=
11218   old_archive_from_new_cmds=
11219   old_archive_from_expsyms_cmds=
11220   thread_safe_flag_spec=
11221   whole_archive_flag_spec=
11222   # include_expsyms should be a list of space-separated symbols to be *always*
11223   # included in the symbol list
11224   include_expsyms=
11225   # exclude_expsyms can be an extended regexp of symbols to exclude
11226   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11227   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11228   # as well as any symbol that contains `d'.
11229   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11230   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11231   # platforms (ab)use it in PIC code, but their linkers get confused if
11232   # the symbol is explicitly referenced.  Since portable code cannot
11233   # rely on this symbol name, it's probably fine to never include it in
11234   # preloaded symbol tables.
11235   # Exclude shared library initialization/finalization symbols.
11236   extract_expsyms_cmds=
11237
11238   case $host_os in
11239   cygwin* | mingw* | pw32* | cegcc*)
11240     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11241     # When not using gcc, we currently assume that we are using
11242     # Microsoft Visual C++.
11243     if test "$GCC" != yes; then
11244       with_gnu_ld=no
11245     fi
11246     ;;
11247   interix*)
11248     # we just hope/assume this is gcc and not c89 (= MSVC++)
11249     with_gnu_ld=yes
11250     ;;
11251   openbsd*)
11252     with_gnu_ld=no
11253     ;;
11254   esac
11255
11256   ld_shlibs=yes
11257   if test "$with_gnu_ld" = yes; then
11258     # If archive_cmds runs LD, not CC, wlarc should be empty
11259     wlarc='${wl}'
11260
11261     # Set some defaults for GNU ld with shared library support. These
11262     # are reset later if shared libraries are not supported. Putting them
11263     # here allows them to be overridden if necessary.
11264     runpath_var=LD_RUN_PATH
11265     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11266     export_dynamic_flag_spec='${wl}--export-dynamic'
11267     # ancient GNU ld didn't support --whole-archive et. al.
11268     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11269       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11270     else
11271       whole_archive_flag_spec=
11272     fi
11273     supports_anon_versioning=no
11274     case `$LD -v 2>&1` in
11275       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11276       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11277       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11278       *\ 2.11.*) ;; # other 2.11 versions
11279       *) supports_anon_versioning=yes ;;
11280     esac
11281
11282     # See if GNU ld supports shared libraries.
11283     case $host_os in
11284     aix[3-9]*)
11285       # On AIX/PPC, the GNU linker is very broken
11286       if test "$host_cpu" != ia64; then
11287         ld_shlibs=no
11288         cat <<_LT_EOF 1>&2
11289
11290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11291 *** to be unable to reliably create shared libraries on AIX.
11292 *** Therefore, libtool is disabling shared libraries support.  If you
11293 *** really care for shared libraries, you may want to modify your PATH
11294 *** so that a non-GNU linker is found, and then restart.
11295
11296 _LT_EOF
11297       fi
11298       ;;
11299
11300     amigaos*)
11301       case $host_cpu in
11302       powerpc)
11303             # see comment about AmigaOS4 .so support
11304             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11305             archive_expsym_cmds=''
11306         ;;
11307       m68k)
11308             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)'
11309             hardcode_libdir_flag_spec='-L$libdir'
11310             hardcode_minus_L=yes
11311         ;;
11312       esac
11313       ;;
11314
11315     beos*)
11316       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11317         allow_undefined_flag=unsupported
11318         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11319         # support --undefined.  This deserves some investigation.  FIXME
11320         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11321       else
11322         ld_shlibs=no
11323       fi
11324       ;;
11325
11326     cygwin* | mingw* | pw32* | cegcc*)
11327       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11328       # as there is no search path for DLLs.
11329       hardcode_libdir_flag_spec='-L$libdir'
11330       allow_undefined_flag=unsupported
11331       always_export_symbols=no
11332       enable_shared_with_static_runtimes=yes
11333       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11334
11335       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11336         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11337         # If the export-symbols file already is a .def file (1st line
11338         # is EXPORTS), use it as is; otherwise, prepend...
11339         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11340           cp $export_symbols $output_objdir/$soname.def;
11341         else
11342           echo EXPORTS > $output_objdir/$soname.def;
11343           cat $export_symbols >> $output_objdir/$soname.def;
11344         fi~
11345         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11346       else
11347         ld_shlibs=no
11348       fi
11349       ;;
11350
11351     interix[3-9]*)
11352       hardcode_direct=no
11353       hardcode_shlibpath_var=no
11354       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11355       export_dynamic_flag_spec='${wl}-E'
11356       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357       # Instead, shared libraries are loaded at an image base (0x10000000 by
11358       # default) and relocated if they conflict, which is a slow very memory
11359       # consuming and fragmenting process.  To avoid this, we pick a random,
11360       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11362       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11363       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'
11364       ;;
11365
11366     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11367       tmp_diet=no
11368       if test "$host_os" = linux-dietlibc; then
11369         case $cc_basename in
11370           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11371         esac
11372       fi
11373       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11374          && test "$tmp_diet" = no
11375       then
11376         tmp_addflag=
11377         tmp_sharedflag='-shared'
11378         case $cc_basename,$host_cpu in
11379         pgcc*)                          # Portland Group C compiler
11380           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11381           tmp_addflag=' $pic_flag'
11382           ;;
11383         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11384           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11385           tmp_addflag=' $pic_flag -Mnomain' ;;
11386         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11387           tmp_addflag=' -i_dynamic' ;;
11388         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11389           tmp_addflag=' -i_dynamic -nofor_main' ;;
11390         ifc* | ifort*)                  # Intel Fortran compiler
11391           tmp_addflag=' -nofor_main' ;;
11392         lf95*)                          # Lahey Fortran 8.1
11393           whole_archive_flag_spec=
11394           tmp_sharedflag='--shared' ;;
11395         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11396           tmp_sharedflag='-qmkshrobj'
11397           tmp_addflag= ;;
11398         esac
11399         case `$CC -V 2>&1 | sed 5q` in
11400         *Sun\ C*)                       # Sun C 5.9
11401           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11402           compiler_needs_object=yes
11403           tmp_sharedflag='-G' ;;
11404         *Sun\ F*)                       # Sun Fortran 8.3
11405           tmp_sharedflag='-G' ;;
11406         esac
11407         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11408
11409         if test "x$supports_anon_versioning" = xyes; then
11410           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11411             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11412             echo "local: *; };" >> $output_objdir/$libname.ver~
11413             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11414         fi
11415
11416         case $cc_basename in
11417         xlf*)
11418           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11419           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11420           hardcode_libdir_flag_spec=
11421           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11422           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11423           if test "x$supports_anon_versioning" = xyes; then
11424             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11425               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11426               echo "local: *; };" >> $output_objdir/$libname.ver~
11427               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11428           fi
11429           ;;
11430         esac
11431       else
11432         ld_shlibs=no
11433       fi
11434       ;;
11435
11436     netbsd*)
11437       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11438         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11439         wlarc=
11440       else
11441         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11443       fi
11444       ;;
11445
11446     solaris*)
11447       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11448         ld_shlibs=no
11449         cat <<_LT_EOF 1>&2
11450
11451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11452 *** create shared libraries on Solaris systems.  Therefore, libtool
11453 *** is disabling shared libraries support.  We urge you to upgrade GNU
11454 *** binutils to release 2.9.1 or newer.  Another option is to modify
11455 *** your PATH or compiler configuration so that the native linker is
11456 *** used, and then restart.
11457
11458 _LT_EOF
11459       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11460         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11462       else
11463         ld_shlibs=no
11464       fi
11465       ;;
11466
11467     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11468       case `$LD -v 2>&1` in
11469         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11470         ld_shlibs=no
11471         cat <<_LT_EOF 1>&2
11472
11473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11474 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11475 *** is disabling shared libraries support.  We urge you to upgrade GNU
11476 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11477 *** your PATH or compiler configuration so that the native linker is
11478 *** used, and then restart.
11479
11480 _LT_EOF
11481         ;;
11482         *)
11483           # For security reasons, it is highly recommended that you always
11484           # use absolute paths for naming shared libraries, and exclude the
11485           # DT_RUNPATH tag from executables and libraries.  But doing so
11486           # requires that you compile everything twice, which is a pain.
11487           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11488             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11489             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11491           else
11492             ld_shlibs=no
11493           fi
11494         ;;
11495       esac
11496       ;;
11497
11498     sunos4*)
11499       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11500       wlarc=
11501       hardcode_direct=yes
11502       hardcode_shlibpath_var=no
11503       ;;
11504
11505     *)
11506       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11507         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11508         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11509       else
11510         ld_shlibs=no
11511       fi
11512       ;;
11513     esac
11514
11515     if test "$ld_shlibs" = no; then
11516       runpath_var=
11517       hardcode_libdir_flag_spec=
11518       export_dynamic_flag_spec=
11519       whole_archive_flag_spec=
11520     fi
11521   else
11522     # PORTME fill in a description of your system's linker (not GNU ld)
11523     case $host_os in
11524     aix3*)
11525       allow_undefined_flag=unsupported
11526       always_export_symbols=yes
11527       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'
11528       # Note: this linker hardcodes the directories in LIBPATH if there
11529       # are no directories specified by -L.
11530       hardcode_minus_L=yes
11531       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11532         # Neither direct hardcoding nor static linking is supported with a
11533         # broken collect2.
11534         hardcode_direct=unsupported
11535       fi
11536       ;;
11537
11538     aix[4-9]*)
11539       if test "$host_cpu" = ia64; then
11540         # On IA64, the linker does run time linking by default, so we don't
11541         # have to do anything special.
11542         aix_use_runtimelinking=no
11543         exp_sym_flag='-Bexport'
11544         no_entry_flag=""
11545       else
11546         # If we're using GNU nm, then we don't want the "-C" option.
11547         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11548         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11549           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11550         else
11551           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'
11552         fi
11553         aix_use_runtimelinking=no
11554
11555         # Test if we are trying to use run time linking or normal
11556         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11557         # need to do runtime linking.
11558         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11559           for ld_flag in $LDFLAGS; do
11560           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11561             aix_use_runtimelinking=yes
11562             break
11563           fi
11564           done
11565           ;;
11566         esac
11567
11568         exp_sym_flag='-bexport'
11569         no_entry_flag='-bnoentry'
11570       fi
11571
11572       # When large executables or shared objects are built, AIX ld can
11573       # have problems creating the table of contents.  If linking a library
11574       # or program results in "error TOC overflow" add -mminimal-toc to
11575       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11576       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11577
11578       archive_cmds=''
11579       hardcode_direct=yes
11580       hardcode_direct_absolute=yes
11581       hardcode_libdir_separator=':'
11582       link_all_deplibs=yes
11583       file_list_spec='${wl}-f,'
11584
11585       if test "$GCC" = yes; then
11586         case $host_os in aix4.[012]|aix4.[012].*)
11587         # We only want to do this on AIX 4.2 and lower, the check
11588         # below for broken collect2 doesn't work under 4.3+
11589           collect2name=`${CC} -print-prog-name=collect2`
11590           if test -f "$collect2name" &&
11591            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11592           then
11593           # We have reworked collect2
11594           :
11595           else
11596           # We have old collect2
11597           hardcode_direct=unsupported
11598           # It fails to find uninstalled libraries when the uninstalled
11599           # path is not listed in the libpath.  Setting hardcode_minus_L
11600           # to unsupported forces relinking
11601           hardcode_minus_L=yes
11602           hardcode_libdir_flag_spec='-L$libdir'
11603           hardcode_libdir_separator=
11604           fi
11605           ;;
11606         esac
11607         shared_flag='-shared'
11608         if test "$aix_use_runtimelinking" = yes; then
11609           shared_flag="$shared_flag "'${wl}-G'
11610         fi
11611       else
11612         # not using gcc
11613         if test "$host_cpu" = ia64; then
11614         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11615         # chokes on -Wl,-G. The following line is correct:
11616           shared_flag='-G'
11617         else
11618           if test "$aix_use_runtimelinking" = yes; then
11619             shared_flag='${wl}-G'
11620           else
11621             shared_flag='${wl}-bM:SRE'
11622           fi
11623         fi
11624       fi
11625
11626       export_dynamic_flag_spec='${wl}-bexpall'
11627       # It seems that -bexpall does not export symbols beginning with
11628       # underscore (_), so it is better to generate a list of symbols to export.
11629       always_export_symbols=yes
11630       if test "$aix_use_runtimelinking" = yes; then
11631         # Warning - without using the other runtime loading flags (-brtl),
11632         # -berok will link without error, but may produce a broken library.
11633         allow_undefined_flag='-berok'
11634         # Determine the default libpath from the value encoded in an
11635         # empty executable.
11636         if test x$gcc_no_link = xyes; then
11637   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11638 fi
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h.  */
11641
11642 int
11643 main ()
11644 {
11645
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 if ac_fn_c_try_link "$LINENO"; then :
11651
11652 lt_aix_libpath_sed='
11653     /Import File Strings/,/^$/ {
11654         /^0/ {
11655             s/^0  *\(.*\)$/\1/
11656             p
11657         }
11658     }'
11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$aix_libpath"; then
11662   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 fi
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666     conftest$ac_exeext conftest.$ac_ext
11667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11668
11669         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11670         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11671       else
11672         if test "$host_cpu" = ia64; then
11673           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11674           allow_undefined_flag="-z nodefs"
11675           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"
11676         else
11677          # Determine the default libpath from the value encoded in an
11678          # empty executable.
11679          if test x$gcc_no_link = xyes; then
11680   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11681 fi
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h.  */
11684
11685 int
11686 main ()
11687 {
11688
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694
11695 lt_aix_libpath_sed='
11696     /Import File Strings/,/^$/ {
11697         /^0/ {
11698             s/^0  *\(.*\)$/\1/
11699             p
11700         }
11701     }'
11702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11703 # Check for a 64-bit object if we didn't find anything.
11704 if test -z "$aix_libpath"; then
11705   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11706 fi
11707 fi
11708 rm -f core conftest.err conftest.$ac_objext \
11709     conftest$ac_exeext conftest.$ac_ext
11710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11711
11712          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11713           # Warning - without using the other run time loading flags,
11714           # -berok will link without error, but may produce a broken library.
11715           no_undefined_flag=' ${wl}-bernotok'
11716           allow_undefined_flag=' ${wl}-berok'
11717           # Exported symbols can be pulled into shared objects from archives
11718           whole_archive_flag_spec='$convenience'
11719           archive_cmds_need_lc=yes
11720           # This is similar to how AIX traditionally builds its shared libraries.
11721           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'
11722         fi
11723       fi
11724       ;;
11725
11726     amigaos*)
11727       case $host_cpu in
11728       powerpc)
11729             # see comment about AmigaOS4 .so support
11730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11731             archive_expsym_cmds=''
11732         ;;
11733       m68k)
11734             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)'
11735             hardcode_libdir_flag_spec='-L$libdir'
11736             hardcode_minus_L=yes
11737         ;;
11738       esac
11739       ;;
11740
11741     bsdi[45]*)
11742       export_dynamic_flag_spec=-rdynamic
11743       ;;
11744
11745     cygwin* | mingw* | pw32* | cegcc*)
11746       # When not using gcc, we currently assume that we are using
11747       # Microsoft Visual C++.
11748       # hardcode_libdir_flag_spec is actually meaningless, as there is
11749       # no search path for DLLs.
11750       hardcode_libdir_flag_spec=' '
11751       allow_undefined_flag=unsupported
11752       # Tell ltmain to make .lib files, not .a files.
11753       libext=lib
11754       # Tell ltmain to make .dll files, not .so files.
11755       shrext_cmds=".dll"
11756       # FIXME: Setting linknames here is a bad hack.
11757       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11758       # The linker will automatically build a .lib file if we build a DLL.
11759       old_archive_from_new_cmds='true'
11760       # FIXME: Should let the user specify the lib program.
11761       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11762       fix_srcfile_path='`cygpath -w "$srcfile"`'
11763       enable_shared_with_static_runtimes=yes
11764       ;;
11765
11766     darwin* | rhapsody*)
11767
11768
11769   archive_cmds_need_lc=no
11770   hardcode_direct=no
11771   hardcode_automatic=yes
11772   hardcode_shlibpath_var=unsupported
11773   whole_archive_flag_spec=''
11774   link_all_deplibs=yes
11775   allow_undefined_flag="$_lt_dar_allow_undefined"
11776   case $cc_basename in
11777      ifort*) _lt_dar_can_shared=yes ;;
11778      *) _lt_dar_can_shared=$GCC ;;
11779   esac
11780   if test "$_lt_dar_can_shared" = "yes"; then
11781     output_verbose_link_cmd=echo
11782     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11783     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11784     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}"
11785     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}"
11786
11787   else
11788   ld_shlibs=no
11789   fi
11790
11791       ;;
11792
11793     dgux*)
11794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11795       hardcode_libdir_flag_spec='-L$libdir'
11796       hardcode_shlibpath_var=no
11797       ;;
11798
11799     freebsd1*)
11800       ld_shlibs=no
11801       ;;
11802
11803     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11804     # support.  Future versions do this automatically, but an explicit c++rt0.o
11805     # does not break anything, and helps significantly (at the cost of a little
11806     # extra space).
11807     freebsd2.2*)
11808       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11809       hardcode_libdir_flag_spec='-R$libdir'
11810       hardcode_direct=yes
11811       hardcode_shlibpath_var=no
11812       ;;
11813
11814     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11815     freebsd2*)
11816       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11817       hardcode_direct=yes
11818       hardcode_minus_L=yes
11819       hardcode_shlibpath_var=no
11820       ;;
11821
11822     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11823     freebsd* | dragonfly*)
11824       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11825       hardcode_libdir_flag_spec='-R$libdir'
11826       hardcode_direct=yes
11827       hardcode_shlibpath_var=no
11828       ;;
11829
11830     hpux9*)
11831       if test "$GCC" = yes; then
11832         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'
11833       else
11834         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'
11835       fi
11836       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11837       hardcode_libdir_separator=:
11838       hardcode_direct=yes
11839
11840       # hardcode_minus_L: Not really in the search PATH,
11841       # but as the default location of the library.
11842       hardcode_minus_L=yes
11843       export_dynamic_flag_spec='${wl}-E'
11844       ;;
11845
11846     hpux10*)
11847       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11848         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11849       else
11850         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11851       fi
11852       if test "$with_gnu_ld" = no; then
11853         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11854         hardcode_libdir_flag_spec_ld='+b $libdir'
11855         hardcode_libdir_separator=:
11856         hardcode_direct=yes
11857         hardcode_direct_absolute=yes
11858         export_dynamic_flag_spec='${wl}-E'
11859         # hardcode_minus_L: Not really in the search PATH,
11860         # but as the default location of the library.
11861         hardcode_minus_L=yes
11862       fi
11863       ;;
11864
11865     hpux11*)
11866       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11867         case $host_cpu in
11868         hppa*64*)
11869           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11870           ;;
11871         ia64*)
11872           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11873           ;;
11874         *)
11875           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11876           ;;
11877         esac
11878       else
11879         case $host_cpu in
11880         hppa*64*)
11881           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882           ;;
11883         ia64*)
11884           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11885           ;;
11886         *)
11887           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11888           ;;
11889         esac
11890       fi
11891       if test "$with_gnu_ld" = no; then
11892         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11893         hardcode_libdir_separator=:
11894
11895         case $host_cpu in
11896         hppa*64*|ia64*)
11897           hardcode_direct=no
11898           hardcode_shlibpath_var=no
11899           ;;
11900         *)
11901           hardcode_direct=yes
11902           hardcode_direct_absolute=yes
11903           export_dynamic_flag_spec='${wl}-E'
11904
11905           # hardcode_minus_L: Not really in the search PATH,
11906           # but as the default location of the library.
11907           hardcode_minus_L=yes
11908           ;;
11909         esac
11910       fi
11911       ;;
11912
11913     irix5* | irix6* | nonstopux*)
11914       if test "$GCC" = yes; then
11915         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11916         # Try to use the -exported_symbol ld option, if it does not
11917         # work, assume that -exports_file does not work either and
11918         # implicitly export all symbols.
11919         save_LDFLAGS="$LDFLAGS"
11920         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11921         if test x$gcc_no_link = xyes; then
11922   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11923 fi
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h.  */
11926 int foo(void) {}
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11930
11931 fi
11932 rm -f core conftest.err conftest.$ac_objext \
11933     conftest$ac_exeext conftest.$ac_ext
11934         LDFLAGS="$save_LDFLAGS"
11935       else
11936         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11937         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11938       fi
11939       archive_cmds_need_lc='no'
11940       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11941       hardcode_libdir_separator=:
11942       inherit_rpath=yes
11943       link_all_deplibs=yes
11944       ;;
11945
11946     netbsd*)
11947       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11948         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11949       else
11950         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11951       fi
11952       hardcode_libdir_flag_spec='-R$libdir'
11953       hardcode_direct=yes
11954       hardcode_shlibpath_var=no
11955       ;;
11956
11957     newsos6)
11958       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959       hardcode_direct=yes
11960       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11961       hardcode_libdir_separator=:
11962       hardcode_shlibpath_var=no
11963       ;;
11964
11965     *nto* | *qnx*)
11966       ;;
11967
11968     openbsd*)
11969       if test -f /usr/libexec/ld.so; then
11970         hardcode_direct=yes
11971         hardcode_shlibpath_var=no
11972         hardcode_direct_absolute=yes
11973         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11974           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11975           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11976           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11977           export_dynamic_flag_spec='${wl}-E'
11978         else
11979           case $host_os in
11980            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11981              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11982              hardcode_libdir_flag_spec='-R$libdir'
11983              ;;
11984            *)
11985              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11986              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11987              ;;
11988           esac
11989         fi
11990       else
11991         ld_shlibs=no
11992       fi
11993       ;;
11994
11995     os2*)
11996       hardcode_libdir_flag_spec='-L$libdir'
11997       hardcode_minus_L=yes
11998       allow_undefined_flag=unsupported
11999       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'
12000       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12001       ;;
12002
12003     osf3*)
12004       if test "$GCC" = yes; then
12005         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12006         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12007       else
12008         allow_undefined_flag=' -expect_unresolved \*'
12009         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12010       fi
12011       archive_cmds_need_lc='no'
12012       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12013       hardcode_libdir_separator=:
12014       ;;
12015
12016     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12017       if test "$GCC" = yes; then
12018         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12019         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12020         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12021       else
12022         allow_undefined_flag=' -expect_unresolved \*'
12023         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12024         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~
12025         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12026
12027         # Both c and cxx compiler support -rpath directly
12028         hardcode_libdir_flag_spec='-rpath $libdir'
12029       fi
12030       archive_cmds_need_lc='no'
12031       hardcode_libdir_separator=:
12032       ;;
12033
12034     solaris*)
12035       no_undefined_flag=' -z defs'
12036       if test "$GCC" = yes; then
12037         wlarc='${wl}'
12038         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12039         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12040           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12041       else
12042         case `$CC -V 2>&1` in
12043         *"Compilers 5.0"*)
12044           wlarc=''
12045           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12046           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12047           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12048           ;;
12049         *)
12050           wlarc='${wl}'
12051           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12052           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12054           ;;
12055         esac
12056       fi
12057       hardcode_libdir_flag_spec='-R$libdir'
12058       hardcode_shlibpath_var=no
12059       case $host_os in
12060       solaris2.[0-5] | solaris2.[0-5].*) ;;
12061       *)
12062         # The compiler driver will combine and reorder linker options,
12063         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12064         # but is careful enough not to reorder.
12065         # Supported since Solaris 2.6 (maybe 2.5.1?)
12066         if test "$GCC" = yes; then
12067           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12068         else
12069           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12070         fi
12071         ;;
12072       esac
12073       link_all_deplibs=yes
12074       ;;
12075
12076     sunos4*)
12077       if test "x$host_vendor" = xsequent; then
12078         # Use $CC to link under sequent, because it throws in some extra .o
12079         # files that make .init and .fini sections work.
12080         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12081       else
12082         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12083       fi
12084       hardcode_libdir_flag_spec='-L$libdir'
12085       hardcode_direct=yes
12086       hardcode_minus_L=yes
12087       hardcode_shlibpath_var=no
12088       ;;
12089
12090     sysv4)
12091       case $host_vendor in
12092         sni)
12093           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12094           hardcode_direct=yes # is this really true???
12095         ;;
12096         siemens)
12097           ## LD is ld it makes a PLAMLIB
12098           ## CC just makes a GrossModule.
12099           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12100           reload_cmds='$CC -r -o $output$reload_objs'
12101           hardcode_direct=no
12102         ;;
12103         motorola)
12104           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12106         ;;
12107       esac
12108       runpath_var='LD_RUN_PATH'
12109       hardcode_shlibpath_var=no
12110       ;;
12111
12112     sysv4.3*)
12113       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12114       hardcode_shlibpath_var=no
12115       export_dynamic_flag_spec='-Bexport'
12116       ;;
12117
12118     sysv4*MP*)
12119       if test -d /usr/nec; then
12120         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12121         hardcode_shlibpath_var=no
12122         runpath_var=LD_RUN_PATH
12123         hardcode_runpath_var=yes
12124         ld_shlibs=yes
12125       fi
12126       ;;
12127
12128     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12129       no_undefined_flag='${wl}-z,text'
12130       archive_cmds_need_lc=no
12131       hardcode_shlibpath_var=no
12132       runpath_var='LD_RUN_PATH'
12133
12134       if test "$GCC" = yes; then
12135         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12137       else
12138         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140       fi
12141       ;;
12142
12143     sysv5* | sco3.2v5* | sco5v6*)
12144       # Note: We can NOT use -z defs as we might desire, because we do not
12145       # link with -lc, and that would cause any symbols used from libc to
12146       # always be unresolved, which means just about no library would
12147       # ever link correctly.  If we're not using GNU ld we use -z text
12148       # though, which does catch some bad symbols but isn't as heavy-handed
12149       # as -z defs.
12150       no_undefined_flag='${wl}-z,text'
12151       allow_undefined_flag='${wl}-z,nodefs'
12152       archive_cmds_need_lc=no
12153       hardcode_shlibpath_var=no
12154       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12155       hardcode_libdir_separator=':'
12156       link_all_deplibs=yes
12157       export_dynamic_flag_spec='${wl}-Bexport'
12158       runpath_var='LD_RUN_PATH'
12159
12160       if test "$GCC" = yes; then
12161         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12163       else
12164         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12165         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12166       fi
12167       ;;
12168
12169     uts4*)
12170       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12171       hardcode_libdir_flag_spec='-L$libdir'
12172       hardcode_shlibpath_var=no
12173       ;;
12174
12175     *)
12176       ld_shlibs=no
12177       ;;
12178     esac
12179
12180     if test x$host_vendor = xsni; then
12181       case $host in
12182       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12183         export_dynamic_flag_spec='${wl}-Blargedynsym'
12184         ;;
12185       esac
12186     fi
12187   fi
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12190 $as_echo "$ld_shlibs" >&6; }
12191 test "$ld_shlibs" = no && can_build_shared=no
12192
12193 with_gnu_ld=$with_gnu_ld
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209 #
12210 # Do we need to explicitly link libc?
12211 #
12212 case "x$archive_cmds_need_lc" in
12213 x|xyes)
12214   # Assume -lc should be added
12215   archive_cmds_need_lc=yes
12216
12217   if test "$enable_shared" = yes && test "$GCC" = yes; then
12218     case $archive_cmds in
12219     *'~'*)
12220       # FIXME: we may have to deal with multi-command sequences.
12221       ;;
12222     '$CC '*)
12223       # Test whether the compiler implicitly links with -lc since on some
12224       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12225       # to ld, don't add -lc before -lgcc.
12226       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12227 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12228 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231   $RM conftest*
12232         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12233
12234         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12235   (eval $ac_compile) 2>&5
12236   ac_status=$?
12237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238   test $ac_status = 0; } 2>conftest.err; then
12239           soname=conftest
12240           lib=conftest
12241           libobjs=conftest.$ac_objext
12242           deplibs=
12243           wl=$lt_prog_compiler_wl
12244           pic_flag=$lt_prog_compiler_pic
12245           compiler_flags=-v
12246           linker_flags=-v
12247           verstring=
12248           output_objdir=.
12249           libname=conftest
12250           lt_save_allow_undefined_flag=$allow_undefined_flag
12251           allow_undefined_flag=
12252           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12253   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12254   ac_status=$?
12255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256   test $ac_status = 0; }
12257           then
12258             lt_cv_archive_cmds_need_lc=no
12259           else
12260             lt_cv_archive_cmds_need_lc=yes
12261           fi
12262           allow_undefined_flag=$lt_save_allow_undefined_flag
12263         else
12264           cat conftest.err 1>&5
12265         fi
12266         $RM conftest*
12267
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12270 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12271       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12272       ;;
12273     esac
12274   fi
12275   ;;
12276 esac
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12435 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12436
12437 if test "$GCC" = yes; then
12438   case $host_os in
12439     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12440     *) lt_awk_arg="/^libraries:/" ;;
12441   esac
12442   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12443   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12444     # if the path contains ";" then we assume it to be the separator
12445     # otherwise default to the standard path separator (i.e. ":") - it is
12446     # assumed that no part of a normal pathname contains ";" but that should
12447     # okay in the real world where ";" in dirpaths is itself problematic.
12448     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12449   else
12450     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12451   fi
12452   # Ok, now we have the path, separated by spaces, we can step through it
12453   # and add multilib dir if necessary.
12454   lt_tmp_lt_search_path_spec=
12455   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12456   for lt_sys_path in $lt_search_path_spec; do
12457     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12458       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12459     else
12460       test -d "$lt_sys_path" && \
12461         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12462     fi
12463   done
12464   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12465 BEGIN {RS=" "; FS="/|\n";} {
12466   lt_foo="";
12467   lt_count=0;
12468   for (lt_i = NF; lt_i > 0; lt_i--) {
12469     if ($lt_i != "" && $lt_i != ".") {
12470       if ($lt_i == "..") {
12471         lt_count++;
12472       } else {
12473         if (lt_count == 0) {
12474           lt_foo="/" $lt_i lt_foo;
12475         } else {
12476           lt_count--;
12477         }
12478       }
12479     }
12480   }
12481   if (lt_foo != "") { lt_freq[lt_foo]++; }
12482   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12483 }'`
12484   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12485 else
12486   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12487 fi
12488 library_names_spec=
12489 libname_spec='lib$name'
12490 soname_spec=
12491 shrext_cmds=".so"
12492 postinstall_cmds=
12493 postuninstall_cmds=
12494 finish_cmds=
12495 finish_eval=
12496 shlibpath_var=
12497 shlibpath_overrides_runpath=unknown
12498 version_type=none
12499 dynamic_linker="$host_os ld.so"
12500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12501 need_lib_prefix=unknown
12502 hardcode_into_libs=no
12503
12504 # when you set need_version to no, make sure it does not cause -set_version
12505 # flags to be left without arguments
12506 need_version=unknown
12507
12508 case $host_os in
12509 aix3*)
12510   version_type=linux
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12512   shlibpath_var=LIBPATH
12513
12514   # AIX 3 has no versioning support, so we append a major version to the name.
12515   soname_spec='${libname}${release}${shared_ext}$major'
12516   ;;
12517
12518 aix[4-9]*)
12519   version_type=linux
12520   need_lib_prefix=no
12521   need_version=no
12522   hardcode_into_libs=yes
12523   if test "$host_cpu" = ia64; then
12524     # AIX 5 supports IA64
12525     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12526     shlibpath_var=LD_LIBRARY_PATH
12527   else
12528     # With GCC up to 2.95.x, collect2 would create an import file
12529     # for dependence libraries.  The import file would start with
12530     # the line `#! .'.  This would cause the generated library to
12531     # depend on `.', always an invalid library.  This was fixed in
12532     # development snapshots of GCC prior to 3.0.
12533     case $host_os in
12534       aix4 | aix4.[01] | aix4.[01].*)
12535       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12536            echo ' yes '
12537            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12538         :
12539       else
12540         can_build_shared=no
12541       fi
12542       ;;
12543     esac
12544     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12545     # soname into executable. Probably we can add versioning support to
12546     # collect2, so additional links can be useful in future.
12547     if test "$aix_use_runtimelinking" = yes; then
12548       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12549       # instead of lib<name>.a to let people know that these are not
12550       # typical AIX shared libraries.
12551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12552     else
12553       # We preserve .a as extension for shared libraries through AIX4.2
12554       # and later when we are not doing run time linking.
12555       library_names_spec='${libname}${release}.a $libname.a'
12556       soname_spec='${libname}${release}${shared_ext}$major'
12557     fi
12558     shlibpath_var=LIBPATH
12559   fi
12560   ;;
12561
12562 amigaos*)
12563   case $host_cpu in
12564   powerpc)
12565     # Since July 2007 AmigaOS4 officially supports .so libraries.
12566     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568     ;;
12569   m68k)
12570     library_names_spec='$libname.ixlibrary $libname.a'
12571     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12572     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'
12573     ;;
12574   esac
12575   ;;
12576
12577 beos*)
12578   library_names_spec='${libname}${shared_ext}'
12579   dynamic_linker="$host_os ld.so"
12580   shlibpath_var=LIBRARY_PATH
12581   ;;
12582
12583 bsdi[45]*)
12584   version_type=linux
12585   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12589   shlibpath_var=LD_LIBRARY_PATH
12590   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12591   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12592   # the default ld.so.conf also contains /usr/contrib/lib and
12593   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12594   # libtool to hard-code these into programs
12595   ;;
12596
12597 cygwin* | mingw* | pw32* | cegcc*)
12598   version_type=windows
12599   shrext_cmds=".dll"
12600   need_version=no
12601   need_lib_prefix=no
12602
12603   case $GCC,$host_os in
12604   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12605     library_names_spec='$libname.dll.a'
12606     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12607     postinstall_cmds='base_file=`basename \${file}`~
12608       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12609       dldir=$destdir/`dirname \$dlpath`~
12610       test -d \$dldir || mkdir -p \$dldir~
12611       $install_prog $dir/$dlname \$dldir/$dlname~
12612       chmod a+x \$dldir/$dlname~
12613       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12614         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12615       fi'
12616     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12617       dlpath=$dir/\$dldll~
12618        $RM \$dlpath'
12619     shlibpath_overrides_runpath=yes
12620
12621     case $host_os in
12622     cygwin*)
12623       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12624       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12625       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12626       ;;
12627     mingw* | cegcc*)
12628       # MinGW DLLs use traditional 'lib' prefix
12629       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12630       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12631       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12632         # It is most probably a Windows format PATH printed by
12633         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12634         # path with ; separators, and with drive letters. We can handle the
12635         # drive letters (cygwin fileutils understands them), so leave them,
12636         # especially as we might pass files found there to a mingw objdump,
12637         # which wouldn't understand a cygwinified path. Ahh.
12638         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12639       else
12640         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12641       fi
12642       ;;
12643     pw32*)
12644       # pw32 DLLs use 'pw' prefix rather than 'lib'
12645       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646       ;;
12647     esac
12648     ;;
12649
12650   *)
12651     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12652     ;;
12653   esac
12654   dynamic_linker='Win32 ld.exe'
12655   # FIXME: first we should search . and the directory the executable is in
12656   shlibpath_var=PATH
12657   ;;
12658
12659 darwin* | rhapsody*)
12660   dynamic_linker="$host_os dyld"
12661   version_type=darwin
12662   need_lib_prefix=no
12663   need_version=no
12664   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12665   soname_spec='${libname}${release}${major}$shared_ext'
12666   shlibpath_overrides_runpath=yes
12667   shlibpath_var=DYLD_LIBRARY_PATH
12668   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12669
12670   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12671   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12672   ;;
12673
12674 dgux*)
12675   version_type=linux
12676   need_lib_prefix=no
12677   need_version=no
12678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12679   soname_spec='${libname}${release}${shared_ext}$major'
12680   shlibpath_var=LD_LIBRARY_PATH
12681   ;;
12682
12683 freebsd1*)
12684   dynamic_linker=no
12685   ;;
12686
12687 freebsd* | dragonfly*)
12688   # DragonFly does not have aout.  When/if they implement a new
12689   # versioning mechanism, adjust this.
12690   if test -x /usr/bin/objformat; then
12691     objformat=`/usr/bin/objformat`
12692   else
12693     case $host_os in
12694     freebsd[123]*) objformat=aout ;;
12695     *) objformat=elf ;;
12696     esac
12697   fi
12698   version_type=freebsd-$objformat
12699   case $version_type in
12700     freebsd-elf*)
12701       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12702       need_version=no
12703       need_lib_prefix=no
12704       ;;
12705     freebsd-*)
12706       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12707       need_version=yes
12708       ;;
12709   esac
12710   shlibpath_var=LD_LIBRARY_PATH
12711   case $host_os in
12712   freebsd2*)
12713     shlibpath_overrides_runpath=yes
12714     ;;
12715   freebsd3.[01]* | freebsdelf3.[01]*)
12716     shlibpath_overrides_runpath=yes
12717     hardcode_into_libs=yes
12718     ;;
12719   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12720   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12721     shlibpath_overrides_runpath=no
12722     hardcode_into_libs=yes
12723     ;;
12724   *) # from 4.6 on, and DragonFly
12725     shlibpath_overrides_runpath=yes
12726     hardcode_into_libs=yes
12727     ;;
12728   esac
12729   ;;
12730
12731 gnu*)
12732   version_type=linux
12733   need_lib_prefix=no
12734   need_version=no
12735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12736   soname_spec='${libname}${release}${shared_ext}$major'
12737   shlibpath_var=LD_LIBRARY_PATH
12738   hardcode_into_libs=yes
12739   ;;
12740
12741 hpux9* | hpux10* | hpux11*)
12742   # Give a soname corresponding to the major version so that dld.sl refuses to
12743   # link against other versions.
12744   version_type=sunos
12745   need_lib_prefix=no
12746   need_version=no
12747   case $host_cpu in
12748   ia64*)
12749     shrext_cmds='.so'
12750     hardcode_into_libs=yes
12751     dynamic_linker="$host_os dld.so"
12752     shlibpath_var=LD_LIBRARY_PATH
12753     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12755     soname_spec='${libname}${release}${shared_ext}$major'
12756     if test "X$HPUX_IA64_MODE" = X32; then
12757       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12758     else
12759       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12760     fi
12761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12762     ;;
12763   hppa*64*)
12764     shrext_cmds='.sl'
12765     hardcode_into_libs=yes
12766     dynamic_linker="$host_os dld.sl"
12767     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12768     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12770     soname_spec='${libname}${release}${shared_ext}$major'
12771     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12772     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12773     ;;
12774   *)
12775     shrext_cmds='.sl'
12776     dynamic_linker="$host_os dld.sl"
12777     shlibpath_var=SHLIB_PATH
12778     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780     soname_spec='${libname}${release}${shared_ext}$major'
12781     ;;
12782   esac
12783   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12784   postinstall_cmds='chmod 555 $lib'
12785   ;;
12786
12787 interix[3-9]*)
12788   version_type=linux
12789   need_lib_prefix=no
12790   need_version=no
12791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12792   soname_spec='${libname}${release}${shared_ext}$major'
12793   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12794   shlibpath_var=LD_LIBRARY_PATH
12795   shlibpath_overrides_runpath=no
12796   hardcode_into_libs=yes
12797   ;;
12798
12799 irix5* | irix6* | nonstopux*)
12800   case $host_os in
12801     nonstopux*) version_type=nonstopux ;;
12802     *)
12803         if test "$lt_cv_prog_gnu_ld" = yes; then
12804                 version_type=linux
12805         else
12806                 version_type=irix
12807         fi ;;
12808   esac
12809   need_lib_prefix=no
12810   need_version=no
12811   soname_spec='${libname}${release}${shared_ext}$major'
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12813   case $host_os in
12814   irix5* | nonstopux*)
12815     libsuff= shlibsuff=
12816     ;;
12817   *)
12818     case $LD in # libtool.m4 will add one of these switches to LD
12819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12820       libsuff= shlibsuff= libmagic=32-bit;;
12821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12822       libsuff=32 shlibsuff=N32 libmagic=N32;;
12823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12825     *) libsuff= shlibsuff= libmagic=never-match;;
12826     esac
12827     ;;
12828   esac
12829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12830   shlibpath_overrides_runpath=no
12831   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12832   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12833   hardcode_into_libs=yes
12834   ;;
12835
12836 # No shared lib support for Linux oldld, aout, or coff.
12837 linux*oldld* | linux*aout* | linux*coff*)
12838   dynamic_linker=no
12839   ;;
12840
12841 # This must be Linux ELF.
12842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12843   version_type=linux
12844   need_lib_prefix=no
12845   need_version=no
12846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847   soname_spec='${libname}${release}${shared_ext}$major'
12848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12849   shlibpath_var=LD_LIBRARY_PATH
12850   shlibpath_overrides_runpath=no
12851
12852   # Some binutils ld are patched to set DT_RUNPATH
12853   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   lt_cv_shlibpath_overrides_runpath=no
12857     save_LDFLAGS=$LDFLAGS
12858     save_libdir=$libdir
12859     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12860          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12861     if test x$gcc_no_link = xyes; then
12862   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12863 fi
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h.  */
12866
12867 int
12868 main ()
12869 {
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_link "$LINENO"; then :
12876   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12877   lt_cv_shlibpath_overrides_runpath=yes
12878 fi
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext \
12881     conftest$ac_exeext conftest.$ac_ext
12882     LDFLAGS=$save_LDFLAGS
12883     libdir=$save_libdir
12884
12885 fi
12886
12887   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12888
12889   # This implies no fast_install, which is unacceptable.
12890   # Some rework will be needed to allow for fast_install
12891   # before this can be enabled.
12892   hardcode_into_libs=yes
12893
12894   # Append ld.so.conf contents to the search path
12895   if test -f /etc/ld.so.conf; then
12896     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12897     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12898   fi
12899
12900   # We used to test for /lib/ld.so.1 and disable shared libraries on
12901   # powerpc, because MkLinux only supported shared libraries with the
12902   # GNU dynamic linker.  Since this was broken with cross compilers,
12903   # most powerpc-linux boxes support dynamic linking these days and
12904   # people can always --disable-shared, the test was removed, and we
12905   # assume the GNU/Linux dynamic linker is in use.
12906   dynamic_linker='GNU/Linux ld.so'
12907   ;;
12908
12909 netbsd*)
12910   version_type=sunos
12911   need_lib_prefix=no
12912   need_version=no
12913   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12915     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12916     dynamic_linker='NetBSD (a.out) ld.so'
12917   else
12918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12919     soname_spec='${libname}${release}${shared_ext}$major'
12920     dynamic_linker='NetBSD ld.elf_so'
12921   fi
12922   shlibpath_var=LD_LIBRARY_PATH
12923   shlibpath_overrides_runpath=yes
12924   hardcode_into_libs=yes
12925   ;;
12926
12927 newsos6)
12928   version_type=linux
12929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12930   shlibpath_var=LD_LIBRARY_PATH
12931   shlibpath_overrides_runpath=yes
12932   ;;
12933
12934 *nto* | *qnx*)
12935   version_type=qnx
12936   need_lib_prefix=no
12937   need_version=no
12938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939   soname_spec='${libname}${release}${shared_ext}$major'
12940   shlibpath_var=LD_LIBRARY_PATH
12941   shlibpath_overrides_runpath=no
12942   hardcode_into_libs=yes
12943   dynamic_linker='ldqnx.so'
12944   ;;
12945
12946 openbsd*)
12947   version_type=sunos
12948   sys_lib_dlsearch_path_spec="/usr/lib"
12949   need_lib_prefix=no
12950   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12951   case $host_os in
12952     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12953     *)                          need_version=no  ;;
12954   esac
12955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12956   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12957   shlibpath_var=LD_LIBRARY_PATH
12958   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12959     case $host_os in
12960       openbsd2.[89] | openbsd2.[89].*)
12961         shlibpath_overrides_runpath=no
12962         ;;
12963       *)
12964         shlibpath_overrides_runpath=yes
12965         ;;
12966       esac
12967   else
12968     shlibpath_overrides_runpath=yes
12969   fi
12970   ;;
12971
12972 os2*)
12973   libname_spec='$name'
12974   shrext_cmds=".dll"
12975   need_lib_prefix=no
12976   library_names_spec='$libname${shared_ext} $libname.a'
12977   dynamic_linker='OS/2 ld.exe'
12978   shlibpath_var=LIBPATH
12979   ;;
12980
12981 osf3* | osf4* | osf5*)
12982   version_type=osf
12983   need_lib_prefix=no
12984   need_version=no
12985   soname_spec='${libname}${release}${shared_ext}$major'
12986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987   shlibpath_var=LD_LIBRARY_PATH
12988   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12989   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12990   ;;
12991
12992 rdos*)
12993   dynamic_linker=no
12994   ;;
12995
12996 solaris*)
12997   version_type=linux
12998   need_lib_prefix=no
12999   need_version=no
13000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001   soname_spec='${libname}${release}${shared_ext}$major'
13002   shlibpath_var=LD_LIBRARY_PATH
13003   shlibpath_overrides_runpath=yes
13004   hardcode_into_libs=yes
13005   # ldd complains unless libraries are executable
13006   postinstall_cmds='chmod +x $lib'
13007   ;;
13008
13009 sunos4*)
13010   version_type=sunos
13011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13012   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13013   shlibpath_var=LD_LIBRARY_PATH
13014   shlibpath_overrides_runpath=yes
13015   if test "$with_gnu_ld" = yes; then
13016     need_lib_prefix=no
13017   fi
13018   need_version=yes
13019   ;;
13020
13021 sysv4 | sysv4.3*)
13022   version_type=linux
13023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024   soname_spec='${libname}${release}${shared_ext}$major'
13025   shlibpath_var=LD_LIBRARY_PATH
13026   case $host_vendor in
13027     sni)
13028       shlibpath_overrides_runpath=no
13029       need_lib_prefix=no
13030       runpath_var=LD_RUN_PATH
13031       ;;
13032     siemens)
13033       need_lib_prefix=no
13034       ;;
13035     motorola)
13036       need_lib_prefix=no
13037       need_version=no
13038       shlibpath_overrides_runpath=no
13039       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13040       ;;
13041   esac
13042   ;;
13043
13044 sysv4*MP*)
13045   if test -d /usr/nec ;then
13046     version_type=linux
13047     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13048     soname_spec='$libname${shared_ext}.$major'
13049     shlibpath_var=LD_LIBRARY_PATH
13050   fi
13051   ;;
13052
13053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13054   version_type=freebsd-elf
13055   need_lib_prefix=no
13056   need_version=no
13057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13058   soname_spec='${libname}${release}${shared_ext}$major'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   shlibpath_overrides_runpath=yes
13061   hardcode_into_libs=yes
13062   if test "$with_gnu_ld" = yes; then
13063     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13064   else
13065     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13066     case $host_os in
13067       sco3.2v5*)
13068         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13069         ;;
13070     esac
13071   fi
13072   sys_lib_dlsearch_path_spec='/usr/lib'
13073   ;;
13074
13075 tpf*)
13076   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13077   version_type=linux
13078   need_lib_prefix=no
13079   need_version=no
13080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081   shlibpath_var=LD_LIBRARY_PATH
13082   shlibpath_overrides_runpath=no
13083   hardcode_into_libs=yes
13084   ;;
13085
13086 uts4*)
13087   version_type=linux
13088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089   soname_spec='${libname}${release}${shared_ext}$major'
13090   shlibpath_var=LD_LIBRARY_PATH
13091   ;;
13092
13093 *)
13094   dynamic_linker=no
13095   ;;
13096 esac
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13098 $as_echo "$dynamic_linker" >&6; }
13099 test "$dynamic_linker" = no && can_build_shared=no
13100
13101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13102 if test "$GCC" = yes; then
13103   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13104 fi
13105
13106 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13107   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13108 fi
13109 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13110   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13111 fi
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13200 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13201 hardcode_action=
13202 if test -n "$hardcode_libdir_flag_spec" ||
13203    test -n "$runpath_var" ||
13204    test "X$hardcode_automatic" = "Xyes" ; then
13205
13206   # We can hardcode non-existent directories.
13207   if test "$hardcode_direct" != no &&
13208      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13209      # have to relink, otherwise we might link with an installed library
13210      # when we should be linking with a yet-to-be-installed one
13211      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13212      test "$hardcode_minus_L" != no; then
13213     # Linking always hardcodes the temporary library directory.
13214     hardcode_action=relink
13215   else
13216     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13217     hardcode_action=immediate
13218   fi
13219 else
13220   # We cannot hardcode anything, or else we can only hardcode existing
13221   # directories.
13222   hardcode_action=unsupported
13223 fi
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13225 $as_echo "$hardcode_action" >&6; }
13226
13227 if test "$hardcode_action" = relink ||
13228    test "$inherit_rpath" = yes; then
13229   # Fast installation is not supported
13230   enable_fast_install=no
13231 elif test "$shlibpath_overrides_runpath" = yes ||
13232      test "$enable_shared" = no; then
13233   # Fast installation is not necessary
13234   enable_fast_install=needless
13235 fi
13236
13237
13238
13239
13240
13241
13242   if test "x$enable_dlopen" != xyes; then
13243   enable_dlopen=unknown
13244   enable_dlopen_self=unknown
13245   enable_dlopen_self_static=unknown
13246 else
13247   lt_cv_dlopen=no
13248   lt_cv_dlopen_libs=
13249
13250   case $host_os in
13251   beos*)
13252     lt_cv_dlopen="load_add_on"
13253     lt_cv_dlopen_libs=
13254     lt_cv_dlopen_self=yes
13255     ;;
13256
13257   mingw* | pw32* | cegcc*)
13258     lt_cv_dlopen="LoadLibrary"
13259     lt_cv_dlopen_libs=
13260     ;;
13261
13262   cygwin*)
13263     lt_cv_dlopen="dlopen"
13264     lt_cv_dlopen_libs=
13265     ;;
13266
13267   darwin*)
13268   # if libdl is installed we need to link against it
13269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13272   $as_echo_n "(cached) " >&6
13273 else
13274   ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-ldl  $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 dlopen ();
13289 int
13290 main ()
13291 {
13292 return dlopen ();
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298   ac_cv_lib_dl_dlopen=yes
13299 else
13300   ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
13307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13308 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13309   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13310 else
13311
13312     lt_cv_dlopen="dyld"
13313     lt_cv_dlopen_libs=
13314     lt_cv_dlopen_self=yes
13315
13316 fi
13317
13318     ;;
13319
13320   *)
13321     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13322 if test "x$ac_cv_func_shl_load" = x""yes; then :
13323   lt_cv_dlopen="shl_load"
13324 else
13325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13326 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   ac_check_lib_save_LIBS=$LIBS
13331 LIBS="-ldld  $LIBS"
13332 if test x$gcc_no_link = xyes; then
13333   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13334 fi
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337
13338 /* Override any GCC internal prototype to avoid an error.
13339    Use char because int might match the return type of a GCC
13340    builtin and then its argument prototype would still apply.  */
13341 #ifdef __cplusplus
13342 extern "C"
13343 #endif
13344 char shl_load ();
13345 int
13346 main ()
13347 {
13348 return shl_load ();
13349   ;
13350   return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"; then :
13354   ac_cv_lib_dld_shl_load=yes
13355 else
13356   ac_cv_lib_dld_shl_load=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext \
13359     conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13361 fi
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13363 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13364 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13365   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13366 else
13367   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13368 if test "x$ac_cv_func_dlopen" = x""yes; then :
13369   lt_cv_dlopen="dlopen"
13370 else
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13373 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13374   $as_echo_n "(cached) " >&6
13375 else
13376   ac_check_lib_save_LIBS=$LIBS
13377 LIBS="-ldl  $LIBS"
13378 if test x$gcc_no_link = xyes; then
13379   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13380 fi
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h.  */
13383
13384 /* Override any GCC internal prototype to avoid an error.
13385    Use char because int might match the return type of a GCC
13386    builtin and then its argument prototype would still apply.  */
13387 #ifdef __cplusplus
13388 extern "C"
13389 #endif
13390 char dlopen ();
13391 int
13392 main ()
13393 {
13394 return dlopen ();
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_link "$LINENO"; then :
13400   ac_cv_lib_dl_dlopen=yes
13401 else
13402   ac_cv_lib_dl_dlopen=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext \
13405     conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13407 fi
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13410 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13411   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13412 else
13413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13414 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13415 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13416   $as_echo_n "(cached) " >&6
13417 else
13418   ac_check_lib_save_LIBS=$LIBS
13419 LIBS="-lsvld  $LIBS"
13420 if test x$gcc_no_link = xyes; then
13421   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13422 fi
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h.  */
13425
13426 /* Override any GCC internal prototype to avoid an error.
13427    Use char because int might match the return type of a GCC
13428    builtin and then its argument prototype would still apply.  */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 char dlopen ();
13433 int
13434 main ()
13435 {
13436 return dlopen ();
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"; then :
13442   ac_cv_lib_svld_dlopen=yes
13443 else
13444   ac_cv_lib_svld_dlopen=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext \
13447     conftest$ac_exeext conftest.$ac_ext
13448 LIBS=$ac_check_lib_save_LIBS
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13451 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13452 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13454 else
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13456 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13457 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-ldld  $LIBS"
13462 if test x$gcc_no_link = xyes; then
13463   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13464 fi
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h.  */
13467
13468 /* Override any GCC internal prototype to avoid an error.
13469    Use char because int might match the return type of a GCC
13470    builtin and then its argument prototype would still apply.  */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char dld_link ();
13475 int
13476 main ()
13477 {
13478 return dld_link ();
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484   ac_cv_lib_dld_dld_link=yes
13485 else
13486   ac_cv_lib_dld_dld_link=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext \
13489     conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13493 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13494 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13495   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13496 fi
13497
13498
13499 fi
13500
13501
13502 fi
13503
13504
13505 fi
13506
13507
13508 fi
13509
13510
13511 fi
13512
13513     ;;
13514   esac
13515
13516   if test "x$lt_cv_dlopen" != xno; then
13517     enable_dlopen=yes
13518   else
13519     enable_dlopen=no
13520   fi
13521
13522   case $lt_cv_dlopen in
13523   dlopen)
13524     save_CPPFLAGS="$CPPFLAGS"
13525     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13526
13527     save_LDFLAGS="$LDFLAGS"
13528     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13529
13530     save_LIBS="$LIBS"
13531     LIBS="$lt_cv_dlopen_libs $LIBS"
13532
13533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13534 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13535 if test "${lt_cv_dlopen_self+set}" = set; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538           if test "$cross_compiling" = yes; then :
13539   lt_cv_dlopen_self=cross
13540 else
13541   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13542   lt_status=$lt_dlunknown
13543   cat > conftest.$ac_ext <<_LT_EOF
13544 #line 13544 "configure"
13545 #include "confdefs.h"
13546
13547 #if HAVE_DLFCN_H
13548 #include <dlfcn.h>
13549 #endif
13550
13551 #include <stdio.h>
13552
13553 #ifdef RTLD_GLOBAL
13554 #  define LT_DLGLOBAL           RTLD_GLOBAL
13555 #else
13556 #  ifdef DL_GLOBAL
13557 #    define LT_DLGLOBAL         DL_GLOBAL
13558 #  else
13559 #    define LT_DLGLOBAL         0
13560 #  endif
13561 #endif
13562
13563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13564    find out it does not work in some platform. */
13565 #ifndef LT_DLLAZY_OR_NOW
13566 #  ifdef RTLD_LAZY
13567 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13568 #  else
13569 #    ifdef DL_LAZY
13570 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13571 #    else
13572 #      ifdef RTLD_NOW
13573 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13574 #      else
13575 #        ifdef DL_NOW
13576 #          define LT_DLLAZY_OR_NOW      DL_NOW
13577 #        else
13578 #          define LT_DLLAZY_OR_NOW      0
13579 #        endif
13580 #      endif
13581 #    endif
13582 #  endif
13583 #endif
13584
13585 void fnord() { int i=42;}
13586 int main ()
13587 {
13588   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13589   int status = $lt_dlunknown;
13590
13591   if (self)
13592     {
13593       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13594       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13595       /* dlclose (self); */
13596     }
13597   else
13598     puts (dlerror ());
13599
13600   return status;
13601 }
13602 _LT_EOF
13603   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13604   (eval $ac_link) 2>&5
13605   ac_status=$?
13606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13608     (./conftest; exit; ) >&5 2>/dev/null
13609     lt_status=$?
13610     case x$lt_status in
13611       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13612       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13613       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13614     esac
13615   else :
13616     # compilation failed
13617     lt_cv_dlopen_self=no
13618   fi
13619 fi
13620 rm -fr conftest*
13621
13622
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13625 $as_echo "$lt_cv_dlopen_self" >&6; }
13626
13627     if test "x$lt_cv_dlopen_self" = xyes; then
13628       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13629       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13631 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13632   $as_echo_n "(cached) " >&6
13633 else
13634           if test "$cross_compiling" = yes; then :
13635   lt_cv_dlopen_self_static=cross
13636 else
13637   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13638   lt_status=$lt_dlunknown
13639   cat > conftest.$ac_ext <<_LT_EOF
13640 #line 13640 "configure"
13641 #include "confdefs.h"
13642
13643 #if HAVE_DLFCN_H
13644 #include <dlfcn.h>
13645 #endif
13646
13647 #include <stdio.h>
13648
13649 #ifdef RTLD_GLOBAL
13650 #  define LT_DLGLOBAL           RTLD_GLOBAL
13651 #else
13652 #  ifdef DL_GLOBAL
13653 #    define LT_DLGLOBAL         DL_GLOBAL
13654 #  else
13655 #    define LT_DLGLOBAL         0
13656 #  endif
13657 #endif
13658
13659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13660    find out it does not work in some platform. */
13661 #ifndef LT_DLLAZY_OR_NOW
13662 #  ifdef RTLD_LAZY
13663 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13664 #  else
13665 #    ifdef DL_LAZY
13666 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13667 #    else
13668 #      ifdef RTLD_NOW
13669 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13670 #      else
13671 #        ifdef DL_NOW
13672 #          define LT_DLLAZY_OR_NOW      DL_NOW
13673 #        else
13674 #          define LT_DLLAZY_OR_NOW      0
13675 #        endif
13676 #      endif
13677 #    endif
13678 #  endif
13679 #endif
13680
13681 void fnord() { int i=42;}
13682 int main ()
13683 {
13684   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13685   int status = $lt_dlunknown;
13686
13687   if (self)
13688     {
13689       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13690       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13691       /* dlclose (self); */
13692     }
13693   else
13694     puts (dlerror ());
13695
13696   return status;
13697 }
13698 _LT_EOF
13699   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13700   (eval $ac_link) 2>&5
13701   ac_status=$?
13702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13704     (./conftest; exit; ) >&5 2>/dev/null
13705     lt_status=$?
13706     case x$lt_status in
13707       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13708       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13709       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13710     esac
13711   else :
13712     # compilation failed
13713     lt_cv_dlopen_self_static=no
13714   fi
13715 fi
13716 rm -fr conftest*
13717
13718
13719 fi
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13721 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13722     fi
13723
13724     CPPFLAGS="$save_CPPFLAGS"
13725     LDFLAGS="$save_LDFLAGS"
13726     LIBS="$save_LIBS"
13727     ;;
13728   esac
13729
13730   case $lt_cv_dlopen_self in
13731   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13732   *) enable_dlopen_self=unknown ;;
13733   esac
13734
13735   case $lt_cv_dlopen_self_static in
13736   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13737   *) enable_dlopen_self_static=unknown ;;
13738   esac
13739 fi
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757 striplib=
13758 old_striplib=
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13760 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13761 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13762   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13763   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13765 $as_echo "yes" >&6; }
13766 else
13767 # FIXME - insert some real tests, host_os isn't really good enough
13768   case $host_os in
13769   darwin*)
13770     if test -n "$STRIP" ; then
13771       striplib="$STRIP -x"
13772       old_striplib="$STRIP -S"
13773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13774 $as_echo "yes" >&6; }
13775     else
13776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778     fi
13779     ;;
13780   *)
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783     ;;
13784   esac
13785 fi
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798   # Report which library types will actually be built
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13800 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13802 $as_echo "$can_build_shared" >&6; }
13803
13804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13805 $as_echo_n "checking whether to build shared libraries... " >&6; }
13806   test "$can_build_shared" = "no" && enable_shared=no
13807
13808   # On AIX, shared libraries and static libraries use the same namespace, and
13809   # are all built from PIC.
13810   case $host_os in
13811   aix3*)
13812     test "$enable_shared" = yes && enable_static=no
13813     if test -n "$RANLIB"; then
13814       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13815       postinstall_cmds='$RANLIB $lib'
13816     fi
13817     ;;
13818
13819   aix[4-9]*)
13820     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13821       test "$enable_shared" = yes && enable_static=no
13822     fi
13823     ;;
13824   esac
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13826 $as_echo "$enable_shared" >&6; }
13827
13828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13829 $as_echo_n "checking whether to build static libraries... " >&6; }
13830   # Make sure either enable_shared or enable_static is yes.
13831   test "$enable_shared" = yes || enable_static=yes
13832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13833 $as_echo "$enable_static" >&6; }
13834
13835
13836
13837
13838 fi
13839 ac_ext=c
13840 ac_cpp='$CPP $CPPFLAGS'
13841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13844
13845 CC="$lt_save_CC"
13846
13847
13848 ac_ext=cpp
13849 ac_cpp='$CXXCPP $CPPFLAGS'
13850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13853
13854 archive_cmds_need_lc_CXX=no
13855 allow_undefined_flag_CXX=
13856 always_export_symbols_CXX=no
13857 archive_expsym_cmds_CXX=
13858 compiler_needs_object_CXX=no
13859 export_dynamic_flag_spec_CXX=
13860 hardcode_direct_CXX=no
13861 hardcode_direct_absolute_CXX=no
13862 hardcode_libdir_flag_spec_CXX=
13863 hardcode_libdir_flag_spec_ld_CXX=
13864 hardcode_libdir_separator_CXX=
13865 hardcode_minus_L_CXX=no
13866 hardcode_shlibpath_var_CXX=unsupported
13867 hardcode_automatic_CXX=no
13868 inherit_rpath_CXX=no
13869 module_cmds_CXX=
13870 module_expsym_cmds_CXX=
13871 link_all_deplibs_CXX=unknown
13872 old_archive_cmds_CXX=$old_archive_cmds
13873 no_undefined_flag_CXX=
13874 whole_archive_flag_spec_CXX=
13875 enable_shared_with_static_runtimes_CXX=no
13876
13877 # Source file extension for C++ test sources.
13878 ac_ext=cpp
13879
13880 # Object file extension for compiled C++ test sources.
13881 objext=o
13882 objext_CXX=$objext
13883
13884 # No sense in running all these tests if we already determined that
13885 # the CXX compiler isn't working.  Some variables (like enable_shared)
13886 # are currently assumed to apply to all compilers on this platform,
13887 # and will be corrupted by setting them based on a non-working compiler.
13888 if test "$_lt_caught_CXX_error" != yes; then
13889   # Code to be used in simple compile tests
13890   lt_simple_compile_test_code="int some_variable = 0;"
13891
13892   # Code to be used in simple link tests
13893   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13894
13895   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13896
13897
13898
13899
13900
13901
13902 # If no C compiler was specified, use CC.
13903 LTCC=${LTCC-"$CC"}
13904
13905 # If no C compiler flags were specified, use CFLAGS.
13906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13907
13908 # Allow CC to be a program name with arguments.
13909 compiler=$CC
13910
13911
13912   # save warnings/boilerplate of simple test code
13913   ac_outfile=conftest.$ac_objext
13914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13916 _lt_compiler_boilerplate=`cat conftest.err`
13917 $RM conftest*
13918
13919   ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13922 _lt_linker_boilerplate=`cat conftest.err`
13923 $RM -r conftest*
13924
13925
13926   # Allow CC to be a program name with arguments.
13927   lt_save_CC=$CC
13928   lt_save_LD=$LD
13929   lt_save_GCC=$GCC
13930   GCC=$GXX
13931   lt_save_with_gnu_ld=$with_gnu_ld
13932   lt_save_path_LD=$lt_cv_path_LD
13933   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13934     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13935   else
13936     $as_unset lt_cv_prog_gnu_ld
13937   fi
13938   if test -n "${lt_cv_path_LDCXX+set}"; then
13939     lt_cv_path_LD=$lt_cv_path_LDCXX
13940   else
13941     $as_unset lt_cv_path_LD
13942   fi
13943   test -z "${LDCXX+set}" || LD=$LDCXX
13944   CC=${CXX-"c++"}
13945   compiler=$CC
13946   compiler_CXX=$CC
13947   for cc_temp in $compiler""; do
13948   case $cc_temp in
13949     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13950     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13951     \-*) ;;
13952     *) break;;
13953   esac
13954 done
13955 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13956
13957
13958   if test -n "$compiler"; then
13959     # We don't want -fno-exception when compiling C++ code, so set the
13960     # no_builtin_flag separately
13961     if test "$GXX" = yes; then
13962       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13963     else
13964       lt_prog_compiler_no_builtin_flag_CXX=
13965     fi
13966
13967     if test "$GXX" = yes; then
13968       # Set up default GNU C++ configuration
13969
13970
13971
13972 # Check whether --with-gnu-ld was given.
13973 if test "${with_gnu_ld+set}" = set; then :
13974   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13975 else
13976   with_gnu_ld=no
13977 fi
13978
13979 ac_prog=ld
13980 if test "$GCC" = yes; then
13981   # Check if gcc -print-prog-name=ld gives a path.
13982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13983 $as_echo_n "checking for ld used by $CC... " >&6; }
13984   case $host in
13985   *-*-mingw*)
13986     # gcc leaves a trailing carriage return which upsets mingw
13987     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13988   *)
13989     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13990   esac
13991   case $ac_prog in
13992     # Accept absolute paths.
13993     [\\/]* | ?:[\\/]*)
13994       re_direlt='/[^/][^/]*/\.\./'
13995       # Canonicalize the pathname of ld
13996       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13997       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13998         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13999       done
14000       test -z "$LD" && LD="$ac_prog"
14001       ;;
14002   "")
14003     # If it fails, then pretend we aren't using GCC.
14004     ac_prog=ld
14005     ;;
14006   *)
14007     # If it is relative, then search for the first ld in PATH.
14008     with_gnu_ld=unknown
14009     ;;
14010   esac
14011 elif test "$with_gnu_ld" = yes; then
14012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14013 $as_echo_n "checking for GNU ld... " >&6; }
14014 else
14015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14016 $as_echo_n "checking for non-GNU ld... " >&6; }
14017 fi
14018 if test "${lt_cv_path_LD+set}" = set; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   if test -z "$LD"; then
14022   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14023   for ac_dir in $PATH; do
14024     IFS="$lt_save_ifs"
14025     test -z "$ac_dir" && ac_dir=.
14026     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14027       lt_cv_path_LD="$ac_dir/$ac_prog"
14028       # Check to see if the program is GNU ld.  I'd rather use --version,
14029       # but apparently some variants of GNU ld only accept -v.
14030       # Break only if it was the GNU/non-GNU ld that we prefer.
14031       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14032       *GNU* | *'with BFD'*)
14033         test "$with_gnu_ld" != no && break
14034         ;;
14035       *)
14036         test "$with_gnu_ld" != yes && break
14037         ;;
14038       esac
14039     fi
14040   done
14041   IFS="$lt_save_ifs"
14042 else
14043   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14044 fi
14045 fi
14046
14047 LD="$lt_cv_path_LD"
14048 if test -n "$LD"; then
14049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14050 $as_echo "$LD" >&6; }
14051 else
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 fi
14055 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14058 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14059   $as_echo_n "(cached) " >&6
14060 else
14061   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14062 case `$LD -v 2>&1 </dev/null` in
14063 *GNU* | *'with BFD'*)
14064   lt_cv_prog_gnu_ld=yes
14065   ;;
14066 *)
14067   lt_cv_prog_gnu_ld=no
14068   ;;
14069 esac
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14073 with_gnu_ld=$lt_cv_prog_gnu_ld
14074
14075
14076
14077
14078
14079
14080
14081       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14082       # archiving commands below assume that GNU ld is being used.
14083       if test "$with_gnu_ld" = yes; then
14084         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085         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'
14086
14087         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14088         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14089
14090         # If archive_cmds runs LD, not CC, wlarc should be empty
14091         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14092         #     investigate it a little bit more. (MM)
14093         wlarc='${wl}'
14094
14095         # ancient GNU ld didn't support --whole-archive et. al.
14096         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14097           $GREP 'no-whole-archive' > /dev/null; then
14098           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14099         else
14100           whole_archive_flag_spec_CXX=
14101         fi
14102       else
14103         with_gnu_ld=no
14104         wlarc=
14105
14106         # A generic and very simple default shared library creation
14107         # command for GNU C++ for the case where it uses the native
14108         # linker, instead of GNU ld.  If possible, this setting should
14109         # overridden to take advantage of the native linker features on
14110         # the platform it is being used on.
14111         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14112       fi
14113
14114       # Commands to make compiler produce verbose output that lists
14115       # what "hidden" libraries, object files and flags are used when
14116       # linking a shared library.
14117       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14118
14119     else
14120       GXX=no
14121       with_gnu_ld=no
14122       wlarc=
14123     fi
14124
14125     # PORTME: fill in a description of your system's C++ link characteristics
14126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14128     ld_shlibs_CXX=yes
14129     case $host_os in
14130       aix3*)
14131         # FIXME: insert proper C++ library support
14132         ld_shlibs_CXX=no
14133         ;;
14134       aix[4-9]*)
14135         if test "$host_cpu" = ia64; then
14136           # On IA64, the linker does run time linking by default, so we don't
14137           # have to do anything special.
14138           aix_use_runtimelinking=no
14139           exp_sym_flag='-Bexport'
14140           no_entry_flag=""
14141         else
14142           aix_use_runtimelinking=no
14143
14144           # Test if we are trying to use run time linking or normal
14145           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14146           # need to do runtime linking.
14147           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14148             for ld_flag in $LDFLAGS; do
14149               case $ld_flag in
14150               *-brtl*)
14151                 aix_use_runtimelinking=yes
14152                 break
14153                 ;;
14154               esac
14155             done
14156             ;;
14157           esac
14158
14159           exp_sym_flag='-bexport'
14160           no_entry_flag='-bnoentry'
14161         fi
14162
14163         # When large executables or shared objects are built, AIX ld can
14164         # have problems creating the table of contents.  If linking a library
14165         # or program results in "error TOC overflow" add -mminimal-toc to
14166         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14167         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14168
14169         archive_cmds_CXX=''
14170         hardcode_direct_CXX=yes
14171         hardcode_direct_absolute_CXX=yes
14172         hardcode_libdir_separator_CXX=':'
14173         link_all_deplibs_CXX=yes
14174         file_list_spec_CXX='${wl}-f,'
14175
14176         if test "$GXX" = yes; then
14177           case $host_os in aix4.[012]|aix4.[012].*)
14178           # We only want to do this on AIX 4.2 and lower, the check
14179           # below for broken collect2 doesn't work under 4.3+
14180           collect2name=`${CC} -print-prog-name=collect2`
14181           if test -f "$collect2name" &&
14182              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14183           then
14184             # We have reworked collect2
14185             :
14186           else
14187             # We have old collect2
14188             hardcode_direct_CXX=unsupported
14189             # It fails to find uninstalled libraries when the uninstalled
14190             # path is not listed in the libpath.  Setting hardcode_minus_L
14191             # to unsupported forces relinking
14192             hardcode_minus_L_CXX=yes
14193             hardcode_libdir_flag_spec_CXX='-L$libdir'
14194             hardcode_libdir_separator_CXX=
14195           fi
14196           esac
14197           shared_flag='-shared'
14198           if test "$aix_use_runtimelinking" = yes; then
14199             shared_flag="$shared_flag "'${wl}-G'
14200           fi
14201         else
14202           # not using gcc
14203           if test "$host_cpu" = ia64; then
14204           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14205           # chokes on -Wl,-G. The following line is correct:
14206           shared_flag='-G'
14207           else
14208             if test "$aix_use_runtimelinking" = yes; then
14209               shared_flag='${wl}-G'
14210             else
14211               shared_flag='${wl}-bM:SRE'
14212             fi
14213           fi
14214         fi
14215
14216         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14217         # It seems that -bexpall does not export symbols beginning with
14218         # underscore (_), so it is better to generate a list of symbols to
14219         # export.
14220         always_export_symbols_CXX=yes
14221         if test "$aix_use_runtimelinking" = yes; then
14222           # Warning - without using the other runtime loading flags (-brtl),
14223           # -berok will link without error, but may produce a broken library.
14224           allow_undefined_flag_CXX='-berok'
14225           # Determine the default libpath from the value encoded in an empty
14226           # executable.
14227           if test x$gcc_no_link = xyes; then
14228   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14229 fi
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h.  */
14232
14233 int
14234 main ()
14235 {
14236
14237   ;
14238   return 0;
14239 }
14240 _ACEOF
14241 if ac_fn_cxx_try_link "$LINENO"; then :
14242
14243 lt_aix_libpath_sed='
14244     /Import File Strings/,/^$/ {
14245         /^0/ {
14246             s/^0  *\(.*\)$/\1/
14247             p
14248         }
14249     }'
14250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14251 # Check for a 64-bit object if we didn't find anything.
14252 if test -z "$aix_libpath"; then
14253   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14254 fi
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext \
14257     conftest$ac_exeext conftest.$ac_ext
14258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14259
14260           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14261
14262           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14263         else
14264           if test "$host_cpu" = ia64; then
14265             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14266             allow_undefined_flag_CXX="-z nodefs"
14267             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"
14268           else
14269             # Determine the default libpath from the value encoded in an
14270             # empty executable.
14271             if test x$gcc_no_link = xyes; then
14272   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14273 fi
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h.  */
14276
14277 int
14278 main ()
14279 {
14280
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_cxx_try_link "$LINENO"; then :
14286
14287 lt_aix_libpath_sed='
14288     /Import File Strings/,/^$/ {
14289         /^0/ {
14290             s/^0  *\(.*\)$/\1/
14291             p
14292         }
14293     }'
14294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14295 # Check for a 64-bit object if we didn't find anything.
14296 if test -z "$aix_libpath"; then
14297   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14298 fi
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext \
14301     conftest$ac_exeext conftest.$ac_ext
14302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14303
14304             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14305             # Warning - without using the other run time loading flags,
14306             # -berok will link without error, but may produce a broken library.
14307             no_undefined_flag_CXX=' ${wl}-bernotok'
14308             allow_undefined_flag_CXX=' ${wl}-berok'
14309             # Exported symbols can be pulled into shared objects from archives
14310             whole_archive_flag_spec_CXX='$convenience'
14311             archive_cmds_need_lc_CXX=yes
14312             # This is similar to how AIX traditionally builds its shared
14313             # libraries.
14314             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'
14315           fi
14316         fi
14317         ;;
14318
14319       beos*)
14320         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14321           allow_undefined_flag_CXX=unsupported
14322           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14323           # support --undefined.  This deserves some investigation.  FIXME
14324           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14325         else
14326           ld_shlibs_CXX=no
14327         fi
14328         ;;
14329
14330       chorus*)
14331         case $cc_basename in
14332           *)
14333           # FIXME: insert proper C++ library support
14334           ld_shlibs_CXX=no
14335           ;;
14336         esac
14337         ;;
14338
14339       cygwin* | mingw* | pw32* | cegcc*)
14340         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14341         # as there is no search path for DLLs.
14342         hardcode_libdir_flag_spec_CXX='-L$libdir'
14343         allow_undefined_flag_CXX=unsupported
14344         always_export_symbols_CXX=no
14345         enable_shared_with_static_runtimes_CXX=yes
14346
14347         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14348           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'
14349           # If the export-symbols file already is a .def file (1st line
14350           # is EXPORTS), use it as is; otherwise, prepend...
14351           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14352             cp $export_symbols $output_objdir/$soname.def;
14353           else
14354             echo EXPORTS > $output_objdir/$soname.def;
14355             cat $export_symbols >> $output_objdir/$soname.def;
14356           fi~
14357           $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'
14358         else
14359           ld_shlibs_CXX=no
14360         fi
14361         ;;
14362       darwin* | rhapsody*)
14363
14364
14365   archive_cmds_need_lc_CXX=no
14366   hardcode_direct_CXX=no
14367   hardcode_automatic_CXX=yes
14368   hardcode_shlibpath_var_CXX=unsupported
14369   whole_archive_flag_spec_CXX=''
14370   link_all_deplibs_CXX=yes
14371   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14372   case $cc_basename in
14373      ifort*) _lt_dar_can_shared=yes ;;
14374      *) _lt_dar_can_shared=$GCC ;;
14375   esac
14376   if test "$_lt_dar_can_shared" = "yes"; then
14377     output_verbose_link_cmd=echo
14378     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}"
14379     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14380     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}"
14381     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}"
14382        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14383       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}"
14384       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}"
14385     fi
14386
14387   else
14388   ld_shlibs_CXX=no
14389   fi
14390
14391         ;;
14392
14393       dgux*)
14394         case $cc_basename in
14395           ec++*)
14396             # FIXME: insert proper C++ library support
14397             ld_shlibs_CXX=no
14398             ;;
14399           ghcx*)
14400             # Green Hills C++ Compiler
14401             # FIXME: insert proper C++ library support
14402             ld_shlibs_CXX=no
14403             ;;
14404           *)
14405             # FIXME: insert proper C++ library support
14406             ld_shlibs_CXX=no
14407             ;;
14408         esac
14409         ;;
14410
14411       freebsd[12]*)
14412         # C++ shared libraries reported to be fairly broken before
14413         # switch to ELF
14414         ld_shlibs_CXX=no
14415         ;;
14416
14417       freebsd-elf*)
14418         archive_cmds_need_lc_CXX=no
14419         ;;
14420
14421       freebsd* | dragonfly*)
14422         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14423         # conventions
14424         ld_shlibs_CXX=yes
14425         ;;
14426
14427       gnu*)
14428         ;;
14429
14430       hpux9*)
14431         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14432         hardcode_libdir_separator_CXX=:
14433         export_dynamic_flag_spec_CXX='${wl}-E'
14434         hardcode_direct_CXX=yes
14435         hardcode_minus_L_CXX=yes # Not in the search PATH,
14436                                              # but as the default
14437                                              # location of the library.
14438
14439         case $cc_basename in
14440           CC*)
14441             # FIXME: insert proper C++ library support
14442             ld_shlibs_CXX=no
14443             ;;
14444           aCC*)
14445             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'
14446             # Commands to make compiler produce verbose output that lists
14447             # what "hidden" libraries, object files and flags are used when
14448             # linking a shared library.
14449             #
14450             # There doesn't appear to be a way to prevent this compiler from
14451             # explicitly linking system object files so we need to strip them
14452             # from the output so that they don't get included in the library
14453             # dependencies.
14454             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "^ .* -L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14455             ;;
14456           *)
14457             if test "$GXX" = yes; then
14458               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'
14459             else
14460               # FIXME: insert proper C++ library support
14461               ld_shlibs_CXX=no
14462             fi
14463             ;;
14464         esac
14465         ;;
14466
14467       hpux10*|hpux11*)
14468         if test $with_gnu_ld = no; then
14469           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14470           hardcode_libdir_separator_CXX=:
14471
14472           case $host_cpu in
14473             hppa*64*|ia64*)
14474               ;;
14475             *)
14476               export_dynamic_flag_spec_CXX='${wl}-E'
14477               ;;
14478           esac
14479         fi
14480         case $host_cpu in
14481           hppa*64*|ia64*)
14482             hardcode_direct_CXX=no
14483             hardcode_shlibpath_var_CXX=no
14484             ;;
14485           *)
14486             hardcode_direct_CXX=yes
14487             hardcode_direct_absolute_CXX=yes
14488             hardcode_minus_L_CXX=yes # Not in the search PATH,
14489                                                  # but as the default
14490                                                  # location of the library.
14491             ;;
14492         esac
14493
14494         case $cc_basename in
14495           CC*)
14496             # FIXME: insert proper C++ library support
14497             ld_shlibs_CXX=no
14498             ;;
14499           aCC*)
14500             case $host_cpu in
14501               hppa*64*)
14502                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14503                 ;;
14504               ia64*)
14505                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506                 ;;
14507               *)
14508                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14509                 ;;
14510             esac
14511             # Commands to make compiler produce verbose output that lists
14512             # what "hidden" libraries, object files and flags are used when
14513             # linking a shared library.
14514             #
14515             # There doesn't appear to be a way to prevent this compiler from
14516             # explicitly linking system object files so we need to strip them
14517             # from the output so that they don't get included in the library
14518             # dependencies.
14519             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "^ .* -L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14520             ;;
14521           *)
14522             if test "$GXX" = yes; then
14523               if test $with_gnu_ld = no; then
14524                 case $host_cpu in
14525                   hppa*64*)
14526                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14527                     ;;
14528                   ia64*)
14529                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14530                     ;;
14531                   *)
14532                     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'
14533                     ;;
14534                 esac
14535               fi
14536             else
14537               # FIXME: insert proper C++ library support
14538               ld_shlibs_CXX=no
14539             fi
14540             ;;
14541         esac
14542         ;;
14543
14544       interix[3-9]*)
14545         hardcode_direct_CXX=no
14546         hardcode_shlibpath_var_CXX=no
14547         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14548         export_dynamic_flag_spec_CXX='${wl}-E'
14549         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14550         # Instead, shared libraries are loaded at an image base (0x10000000 by
14551         # default) and relocated if they conflict, which is a slow very memory
14552         # consuming and fragmenting process.  To avoid this, we pick a random,
14553         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14554         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14555         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'
14556         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'
14557         ;;
14558       irix5* | irix6*)
14559         case $cc_basename in
14560           CC*)
14561             # SGI C++
14562             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14563
14564             # Archives containing C++ object files must be created using
14565             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14566             # necessary to make sure instantiated templates are included
14567             # in the archive.
14568             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14569             ;;
14570           *)
14571             if test "$GXX" = yes; then
14572               if test "$with_gnu_ld" = no; then
14573                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14574               else
14575                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14576               fi
14577             fi
14578             link_all_deplibs_CXX=yes
14579             ;;
14580         esac
14581         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14582         hardcode_libdir_separator_CXX=:
14583         inherit_rpath_CXX=yes
14584         ;;
14585
14586       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14587         case $cc_basename in
14588           KCC*)
14589             # Kuck and Associates, Inc. (KAI) C++ Compiler
14590
14591             # KCC will only create a shared library if the output file
14592             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14593             # to its proper name (with version) after linking.
14594             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'
14595             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'
14596             # Commands to make compiler produce verbose output that lists
14597             # what "hidden" libraries, object files and flags are used when
14598             # linking a shared library.
14599             #
14600             # There doesn't appear to be a way to prevent this compiler from
14601             # explicitly linking system object files so we need to strip them
14602             # from the output so that they don't get included in the library
14603             # dependencies.
14604             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14605
14606             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14607             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14608
14609             # Archives containing C++ object files must be created using
14610             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14611             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14612             ;;
14613           icpc* | ecpc* )
14614             # Intel C++
14615             with_gnu_ld=yes
14616             # version 8.0 and above of icpc choke on multiply defined symbols
14617             # if we add $predep_objects and $postdep_objects, however 7.1 and
14618             # earlier do not add the objects themselves.
14619             case `$CC -V 2>&1` in
14620               *"Version 7."*)
14621                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14622                 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'
14623                 ;;
14624               *)  # Version 8.0 or newer
14625                 tmp_idyn=
14626                 case $host_cpu in
14627                   ia64*) tmp_idyn=' -i_dynamic';;
14628                 esac
14629                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630                 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'
14631                 ;;
14632             esac
14633             archive_cmds_need_lc_CXX=no
14634             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14635             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14636             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14637             ;;
14638           pgCC* | pgcpp*)
14639             # Portland Group C++ compiler
14640             case `$CC -V` in
14641             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14642               prelink_cmds_CXX='tpldir=Template.dir~
14643                 rm -rf $tpldir~
14644                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14645                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14646               old_archive_cmds_CXX='tpldir=Template.dir~
14647                 rm -rf $tpldir~
14648                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14649                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14650                 $RANLIB $oldlib'
14651               archive_cmds_CXX='tpldir=Template.dir~
14652                 rm -rf $tpldir~
14653                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14654                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14655               archive_expsym_cmds_CXX='tpldir=Template.dir~
14656                 rm -rf $tpldir~
14657                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14658                 $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'
14659               ;;
14660             *) # Version 6 will use weak symbols
14661               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14662               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'
14663               ;;
14664             esac
14665
14666             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14667             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14668             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14669             ;;
14670           cxx*)
14671             # Compaq C++
14672             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673             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'
14674
14675             runpath_var=LD_RUN_PATH
14676             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14677             hardcode_libdir_separator_CXX=:
14678
14679             # Commands to make compiler produce verbose output that lists
14680             # what "hidden" libraries, object files and flags are used when
14681             # linking a shared library.
14682             #
14683             # There doesn't appear to be a way to prevent this compiler from
14684             # explicitly linking system object files so we need to strip them
14685             # from the output so that they don't get included in the library
14686             # dependencies.
14687             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14688             ;;
14689           xl*)
14690             # IBM XL 8.0 on PPC, with GNU ld
14691             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14692             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14693             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694             if test "x$supports_anon_versioning" = xyes; then
14695               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14696                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14697                 echo "local: *; };" >> $output_objdir/$libname.ver~
14698                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14699             fi
14700             ;;
14701           *)
14702             case `$CC -V 2>&1 | sed 5q` in
14703             *Sun\ C*)
14704               # Sun C++ 5.9
14705               no_undefined_flag_CXX=' -zdefs'
14706               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14707               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'
14708               hardcode_libdir_flag_spec_CXX='-R$libdir'
14709               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14710               compiler_needs_object_CXX=yes
14711
14712               # Not sure whether something based on
14713               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14714               # would be better.
14715               output_verbose_link_cmd='echo'
14716
14717               # Archives containing C++ object files must be created using
14718               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14719               # necessary to make sure instantiated templates are included
14720               # in the archive.
14721               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14722               ;;
14723             esac
14724             ;;
14725         esac
14726         ;;
14727
14728       lynxos*)
14729         # FIXME: insert proper C++ library support
14730         ld_shlibs_CXX=no
14731         ;;
14732
14733       m88k*)
14734         # FIXME: insert proper C++ library support
14735         ld_shlibs_CXX=no
14736         ;;
14737
14738       mvs*)
14739         case $cc_basename in
14740           cxx*)
14741             # FIXME: insert proper C++ library support
14742             ld_shlibs_CXX=no
14743             ;;
14744           *)
14745             # FIXME: insert proper C++ library support
14746             ld_shlibs_CXX=no
14747             ;;
14748         esac
14749         ;;
14750
14751       netbsd*)
14752         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14753           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14754           wlarc=
14755           hardcode_libdir_flag_spec_CXX='-R$libdir'
14756           hardcode_direct_CXX=yes
14757           hardcode_shlibpath_var_CXX=no
14758         fi
14759         # Workaround some broken pre-1.5 toolchains
14760         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14761         ;;
14762
14763       *nto* | *qnx*)
14764         ld_shlibs_CXX=yes
14765         ;;
14766
14767       openbsd2*)
14768         # C++ shared libraries are fairly broken
14769         ld_shlibs_CXX=no
14770         ;;
14771
14772       openbsd*)
14773         if test -f /usr/libexec/ld.so; then
14774           hardcode_direct_CXX=yes
14775           hardcode_shlibpath_var_CXX=no
14776           hardcode_direct_absolute_CXX=yes
14777           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14778           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14779           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14780             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14781             export_dynamic_flag_spec_CXX='${wl}-E'
14782             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14783           fi
14784           output_verbose_link_cmd=echo
14785         else
14786           ld_shlibs_CXX=no
14787         fi
14788         ;;
14789
14790       osf3* | osf4* | osf5*)
14791         case $cc_basename in
14792           KCC*)
14793             # Kuck and Associates, Inc. (KAI) C++ Compiler
14794
14795             # KCC will only create a shared library if the output file
14796             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14797             # to its proper name (with version) after linking.
14798             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'
14799
14800             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14801             hardcode_libdir_separator_CXX=:
14802
14803             # Archives containing C++ object files must be created using
14804             # the KAI C++ compiler.
14805             case $host in
14806               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14807               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14808             esac
14809             ;;
14810           RCC*)
14811             # Rational C++ 2.4.1
14812             # FIXME: insert proper C++ library support
14813             ld_shlibs_CXX=no
14814             ;;
14815           cxx*)
14816             case $host in
14817               osf3*)
14818                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14819                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14820                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14821                 ;;
14822               *)
14823                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14824                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14825                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14826                   echo "-hidden">> $lib.exp~
14827                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14828                   $RM $lib.exp'
14829                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14830                 ;;
14831             esac
14832
14833             hardcode_libdir_separator_CXX=:
14834
14835             # Commands to make compiler produce verbose output that lists
14836             # what "hidden" libraries, object files and flags are used when
14837             # linking a shared library.
14838             #
14839             # There doesn't appear to be a way to prevent this compiler from
14840             # explicitly linking system object files so we need to strip them
14841             # from the output so that they don't get included in the library
14842             # dependencies.
14843             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14844             ;;
14845           *)
14846             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14847               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14848               case $host in
14849                 osf3*)
14850                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14851                   ;;
14852                 *)
14853                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14854                   ;;
14855               esac
14856
14857               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14858               hardcode_libdir_separator_CXX=:
14859
14860               # Commands to make compiler produce verbose output that lists
14861               # what "hidden" libraries, object files and flags are used when
14862               # linking a shared library.
14863               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14864
14865             else
14866               # FIXME: insert proper C++ library support
14867               ld_shlibs_CXX=no
14868             fi
14869             ;;
14870         esac
14871         ;;
14872
14873       psos*)
14874         # FIXME: insert proper C++ library support
14875         ld_shlibs_CXX=no
14876         ;;
14877
14878       sunos4*)
14879         case $cc_basename in
14880           CC*)
14881             # Sun C++ 4.x
14882             # FIXME: insert proper C++ library support
14883             ld_shlibs_CXX=no
14884             ;;
14885           lcc*)
14886             # Lucid
14887             # FIXME: insert proper C++ library support
14888             ld_shlibs_CXX=no
14889             ;;
14890           *)
14891             # FIXME: insert proper C++ library support
14892             ld_shlibs_CXX=no
14893             ;;
14894         esac
14895         ;;
14896
14897       solaris*)
14898         case $cc_basename in
14899           CC*)
14900             # Sun C++ 4.2, 5.x and Centerline C++
14901             archive_cmds_need_lc_CXX=yes
14902             no_undefined_flag_CXX=' -zdefs'
14903             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14904             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14905               $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'
14906
14907             hardcode_libdir_flag_spec_CXX='-R$libdir'
14908             hardcode_shlibpath_var_CXX=no
14909             case $host_os in
14910               solaris2.[0-5] | solaris2.[0-5].*) ;;
14911               *)
14912                 # The compiler driver will combine and reorder linker options,
14913                 # but understands `-z linker_flag'.
14914                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14915                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14916                 ;;
14917             esac
14918             link_all_deplibs_CXX=yes
14919
14920             output_verbose_link_cmd='echo'
14921
14922             # Archives containing C++ object files must be created using
14923             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14924             # necessary to make sure instantiated templates are included
14925             # in the archive.
14926             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14927             ;;
14928           gcx*)
14929             # Green Hills C++ Compiler
14930             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14931
14932             # The C++ compiler must be used to create the archive.
14933             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14934             ;;
14935           *)
14936             # GNU C++ compiler with Solaris linker
14937             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14938               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14939               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14940                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14941                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14942                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14943
14944                 # Commands to make compiler produce verbose output that lists
14945                 # what "hidden" libraries, object files and flags are used when
14946                 # linking a shared library.
14947                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14948               else
14949                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14950                 # platform.
14951                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14952                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14953                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14954
14955                 # Commands to make compiler produce verbose output that lists
14956                 # what "hidden" libraries, object files and flags are used when
14957                 # linking a shared library.
14958                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14959               fi
14960
14961               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14962               case $host_os in
14963                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14964                 *)
14965                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14966                   ;;
14967               esac
14968             fi
14969             ;;
14970         esac
14971         ;;
14972
14973     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14974       no_undefined_flag_CXX='${wl}-z,text'
14975       archive_cmds_need_lc_CXX=no
14976       hardcode_shlibpath_var_CXX=no
14977       runpath_var='LD_RUN_PATH'
14978
14979       case $cc_basename in
14980         CC*)
14981           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983           ;;
14984         *)
14985           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14986           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987           ;;
14988       esac
14989       ;;
14990
14991       sysv5* | sco3.2v5* | sco5v6*)
14992         # Note: We can NOT use -z defs as we might desire, because we do not
14993         # link with -lc, and that would cause any symbols used from libc to
14994         # always be unresolved, which means just about no library would
14995         # ever link correctly.  If we're not using GNU ld we use -z text
14996         # though, which does catch some bad symbols but isn't as heavy-handed
14997         # as -z defs.
14998         no_undefined_flag_CXX='${wl}-z,text'
14999         allow_undefined_flag_CXX='${wl}-z,nodefs'
15000         archive_cmds_need_lc_CXX=no
15001         hardcode_shlibpath_var_CXX=no
15002         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15003         hardcode_libdir_separator_CXX=':'
15004         link_all_deplibs_CXX=yes
15005         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15006         runpath_var='LD_RUN_PATH'
15007
15008         case $cc_basename in
15009           CC*)
15010             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012             ;;
15013           *)
15014             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15016             ;;
15017         esac
15018       ;;
15019
15020       tandem*)
15021         case $cc_basename in
15022           NCC*)
15023             # NonStop-UX NCC 3.20
15024             # FIXME: insert proper C++ library support
15025             ld_shlibs_CXX=no
15026             ;;
15027           *)
15028             # FIXME: insert proper C++ library support
15029             ld_shlibs_CXX=no
15030             ;;
15031         esac
15032         ;;
15033
15034       vxworks*)
15035         # FIXME: insert proper C++ library support
15036         ld_shlibs_CXX=no
15037         ;;
15038
15039       *)
15040         # FIXME: insert proper C++ library support
15041         ld_shlibs_CXX=no
15042         ;;
15043     esac
15044
15045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15046 $as_echo "$ld_shlibs_CXX" >&6; }
15047     test "$ld_shlibs_CXX" = no && can_build_shared=no
15048
15049     GCC_CXX="$GXX"
15050     LD_CXX="$LD"
15051
15052     ## CAVEAT EMPTOR:
15053     ## There is no encapsulation within the following macros, do not change
15054     ## the running order or otherwise move them around unless you know exactly
15055     ## what you are doing...
15056     # Dependencies to place before and after the object being linked:
15057 predep_objects_CXX=
15058 postdep_objects_CXX=
15059 predeps_CXX=
15060 postdeps_CXX=
15061 compiler_lib_search_path_CXX=
15062
15063 cat > conftest.$ac_ext <<_LT_EOF
15064 class Foo
15065 {
15066 public:
15067   Foo (void) { a = 0; }
15068 private:
15069   int a;
15070 };
15071 _LT_EOF
15072
15073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15074   (eval $ac_compile) 2>&5
15075   ac_status=$?
15076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15077   test $ac_status = 0; }; then
15078   # Parse the compiler output and extract the necessary
15079   # objects, libraries and library flags.
15080
15081   # Sentinel used to keep track of whether or not we are before
15082   # the conftest object file.
15083   pre_test_object_deps_done=no
15084
15085   for p in `eval "$output_verbose_link_cmd"`; do
15086     case $p in
15087
15088     -L* | -R* | -l*)
15089        # Some compilers place space between "-{L,R}" and the path.
15090        # Remove the space.
15091        if test $p = "-L" ||
15092           test $p = "-R"; then
15093          prev=$p
15094          continue
15095        else
15096          prev=
15097        fi
15098
15099        if test "$pre_test_object_deps_done" = no; then
15100          case $p in
15101          -L* | -R*)
15102            # Internal compiler library paths should come after those
15103            # provided the user.  The postdeps already come after the
15104            # user supplied libs so there is no need to process them.
15105            if test -z "$compiler_lib_search_path_CXX"; then
15106              compiler_lib_search_path_CXX="${prev}${p}"
15107            else
15108              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15109            fi
15110            ;;
15111          # The "-l" case would never come before the object being
15112          # linked, so don't bother handling this case.
15113          esac
15114        else
15115          if test -z "$postdeps_CXX"; then
15116            postdeps_CXX="${prev}${p}"
15117          else
15118            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15119          fi
15120        fi
15121        ;;
15122
15123     *.$objext)
15124        # This assumes that the test object file only shows up
15125        # once in the compiler output.
15126        if test "$p" = "conftest.$objext"; then
15127          pre_test_object_deps_done=yes
15128          continue
15129        fi
15130
15131        if test "$pre_test_object_deps_done" = no; then
15132          if test -z "$predep_objects_CXX"; then
15133            predep_objects_CXX="$p"
15134          else
15135            predep_objects_CXX="$predep_objects_CXX $p"
15136          fi
15137        else
15138          if test -z "$postdep_objects_CXX"; then
15139            postdep_objects_CXX="$p"
15140          else
15141            postdep_objects_CXX="$postdep_objects_CXX $p"
15142          fi
15143        fi
15144        ;;
15145
15146     *) ;; # Ignore the rest.
15147
15148     esac
15149   done
15150
15151   # Clean up.
15152   rm -f a.out a.exe
15153 else
15154   echo "libtool.m4: error: problem compiling CXX test program"
15155 fi
15156
15157 $RM -f confest.$objext
15158
15159 # PORTME: override above test on systems where it is broken
15160 case $host_os in
15161 interix[3-9]*)
15162   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15163   # hack all around it, let's just trust "g++" to DTRT.
15164   predep_objects_CXX=
15165   postdep_objects_CXX=
15166   postdeps_CXX=
15167   ;;
15168
15169 linux*)
15170   case `$CC -V 2>&1 | sed 5q` in
15171   *Sun\ C*)
15172     # Sun C++ 5.9
15173
15174     # The more standards-conforming stlport4 library is
15175     # incompatible with the Cstd library. Avoid specifying
15176     # it if it's in CXXFLAGS. Ignore libCrun as
15177     # -library=stlport4 depends on it.
15178     case " $CXX $CXXFLAGS " in
15179     *" -library=stlport4 "*)
15180       solaris_use_stlport4=yes
15181       ;;
15182     esac
15183
15184     if test "$solaris_use_stlport4" != yes; then
15185       postdeps_CXX='-library=Cstd -library=Crun'
15186     fi
15187     ;;
15188   esac
15189   ;;
15190
15191 solaris*)
15192   case $cc_basename in
15193   CC*)
15194     # The more standards-conforming stlport4 library is
15195     # incompatible with the Cstd library. Avoid specifying
15196     # it if it's in CXXFLAGS. Ignore libCrun as
15197     # -library=stlport4 depends on it.
15198     case " $CXX $CXXFLAGS " in
15199     *" -library=stlport4 "*)
15200       solaris_use_stlport4=yes
15201       ;;
15202     esac
15203
15204     # Adding this requires a known-good setup of shared libraries for
15205     # Sun compiler versions before 5.6, else PIC objects from an old
15206     # archive will be linked into the output, leading to subtle bugs.
15207     if test "$solaris_use_stlport4" != yes; then
15208       postdeps_CXX='-library=Cstd -library=Crun'
15209     fi
15210     ;;
15211   esac
15212   ;;
15213 esac
15214
15215
15216 case " $postdeps_CXX " in
15217 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15218 esac
15219  compiler_lib_search_dirs_CXX=
15220 if test -n "${compiler_lib_search_path_CXX}"; then
15221  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15222 fi
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
15249
15250
15251
15252
15253
15254     lt_prog_compiler_wl_CXX=
15255 lt_prog_compiler_pic_CXX=
15256 lt_prog_compiler_static_CXX=
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15259 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15260
15261   # C++ specific cases for pic, static, wl, etc.
15262   if test "$GXX" = yes; then
15263     lt_prog_compiler_wl_CXX='-Wl,'
15264     lt_prog_compiler_static_CXX='-static'
15265
15266     case $host_os in
15267     aix*)
15268       # All AIX code is PIC.
15269       if test "$host_cpu" = ia64; then
15270         # AIX 5 now supports IA64 processor
15271         lt_prog_compiler_static_CXX='-Bstatic'
15272       fi
15273       ;;
15274
15275     amigaos*)
15276       case $host_cpu in
15277       powerpc)
15278             # see comment about AmigaOS4 .so support
15279             lt_prog_compiler_pic_CXX='-fPIC'
15280         ;;
15281       m68k)
15282             # FIXME: we need at least 68020 code to build shared libraries, but
15283             # adding the `-m68020' flag to GCC prevents building anything better,
15284             # like `-m68040'.
15285             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15286         ;;
15287       esac
15288       ;;
15289
15290     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15291       # PIC is the default for these OSes.
15292       ;;
15293     mingw* | cygwin* | os2* | pw32* | cegcc*)
15294       # This hack is so that the source file can tell whether it is being
15295       # built for inclusion in a dll (and should export symbols for example).
15296       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15297       # (--disable-auto-import) libraries
15298       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15299       ;;
15300     darwin* | rhapsody*)
15301       # PIC is the default on this platform
15302       # Common symbols not allowed in MH_DYLIB files
15303       lt_prog_compiler_pic_CXX='-fno-common'
15304       ;;
15305     *djgpp*)
15306       # DJGPP does not support shared libraries at all
15307       lt_prog_compiler_pic_CXX=
15308       ;;
15309     interix[3-9]*)
15310       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15311       # Instead, we relocate shared libraries at runtime.
15312       ;;
15313     sysv4*MP*)
15314       if test -d /usr/nec; then
15315         lt_prog_compiler_pic_CXX=-Kconform_pic
15316       fi
15317       ;;
15318     hpux*)
15319       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15320       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15321       # sets the default TLS model and affects inlining.
15322       case $host_cpu in
15323       hppa*64*)
15324         ;;
15325       *)
15326         lt_prog_compiler_pic_CXX='-fPIC'
15327         ;;
15328       esac
15329       ;;
15330     *qnx* | *nto*)
15331       # QNX uses GNU C++, but need to define -shared option too, otherwise
15332       # it will coredump.
15333       lt_prog_compiler_pic_CXX='-fPIC -shared'
15334       ;;
15335     *)
15336       lt_prog_compiler_pic_CXX='-fPIC'
15337       ;;
15338     esac
15339   else
15340     case $host_os in
15341       aix[4-9]*)
15342         # All AIX code is PIC.
15343         if test "$host_cpu" = ia64; then
15344           # AIX 5 now supports IA64 processor
15345           lt_prog_compiler_static_CXX='-Bstatic'
15346         else
15347           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15348         fi
15349         ;;
15350       chorus*)
15351         case $cc_basename in
15352         cxch68*)
15353           # Green Hills C++ Compiler
15354           # _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"
15355           ;;
15356         esac
15357         ;;
15358       dgux*)
15359         case $cc_basename in
15360           ec++*)
15361             lt_prog_compiler_pic_CXX='-KPIC'
15362             ;;
15363           ghcx*)
15364             # Green Hills C++ Compiler
15365             lt_prog_compiler_pic_CXX='-pic'
15366             ;;
15367           *)
15368             ;;
15369         esac
15370         ;;
15371       freebsd* | dragonfly*)
15372         # FreeBSD uses GNU C++
15373         ;;
15374       hpux9* | hpux10* | hpux11*)
15375         case $cc_basename in
15376           CC*)
15377             lt_prog_compiler_wl_CXX='-Wl,'
15378             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15379             if test "$host_cpu" != ia64; then
15380               lt_prog_compiler_pic_CXX='+Z'
15381             fi
15382             ;;
15383           aCC*)
15384             lt_prog_compiler_wl_CXX='-Wl,'
15385             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15386             case $host_cpu in
15387             hppa*64*|ia64*)
15388               # +Z the default
15389               ;;
15390             *)
15391               lt_prog_compiler_pic_CXX='+Z'
15392               ;;
15393             esac
15394             ;;
15395           *)
15396             ;;
15397         esac
15398         ;;
15399       interix*)
15400         # This is c89, which is MS Visual C++ (no shared libs)
15401         # Anyone wants to do a port?
15402         ;;
15403       irix5* | irix6* | nonstopux*)
15404         case $cc_basename in
15405           CC*)
15406             lt_prog_compiler_wl_CXX='-Wl,'
15407             lt_prog_compiler_static_CXX='-non_shared'
15408             # CC pic flag -KPIC is the default.
15409             ;;
15410           *)
15411             ;;
15412         esac
15413         ;;
15414       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15415         case $cc_basename in
15416           KCC*)
15417             # KAI C++ Compiler
15418             lt_prog_compiler_wl_CXX='--backend -Wl,'
15419             lt_prog_compiler_pic_CXX='-fPIC'
15420             ;;
15421           ecpc* )
15422             # old Intel C++ for x86_64 which still supported -KPIC.
15423             lt_prog_compiler_wl_CXX='-Wl,'
15424             lt_prog_compiler_pic_CXX='-KPIC'
15425             lt_prog_compiler_static_CXX='-static'
15426             ;;
15427           icpc* )
15428             # Intel C++, used to be incompatible with GCC.
15429             # ICC 10 doesn't accept -KPIC any more.
15430             lt_prog_compiler_wl_CXX='-Wl,'
15431             lt_prog_compiler_pic_CXX='-fPIC'
15432             lt_prog_compiler_static_CXX='-static'
15433             ;;
15434           pgCC* | pgcpp*)
15435             # Portland Group C++ compiler
15436             lt_prog_compiler_wl_CXX='-Wl,'
15437             lt_prog_compiler_pic_CXX='-fpic'
15438             lt_prog_compiler_static_CXX='-Bstatic'
15439             ;;
15440           cxx*)
15441             # Compaq C++
15442             # Make sure the PIC flag is empty.  It appears that all Alpha
15443             # Linux and Compaq Tru64 Unix objects are PIC.
15444             lt_prog_compiler_pic_CXX=
15445             lt_prog_compiler_static_CXX='-non_shared'
15446             ;;
15447           xlc* | xlC*)
15448             # IBM XL 8.0 on PPC
15449             lt_prog_compiler_wl_CXX='-Wl,'
15450             lt_prog_compiler_pic_CXX='-qpic'
15451             lt_prog_compiler_static_CXX='-qstaticlink'
15452             ;;
15453           *)
15454             case `$CC -V 2>&1 | sed 5q` in
15455             *Sun\ C*)
15456               # Sun C++ 5.9
15457               lt_prog_compiler_pic_CXX='-KPIC'
15458               lt_prog_compiler_static_CXX='-Bstatic'
15459               lt_prog_compiler_wl_CXX='-Qoption ld '
15460               ;;
15461             esac
15462             ;;
15463         esac
15464         ;;
15465       lynxos*)
15466         ;;
15467       m88k*)
15468         ;;
15469       mvs*)
15470         case $cc_basename in
15471           cxx*)
15472             lt_prog_compiler_pic_CXX='-W c,exportall'
15473             ;;
15474           *)
15475             ;;
15476         esac
15477         ;;
15478       netbsd*)
15479         ;;
15480       *qnx* | *nto*)
15481         # QNX uses GNU C++, but need to define -shared option too, otherwise
15482         # it will coredump.
15483         lt_prog_compiler_pic_CXX='-fPIC -shared'
15484         ;;
15485       osf3* | osf4* | osf5*)
15486         case $cc_basename in
15487           KCC*)
15488             lt_prog_compiler_wl_CXX='--backend -Wl,'
15489             ;;
15490           RCC*)
15491             # Rational C++ 2.4.1
15492             lt_prog_compiler_pic_CXX='-pic'
15493             ;;
15494           cxx*)
15495             # Digital/Compaq C++
15496             lt_prog_compiler_wl_CXX='-Wl,'
15497             # Make sure the PIC flag is empty.  It appears that all Alpha
15498             # Linux and Compaq Tru64 Unix objects are PIC.
15499             lt_prog_compiler_pic_CXX=
15500             lt_prog_compiler_static_CXX='-non_shared'
15501             ;;
15502           *)
15503             ;;
15504         esac
15505         ;;
15506       psos*)
15507         ;;
15508       solaris*)
15509         case $cc_basename in
15510           CC*)
15511             # Sun C++ 4.2, 5.x and Centerline C++
15512             lt_prog_compiler_pic_CXX='-KPIC'
15513             lt_prog_compiler_static_CXX='-Bstatic'
15514             lt_prog_compiler_wl_CXX='-Qoption ld '
15515             ;;
15516           gcx*)
15517             # Green Hills C++ Compiler
15518             lt_prog_compiler_pic_CXX='-PIC'
15519             ;;
15520           *)
15521             ;;
15522         esac
15523         ;;
15524       sunos4*)
15525         case $cc_basename in
15526           CC*)
15527             # Sun C++ 4.x
15528             lt_prog_compiler_pic_CXX='-pic'
15529             lt_prog_compiler_static_CXX='-Bstatic'
15530             ;;
15531           lcc*)
15532             # Lucid
15533             lt_prog_compiler_pic_CXX='-pic'
15534             ;;
15535           *)
15536             ;;
15537         esac
15538         ;;
15539       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15540         case $cc_basename in
15541           CC*)
15542             lt_prog_compiler_wl_CXX='-Wl,'
15543             lt_prog_compiler_pic_CXX='-KPIC'
15544             lt_prog_compiler_static_CXX='-Bstatic'
15545             ;;
15546         esac
15547         ;;
15548       tandem*)
15549         case $cc_basename in
15550           NCC*)
15551             # NonStop-UX NCC 3.20
15552             lt_prog_compiler_pic_CXX='-KPIC'
15553             ;;
15554           *)
15555             ;;
15556         esac
15557         ;;
15558       vxworks*)
15559         ;;
15560       *)
15561         lt_prog_compiler_can_build_shared_CXX=no
15562         ;;
15563     esac
15564   fi
15565
15566 case $host_os in
15567   # For platforms which do not support PIC, -DPIC is meaningless:
15568   *djgpp*)
15569     lt_prog_compiler_pic_CXX=
15570     ;;
15571   *)
15572     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15573     ;;
15574 esac
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15576 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15577
15578
15579
15580 #
15581 # Check to make sure the PIC flag actually works.
15582 #
15583 if test -n "$lt_prog_compiler_pic_CXX"; then
15584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15585 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15586 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15587   $as_echo_n "(cached) " >&6
15588 else
15589   lt_cv_prog_compiler_pic_works_CXX=no
15590    ac_outfile=conftest.$ac_objext
15591    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15592    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15593    # Insert the option either (1) after the last *FLAGS variable, or
15594    # (2) before a word containing "conftest.", or (3) at the end.
15595    # Note that $ac_compile itself does not contain backslashes and begins
15596    # with a dollar sign (not a hyphen), so the echo should work correctly.
15597    # The option is referenced via a variable to avoid confusing sed.
15598    lt_compile=`echo "$ac_compile" | $SED \
15599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15601    -e 's:$: $lt_compiler_flag:'`
15602    (eval echo "\"\$as_me:15602: $lt_compile\"" >&5)
15603    (eval "$lt_compile" 2>conftest.err)
15604    ac_status=$?
15605    cat conftest.err >&5
15606    echo "$as_me:15606: \$? = $ac_status" >&5
15607    if (exit $ac_status) && test -s "$ac_outfile"; then
15608      # The compiler can only warn and ignore the option if not recognized
15609      # So say no if there are warnings other than the usual output.
15610      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15611      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15612      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15613        lt_cv_prog_compiler_pic_works_CXX=yes
15614      fi
15615    fi
15616    $RM conftest*
15617
15618 fi
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15620 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15621
15622 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15623     case $lt_prog_compiler_pic_CXX in
15624      "" | " "*) ;;
15625      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15626      esac
15627 else
15628     lt_prog_compiler_pic_CXX=
15629      lt_prog_compiler_can_build_shared_CXX=no
15630 fi
15631
15632 fi
15633
15634
15635
15636 #
15637 # Check to make sure the static flag actually works.
15638 #
15639 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15641 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15642 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15643   $as_echo_n "(cached) " >&6
15644 else
15645   lt_cv_prog_compiler_static_works_CXX=no
15646    save_LDFLAGS="$LDFLAGS"
15647    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15648    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15649    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15650      # The linker can only warn and ignore the option if not recognized
15651      # So say no if there are warnings
15652      if test -s conftest.err; then
15653        # Append any errors to the config.log.
15654        cat conftest.err 1>&5
15655        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15656        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15657        if diff conftest.exp conftest.er2 >/dev/null; then
15658          lt_cv_prog_compiler_static_works_CXX=yes
15659        fi
15660      else
15661        lt_cv_prog_compiler_static_works_CXX=yes
15662      fi
15663    fi
15664    $RM -r conftest*
15665    LDFLAGS="$save_LDFLAGS"
15666
15667 fi
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15669 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15670
15671 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15672     :
15673 else
15674     lt_prog_compiler_static_CXX=
15675 fi
15676
15677
15678
15679
15680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15682 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15683   $as_echo_n "(cached) " >&6
15684 else
15685   lt_cv_prog_compiler_c_o_CXX=no
15686    $RM -r conftest 2>/dev/null
15687    mkdir conftest
15688    cd conftest
15689    mkdir out
15690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15691
15692    lt_compiler_flag="-o out/conftest2.$ac_objext"
15693    # Insert the option either (1) after the last *FLAGS variable, or
15694    # (2) before a word containing "conftest.", or (3) at the end.
15695    # Note that $ac_compile itself does not contain backslashes and begins
15696    # with a dollar sign (not a hyphen), so the echo should work correctly.
15697    lt_compile=`echo "$ac_compile" | $SED \
15698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15700    -e 's:$: $lt_compiler_flag:'`
15701    (eval echo "\"\$as_me:15701: $lt_compile\"" >&5)
15702    (eval "$lt_compile" 2>out/conftest.err)
15703    ac_status=$?
15704    cat out/conftest.err >&5
15705    echo "$as_me:15705: \$? = $ac_status" >&5
15706    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15707    then
15708      # The compiler can only warn and ignore the option if not recognized
15709      # So say no if there are warnings
15710      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15711      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15712      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15713        lt_cv_prog_compiler_c_o_CXX=yes
15714      fi
15715    fi
15716    chmod u+w . 2>&5
15717    $RM conftest*
15718    # SGI C++ compiler will create directory out/ii_files/ for
15719    # template instantiation
15720    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15721    $RM out/* && rmdir out
15722    cd ..
15723    $RM -r conftest
15724    $RM conftest*
15725
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15728 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15729
15730
15731
15732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15734 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15735   $as_echo_n "(cached) " >&6
15736 else
15737   lt_cv_prog_compiler_c_o_CXX=no
15738    $RM -r conftest 2>/dev/null
15739    mkdir conftest
15740    cd conftest
15741    mkdir out
15742    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15743
15744    lt_compiler_flag="-o out/conftest2.$ac_objext"
15745    # Insert the option either (1) after the last *FLAGS variable, or
15746    # (2) before a word containing "conftest.", or (3) at the end.
15747    # Note that $ac_compile itself does not contain backslashes and begins
15748    # with a dollar sign (not a hyphen), so the echo should work correctly.
15749    lt_compile=`echo "$ac_compile" | $SED \
15750    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15751    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15752    -e 's:$: $lt_compiler_flag:'`
15753    (eval echo "\"\$as_me:15753: $lt_compile\"" >&5)
15754    (eval "$lt_compile" 2>out/conftest.err)
15755    ac_status=$?
15756    cat out/conftest.err >&5
15757    echo "$as_me:15757: \$? = $ac_status" >&5
15758    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15759    then
15760      # The compiler can only warn and ignore the option if not recognized
15761      # So say no if there are warnings
15762      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15763      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15764      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15765        lt_cv_prog_compiler_c_o_CXX=yes
15766      fi
15767    fi
15768    chmod u+w . 2>&5
15769    $RM conftest*
15770    # SGI C++ compiler will create directory out/ii_files/ for
15771    # template instantiation
15772    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15773    $RM out/* && rmdir out
15774    cd ..
15775    $RM -r conftest
15776    $RM conftest*
15777
15778 fi
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15780 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15781
15782
15783
15784
15785 hard_links="nottested"
15786 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15787   # do not overwrite the value of need_locks provided by the user
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15789 $as_echo_n "checking if we can lock with hard links... " >&6; }
15790   hard_links=yes
15791   $RM conftest*
15792   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15793   touch conftest.a
15794   ln conftest.a conftest.b 2>&5 || hard_links=no
15795   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15797 $as_echo "$hard_links" >&6; }
15798   if test "$hard_links" = no; then
15799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15800 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15801     need_locks=warn
15802   fi
15803 else
15804   need_locks=no
15805 fi
15806
15807
15808
15809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15811
15812   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15813   case $host_os in
15814   aix[4-9]*)
15815     # If we're using GNU nm, then we don't want the "-C" option.
15816     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15817     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15818       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15819     else
15820       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'
15821     fi
15822     ;;
15823   pw32*)
15824     export_symbols_cmds_CXX="$ltdll_cmds"
15825   ;;
15826   cygwin* | mingw* | cegcc*)
15827     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'
15828   ;;
15829   *)
15830     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15831   ;;
15832   esac
15833   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15834
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15836 $as_echo "$ld_shlibs_CXX" >&6; }
15837 test "$ld_shlibs_CXX" = no && can_build_shared=no
15838
15839 with_gnu_ld_CXX=$with_gnu_ld
15840
15841
15842
15843
15844
15845
15846 #
15847 # Do we need to explicitly link libc?
15848 #
15849 case "x$archive_cmds_need_lc_CXX" in
15850 x|xyes)
15851   # Assume -lc should be added
15852   archive_cmds_need_lc_CXX=yes
15853
15854   if test "$enable_shared" = yes && test "$GCC" = yes; then
15855     case $archive_cmds_CXX in
15856     *'~'*)
15857       # FIXME: we may have to deal with multi-command sequences.
15858       ;;
15859     '$CC '*)
15860       # Test whether the compiler implicitly links with -lc since on some
15861       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15862       # to ld, don't add -lc before -lgcc.
15863       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15864 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15865 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15866   $as_echo_n "(cached) " >&6
15867 else
15868   $RM conftest*
15869         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15870
15871         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15872   (eval $ac_compile) 2>&5
15873   ac_status=$?
15874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875   test $ac_status = 0; } 2>conftest.err; then
15876           soname=conftest
15877           lib=conftest
15878           libobjs=conftest.$ac_objext
15879           deplibs=
15880           wl=$lt_prog_compiler_wl_CXX
15881           pic_flag=$lt_prog_compiler_pic_CXX
15882           compiler_flags=-v
15883           linker_flags=-v
15884           verstring=
15885           output_objdir=.
15886           libname=conftest
15887           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15888           allow_undefined_flag_CXX=
15889           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15890   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15891   ac_status=$?
15892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893   test $ac_status = 0; }
15894           then
15895             lt_cv_archive_cmds_need_lc_CXX=no
15896           else
15897             lt_cv_archive_cmds_need_lc_CXX=yes
15898           fi
15899           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15900         else
15901           cat conftest.err 1>&5
15902         fi
15903         $RM conftest*
15904
15905 fi
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15907 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15908       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15909       ;;
15910     esac
15911   fi
15912   ;;
15913 esac
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15980
15981 library_names_spec=
15982 libname_spec='lib$name'
15983 soname_spec=
15984 shrext_cmds=".so"
15985 postinstall_cmds=
15986 postuninstall_cmds=
15987 finish_cmds=
15988 finish_eval=
15989 shlibpath_var=
15990 shlibpath_overrides_runpath=unknown
15991 version_type=none
15992 dynamic_linker="$host_os ld.so"
15993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15994 need_lib_prefix=unknown
15995 hardcode_into_libs=no
15996
15997 # when you set need_version to no, make sure it does not cause -set_version
15998 # flags to be left without arguments
15999 need_version=unknown
16000
16001 case $host_os in
16002 aix3*)
16003   version_type=linux
16004   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16005   shlibpath_var=LIBPATH
16006
16007   # AIX 3 has no versioning support, so we append a major version to the name.
16008   soname_spec='${libname}${release}${shared_ext}$major'
16009   ;;
16010
16011 aix[4-9]*)
16012   version_type=linux
16013   need_lib_prefix=no
16014   need_version=no
16015   hardcode_into_libs=yes
16016   if test "$host_cpu" = ia64; then
16017     # AIX 5 supports IA64
16018     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16019     shlibpath_var=LD_LIBRARY_PATH
16020   else
16021     # With GCC up to 2.95.x, collect2 would create an import file
16022     # for dependence libraries.  The import file would start with
16023     # the line `#! .'.  This would cause the generated library to
16024     # depend on `.', always an invalid library.  This was fixed in
16025     # development snapshots of GCC prior to 3.0.
16026     case $host_os in
16027       aix4 | aix4.[01] | aix4.[01].*)
16028       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16029            echo ' yes '
16030            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16031         :
16032       else
16033         can_build_shared=no
16034       fi
16035       ;;
16036     esac
16037     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16038     # soname into executable. Probably we can add versioning support to
16039     # collect2, so additional links can be useful in future.
16040     if test "$aix_use_runtimelinking" = yes; then
16041       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16042       # instead of lib<name>.a to let people know that these are not
16043       # typical AIX shared libraries.
16044       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045     else
16046       # We preserve .a as extension for shared libraries through AIX4.2
16047       # and later when we are not doing run time linking.
16048       library_names_spec='${libname}${release}.a $libname.a'
16049       soname_spec='${libname}${release}${shared_ext}$major'
16050     fi
16051     shlibpath_var=LIBPATH
16052   fi
16053   ;;
16054
16055 amigaos*)
16056   case $host_cpu in
16057   powerpc)
16058     # Since July 2007 AmigaOS4 officially supports .so libraries.
16059     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061     ;;
16062   m68k)
16063     library_names_spec='$libname.ixlibrary $libname.a'
16064     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16065     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'
16066     ;;
16067   esac
16068   ;;
16069
16070 beos*)
16071   library_names_spec='${libname}${shared_ext}'
16072   dynamic_linker="$host_os ld.so"
16073   shlibpath_var=LIBRARY_PATH
16074   ;;
16075
16076 bsdi[45]*)
16077   version_type=linux
16078   need_version=no
16079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080   soname_spec='${libname}${release}${shared_ext}$major'
16081   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16082   shlibpath_var=LD_LIBRARY_PATH
16083   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16084   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16085   # the default ld.so.conf also contains /usr/contrib/lib and
16086   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16087   # libtool to hard-code these into programs
16088   ;;
16089
16090 cygwin* | mingw* | pw32* | cegcc*)
16091   version_type=windows
16092   shrext_cmds=".dll"
16093   need_version=no
16094   need_lib_prefix=no
16095
16096   case $GCC,$host_os in
16097   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16098     library_names_spec='$libname.dll.a'
16099     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16100     postinstall_cmds='base_file=`basename \${file}`~
16101       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16102       dldir=$destdir/`dirname \$dlpath`~
16103       test -d \$dldir || mkdir -p \$dldir~
16104       $install_prog $dir/$dlname \$dldir/$dlname~
16105       chmod a+x \$dldir/$dlname~
16106       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16107         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16108       fi'
16109     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16110       dlpath=$dir/\$dldll~
16111        $RM \$dlpath'
16112     shlibpath_overrides_runpath=yes
16113
16114     case $host_os in
16115     cygwin*)
16116       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16117       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16119       ;;
16120     mingw* | cegcc*)
16121       # MinGW DLLs use traditional 'lib' prefix
16122       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16123       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16124       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16125         # It is most probably a Windows format PATH printed by
16126         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16127         # path with ; separators, and with drive letters. We can handle the
16128         # drive letters (cygwin fileutils understands them), so leave them,
16129         # especially as we might pass files found there to a mingw objdump,
16130         # which wouldn't understand a cygwinified path. Ahh.
16131         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16132       else
16133         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16134       fi
16135       ;;
16136     pw32*)
16137       # pw32 DLLs use 'pw' prefix rather than 'lib'
16138       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16139       ;;
16140     esac
16141     ;;
16142
16143   *)
16144     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16145     ;;
16146   esac
16147   dynamic_linker='Win32 ld.exe'
16148   # FIXME: first we should search . and the directory the executable is in
16149   shlibpath_var=PATH
16150   ;;
16151
16152 darwin* | rhapsody*)
16153   dynamic_linker="$host_os dyld"
16154   version_type=darwin
16155   need_lib_prefix=no
16156   need_version=no
16157   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16158   soname_spec='${libname}${release}${major}$shared_ext'
16159   shlibpath_overrides_runpath=yes
16160   shlibpath_var=DYLD_LIBRARY_PATH
16161   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16162
16163   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16164   ;;
16165
16166 dgux*)
16167   version_type=linux
16168   need_lib_prefix=no
16169   need_version=no
16170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16171   soname_spec='${libname}${release}${shared_ext}$major'
16172   shlibpath_var=LD_LIBRARY_PATH
16173   ;;
16174
16175 freebsd1*)
16176   dynamic_linker=no
16177   ;;
16178
16179 freebsd* | dragonfly*)
16180   # DragonFly does not have aout.  When/if they implement a new
16181   # versioning mechanism, adjust this.
16182   if test -x /usr/bin/objformat; then
16183     objformat=`/usr/bin/objformat`
16184   else
16185     case $host_os in
16186     freebsd[123]*) objformat=aout ;;
16187     *) objformat=elf ;;
16188     esac
16189   fi
16190   version_type=freebsd-$objformat
16191   case $version_type in
16192     freebsd-elf*)
16193       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16194       need_version=no
16195       need_lib_prefix=no
16196       ;;
16197     freebsd-*)
16198       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16199       need_version=yes
16200       ;;
16201   esac
16202   shlibpath_var=LD_LIBRARY_PATH
16203   case $host_os in
16204   freebsd2*)
16205     shlibpath_overrides_runpath=yes
16206     ;;
16207   freebsd3.[01]* | freebsdelf3.[01]*)
16208     shlibpath_overrides_runpath=yes
16209     hardcode_into_libs=yes
16210     ;;
16211   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16212   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16213     shlibpath_overrides_runpath=no
16214     hardcode_into_libs=yes
16215     ;;
16216   *) # from 4.6 on, and DragonFly
16217     shlibpath_overrides_runpath=yes
16218     hardcode_into_libs=yes
16219     ;;
16220   esac
16221   ;;
16222
16223 gnu*)
16224   version_type=linux
16225   need_lib_prefix=no
16226   need_version=no
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=LD_LIBRARY_PATH
16230   hardcode_into_libs=yes
16231   ;;
16232
16233 hpux9* | hpux10* | hpux11*)
16234   # Give a soname corresponding to the major version so that dld.sl refuses to
16235   # link against other versions.
16236   version_type=sunos
16237   need_lib_prefix=no
16238   need_version=no
16239   case $host_cpu in
16240   ia64*)
16241     shrext_cmds='.so'
16242     hardcode_into_libs=yes
16243     dynamic_linker="$host_os dld.so"
16244     shlibpath_var=LD_LIBRARY_PATH
16245     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247     soname_spec='${libname}${release}${shared_ext}$major'
16248     if test "X$HPUX_IA64_MODE" = X32; then
16249       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16250     else
16251       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16252     fi
16253     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16254     ;;
16255   hppa*64*)
16256     shrext_cmds='.sl'
16257     hardcode_into_libs=yes
16258     dynamic_linker="$host_os dld.sl"
16259     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262     soname_spec='${libname}${release}${shared_ext}$major'
16263     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16264     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16265     ;;
16266   *)
16267     shrext_cmds='.sl'
16268     dynamic_linker="$host_os dld.sl"
16269     shlibpath_var=SHLIB_PATH
16270     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272     soname_spec='${libname}${release}${shared_ext}$major'
16273     ;;
16274   esac
16275   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16276   postinstall_cmds='chmod 555 $lib'
16277   ;;
16278
16279 interix[3-9]*)
16280   version_type=linux
16281   need_lib_prefix=no
16282   need_version=no
16283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16284   soname_spec='${libname}${release}${shared_ext}$major'
16285   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16286   shlibpath_var=LD_LIBRARY_PATH
16287   shlibpath_overrides_runpath=no
16288   hardcode_into_libs=yes
16289   ;;
16290
16291 irix5* | irix6* | nonstopux*)
16292   case $host_os in
16293     nonstopux*) version_type=nonstopux ;;
16294     *)
16295         if test "$lt_cv_prog_gnu_ld" = yes; then
16296                 version_type=linux
16297         else
16298                 version_type=irix
16299         fi ;;
16300   esac
16301   need_lib_prefix=no
16302   need_version=no
16303   soname_spec='${libname}${release}${shared_ext}$major'
16304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16305   case $host_os in
16306   irix5* | nonstopux*)
16307     libsuff= shlibsuff=
16308     ;;
16309   *)
16310     case $LD in # libtool.m4 will add one of these switches to LD
16311     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16312       libsuff= shlibsuff= libmagic=32-bit;;
16313     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16314       libsuff=32 shlibsuff=N32 libmagic=N32;;
16315     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16316       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16317     *) libsuff= shlibsuff= libmagic=never-match;;
16318     esac
16319     ;;
16320   esac
16321   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16322   shlibpath_overrides_runpath=no
16323   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16324   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16325   hardcode_into_libs=yes
16326   ;;
16327
16328 # No shared lib support for Linux oldld, aout, or coff.
16329 linux*oldld* | linux*aout* | linux*coff*)
16330   dynamic_linker=no
16331   ;;
16332
16333 # This must be Linux ELF.
16334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16335   version_type=linux
16336   need_lib_prefix=no
16337   need_version=no
16338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339   soname_spec='${libname}${release}${shared_ext}$major'
16340   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16341   shlibpath_var=LD_LIBRARY_PATH
16342   shlibpath_overrides_runpath=no
16343
16344   # Some binutils ld are patched to set DT_RUNPATH
16345   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16346   $as_echo_n "(cached) " >&6
16347 else
16348   lt_cv_shlibpath_overrides_runpath=no
16349     save_LDFLAGS=$LDFLAGS
16350     save_libdir=$libdir
16351     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16352          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16353     if test x$gcc_no_link = xyes; then
16354   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16355 fi
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h.  */
16358
16359 int
16360 main ()
16361 {
16362
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 if ac_fn_cxx_try_link "$LINENO"; then :
16368   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16369   lt_cv_shlibpath_overrides_runpath=yes
16370 fi
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext \
16373     conftest$ac_exeext conftest.$ac_ext
16374     LDFLAGS=$save_LDFLAGS
16375     libdir=$save_libdir
16376
16377 fi
16378
16379   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16380
16381   # This implies no fast_install, which is unacceptable.
16382   # Some rework will be needed to allow for fast_install
16383   # before this can be enabled.
16384   hardcode_into_libs=yes
16385
16386   # Append ld.so.conf contents to the search path
16387   if test -f /etc/ld.so.conf; then
16388     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16390   fi
16391
16392   # We used to test for /lib/ld.so.1 and disable shared libraries on
16393   # powerpc, because MkLinux only supported shared libraries with the
16394   # GNU dynamic linker.  Since this was broken with cross compilers,
16395   # most powerpc-linux boxes support dynamic linking these days and
16396   # people can always --disable-shared, the test was removed, and we
16397   # assume the GNU/Linux dynamic linker is in use.
16398   dynamic_linker='GNU/Linux ld.so'
16399   ;;
16400
16401 netbsd*)
16402   version_type=sunos
16403   need_lib_prefix=no
16404   need_version=no
16405   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16408     dynamic_linker='NetBSD (a.out) ld.so'
16409   else
16410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16411     soname_spec='${libname}${release}${shared_ext}$major'
16412     dynamic_linker='NetBSD ld.elf_so'
16413   fi
16414   shlibpath_var=LD_LIBRARY_PATH
16415   shlibpath_overrides_runpath=yes
16416   hardcode_into_libs=yes
16417   ;;
16418
16419 newsos6)
16420   version_type=linux
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422   shlibpath_var=LD_LIBRARY_PATH
16423   shlibpath_overrides_runpath=yes
16424   ;;
16425
16426 *nto* | *qnx*)
16427   version_type=qnx
16428   need_lib_prefix=no
16429   need_version=no
16430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431   soname_spec='${libname}${release}${shared_ext}$major'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   shlibpath_overrides_runpath=no
16434   hardcode_into_libs=yes
16435   dynamic_linker='ldqnx.so'
16436   ;;
16437
16438 openbsd*)
16439   version_type=sunos
16440   sys_lib_dlsearch_path_spec="/usr/lib"
16441   need_lib_prefix=no
16442   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16443   case $host_os in
16444     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16445     *)                          need_version=no  ;;
16446   esac
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16451     case $host_os in
16452       openbsd2.[89] | openbsd2.[89].*)
16453         shlibpath_overrides_runpath=no
16454         ;;
16455       *)
16456         shlibpath_overrides_runpath=yes
16457         ;;
16458       esac
16459   else
16460     shlibpath_overrides_runpath=yes
16461   fi
16462   ;;
16463
16464 os2*)
16465   libname_spec='$name'
16466   shrext_cmds=".dll"
16467   need_lib_prefix=no
16468   library_names_spec='$libname${shared_ext} $libname.a'
16469   dynamic_linker='OS/2 ld.exe'
16470   shlibpath_var=LIBPATH
16471   ;;
16472
16473 osf3* | osf4* | osf5*)
16474   version_type=osf
16475   need_lib_prefix=no
16476   need_version=no
16477   soname_spec='${libname}${release}${shared_ext}$major'
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479   shlibpath_var=LD_LIBRARY_PATH
16480   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16481   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16482   ;;
16483
16484 rdos*)
16485   dynamic_linker=no
16486   ;;
16487
16488 solaris*)
16489   version_type=linux
16490   need_lib_prefix=no
16491   need_version=no
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493   soname_spec='${libname}${release}${shared_ext}$major'
16494   shlibpath_var=LD_LIBRARY_PATH
16495   shlibpath_overrides_runpath=yes
16496   hardcode_into_libs=yes
16497   # ldd complains unless libraries are executable
16498   postinstall_cmds='chmod +x $lib'
16499   ;;
16500
16501 sunos4*)
16502   version_type=sunos
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16504   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16505   shlibpath_var=LD_LIBRARY_PATH
16506   shlibpath_overrides_runpath=yes
16507   if test "$with_gnu_ld" = yes; then
16508     need_lib_prefix=no
16509   fi
16510   need_version=yes
16511   ;;
16512
16513 sysv4 | sysv4.3*)
16514   version_type=linux
16515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   case $host_vendor in
16519     sni)
16520       shlibpath_overrides_runpath=no
16521       need_lib_prefix=no
16522       runpath_var=LD_RUN_PATH
16523       ;;
16524     siemens)
16525       need_lib_prefix=no
16526       ;;
16527     motorola)
16528       need_lib_prefix=no
16529       need_version=no
16530       shlibpath_overrides_runpath=no
16531       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16532       ;;
16533   esac
16534   ;;
16535
16536 sysv4*MP*)
16537   if test -d /usr/nec ;then
16538     version_type=linux
16539     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16540     soname_spec='$libname${shared_ext}.$major'
16541     shlibpath_var=LD_LIBRARY_PATH
16542   fi
16543   ;;
16544
16545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16546   version_type=freebsd-elf
16547   need_lib_prefix=no
16548   need_version=no
16549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550   soname_spec='${libname}${release}${shared_ext}$major'
16551   shlibpath_var=LD_LIBRARY_PATH
16552   shlibpath_overrides_runpath=yes
16553   hardcode_into_libs=yes
16554   if test "$with_gnu_ld" = yes; then
16555     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16556   else
16557     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16558     case $host_os in
16559       sco3.2v5*)
16560         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16561         ;;
16562     esac
16563   fi
16564   sys_lib_dlsearch_path_spec='/usr/lib'
16565   ;;
16566
16567 tpf*)
16568   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16569   version_type=linux
16570   need_lib_prefix=no
16571   need_version=no
16572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573   shlibpath_var=LD_LIBRARY_PATH
16574   shlibpath_overrides_runpath=no
16575   hardcode_into_libs=yes
16576   ;;
16577
16578 uts4*)
16579   version_type=linux
16580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   shlibpath_var=LD_LIBRARY_PATH
16583   ;;
16584
16585 *)
16586   dynamic_linker=no
16587   ;;
16588 esac
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16590 $as_echo "$dynamic_linker" >&6; }
16591 test "$dynamic_linker" = no && can_build_shared=no
16592
16593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16594 if test "$GCC" = yes; then
16595   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16596 fi
16597
16598 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16599   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16600 fi
16601 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16602   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16603 fi
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16642 hardcode_action_CXX=
16643 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16644    test -n "$runpath_var_CXX" ||
16645    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16646
16647   # We can hardcode non-existent directories.
16648   if test "$hardcode_direct_CXX" != no &&
16649      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16650      # have to relink, otherwise we might link with an installed library
16651      # when we should be linking with a yet-to-be-installed one
16652      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16653      test "$hardcode_minus_L_CXX" != no; then
16654     # Linking always hardcodes the temporary library directory.
16655     hardcode_action_CXX=relink
16656   else
16657     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16658     hardcode_action_CXX=immediate
16659   fi
16660 else
16661   # We cannot hardcode anything, or else we can only hardcode existing
16662   # directories.
16663   hardcode_action_CXX=unsupported
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16666 $as_echo "$hardcode_action_CXX" >&6; }
16667
16668 if test "$hardcode_action_CXX" = relink ||
16669    test "$inherit_rpath_CXX" = yes; then
16670   # Fast installation is not supported
16671   enable_fast_install=no
16672 elif test "$shlibpath_overrides_runpath" = yes ||
16673      test "$enable_shared" = no; then
16674   # Fast installation is not necessary
16675   enable_fast_install=needless
16676 fi
16677
16678
16679
16680
16681
16682
16683
16684   fi # test -n "$compiler"
16685
16686   CC=$lt_save_CC
16687   LDCXX=$LD
16688   LD=$lt_save_LD
16689   GCC=$lt_save_GCC
16690   with_gnu_ld=$lt_save_with_gnu_ld
16691   lt_cv_path_LDCXX=$lt_cv_path_LD
16692   lt_cv_path_LD=$lt_save_path_LD
16693   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16694   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16695 fi # test "$_lt_caught_CXX_error" != yes
16696
16697 ac_ext=c
16698 ac_cpp='$CPP $CPPFLAGS'
16699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715         ac_config_commands="$ac_config_commands libtool"
16716
16717
16718
16719
16720 # Only expand once:
16721
16722
16723
16724 for ac_prog in gcj
16725 do
16726   # Extract the first word of "$ac_prog", so it can be a program name with args.
16727 set dummy $ac_prog; ac_word=$2
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16729 $as_echo_n "checking for $ac_word... " >&6; }
16730 if test "${ac_cv_prog_GCJ+set}" = set; then :
16731   $as_echo_n "(cached) " >&6
16732 else
16733   if test -n "$GCJ"; then
16734   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16735 else
16736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16737 for as_dir in $PATH
16738 do
16739   IFS=$as_save_IFS
16740   test -z "$as_dir" && as_dir=.
16741     for ac_exec_ext in '' $ac_executable_extensions; do
16742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16743     ac_cv_prog_GCJ="$ac_prog"
16744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16745     break 2
16746   fi
16747 done
16748   done
16749 IFS=$as_save_IFS
16750
16751 fi
16752 fi
16753 GCJ=$ac_cv_prog_GCJ
16754 if test -n "$GCJ"; then
16755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16756 $as_echo "$GCJ" >&6; }
16757 else
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16759 $as_echo "no" >&6; }
16760 fi
16761
16762
16763   test -n "$GCJ" && break
16764 done
16765 test -n "$GCJ" || GCJ="gcj"
16766
16767 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16768 if test "x${GCJFLAGS-unset}" = xunset; then
16769    GCJFLAGS="-g -O2"
16770 fi
16771
16772
16773 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16776 $as_echo_n "checking dependency style of $depcc... " >&6; }
16777 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16778   $as_echo_n "(cached) " >&6
16779 else
16780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16781   # We make a subdir and do the tests there.  Otherwise we can end up
16782   # making bogus files that we don't know about and never remove.  For
16783   # instance it was reported that on HP-UX the gcc test will end up
16784   # making a dummy file named `D' -- because `-MD' means `put the output
16785   # in D'.
16786   mkdir conftest.dir
16787   # Copy depcomp to subdir because otherwise we won't find it if we're
16788   # using a relative directory.
16789   cp "$am_depcomp" conftest.dir
16790   cd conftest.dir
16791   # We will build objects and dependencies in a subdirectory because
16792   # it helps to detect inapplicable dependency modes.  For instance
16793   # both Tru64's cc and ICC support -MD to output dependencies as a
16794   # side effect of compilation, but ICC will put the dependencies in
16795   # the current directory while Tru64 will put them in the object
16796   # directory.
16797   mkdir sub
16798
16799   am_cv_GCJ_dependencies_compiler_type=none
16800   if test "$am_compiler_list" = ""; then
16801      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16802   fi
16803   am__universal=false
16804
16805
16806   for depmode in $am_compiler_list; do
16807     # Setup a source with many dependencies, because some compilers
16808     # like to wrap large dependency lists on column 80 (with \), and
16809     # we should not choose a depcomp mode which is confused by this.
16810     #
16811     # We need to recreate these files for each test, as the compiler may
16812     # overwrite some of them when testing with obscure command lines.
16813     # This happens at least with the AIX C compiler.
16814     : > sub/conftest.c
16815     for i in 1 2 3 4 5 6; do
16816       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16817       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16818       # Solaris 8's {/usr,}/bin/sh.
16819       touch sub/conftst$i.h
16820     done
16821     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16822
16823     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16824     # mode.  It turns out that the SunPro C++ compiler does not properly
16825     # handle `-M -o', and we need to detect this.  Also, some Intel
16826     # versions had trouble with output in subdirs
16827     am__obj=sub/conftest.${OBJEXT-o}
16828     am__minus_obj="-o $am__obj"
16829     case $depmode in
16830     gcc)
16831       # This depmode causes a compiler race in universal mode.
16832       test "$am__universal" = false || continue
16833       ;;
16834     nosideeffect)
16835       # after this tag, mechanisms are not by side-effect, so they'll
16836       # only be used when explicitly requested
16837       if test "x$enable_dependency_tracking" = xyes; then
16838         continue
16839       else
16840         break
16841       fi
16842       ;;
16843     msvisualcpp | msvcmsys)
16844       # This compiler won't grok `-c -o', but also, the minuso test has
16845       # not run yet.  These depmodes are late enough in the game, and
16846       # so weak that their functioning should not be impacted.
16847       am__obj=conftest.${OBJEXT-o}
16848       am__minus_obj=
16849       ;;
16850     none) break ;;
16851     esac
16852     if depmode=$depmode \
16853        source=sub/conftest.c object=$am__obj \
16854        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16855        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16856          >/dev/null 2>conftest.err &&
16857        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16858        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16859        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16860        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16861       # icc doesn't choke on unknown options, it will just issue warnings
16862       # or remarks (even with -Werror).  So we grep stderr for any message
16863       # that says an option was ignored or not supported.
16864       # When given -MP, icc 7.0 and 7.1 complain thusly:
16865       #   icc: Command line warning: ignoring option '-M'; no argument required
16866       # The diagnosis changed in icc 8.0:
16867       #   icc: Command line remark: option '-MP' not supported
16868       if (grep 'ignoring option' conftest.err ||
16869           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16870         am_cv_GCJ_dependencies_compiler_type=$depmode
16871         break
16872       fi
16873     fi
16874   done
16875
16876   cd ..
16877   rm -rf conftest.dir
16878 else
16879   am_cv_GCJ_dependencies_compiler_type=none
16880 fi
16881
16882 fi
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16884 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16885 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16886
16887  if
16888   test "x$enable_dependency_tracking" != xno \
16889   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16890   am__fastdepGCJ_TRUE=
16891   am__fastdepGCJ_FALSE='#'
16892 else
16893   am__fastdepGCJ_TRUE='#'
16894   am__fastdepGCJ_FALSE=
16895 fi
16896
16897
16898
16899 for ac_prog in gcj
16900 do
16901   # Extract the first word of "$ac_prog", so it can be a program name with args.
16902 set dummy $ac_prog; ac_word=$2
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16904 $as_echo_n "checking for $ac_word... " >&6; }
16905 if test "${ac_cv_prog_GCJ+set}" = set; then :
16906   $as_echo_n "(cached) " >&6
16907 else
16908   if test -n "$GCJ"; then
16909   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16910 else
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16913 do
16914   IFS=$as_save_IFS
16915   test -z "$as_dir" && as_dir=.
16916     for ac_exec_ext in '' $ac_executable_extensions; do
16917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16918     ac_cv_prog_GCJ="$ac_prog"
16919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16920     break 2
16921   fi
16922 done
16923   done
16924 IFS=$as_save_IFS
16925
16926 fi
16927 fi
16928 GCJ=$ac_cv_prog_GCJ
16929 if test -n "$GCJ"; then
16930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16931 $as_echo "$GCJ" >&6; }
16932 else
16933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16934 $as_echo "no" >&6; }
16935 fi
16936
16937
16938   test -n "$GCJ" && break
16939 done
16940 test -n "$GCJ" || GCJ="gcj"
16941
16942 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16943 if test "x${GCJFLAGS-unset}" = xunset; then
16944    GCJFLAGS="-g -O2"
16945 fi
16946
16947
16948 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16949
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16951 $as_echo_n "checking dependency style of $depcc... " >&6; }
16952 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16953   $as_echo_n "(cached) " >&6
16954 else
16955   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16956   # We make a subdir and do the tests there.  Otherwise we can end up
16957   # making bogus files that we don't know about and never remove.  For
16958   # instance it was reported that on HP-UX the gcc test will end up
16959   # making a dummy file named `D' -- because `-MD' means `put the output
16960   # in D'.
16961   mkdir conftest.dir
16962   # Copy depcomp to subdir because otherwise we won't find it if we're
16963   # using a relative directory.
16964   cp "$am_depcomp" conftest.dir
16965   cd conftest.dir
16966   # We will build objects and dependencies in a subdirectory because
16967   # it helps to detect inapplicable dependency modes.  For instance
16968   # both Tru64's cc and ICC support -MD to output dependencies as a
16969   # side effect of compilation, but ICC will put the dependencies in
16970   # the current directory while Tru64 will put them in the object
16971   # directory.
16972   mkdir sub
16973
16974   am_cv_GCJ_dependencies_compiler_type=none
16975   if test "$am_compiler_list" = ""; then
16976      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16977   fi
16978   am__universal=false
16979
16980
16981   for depmode in $am_compiler_list; do
16982     # Setup a source with many dependencies, because some compilers
16983     # like to wrap large dependency lists on column 80 (with \), and
16984     # we should not choose a depcomp mode which is confused by this.
16985     #
16986     # We need to recreate these files for each test, as the compiler may
16987     # overwrite some of them when testing with obscure command lines.
16988     # This happens at least with the AIX C compiler.
16989     : > sub/conftest.c
16990     for i in 1 2 3 4 5 6; do
16991       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16992       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16993       # Solaris 8's {/usr,}/bin/sh.
16994       touch sub/conftst$i.h
16995     done
16996     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16997
16998     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16999     # mode.  It turns out that the SunPro C++ compiler does not properly
17000     # handle `-M -o', and we need to detect this.  Also, some Intel
17001     # versions had trouble with output in subdirs
17002     am__obj=sub/conftest.${OBJEXT-o}
17003     am__minus_obj="-o $am__obj"
17004     case $depmode in
17005     gcc)
17006       # This depmode causes a compiler race in universal mode.
17007       test "$am__universal" = false || continue
17008       ;;
17009     nosideeffect)
17010       # after this tag, mechanisms are not by side-effect, so they'll
17011       # only be used when explicitly requested
17012       if test "x$enable_dependency_tracking" = xyes; then
17013         continue
17014       else
17015         break
17016       fi
17017       ;;
17018     msvisualcpp | msvcmsys)
17019       # This compiler won't grok `-c -o', but also, the minuso test has
17020       # not run yet.  These depmodes are late enough in the game, and
17021       # so weak that their functioning should not be impacted.
17022       am__obj=conftest.${OBJEXT-o}
17023       am__minus_obj=
17024       ;;
17025     none) break ;;
17026     esac
17027     if depmode=$depmode \
17028        source=sub/conftest.c object=$am__obj \
17029        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17030        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17031          >/dev/null 2>conftest.err &&
17032        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17033        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17034        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17035        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17036       # icc doesn't choke on unknown options, it will just issue warnings
17037       # or remarks (even with -Werror).  So we grep stderr for any message
17038       # that says an option was ignored or not supported.
17039       # When given -MP, icc 7.0 and 7.1 complain thusly:
17040       #   icc: Command line warning: ignoring option '-M'; no argument required
17041       # The diagnosis changed in icc 8.0:
17042       #   icc: Command line remark: option '-MP' not supported
17043       if (grep 'ignoring option' conftest.err ||
17044           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17045         am_cv_GCJ_dependencies_compiler_type=$depmode
17046         break
17047       fi
17048     fi
17049   done
17050
17051   cd ..
17052   rm -rf conftest.dir
17053 else
17054   am_cv_GCJ_dependencies_compiler_type=none
17055 fi
17056
17057 fi
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17059 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17060 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17061
17062  if
17063   test "x$enable_dependency_tracking" != xno \
17064   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17065   am__fastdepGCJ_TRUE=
17066   am__fastdepGCJ_FALSE='#'
17067 else
17068   am__fastdepGCJ_TRUE='#'
17069   am__fastdepGCJ_FALSE=
17070 fi
17071
17072
17073
17074
17075
17076 # Source file extension for Java test sources.
17077 ac_ext=c
17078
17079 # Object file extension for compiled Java test sources.
17080 objext=o
17081 objext_GCJ=$objext
17082
17083 # Code to be used in simple compile tests
17084 lt_simple_compile_test_code="int some_variable = 0;"
17085
17086 # Code to be used in simple link tests
17087 lt_simple_link_test_code='int main(){return(0);}'
17088
17089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17090
17091
17092
17093
17094
17095
17096 # If no C compiler was specified, use CC.
17097 LTCC=${LTCC-"$CC"}
17098
17099 # If no C compiler flags were specified, use CFLAGS.
17100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17101
17102 # Allow CC to be a program name with arguments.
17103 compiler=$CC
17104
17105
17106 # save warnings/boilerplate of simple test code
17107 ac_outfile=conftest.$ac_objext
17108 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17110 _lt_compiler_boilerplate=`cat conftest.err`
17111 $RM conftest*
17112
17113 ac_outfile=conftest.$ac_objext
17114 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17116 _lt_linker_boilerplate=`cat conftest.err`
17117 $RM -r conftest*
17118
17119
17120 # Allow CC to be a program name with arguments.
17121 GCC=yes
17122 compiler=$CC
17123 compiler_GCJ=$CC
17124 for cc_temp in $compiler""; do
17125   case $cc_temp in
17126     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17127     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17128     \-*) ;;
17129     *) break;;
17130   esac
17131 done
17132 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17133
17134
17135 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17136 archive_cmds_need_lc_GCJ=no
17137
17138 old_archive_cmds_GCJ=$old_archive_cmds
17139
17140 ## CAVEAT EMPTOR:
17141 ## There is no encapsulation within the following macros, do not change
17142 ## the running order or otherwise move them around unless you know exactly
17143 ## what you are doing...
17144 if test -n "$compiler"; then
17145
17146 lt_prog_compiler_no_builtin_flag_GCJ=
17147
17148 if test "$GCC" = yes; then
17149   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17150
17151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17152 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17153 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17154   $as_echo_n "(cached) " >&6
17155 else
17156   lt_cv_prog_compiler_rtti_exceptions=no
17157    ac_outfile=conftest.$ac_objext
17158    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17159    lt_compiler_flag="-fno-rtti -fno-exceptions"
17160    # Insert the option either (1) after the last *FLAGS variable, or
17161    # (2) before a word containing "conftest.", or (3) at the end.
17162    # Note that $ac_compile itself does not contain backslashes and begins
17163    # with a dollar sign (not a hyphen), so the echo should work correctly.
17164    # The option is referenced via a variable to avoid confusing sed.
17165    lt_compile=`echo "$ac_compile" | $SED \
17166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168    -e 's:$: $lt_compiler_flag:'`
17169    (eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
17170    (eval "$lt_compile" 2>conftest.err)
17171    ac_status=$?
17172    cat conftest.err >&5
17173    echo "$as_me:17173: \$? = $ac_status" >&5
17174    if (exit $ac_status) && test -s "$ac_outfile"; then
17175      # The compiler can only warn and ignore the option if not recognized
17176      # So say no if there are warnings other than the usual output.
17177      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17178      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17179      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17180        lt_cv_prog_compiler_rtti_exceptions=yes
17181      fi
17182    fi
17183    $RM conftest*
17184
17185 fi
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17187 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17188
17189 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17190     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17191 else
17192     :
17193 fi
17194
17195 fi
17196
17197
17198
17199   lt_prog_compiler_wl_GCJ=
17200 lt_prog_compiler_pic_GCJ=
17201 lt_prog_compiler_static_GCJ=
17202
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17204 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17205
17206   if test "$GCC" = yes; then
17207     lt_prog_compiler_wl_GCJ='-Wl,'
17208     lt_prog_compiler_static_GCJ='-static'
17209
17210     case $host_os in
17211       aix*)
17212       # All AIX code is PIC.
17213       if test "$host_cpu" = ia64; then
17214         # AIX 5 now supports IA64 processor
17215         lt_prog_compiler_static_GCJ='-Bstatic'
17216       fi
17217       ;;
17218
17219     amigaos*)
17220       case $host_cpu in
17221       powerpc)
17222             # see comment about AmigaOS4 .so support
17223             lt_prog_compiler_pic_GCJ='-fPIC'
17224         ;;
17225       m68k)
17226             # FIXME: we need at least 68020 code to build shared libraries, but
17227             # adding the `-m68020' flag to GCC prevents building anything better,
17228             # like `-m68040'.
17229             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17230         ;;
17231       esac
17232       ;;
17233
17234     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17235       # PIC is the default for these OSes.
17236       ;;
17237
17238     mingw* | cygwin* | pw32* | os2* | cegcc*)
17239       # This hack is so that the source file can tell whether it is being
17240       # built for inclusion in a dll (and should export symbols for example).
17241       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17242       # (--disable-auto-import) libraries
17243
17244       ;;
17245
17246     darwin* | rhapsody*)
17247       # PIC is the default on this platform
17248       # Common symbols not allowed in MH_DYLIB files
17249       lt_prog_compiler_pic_GCJ='-fno-common'
17250       ;;
17251
17252     hpux*)
17253       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17254       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17255       # sets the default TLS model and affects inlining.
17256       case $host_cpu in
17257       hppa*64*)
17258         # +Z the default
17259         ;;
17260       *)
17261         lt_prog_compiler_pic_GCJ='-fPIC'
17262         ;;
17263       esac
17264       ;;
17265
17266     interix[3-9]*)
17267       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17268       # Instead, we relocate shared libraries at runtime.
17269       ;;
17270
17271     msdosdjgpp*)
17272       # Just because we use GCC doesn't mean we suddenly get shared libraries
17273       # on systems that don't support them.
17274       lt_prog_compiler_can_build_shared_GCJ=no
17275       enable_shared=no
17276       ;;
17277
17278     *nto* | *qnx*)
17279       # QNX uses GNU C++, but need to define -shared option too, otherwise
17280       # it will coredump.
17281       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17282       ;;
17283
17284     sysv4*MP*)
17285       if test -d /usr/nec; then
17286         lt_prog_compiler_pic_GCJ=-Kconform_pic
17287       fi
17288       ;;
17289
17290     *)
17291       lt_prog_compiler_pic_GCJ='-fPIC'
17292       ;;
17293     esac
17294   else
17295     # PORTME Check for flag to pass linker flags through the system compiler.
17296     case $host_os in
17297     aix*)
17298       lt_prog_compiler_wl_GCJ='-Wl,'
17299       if test "$host_cpu" = ia64; then
17300         # AIX 5 now supports IA64 processor
17301         lt_prog_compiler_static_GCJ='-Bstatic'
17302       else
17303         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17304       fi
17305       ;;
17306
17307     mingw* | cygwin* | pw32* | os2* | cegcc*)
17308       # This hack is so that the source file can tell whether it is being
17309       # built for inclusion in a dll (and should export symbols for example).
17310
17311       ;;
17312
17313     hpux9* | hpux10* | hpux11*)
17314       lt_prog_compiler_wl_GCJ='-Wl,'
17315       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17316       # not for PA HP-UX.
17317       case $host_cpu in
17318       hppa*64*|ia64*)
17319         # +Z the default
17320         ;;
17321       *)
17322         lt_prog_compiler_pic_GCJ='+Z'
17323         ;;
17324       esac
17325       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17326       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17327       ;;
17328
17329     irix5* | irix6* | nonstopux*)
17330       lt_prog_compiler_wl_GCJ='-Wl,'
17331       # PIC (with -KPIC) is the default.
17332       lt_prog_compiler_static_GCJ='-non_shared'
17333       ;;
17334
17335     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17336       case $cc_basename in
17337       # old Intel for x86_64 which still supported -KPIC.
17338       ecc*)
17339         lt_prog_compiler_wl_GCJ='-Wl,'
17340         lt_prog_compiler_pic_GCJ='-KPIC'
17341         lt_prog_compiler_static_GCJ='-static'
17342         ;;
17343       # icc used to be incompatible with GCC.
17344       # ICC 10 doesn't accept -KPIC any more.
17345       icc* | ifort*)
17346         lt_prog_compiler_wl_GCJ='-Wl,'
17347         lt_prog_compiler_pic_GCJ='-fPIC'
17348         lt_prog_compiler_static_GCJ='-static'
17349         ;;
17350       # Lahey Fortran 8.1.
17351       lf95*)
17352         lt_prog_compiler_wl_GCJ='-Wl,'
17353         lt_prog_compiler_pic_GCJ='--shared'
17354         lt_prog_compiler_static_GCJ='--static'
17355         ;;
17356       pgcc* | pgf77* | pgf90* | pgf95*)
17357         # Portland Group compilers (*not* the Pentium gcc compiler,
17358         # which looks to be a dead project)
17359         lt_prog_compiler_wl_GCJ='-Wl,'
17360         lt_prog_compiler_pic_GCJ='-fpic'
17361         lt_prog_compiler_static_GCJ='-Bstatic'
17362         ;;
17363       ccc*)
17364         lt_prog_compiler_wl_GCJ='-Wl,'
17365         # All Alpha code is PIC.
17366         lt_prog_compiler_static_GCJ='-non_shared'
17367         ;;
17368       xl*)
17369         # IBM XL C 8.0/Fortran 10.1 on PPC
17370         lt_prog_compiler_wl_GCJ='-Wl,'
17371         lt_prog_compiler_pic_GCJ='-qpic'
17372         lt_prog_compiler_static_GCJ='-qstaticlink'
17373         ;;
17374       *)
17375         case `$CC -V 2>&1 | sed 5q` in
17376         *Sun\ C*)
17377           # Sun C 5.9
17378           lt_prog_compiler_pic_GCJ='-KPIC'
17379           lt_prog_compiler_static_GCJ='-Bstatic'
17380           lt_prog_compiler_wl_GCJ='-Wl,'
17381           ;;
17382         *Sun\ F*)
17383           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17384           lt_prog_compiler_pic_GCJ='-KPIC'
17385           lt_prog_compiler_static_GCJ='-Bstatic'
17386           lt_prog_compiler_wl_GCJ=''
17387           ;;
17388         esac
17389         ;;
17390       esac
17391       ;;
17392
17393     newsos6)
17394       lt_prog_compiler_pic_GCJ='-KPIC'
17395       lt_prog_compiler_static_GCJ='-Bstatic'
17396       ;;
17397
17398     *nto* | *qnx*)
17399       # QNX uses GNU C++, but need to define -shared option too, otherwise
17400       # it will coredump.
17401       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17402       ;;
17403
17404     osf3* | osf4* | osf5*)
17405       lt_prog_compiler_wl_GCJ='-Wl,'
17406       # All OSF/1 code is PIC.
17407       lt_prog_compiler_static_GCJ='-non_shared'
17408       ;;
17409
17410     rdos*)
17411       lt_prog_compiler_static_GCJ='-non_shared'
17412       ;;
17413
17414     solaris*)
17415       lt_prog_compiler_pic_GCJ='-KPIC'
17416       lt_prog_compiler_static_GCJ='-Bstatic'
17417       case $cc_basename in
17418       f77* | f90* | f95*)
17419         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17420       *)
17421         lt_prog_compiler_wl_GCJ='-Wl,';;
17422       esac
17423       ;;
17424
17425     sunos4*)
17426       lt_prog_compiler_wl_GCJ='-Qoption ld '
17427       lt_prog_compiler_pic_GCJ='-PIC'
17428       lt_prog_compiler_static_GCJ='-Bstatic'
17429       ;;
17430
17431     sysv4 | sysv4.2uw2* | sysv4.3*)
17432       lt_prog_compiler_wl_GCJ='-Wl,'
17433       lt_prog_compiler_pic_GCJ='-KPIC'
17434       lt_prog_compiler_static_GCJ='-Bstatic'
17435       ;;
17436
17437     sysv4*MP*)
17438       if test -d /usr/nec ;then
17439         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17440         lt_prog_compiler_static_GCJ='-Bstatic'
17441       fi
17442       ;;
17443
17444     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17445       lt_prog_compiler_wl_GCJ='-Wl,'
17446       lt_prog_compiler_pic_GCJ='-KPIC'
17447       lt_prog_compiler_static_GCJ='-Bstatic'
17448       ;;
17449
17450     unicos*)
17451       lt_prog_compiler_wl_GCJ='-Wl,'
17452       lt_prog_compiler_can_build_shared_GCJ=no
17453       ;;
17454
17455     uts4*)
17456       lt_prog_compiler_pic_GCJ='-pic'
17457       lt_prog_compiler_static_GCJ='-Bstatic'
17458       ;;
17459
17460     *)
17461       lt_prog_compiler_can_build_shared_GCJ=no
17462       ;;
17463     esac
17464   fi
17465
17466 case $host_os in
17467   # For platforms which do not support PIC, -DPIC is meaningless:
17468   *djgpp*)
17469     lt_prog_compiler_pic_GCJ=
17470     ;;
17471   *)
17472     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17473     ;;
17474 esac
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17476 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17477
17478
17479
17480 #
17481 # Check to make sure the PIC flag actually works.
17482 #
17483 if test -n "$lt_prog_compiler_pic_GCJ"; then
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17485 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17486 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489   lt_cv_prog_compiler_pic_works_GCJ=no
17490    ac_outfile=conftest.$ac_objext
17491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17492    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17493    # Insert the option either (1) after the last *FLAGS variable, or
17494    # (2) before a word containing "conftest.", or (3) at the end.
17495    # Note that $ac_compile itself does not contain backslashes and begins
17496    # with a dollar sign (not a hyphen), so the echo should work correctly.
17497    # The option is referenced via a variable to avoid confusing sed.
17498    lt_compile=`echo "$ac_compile" | $SED \
17499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17501    -e 's:$: $lt_compiler_flag:'`
17502    (eval echo "\"\$as_me:17502: $lt_compile\"" >&5)
17503    (eval "$lt_compile" 2>conftest.err)
17504    ac_status=$?
17505    cat conftest.err >&5
17506    echo "$as_me:17506: \$? = $ac_status" >&5
17507    if (exit $ac_status) && test -s "$ac_outfile"; then
17508      # The compiler can only warn and ignore the option if not recognized
17509      # So say no if there are warnings other than the usual output.
17510      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17513        lt_cv_prog_compiler_pic_works_GCJ=yes
17514      fi
17515    fi
17516    $RM conftest*
17517
17518 fi
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17520 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17521
17522 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17523     case $lt_prog_compiler_pic_GCJ in
17524      "" | " "*) ;;
17525      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17526      esac
17527 else
17528     lt_prog_compiler_pic_GCJ=
17529      lt_prog_compiler_can_build_shared_GCJ=no
17530 fi
17531
17532 fi
17533
17534
17535
17536 #
17537 # Check to make sure the static flag actually works.
17538 #
17539 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17541 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17542 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17543   $as_echo_n "(cached) " >&6
17544 else
17545   lt_cv_prog_compiler_static_works_GCJ=no
17546    save_LDFLAGS="$LDFLAGS"
17547    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17548    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17549    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17550      # The linker can only warn and ignore the option if not recognized
17551      # So say no if there are warnings
17552      if test -s conftest.err; then
17553        # Append any errors to the config.log.
17554        cat conftest.err 1>&5
17555        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17556        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17557        if diff conftest.exp conftest.er2 >/dev/null; then
17558          lt_cv_prog_compiler_static_works_GCJ=yes
17559        fi
17560      else
17561        lt_cv_prog_compiler_static_works_GCJ=yes
17562      fi
17563    fi
17564    $RM -r conftest*
17565    LDFLAGS="$save_LDFLAGS"
17566
17567 fi
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17569 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17570
17571 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17572     :
17573 else
17574     lt_prog_compiler_static_GCJ=
17575 fi
17576
17577
17578
17579
17580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17582 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17583   $as_echo_n "(cached) " >&6
17584 else
17585   lt_cv_prog_compiler_c_o_GCJ=no
17586    $RM -r conftest 2>/dev/null
17587    mkdir conftest
17588    cd conftest
17589    mkdir out
17590    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17591
17592    lt_compiler_flag="-o out/conftest2.$ac_objext"
17593    # Insert the option either (1) after the last *FLAGS variable, or
17594    # (2) before a word containing "conftest.", or (3) at the end.
17595    # Note that $ac_compile itself does not contain backslashes and begins
17596    # with a dollar sign (not a hyphen), so the echo should work correctly.
17597    lt_compile=`echo "$ac_compile" | $SED \
17598    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17600    -e 's:$: $lt_compiler_flag:'`
17601    (eval echo "\"\$as_me:17601: $lt_compile\"" >&5)
17602    (eval "$lt_compile" 2>out/conftest.err)
17603    ac_status=$?
17604    cat out/conftest.err >&5
17605    echo "$as_me:17605: \$? = $ac_status" >&5
17606    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17607    then
17608      # The compiler can only warn and ignore the option if not recognized
17609      # So say no if there are warnings
17610      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17611      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17612      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17613        lt_cv_prog_compiler_c_o_GCJ=yes
17614      fi
17615    fi
17616    chmod u+w . 2>&5
17617    $RM conftest*
17618    # SGI C++ compiler will create directory out/ii_files/ for
17619    # template instantiation
17620    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17621    $RM out/* && rmdir out
17622    cd ..
17623    $RM -r conftest
17624    $RM conftest*
17625
17626 fi
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17628 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17629
17630
17631
17632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17634 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17635   $as_echo_n "(cached) " >&6
17636 else
17637   lt_cv_prog_compiler_c_o_GCJ=no
17638    $RM -r conftest 2>/dev/null
17639    mkdir conftest
17640    cd conftest
17641    mkdir out
17642    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17643
17644    lt_compiler_flag="-o out/conftest2.$ac_objext"
17645    # Insert the option either (1) after the last *FLAGS variable, or
17646    # (2) before a word containing "conftest.", or (3) at the end.
17647    # Note that $ac_compile itself does not contain backslashes and begins
17648    # with a dollar sign (not a hyphen), so the echo should work correctly.
17649    lt_compile=`echo "$ac_compile" | $SED \
17650    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17652    -e 's:$: $lt_compiler_flag:'`
17653    (eval echo "\"\$as_me:17653: $lt_compile\"" >&5)
17654    (eval "$lt_compile" 2>out/conftest.err)
17655    ac_status=$?
17656    cat out/conftest.err >&5
17657    echo "$as_me:17657: \$? = $ac_status" >&5
17658    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17659    then
17660      # The compiler can only warn and ignore the option if not recognized
17661      # So say no if there are warnings
17662      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17663      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17664      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17665        lt_cv_prog_compiler_c_o_GCJ=yes
17666      fi
17667    fi
17668    chmod u+w . 2>&5
17669    $RM conftest*
17670    # SGI C++ compiler will create directory out/ii_files/ for
17671    # template instantiation
17672    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17673    $RM out/* && rmdir out
17674    cd ..
17675    $RM -r conftest
17676    $RM conftest*
17677
17678 fi
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17680 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17681
17682
17683
17684
17685 hard_links="nottested"
17686 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17687   # do not overwrite the value of need_locks provided by the user
17688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17689 $as_echo_n "checking if we can lock with hard links... " >&6; }
17690   hard_links=yes
17691   $RM conftest*
17692   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17693   touch conftest.a
17694   ln conftest.a conftest.b 2>&5 || hard_links=no
17695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17697 $as_echo "$hard_links" >&6; }
17698   if test "$hard_links" = no; then
17699     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17701     need_locks=warn
17702   fi
17703 else
17704   need_locks=no
17705 fi
17706
17707
17708
17709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17711
17712   runpath_var=
17713   allow_undefined_flag_GCJ=
17714   always_export_symbols_GCJ=no
17715   archive_cmds_GCJ=
17716   archive_expsym_cmds_GCJ=
17717   compiler_needs_object_GCJ=no
17718   enable_shared_with_static_runtimes_GCJ=no
17719   export_dynamic_flag_spec_GCJ=
17720   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17721   hardcode_automatic_GCJ=no
17722   hardcode_direct_GCJ=no
17723   hardcode_direct_absolute_GCJ=no
17724   hardcode_libdir_flag_spec_GCJ=
17725   hardcode_libdir_flag_spec_ld_GCJ=
17726   hardcode_libdir_separator_GCJ=
17727   hardcode_minus_L_GCJ=no
17728   hardcode_shlibpath_var_GCJ=unsupported
17729   inherit_rpath_GCJ=no
17730   link_all_deplibs_GCJ=unknown
17731   module_cmds_GCJ=
17732   module_expsym_cmds_GCJ=
17733   old_archive_from_new_cmds_GCJ=
17734   old_archive_from_expsyms_cmds_GCJ=
17735   thread_safe_flag_spec_GCJ=
17736   whole_archive_flag_spec_GCJ=
17737   # include_expsyms should be a list of space-separated symbols to be *always*
17738   # included in the symbol list
17739   include_expsyms_GCJ=
17740   # exclude_expsyms can be an extended regexp of symbols to exclude
17741   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17742   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17743   # as well as any symbol that contains `d'.
17744   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17745   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17746   # platforms (ab)use it in PIC code, but their linkers get confused if
17747   # the symbol is explicitly referenced.  Since portable code cannot
17748   # rely on this symbol name, it's probably fine to never include it in
17749   # preloaded symbol tables.
17750   # Exclude shared library initialization/finalization symbols.
17751   extract_expsyms_cmds=
17752
17753   case $host_os in
17754   cygwin* | mingw* | pw32* | cegcc*)
17755     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17756     # When not using gcc, we currently assume that we are using
17757     # Microsoft Visual C++.
17758     if test "$GCC" != yes; then
17759       with_gnu_ld=no
17760     fi
17761     ;;
17762   interix*)
17763     # we just hope/assume this is gcc and not c89 (= MSVC++)
17764     with_gnu_ld=yes
17765     ;;
17766   openbsd*)
17767     with_gnu_ld=no
17768     ;;
17769   esac
17770
17771   ld_shlibs_GCJ=yes
17772   if test "$with_gnu_ld" = yes; then
17773     # If archive_cmds runs LD, not CC, wlarc should be empty
17774     wlarc='${wl}'
17775
17776     # Set some defaults for GNU ld with shared library support. These
17777     # are reset later if shared libraries are not supported. Putting them
17778     # here allows them to be overridden if necessary.
17779     runpath_var=LD_RUN_PATH
17780     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17781     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17782     # ancient GNU ld didn't support --whole-archive et. al.
17783     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17784       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17785     else
17786       whole_archive_flag_spec_GCJ=
17787     fi
17788     supports_anon_versioning=no
17789     case `$LD -v 2>&1` in
17790       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17791       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17792       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17793       *\ 2.11.*) ;; # other 2.11 versions
17794       *) supports_anon_versioning=yes ;;
17795     esac
17796
17797     # See if GNU ld supports shared libraries.
17798     case $host_os in
17799     aix[3-9]*)
17800       # On AIX/PPC, the GNU linker is very broken
17801       if test "$host_cpu" != ia64; then
17802         ld_shlibs_GCJ=no
17803         cat <<_LT_EOF 1>&2
17804
17805 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17806 *** to be unable to reliably create shared libraries on AIX.
17807 *** Therefore, libtool is disabling shared libraries support.  If you
17808 *** really care for shared libraries, you may want to modify your PATH
17809 *** so that a non-GNU linker is found, and then restart.
17810
17811 _LT_EOF
17812       fi
17813       ;;
17814
17815     amigaos*)
17816       case $host_cpu in
17817       powerpc)
17818             # see comment about AmigaOS4 .so support
17819             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17820             archive_expsym_cmds_GCJ=''
17821         ;;
17822       m68k)
17823             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)'
17824             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17825             hardcode_minus_L_GCJ=yes
17826         ;;
17827       esac
17828       ;;
17829
17830     beos*)
17831       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17832         allow_undefined_flag_GCJ=unsupported
17833         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17834         # support --undefined.  This deserves some investigation.  FIXME
17835         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17836       else
17837         ld_shlibs_GCJ=no
17838       fi
17839       ;;
17840
17841     cygwin* | mingw* | pw32* | cegcc*)
17842       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17843       # as there is no search path for DLLs.
17844       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17845       allow_undefined_flag_GCJ=unsupported
17846       always_export_symbols_GCJ=no
17847       enable_shared_with_static_runtimes_GCJ=yes
17848       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17849
17850       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17851         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17852         # If the export-symbols file already is a .def file (1st line
17853         # is EXPORTS), use it as is; otherwise, prepend...
17854         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17855           cp $export_symbols $output_objdir/$soname.def;
17856         else
17857           echo EXPORTS > $output_objdir/$soname.def;
17858           cat $export_symbols >> $output_objdir/$soname.def;
17859         fi~
17860         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17861       else
17862         ld_shlibs_GCJ=no
17863       fi
17864       ;;
17865
17866     interix[3-9]*)
17867       hardcode_direct_GCJ=no
17868       hardcode_shlibpath_var_GCJ=no
17869       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17870       export_dynamic_flag_spec_GCJ='${wl}-E'
17871       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17872       # Instead, shared libraries are loaded at an image base (0x10000000 by
17873       # default) and relocated if they conflict, which is a slow very memory
17874       # consuming and fragmenting process.  To avoid this, we pick a random,
17875       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17876       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17877       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'
17878       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'
17879       ;;
17880
17881     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17882       tmp_diet=no
17883       if test "$host_os" = linux-dietlibc; then
17884         case $cc_basename in
17885           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17886         esac
17887       fi
17888       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17889          && test "$tmp_diet" = no
17890       then
17891         tmp_addflag=
17892         tmp_sharedflag='-shared'
17893         case $cc_basename,$host_cpu in
17894         pgcc*)                          # Portland Group C compiler
17895           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17896           tmp_addflag=' $pic_flag'
17897           ;;
17898         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17899           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17900           tmp_addflag=' $pic_flag -Mnomain' ;;
17901         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17902           tmp_addflag=' -i_dynamic' ;;
17903         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17904           tmp_addflag=' -i_dynamic -nofor_main' ;;
17905         ifc* | ifort*)                  # Intel Fortran compiler
17906           tmp_addflag=' -nofor_main' ;;
17907         lf95*)                          # Lahey Fortran 8.1
17908           whole_archive_flag_spec_GCJ=
17909           tmp_sharedflag='--shared' ;;
17910         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17911           tmp_sharedflag='-qmkshrobj'
17912           tmp_addflag= ;;
17913         esac
17914         case `$CC -V 2>&1 | sed 5q` in
17915         *Sun\ C*)                       # Sun C 5.9
17916           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17917           compiler_needs_object_GCJ=yes
17918           tmp_sharedflag='-G' ;;
17919         *Sun\ F*)                       # Sun Fortran 8.3
17920           tmp_sharedflag='-G' ;;
17921         esac
17922         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17923
17924         if test "x$supports_anon_versioning" = xyes; then
17925           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17926             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17927             echo "local: *; };" >> $output_objdir/$libname.ver~
17928             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17929         fi
17930
17931         case $cc_basename in
17932         xlf*)
17933           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17934           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17935           hardcode_libdir_flag_spec_GCJ=
17936           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17937           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17938           if test "x$supports_anon_versioning" = xyes; then
17939             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17940               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17941               echo "local: *; };" >> $output_objdir/$libname.ver~
17942               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17943           fi
17944           ;;
17945         esac
17946       else
17947         ld_shlibs_GCJ=no
17948       fi
17949       ;;
17950
17951     netbsd*)
17952       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17953         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17954         wlarc=
17955       else
17956         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17957         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17958       fi
17959       ;;
17960
17961     solaris*)
17962       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17963         ld_shlibs_GCJ=no
17964         cat <<_LT_EOF 1>&2
17965
17966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17967 *** create shared libraries on Solaris systems.  Therefore, libtool
17968 *** is disabling shared libraries support.  We urge you to upgrade GNU
17969 *** binutils to release 2.9.1 or newer.  Another option is to modify
17970 *** your PATH or compiler configuration so that the native linker is
17971 *** used, and then restart.
17972
17973 _LT_EOF
17974       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17975         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17976         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17977       else
17978         ld_shlibs_GCJ=no
17979       fi
17980       ;;
17981
17982     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17983       case `$LD -v 2>&1` in
17984         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17985         ld_shlibs_GCJ=no
17986         cat <<_LT_EOF 1>&2
17987
17988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17989 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17990 *** is disabling shared libraries support.  We urge you to upgrade GNU
17991 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17992 *** your PATH or compiler configuration so that the native linker is
17993 *** used, and then restart.
17994
17995 _LT_EOF
17996         ;;
17997         *)
17998           # For security reasons, it is highly recommended that you always
17999           # use absolute paths for naming shared libraries, and exclude the
18000           # DT_RUNPATH tag from executables and libraries.  But doing so
18001           # requires that you compile everything twice, which is a pain.
18002           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18003             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18005             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18006           else
18007             ld_shlibs_GCJ=no
18008           fi
18009         ;;
18010       esac
18011       ;;
18012
18013     sunos4*)
18014       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18015       wlarc=
18016       hardcode_direct_GCJ=yes
18017       hardcode_shlibpath_var_GCJ=no
18018       ;;
18019
18020     *)
18021       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18022         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18024       else
18025         ld_shlibs_GCJ=no
18026       fi
18027       ;;
18028     esac
18029
18030     if test "$ld_shlibs_GCJ" = no; then
18031       runpath_var=
18032       hardcode_libdir_flag_spec_GCJ=
18033       export_dynamic_flag_spec_GCJ=
18034       whole_archive_flag_spec_GCJ=
18035     fi
18036   else
18037     # PORTME fill in a description of your system's linker (not GNU ld)
18038     case $host_os in
18039     aix3*)
18040       allow_undefined_flag_GCJ=unsupported
18041       always_export_symbols_GCJ=yes
18042       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'
18043       # Note: this linker hardcodes the directories in LIBPATH if there
18044       # are no directories specified by -L.
18045       hardcode_minus_L_GCJ=yes
18046       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18047         # Neither direct hardcoding nor static linking is supported with a
18048         # broken collect2.
18049         hardcode_direct_GCJ=unsupported
18050       fi
18051       ;;
18052
18053     aix[4-9]*)
18054       if test "$host_cpu" = ia64; then
18055         # On IA64, the linker does run time linking by default, so we don't
18056         # have to do anything special.
18057         aix_use_runtimelinking=no
18058         exp_sym_flag='-Bexport'
18059         no_entry_flag=""
18060       else
18061         # If we're using GNU nm, then we don't want the "-C" option.
18062         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18063         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18064           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18065         else
18066           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'
18067         fi
18068         aix_use_runtimelinking=no
18069
18070         # Test if we are trying to use run time linking or normal
18071         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18072         # need to do runtime linking.
18073         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18074           for ld_flag in $LDFLAGS; do
18075           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18076             aix_use_runtimelinking=yes
18077             break
18078           fi
18079           done
18080           ;;
18081         esac
18082
18083         exp_sym_flag='-bexport'
18084         no_entry_flag='-bnoentry'
18085       fi
18086
18087       # When large executables or shared objects are built, AIX ld can
18088       # have problems creating the table of contents.  If linking a library
18089       # or program results in "error TOC overflow" add -mminimal-toc to
18090       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18091       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18092
18093       archive_cmds_GCJ=''
18094       hardcode_direct_GCJ=yes
18095       hardcode_direct_absolute_GCJ=yes
18096       hardcode_libdir_separator_GCJ=':'
18097       link_all_deplibs_GCJ=yes
18098       file_list_spec_GCJ='${wl}-f,'
18099
18100       if test "$GCC" = yes; then
18101         case $host_os in aix4.[012]|aix4.[012].*)
18102         # We only want to do this on AIX 4.2 and lower, the check
18103         # below for broken collect2 doesn't work under 4.3+
18104           collect2name=`${CC} -print-prog-name=collect2`
18105           if test -f "$collect2name" &&
18106            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18107           then
18108           # We have reworked collect2
18109           :
18110           else
18111           # We have old collect2
18112           hardcode_direct_GCJ=unsupported
18113           # It fails to find uninstalled libraries when the uninstalled
18114           # path is not listed in the libpath.  Setting hardcode_minus_L
18115           # to unsupported forces relinking
18116           hardcode_minus_L_GCJ=yes
18117           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18118           hardcode_libdir_separator_GCJ=
18119           fi
18120           ;;
18121         esac
18122         shared_flag='-shared'
18123         if test "$aix_use_runtimelinking" = yes; then
18124           shared_flag="$shared_flag "'${wl}-G'
18125         fi
18126       else
18127         # not using gcc
18128         if test "$host_cpu" = ia64; then
18129         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18130         # chokes on -Wl,-G. The following line is correct:
18131           shared_flag='-G'
18132         else
18133           if test "$aix_use_runtimelinking" = yes; then
18134             shared_flag='${wl}-G'
18135           else
18136             shared_flag='${wl}-bM:SRE'
18137           fi
18138         fi
18139       fi
18140
18141       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18142       # It seems that -bexpall does not export symbols beginning with
18143       # underscore (_), so it is better to generate a list of symbols to export.
18144       always_export_symbols_GCJ=yes
18145       if test "$aix_use_runtimelinking" = yes; then
18146         # Warning - without using the other runtime loading flags (-brtl),
18147         # -berok will link without error, but may produce a broken library.
18148         allow_undefined_flag_GCJ='-berok'
18149         # Determine the default libpath from the value encoded in an
18150         # empty executable.
18151         if test x$gcc_no_link = xyes; then
18152   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18153 fi
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h.  */
18156
18157 int
18158 main ()
18159 {
18160
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166
18167 lt_aix_libpath_sed='
18168     /Import File Strings/,/^$/ {
18169         /^0/ {
18170             s/^0  *\(.*\)$/\1/
18171             p
18172         }
18173     }'
18174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18175 # Check for a 64-bit object if we didn't find anything.
18176 if test -z "$aix_libpath"; then
18177   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18178 fi
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext \
18181     conftest$ac_exeext conftest.$ac_ext
18182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18183
18184         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18185         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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18186       else
18187         if test "$host_cpu" = ia64; then
18188           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18189           allow_undefined_flag_GCJ="-z nodefs"
18190           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"
18191         else
18192          # Determine the default libpath from the value encoded in an
18193          # empty executable.
18194          if test x$gcc_no_link = xyes; then
18195   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18196 fi
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h.  */
18199
18200 int
18201 main ()
18202 {
18203
18204   ;
18205   return 0;
18206 }
18207 _ACEOF
18208 if ac_fn_c_try_link "$LINENO"; then :
18209
18210 lt_aix_libpath_sed='
18211     /Import File Strings/,/^$/ {
18212         /^0/ {
18213             s/^0  *\(.*\)$/\1/
18214             p
18215         }
18216     }'
18217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18218 # Check for a 64-bit object if we didn't find anything.
18219 if test -z "$aix_libpath"; then
18220   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18221 fi
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext \
18224     conftest$ac_exeext conftest.$ac_ext
18225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18226
18227          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18228           # Warning - without using the other run time loading flags,
18229           # -berok will link without error, but may produce a broken library.
18230           no_undefined_flag_GCJ=' ${wl}-bernotok'
18231           allow_undefined_flag_GCJ=' ${wl}-berok'
18232           # Exported symbols can be pulled into shared objects from archives
18233           whole_archive_flag_spec_GCJ='$convenience'
18234           archive_cmds_need_lc_GCJ=yes
18235           # This is similar to how AIX traditionally builds its shared libraries.
18236           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'
18237         fi
18238       fi
18239       ;;
18240
18241     amigaos*)
18242       case $host_cpu in
18243       powerpc)
18244             # see comment about AmigaOS4 .so support
18245             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18246             archive_expsym_cmds_GCJ=''
18247         ;;
18248       m68k)
18249             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)'
18250             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18251             hardcode_minus_L_GCJ=yes
18252         ;;
18253       esac
18254       ;;
18255
18256     bsdi[45]*)
18257       export_dynamic_flag_spec_GCJ=-rdynamic
18258       ;;
18259
18260     cygwin* | mingw* | pw32* | cegcc*)
18261       # When not using gcc, we currently assume that we are using
18262       # Microsoft Visual C++.
18263       # hardcode_libdir_flag_spec is actually meaningless, as there is
18264       # no search path for DLLs.
18265       hardcode_libdir_flag_spec_GCJ=' '
18266       allow_undefined_flag_GCJ=unsupported
18267       # Tell ltmain to make .lib files, not .a files.
18268       libext=lib
18269       # Tell ltmain to make .dll files, not .so files.
18270       shrext_cmds=".dll"
18271       # FIXME: Setting linknames here is a bad hack.
18272       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18273       # The linker will automatically build a .lib file if we build a DLL.
18274       old_archive_from_new_cmds_GCJ='true'
18275       # FIXME: Should let the user specify the lib program.
18276       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18277       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18278       enable_shared_with_static_runtimes_GCJ=yes
18279       ;;
18280
18281     darwin* | rhapsody*)
18282
18283
18284   archive_cmds_need_lc_GCJ=no
18285   hardcode_direct_GCJ=no
18286   hardcode_automatic_GCJ=yes
18287   hardcode_shlibpath_var_GCJ=unsupported
18288   whole_archive_flag_spec_GCJ=''
18289   link_all_deplibs_GCJ=yes
18290   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18291   case $cc_basename in
18292      ifort*) _lt_dar_can_shared=yes ;;
18293      *) _lt_dar_can_shared=$GCC ;;
18294   esac
18295   if test "$_lt_dar_can_shared" = "yes"; then
18296     output_verbose_link_cmd=echo
18297     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}"
18298     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18299     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}"
18300     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}"
18301
18302   else
18303   ld_shlibs_GCJ=no
18304   fi
18305
18306       ;;
18307
18308     dgux*)
18309       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18310       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18311       hardcode_shlibpath_var_GCJ=no
18312       ;;
18313
18314     freebsd1*)
18315       ld_shlibs_GCJ=no
18316       ;;
18317
18318     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18319     # support.  Future versions do this automatically, but an explicit c++rt0.o
18320     # does not break anything, and helps significantly (at the cost of a little
18321     # extra space).
18322     freebsd2.2*)
18323       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18324       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18325       hardcode_direct_GCJ=yes
18326       hardcode_shlibpath_var_GCJ=no
18327       ;;
18328
18329     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18330     freebsd2*)
18331       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18332       hardcode_direct_GCJ=yes
18333       hardcode_minus_L_GCJ=yes
18334       hardcode_shlibpath_var_GCJ=no
18335       ;;
18336
18337     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18338     freebsd* | dragonfly*)
18339       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18340       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18341       hardcode_direct_GCJ=yes
18342       hardcode_shlibpath_var_GCJ=no
18343       ;;
18344
18345     hpux9*)
18346       if test "$GCC" = yes; then
18347         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'
18348       else
18349         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'
18350       fi
18351       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18352       hardcode_libdir_separator_GCJ=:
18353       hardcode_direct_GCJ=yes
18354
18355       # hardcode_minus_L: Not really in the search PATH,
18356       # but as the default location of the library.
18357       hardcode_minus_L_GCJ=yes
18358       export_dynamic_flag_spec_GCJ='${wl}-E'
18359       ;;
18360
18361     hpux10*)
18362       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18363         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18364       else
18365         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18366       fi
18367       if test "$with_gnu_ld" = no; then
18368         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18369         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18370         hardcode_libdir_separator_GCJ=:
18371         hardcode_direct_GCJ=yes
18372         hardcode_direct_absolute_GCJ=yes
18373         export_dynamic_flag_spec_GCJ='${wl}-E'
18374         # hardcode_minus_L: Not really in the search PATH,
18375         # but as the default location of the library.
18376         hardcode_minus_L_GCJ=yes
18377       fi
18378       ;;
18379
18380     hpux11*)
18381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18382         case $host_cpu in
18383         hppa*64*)
18384           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385           ;;
18386         ia64*)
18387           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18388           ;;
18389         *)
18390           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18391           ;;
18392         esac
18393       else
18394         case $host_cpu in
18395         hppa*64*)
18396           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18397           ;;
18398         ia64*)
18399           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18400           ;;
18401         *)
18402           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18403           ;;
18404         esac
18405       fi
18406       if test "$with_gnu_ld" = no; then
18407         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18408         hardcode_libdir_separator_GCJ=:
18409
18410         case $host_cpu in
18411         hppa*64*|ia64*)
18412           hardcode_direct_GCJ=no
18413           hardcode_shlibpath_var_GCJ=no
18414           ;;
18415         *)
18416           hardcode_direct_GCJ=yes
18417           hardcode_direct_absolute_GCJ=yes
18418           export_dynamic_flag_spec_GCJ='${wl}-E'
18419
18420           # hardcode_minus_L: Not really in the search PATH,
18421           # but as the default location of the library.
18422           hardcode_minus_L_GCJ=yes
18423           ;;
18424         esac
18425       fi
18426       ;;
18427
18428     irix5* | irix6* | nonstopux*)
18429       if test "$GCC" = yes; then
18430         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18431         # Try to use the -exported_symbol ld option, if it does not
18432         # work, assume that -exports_file does not work either and
18433         # implicitly export all symbols.
18434         save_LDFLAGS="$LDFLAGS"
18435         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18436         if test x$gcc_no_link = xyes; then
18437   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18438 fi
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h.  */
18441 int foo(void) {}
18442 _ACEOF
18443 if ac_fn_c_try_link "$LINENO"; then :
18444   archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18445
18446 fi
18447 rm -f core conftest.err conftest.$ac_objext \
18448     conftest$ac_exeext conftest.$ac_ext
18449         LDFLAGS="$save_LDFLAGS"
18450       else
18451         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18452         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18453       fi
18454       archive_cmds_need_lc_GCJ='no'
18455       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18456       hardcode_libdir_separator_GCJ=:
18457       inherit_rpath_GCJ=yes
18458       link_all_deplibs_GCJ=yes
18459       ;;
18460
18461     netbsd*)
18462       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18463         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18464       else
18465         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18466       fi
18467       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18468       hardcode_direct_GCJ=yes
18469       hardcode_shlibpath_var_GCJ=no
18470       ;;
18471
18472     newsos6)
18473       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18474       hardcode_direct_GCJ=yes
18475       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18476       hardcode_libdir_separator_GCJ=:
18477       hardcode_shlibpath_var_GCJ=no
18478       ;;
18479
18480     *nto* | *qnx*)
18481       ;;
18482
18483     openbsd*)
18484       if test -f /usr/libexec/ld.so; then
18485         hardcode_direct_GCJ=yes
18486         hardcode_shlibpath_var_GCJ=no
18487         hardcode_direct_absolute_GCJ=yes
18488         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18489           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18490           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18491           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18492           export_dynamic_flag_spec_GCJ='${wl}-E'
18493         else
18494           case $host_os in
18495            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18496              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18497              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18498              ;;
18499            *)
18500              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18501              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18502              ;;
18503           esac
18504         fi
18505       else
18506         ld_shlibs_GCJ=no
18507       fi
18508       ;;
18509
18510     os2*)
18511       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18512       hardcode_minus_L_GCJ=yes
18513       allow_undefined_flag_GCJ=unsupported
18514       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'
18515       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18516       ;;
18517
18518     osf3*)
18519       if test "$GCC" = yes; then
18520         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18521         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18522       else
18523         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18524         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18525       fi
18526       archive_cmds_need_lc_GCJ='no'
18527       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18528       hardcode_libdir_separator_GCJ=:
18529       ;;
18530
18531     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18532       if test "$GCC" = yes; then
18533         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18534         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18535         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18536       else
18537         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18538         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18539         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~
18540         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18541
18542         # Both c and cxx compiler support -rpath directly
18543         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18544       fi
18545       archive_cmds_need_lc_GCJ='no'
18546       hardcode_libdir_separator_GCJ=:
18547       ;;
18548
18549     solaris*)
18550       no_undefined_flag_GCJ=' -z defs'
18551       if test "$GCC" = yes; then
18552         wlarc='${wl}'
18553         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18554         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18555           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18556       else
18557         case `$CC -V 2>&1` in
18558         *"Compilers 5.0"*)
18559           wlarc=''
18560           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18561           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18562           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18563           ;;
18564         *)
18565           wlarc='${wl}'
18566           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18567           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18568           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18569           ;;
18570         esac
18571       fi
18572       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18573       hardcode_shlibpath_var_GCJ=no
18574       case $host_os in
18575       solaris2.[0-5] | solaris2.[0-5].*) ;;
18576       *)
18577         # The compiler driver will combine and reorder linker options,
18578         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18579         # but is careful enough not to reorder.
18580         # Supported since Solaris 2.6 (maybe 2.5.1?)
18581         if test "$GCC" = yes; then
18582           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18583         else
18584           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18585         fi
18586         ;;
18587       esac
18588       link_all_deplibs_GCJ=yes
18589       ;;
18590
18591     sunos4*)
18592       if test "x$host_vendor" = xsequent; then
18593         # Use $CC to link under sequent, because it throws in some extra .o
18594         # files that make .init and .fini sections work.
18595         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18596       else
18597         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18598       fi
18599       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18600       hardcode_direct_GCJ=yes
18601       hardcode_minus_L_GCJ=yes
18602       hardcode_shlibpath_var_GCJ=no
18603       ;;
18604
18605     sysv4)
18606       case $host_vendor in
18607         sni)
18608           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18609           hardcode_direct_GCJ=yes # is this really true???
18610         ;;
18611         siemens)
18612           ## LD is ld it makes a PLAMLIB
18613           ## CC just makes a GrossModule.
18614           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18615           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18616           hardcode_direct_GCJ=no
18617         ;;
18618         motorola)
18619           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18620           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18621         ;;
18622       esac
18623       runpath_var='LD_RUN_PATH'
18624       hardcode_shlibpath_var_GCJ=no
18625       ;;
18626
18627     sysv4.3*)
18628       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629       hardcode_shlibpath_var_GCJ=no
18630       export_dynamic_flag_spec_GCJ='-Bexport'
18631       ;;
18632
18633     sysv4*MP*)
18634       if test -d /usr/nec; then
18635         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18636         hardcode_shlibpath_var_GCJ=no
18637         runpath_var=LD_RUN_PATH
18638         hardcode_runpath_var=yes
18639         ld_shlibs_GCJ=yes
18640       fi
18641       ;;
18642
18643     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18644       no_undefined_flag_GCJ='${wl}-z,text'
18645       archive_cmds_need_lc_GCJ=no
18646       hardcode_shlibpath_var_GCJ=no
18647       runpath_var='LD_RUN_PATH'
18648
18649       if test "$GCC" = yes; then
18650         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18651         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18652       else
18653         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18654         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18655       fi
18656       ;;
18657
18658     sysv5* | sco3.2v5* | sco5v6*)
18659       # Note: We can NOT use -z defs as we might desire, because we do not
18660       # link with -lc, and that would cause any symbols used from libc to
18661       # always be unresolved, which means just about no library would
18662       # ever link correctly.  If we're not using GNU ld we use -z text
18663       # though, which does catch some bad symbols but isn't as heavy-handed
18664       # as -z defs.
18665       no_undefined_flag_GCJ='${wl}-z,text'
18666       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18667       archive_cmds_need_lc_GCJ=no
18668       hardcode_shlibpath_var_GCJ=no
18669       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18670       hardcode_libdir_separator_GCJ=':'
18671       link_all_deplibs_GCJ=yes
18672       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18673       runpath_var='LD_RUN_PATH'
18674
18675       if test "$GCC" = yes; then
18676         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18677         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18678       else
18679         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18681       fi
18682       ;;
18683
18684     uts4*)
18685       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18686       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18687       hardcode_shlibpath_var_GCJ=no
18688       ;;
18689
18690     *)
18691       ld_shlibs_GCJ=no
18692       ;;
18693     esac
18694
18695     if test x$host_vendor = xsni; then
18696       case $host in
18697       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18698         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18699         ;;
18700       esac
18701     fi
18702   fi
18703
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18705 $as_echo "$ld_shlibs_GCJ" >&6; }
18706 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18707
18708 with_gnu_ld_GCJ=$with_gnu_ld
18709
18710
18711
18712
18713
18714
18715 #
18716 # Do we need to explicitly link libc?
18717 #
18718 case "x$archive_cmds_need_lc_GCJ" in
18719 x|xyes)
18720   # Assume -lc should be added
18721   archive_cmds_need_lc_GCJ=yes
18722
18723   if test "$enable_shared" = yes && test "$GCC" = yes; then
18724     case $archive_cmds_GCJ in
18725     *'~'*)
18726       # FIXME: we may have to deal with multi-command sequences.
18727       ;;
18728     '$CC '*)
18729       # Test whether the compiler implicitly links with -lc since on some
18730       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18731       # to ld, don't add -lc before -lgcc.
18732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18734 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18735   $as_echo_n "(cached) " >&6
18736 else
18737   $RM conftest*
18738         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18739
18740         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18741   (eval $ac_compile) 2>&5
18742   ac_status=$?
18743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18744   test $ac_status = 0; } 2>conftest.err; then
18745           soname=conftest
18746           lib=conftest
18747           libobjs=conftest.$ac_objext
18748           deplibs=
18749           wl=$lt_prog_compiler_wl_GCJ
18750           pic_flag=$lt_prog_compiler_pic_GCJ
18751           compiler_flags=-v
18752           linker_flags=-v
18753           verstring=
18754           output_objdir=.
18755           libname=conftest
18756           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18757           allow_undefined_flag_GCJ=
18758           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18759   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18760   ac_status=$?
18761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762   test $ac_status = 0; }
18763           then
18764             lt_cv_archive_cmds_need_lc_GCJ=no
18765           else
18766             lt_cv_archive_cmds_need_lc_GCJ=yes
18767           fi
18768           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18769         else
18770           cat conftest.err 1>&5
18771         fi
18772         $RM conftest*
18773
18774 fi
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18776 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18777       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18778       ;;
18779     esac
18780   fi
18781   ;;
18782 esac
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18848 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18849 hardcode_action_GCJ=
18850 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18851    test -n "$runpath_var_GCJ" ||
18852    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18853
18854   # We can hardcode non-existent directories.
18855   if test "$hardcode_direct_GCJ" != no &&
18856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18857      # have to relink, otherwise we might link with an installed library
18858      # when we should be linking with a yet-to-be-installed one
18859      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18860      test "$hardcode_minus_L_GCJ" != no; then
18861     # Linking always hardcodes the temporary library directory.
18862     hardcode_action_GCJ=relink
18863   else
18864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18865     hardcode_action_GCJ=immediate
18866   fi
18867 else
18868   # We cannot hardcode anything, or else we can only hardcode existing
18869   # directories.
18870   hardcode_action_GCJ=unsupported
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18873 $as_echo "$hardcode_action_GCJ" >&6; }
18874
18875 if test "$hardcode_action_GCJ" = relink ||
18876    test "$inherit_rpath_GCJ" = yes; then
18877   # Fast installation is not supported
18878   enable_fast_install=no
18879 elif test "$shlibpath_overrides_runpath" = yes ||
18880      test "$enable_shared" = no; then
18881   # Fast installation is not necessary
18882   enable_fast_install=needless
18883 fi
18884
18885
18886
18887
18888
18889
18890
18891 fi
18892
18893 compiler_GCJ=${GCJ-gcj}
18894 ac_ext=c
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18899
18900
18901 if test "x$CC" != xcc; then
18902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18903 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18904 else
18905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18906 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18907 fi
18908 set dummy $CC; ac_cc=`$as_echo "$2" |
18909                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18910 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h.  */
18915
18916 int
18917 main ()
18918 {
18919
18920   ;
18921   return 0;
18922 }
18923 _ACEOF
18924 # Make sure it works both with $CC and with simple cc.
18925 # We do the test twice because some compilers refuse to overwrite an
18926 # existing .o file with -o, though they will create one.
18927 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18928 rm -f conftest2.*
18929 if { { case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18934 $as_echo "$ac_try_echo"; } >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18938   test $ac_status = 0; } &&
18939    test -f conftest2.$ac_objext && { { case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18944 $as_echo "$ac_try_echo"; } >&5
18945   (eval "$ac_try") 2>&5
18946   ac_status=$?
18947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948   test $ac_status = 0; };
18949 then
18950   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18951   if test "x$CC" != xcc; then
18952     # Test first that cc exists at all.
18953     if { ac_try='cc -c conftest.$ac_ext >&5'
18954   { { case "(($ac_try" in
18955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956   *) ac_try_echo=$ac_try;;
18957 esac
18958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18959 $as_echo "$ac_try_echo"; } >&5
18960   (eval "$ac_try") 2>&5
18961   ac_status=$?
18962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18963   test $ac_status = 0; }; }; then
18964       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18965       rm -f conftest2.*
18966       if { { case "(($ac_try" in
18967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968   *) ac_try_echo=$ac_try;;
18969 esac
18970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18971 $as_echo "$ac_try_echo"; } >&5
18972   (eval "$ac_try") 2>&5
18973   ac_status=$?
18974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18975   test $ac_status = 0; } &&
18976          test -f conftest2.$ac_objext && { { case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18981 $as_echo "$ac_try_echo"; } >&5
18982   (eval "$ac_try") 2>&5
18983   ac_status=$?
18984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18985   test $ac_status = 0; };
18986       then
18987         # cc works too.
18988         :
18989       else
18990         # cc exists but doesn't like -o.
18991         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18992       fi
18993     fi
18994   fi
18995 else
18996   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18997 fi
18998 rm -f core conftest*
18999
19000 fi
19001 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003 $as_echo "yes" >&6; }
19004 else
19005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006 $as_echo "no" >&6; }
19007
19008 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19009
19010 fi
19011
19012 # FIXME: we rely on the cache variable name because
19013 # there is no other way.
19014 set dummy $CC
19015 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19016 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19017 if test "$am_t" != yes; then
19018    # Losing compiler, so override with the script.
19019    # FIXME: It is wrong to rewrite CC.
19020    # But if we don't then we get into trouble of one sort or another.
19021    # A longer-term fix would be to have automake use am__CC in this case,
19022    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19023    CC="$am_aux_dir/compile $CC"
19024 fi
19025
19026
19027
19028
19029
19030 subdirs="$subdirs classpath libltdl"
19031
19032
19033 # The -no-testsuite modules omit the test subdir.
19034  if test -d $srcdir/testsuite; then
19035   TESTSUBDIR_TRUE=
19036   TESTSUBDIR_FALSE='#'
19037 else
19038   TESTSUBDIR_TRUE='#'
19039   TESTSUBDIR_FALSE=
19040 fi
19041
19042
19043 # Should the runtime set system properties by examining the
19044 # environment variable GCJ_PROPERTIES?
19045 # Check whether --enable-getenv-properties was given.
19046 if test "${enable_getenv_properties+set}" = set; then :
19047   enableval=$enable_getenv_properties;
19048 fi
19049
19050
19051 # Whether GCJ_PROPERTIES is used depends on the target.
19052 if test -z "$enable_getenv_properties"; then
19053    enable_getenv_properties=${enable_getenv_properties_default-yes}
19054 fi
19055 if test "$enable_getenv_properties" = no; then
19056
19057 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19058
19059 fi
19060
19061 # Whether we should use arguments to main()
19062 if test -z "$enable_main_args"; then
19063    enable_main_args=${enable_main_args_default-yes}
19064 fi
19065 if test "$enable_main_args" = no; then
19066
19067 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19068
19069 fi
19070
19071
19072 # Should we use hashtable-based synchronization?
19073 # Currently works only for Linux X86/ia64
19074 # Typically faster and more space-efficient
19075 # Check whether --enable-hash-synchronization was given.
19076 if test "${enable_hash_synchronization+set}" = set; then :
19077   enableval=$enable_hash_synchronization;
19078 fi
19079
19080
19081 if test -z "$enable_hash_synchronization"; then
19082    enable_hash_synchronization=$enable_hash_synchronization_default
19083 fi
19084
19085
19086 install_ecj_jar=no
19087 ECJ_BUILD_JAR=
19088 ECJ_JAR=
19089
19090 # Check whether --with-ecj-jar was given.
19091 if test "${with_ecj_jar+set}" = set; then :
19092   withval=$with_ecj_jar; ECJ_JAR=$withval
19093 else
19094   if test -f $multi_basedir/ecj.jar; then
19095            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19096            ECJ_JAR='$(jardir)/ecj.jar'
19097            install_ecj_jar=yes
19098          fi
19099 fi
19100
19101
19102
19103  if test "$ECJ_JAR" != ""; then
19104   BUILD_ECJ1_TRUE=
19105   BUILD_ECJ1_FALSE='#'
19106 else
19107   BUILD_ECJ1_TRUE='#'
19108   BUILD_ECJ1_FALSE=
19109 fi
19110
19111  if test $install_ecj_jar = yes; then
19112   INSTALL_ECJ_JAR_TRUE=
19113   INSTALL_ECJ_JAR_FALSE='#'
19114 else
19115   INSTALL_ECJ_JAR_TRUE='#'
19116   INSTALL_ECJ_JAR_FALSE=
19117 fi
19118
19119
19120
19121 # Check whether --with-java-home was given.
19122 if test "${with_java_home+set}" = set; then :
19123   withval=$with_java_home; JAVA_HOME="${withval}"
19124 else
19125   JAVA_HOME=""
19126 fi
19127
19128  if test ! -z "$JAVA_HOME"; then
19129   JAVA_HOME_SET_TRUE=
19130   JAVA_HOME_SET_FALSE='#'
19131 else
19132   JAVA_HOME_SET_TRUE='#'
19133   JAVA_HOME_SET_FALSE=
19134 fi
19135
19136
19137
19138 suppress_libgcj_bc=no
19139 # Check whether --enable-libgcj-bc was given.
19140 if test "${enable_libgcj_bc+set}" = set; then :
19141   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19142      suppress_libgcj_bc=yes
19143    fi
19144 fi
19145
19146  if test "$suppress_libgcj_bc" = "yes"; then
19147   SUPPRESS_LIBGCJ_BC_TRUE=
19148   SUPPRESS_LIBGCJ_BC_FALSE='#'
19149 else
19150   SUPPRESS_LIBGCJ_BC_TRUE='#'
19151   SUPPRESS_LIBGCJ_BC_FALSE=
19152 fi
19153
19154
19155 build_libgcj_reduced_reflection=no
19156 # Check whether --enable-reduced-reflection was given.
19157 if test "${enable_reduced_reflection+set}" = set; then :
19158   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19159      build_libgcj_reduced_reflection=yes
19160    fi
19161 fi
19162
19163  if test "$build_libgcj_reduced_reflection" = "yes"; then
19164   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19165   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19166 else
19167   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19168   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19169 fi
19170
19171
19172 # What is the native OS API for MinGW?
19173
19174 # Check whether --with-win32-nlsapi was given.
19175 if test "${with_win32_nlsapi+set}" = set; then :
19176   withval=$with_win32_nlsapi; case "${withval}" in
19177   ansi) with_win32_nlsapi=ansi ;;
19178   unicows) with_win32_nlsapi=unicows ;;
19179   unicode) with_win32_nlsapi=unicode ;;
19180   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19181 esac
19182 else
19183   with_win32_nlsapi=ansi
19184 fi
19185
19186
19187 case "${with_win32_nlsapi}" in
19188   unicows | unicode)
19189
19190 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19191
19192     ;;
19193 esac
19194
19195 # configure.host sets slow_pthread_self if the synchronization code should
19196 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19197 if test "${slow_pthread_self}" = "yes"; then
19198
19199 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19200
19201 fi
19202
19203 # Check for gc debugging.  This option is handled both here and in the GC.
19204 # Check whether --enable-gc-debug was given.
19205 if test "${enable_gc_debug+set}" = set; then :
19206   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19207
19208 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19209
19210   fi
19211 fi
19212
19213
19214 # See if the user has the interpreter included.
19215 # Check whether --enable-interpreter was given.
19216 if test "${enable_interpreter+set}" = set; then :
19217   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19218     # This can also be set in configure.host.
19219     libgcj_interpreter=yes
19220   elif test "$enable_interpreter" = no; then
19221     libgcj_interpreter=no
19222   fi
19223 fi
19224
19225
19226 if test "$libgcj_interpreter" = yes; then
19227
19228 $as_echo "#define INTERPRETER 1" >>confdefs.h
19229
19230 fi
19231 INTERPRETER="$libgcj_interpreter"
19232
19233  if test "$libgcj_interpreter" = yes; then
19234   INTERPRETER_TRUE=
19235   INTERPRETER_FALSE='#'
19236 else
19237   INTERPRETER_TRUE='#'
19238   INTERPRETER_FALSE=
19239 fi
19240
19241
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19243 $as_echo_n "checking for exception model to use... " >&6; }
19244 ac_ext=cpp
19245 ac_cpp='$CXXCPP $CPPFLAGS'
19246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19249
19250 # Check whether --enable-sjlj-exceptions was given.
19251 if test "${enable_sjlj_exceptions+set}" = set; then :
19252   enableval=$enable_sjlj_exceptions; :
19253 else
19254   cat > conftest.$ac_ext << EOF
19255 #line 19255 "configure"
19256 struct S { ~S(); };
19257 void bar();
19258 void foo()
19259 {
19260   S s;
19261   bar();
19262 }
19263 EOF
19264 old_CXXFLAGS="$CXXFLAGS"
19265 CXXFLAGS=-S
19266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19267   (eval $ac_compile) 2>&5
19268   ac_status=$?
19269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19270   test $ac_status = 0; }; then
19271   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19272     enable_sjlj_exceptions=yes
19273   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19274     enable_sjlj_exceptions=no
19275   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19276     # ARM EH ABI.
19277     enable_sjlj_exceptions=no
19278   fi
19279 fi
19280 CXXFLAGS="$old_CXXFLAGS"
19281 rm -f conftest*
19282 fi
19283
19284 if test x$enable_sjlj_exceptions = xyes; then
19285
19286 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19287
19288   ac_exception_model_name=sjlj
19289 elif test x$enable_sjlj_exceptions = xno; then
19290   ac_exception_model_name="call frame"
19291 else
19292   as_fn_error "unable to detect exception model" "$LINENO" 5
19293 fi
19294 ac_ext=c
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19299
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19301 $as_echo "$ac_exception_model_name" >&6; }
19302
19303 # If we are non using SJLJ exceptions, and this host does not have support
19304 # for unwinding from a signal handler, enable checked dereferences and divides.
19305 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19306   CHECKREFSPEC=-fcheck-references
19307   DIVIDESPEC=-fuse-divide-subroutine
19308   EXCEPTIONSPEC=
19309 fi
19310
19311 # See if the user wants to disable java.net.  This is the mildly
19312 # ugly way that we admit that target-side configuration sucks.
19313 # Check whether --enable-java-net was given.
19314 if test "${enable_java_net+set}" = set; then :
19315   enableval=$enable_java_net;
19316 fi
19317
19318
19319 # Whether java.net is built by default can depend on the target.
19320 if test -z "$enable_java_net"; then
19321    enable_java_net=${enable_java_net_default-yes}
19322 fi
19323 if test "$enable_java_net" = no; then
19324
19325 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19326
19327 fi
19328
19329 # See if the user wants to configure without libffi.  Some
19330 # architectures don't support it, and default values are set in
19331 # configure.host.
19332
19333 # Check whether --with-libffi was given.
19334 if test "${with_libffi+set}" = set; then :
19335   withval=$with_libffi; :
19336 else
19337   with_libffi=${with_libffi_default-yes}
19338 fi
19339
19340
19341 LIBFFI=
19342 LIBFFIINCS=
19343 if test "$with_libffi" != no; then
19344
19345 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19346
19347    LIBFFI=../libffi/libffi_convenience.la
19348    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19349 fi
19350
19351
19352
19353 # See if the user wants to disable JVMPI support.
19354 # Check whether --enable-jvmpi was given.
19355 if test "${enable_jvmpi+set}" = set; then :
19356   enableval=$enable_jvmpi;
19357 fi
19358
19359
19360 if test "$enable_jvmpi" != no; then
19361
19362 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19363
19364 fi
19365
19366 # If the target is an eCos system, use the appropriate eCos
19367 # I/O routines.
19368 # FIXME: this should not be a local option but a global target
19369 # system; at present there is no eCos target.
19370 TARGET_ECOS=${PROCESS-"no"}
19371
19372 # Check whether --with-ecos was given.
19373 if test "${with_ecos+set}" = set; then :
19374   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19375
19376 fi
19377
19378
19379 case "$TARGET_ECOS" in
19380    no) case "$host" in
19381       *mingw*)
19382             PLATFORM=Win32
19383             PLATFORMNET=Win32
19384             PLATFORMH=win32.h
19385
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19387 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19388 LD_PROG=`$CC --print-prog-name=ld`
19389 LD_VERSION=`$LD_PROG --version`
19390 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19391 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19392 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19393   LD_OK="ok"
19394 else
19395   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19396     LD_OK="ok"
19397   fi
19398 fi
19399 if test "x$LD_OK" != x; then
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19401 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19402 else
19403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19404 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19405   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19406 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19407
19408 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19409
19410 fi
19411       ;;
19412       *)
19413             PLATFORM=Posix
19414             PLATFORMNET=Posix
19415             PLATFORMH=posix.h
19416       ;;
19417       esac
19418       ;;
19419    *)
19420       PLATFORM=Ecos
19421       PLATFORMNET=NoNet
19422
19423 $as_echo "#define ECOS 1" >>confdefs.h
19424
19425       PLATFORMH=posix.h
19426       ;;
19427 esac
19428
19429 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19430
19431
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h.  */
19434 #include <stdint.h>
19435
19436 _ACEOF
19437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19438   $EGREP "uint32_t" >/dev/null 2>&1; then :
19439
19440 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19441
19442 fi
19443 rm -f conftest*
19444
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h.  */
19447 #include <inttypes.h>
19448
19449 _ACEOF
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451   $EGREP "uint32_t" >/dev/null 2>&1; then :
19452
19453 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19454
19455 fi
19456 rm -f conftest*
19457
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h.  */
19460 #include <sys/types.h>
19461
19462 _ACEOF
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19465
19466 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19467
19468 fi
19469 rm -f conftest*
19470
19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h.  */
19473 #include <sys/config.h>
19474
19475 _ACEOF
19476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19477   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19478
19479 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19480
19481 fi
19482 rm -f conftest*
19483
19484
19485  if test "$PLATFORM" = Win32; then
19486   USING_WIN32_PLATFORM_TRUE=
19487   USING_WIN32_PLATFORM_FALSE='#'
19488 else
19489   USING_WIN32_PLATFORM_TRUE='#'
19490   USING_WIN32_PLATFORM_FALSE=
19491 fi
19492
19493  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19494   USING_POSIX_PLATFORM_TRUE=
19495   USING_POSIX_PLATFORM_FALSE='#'
19496 else
19497   USING_POSIX_PLATFORM_TRUE='#'
19498   USING_POSIX_PLATFORM_FALSE=
19499 fi
19500
19501
19502 case "$host" in
19503   *-darwin*) DARWIN_CRT=true ;;
19504   *) DARWIN_CRT=false ;;
19505 esac
19506  if $DARWIN_CRT; then
19507   USING_DARWIN_CRT_TRUE=
19508   USING_DARWIN_CRT_FALSE='#'
19509 else
19510   USING_DARWIN_CRT_TRUE='#'
19511   USING_DARWIN_CRT_FALSE=
19512 fi
19513
19514
19515 # This may not be defined in a non-ANS conformant embedded system.
19516 # FIXME: Should these case a runtime exception in that case?
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h.  */
19519 #include <time.h>
19520
19521 _ACEOF
19522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19523   $EGREP "localtime" >/dev/null 2>&1; then :
19524
19525 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19526
19527 fi
19528 rm -f conftest*
19529
19530
19531 # Create the subdirectory for natFile.cc, or the attempt
19532 # to create the link will fail.
19533 test -d java || mkdir java
19534 test -d java/io || mkdir java/io
19535 test -d gnu || mkdir gnu
19536 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19537
19538
19539 # Likewise for natConcreteProcess.cc.
19540 test -d java/lang || mkdir java/lang
19541 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19542
19543
19544 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19545 test -d java/net || mkdir java/net
19546 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19547
19548 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19549
19550
19551 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19552 test -d gnu/java || mkdir gnu/java
19553 test -d gnu/java/net || mkdir gnu/java/net
19554 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19555
19556 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19557
19558
19559 # Likewise for natVMPipe.cc and natVMSelector.cc.
19560 test -d gnu/java/nio || mkdir gnu/java/nio
19561 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19562
19563 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19564
19565
19566 # Likewise for natFileChannelImpl.cc
19567 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19568 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19569
19570
19571 # Likewise for natVMSecureRandom.cc
19572 test -d gnu/java/security || mkdir gnu/java/security
19573 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19574 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19575 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19576
19577
19578 case "${host}" in
19579     *mingw*)
19580       SYSTEMSPEC="-lgdi32 -lws2_32"
19581       if test "${with_win32_nlsapi}" = "unicows"; then
19582         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19583       fi
19584     ;;
19585     *)
19586       SYSTEMSPEC=
19587     ;;
19588 esac
19589
19590
19591
19592 # Check whether --with-system-zlib was given.
19593 if test "${with_system_zlib+set}" = set; then :
19594   withval=$with_system_zlib;
19595 fi
19596
19597 ZLIBSPEC=
19598
19599 ZLIBTESTSPEC=
19600
19601
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19603 $as_echo_n "checking for X... " >&6; }
19604
19605
19606 # Check whether --with-x was given.
19607 if test "${with_x+set}" = set; then :
19608   withval=$with_x;
19609 fi
19610
19611 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19612 if test "x$with_x" = xno; then
19613   # The user explicitly disabled X.
19614   have_x=disabled
19615 else
19616   case $x_includes,$x_libraries in #(
19617     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19618     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19619   $as_echo_n "(cached) " >&6
19620 else
19621   # One or both of the vars are not set, and there is no cached value.
19622 ac_x_includes=no ac_x_libraries=no
19623 rm -f -r conftest.dir
19624 if mkdir conftest.dir; then
19625   cd conftest.dir
19626   cat >Imakefile <<'_ACEOF'
19627 incroot:
19628         @echo incroot='${INCROOT}'
19629 usrlibdir:
19630         @echo usrlibdir='${USRLIBDIR}'
19631 libdir:
19632         @echo libdir='${LIBDIR}'
19633 _ACEOF
19634   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19635     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19636     for ac_var in incroot usrlibdir libdir; do
19637       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19638     done
19639     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19640     for ac_extension in a so sl dylib la dll; do
19641       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19642          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19643         ac_im_usrlibdir=$ac_im_libdir; break
19644       fi
19645     done
19646     # Screen out bogus values from the imake configuration.  They are
19647     # bogus both because they are the default anyway, and because
19648     # using them would break gcc on systems where it needs fixed includes.
19649     case $ac_im_incroot in
19650         /usr/include) ac_x_includes= ;;
19651         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19652     esac
19653     case $ac_im_usrlibdir in
19654         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19655         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19656     esac
19657   fi
19658   cd ..
19659   rm -f -r conftest.dir
19660 fi
19661
19662 # Standard set of common directories for X headers.
19663 # Check X11 before X11Rn because it is often a symlink to the current release.
19664 ac_x_header_dirs='
19665 /usr/X11/include
19666 /usr/X11R7/include
19667 /usr/X11R6/include
19668 /usr/X11R5/include
19669 /usr/X11R4/include
19670
19671 /usr/include/X11
19672 /usr/include/X11R7
19673 /usr/include/X11R6
19674 /usr/include/X11R5
19675 /usr/include/X11R4
19676
19677 /usr/local/X11/include
19678 /usr/local/X11R7/include
19679 /usr/local/X11R6/include
19680 /usr/local/X11R5/include
19681 /usr/local/X11R4/include
19682
19683 /usr/local/include/X11
19684 /usr/local/include/X11R7
19685 /usr/local/include/X11R6
19686 /usr/local/include/X11R5
19687 /usr/local/include/X11R4
19688
19689 /usr/X386/include
19690 /usr/x386/include
19691 /usr/XFree86/include/X11
19692
19693 /usr/include
19694 /usr/local/include
19695 /usr/unsupported/include
19696 /usr/athena/include
19697 /usr/local/x11r5/include
19698 /usr/lpp/Xamples/include
19699
19700 /usr/openwin/include
19701 /usr/openwin/share/include'
19702
19703 if test "$ac_x_includes" = no; then
19704   # Guess where to find include files, by looking for Xlib.h.
19705   # First, try using that file with no special directory specified.
19706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h.  */
19708 #include <X11/Xlib.h>
19709 _ACEOF
19710 if ac_fn_c_try_cpp "$LINENO"; then :
19711   # We can compile using X headers with no special include directory.
19712 ac_x_includes=
19713 else
19714   for ac_dir in $ac_x_header_dirs; do
19715   if test -r "$ac_dir/X11/Xlib.h"; then
19716     ac_x_includes=$ac_dir
19717     break
19718   fi
19719 done
19720 fi
19721 rm -f conftest.err conftest.$ac_ext
19722 fi # $ac_x_includes = no
19723
19724 if test "$ac_x_libraries" = no; then
19725   # Check for the libraries.
19726   # See if we find them without any special options.
19727   # Don't add to $LIBS permanently.
19728   ac_save_LIBS=$LIBS
19729   LIBS="-lX11 $LIBS"
19730   if test x$gcc_no_link = xyes; then
19731   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19732 fi
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h.  */
19735 #include <X11/Xlib.h>
19736 int
19737 main ()
19738 {
19739 XrmInitialize ()
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 if ac_fn_c_try_link "$LINENO"; then :
19745   LIBS=$ac_save_LIBS
19746 # We can link X programs with no special library path.
19747 ac_x_libraries=
19748 else
19749   LIBS=$ac_save_LIBS
19750 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19751 do
19752   # Don't even attempt the hair of trying to link an X program!
19753   for ac_extension in a so sl dylib la dll; do
19754     if test -r "$ac_dir/libX11.$ac_extension"; then
19755       ac_x_libraries=$ac_dir
19756       break 2
19757     fi
19758   done
19759 done
19760 fi
19761 rm -f core conftest.err conftest.$ac_objext \
19762     conftest$ac_exeext conftest.$ac_ext
19763 fi # $ac_x_libraries = no
19764
19765 case $ac_x_includes,$ac_x_libraries in #(
19766   no,* | *,no | *\'*)
19767     # Didn't find X, or a directory has "'" in its name.
19768     ac_cv_have_x="have_x=no";; #(
19769   *)
19770     # Record where we found X for the cache.
19771     ac_cv_have_x="have_x=yes\
19772         ac_x_includes='$ac_x_includes'\
19773         ac_x_libraries='$ac_x_libraries'"
19774 esac
19775 fi
19776 ;; #(
19777     *) have_x=yes;;
19778   esac
19779   eval "$ac_cv_have_x"
19780 fi # $with_x != no
19781
19782 if test "$have_x" != yes; then
19783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19784 $as_echo "$have_x" >&6; }
19785   no_x=yes
19786 else
19787   # If each of the values was on the command line, it overrides each guess.
19788   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19789   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19790   # Update the cache value to reflect the command line values.
19791   ac_cv_have_x="have_x=yes\
19792         ac_x_includes='$x_includes'\
19793         ac_x_libraries='$x_libraries'"
19794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19795 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19796 fi
19797
19798 if test "$no_x" = yes; then
19799   # Not all programs may use this symbol, but it does not hurt to define it.
19800
19801 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19802
19803   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19804 else
19805   if test -n "$x_includes"; then
19806     X_CFLAGS="$X_CFLAGS -I$x_includes"
19807   fi
19808
19809   # It would also be nice to do this for all -L options, not just this one.
19810   if test -n "$x_libraries"; then
19811     X_LIBS="$X_LIBS -L$x_libraries"
19812     # For Solaris; some versions of Sun CC require a space after -R and
19813     # others require no space.  Words are not sufficient . . . .
19814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19815 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19816     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19817     ac_xsave_c_werror_flag=$ac_c_werror_flag
19818     ac_c_werror_flag=yes
19819     if test x$gcc_no_link = xyes; then
19820   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19821 fi
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h.  */
19824
19825 int
19826 main ()
19827 {
19828
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 if ac_fn_c_try_link "$LINENO"; then :
19834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835 $as_echo "no" >&6; }
19836        X_LIBS="$X_LIBS -R$x_libraries"
19837 else
19838   LIBS="$ac_xsave_LIBS -R $x_libraries"
19839        if test x$gcc_no_link = xyes; then
19840   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19841 fi
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h.  */
19844
19845 int
19846 main ()
19847 {
19848
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 if ac_fn_c_try_link "$LINENO"; then :
19854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19855 $as_echo "yes" >&6; }
19856           X_LIBS="$X_LIBS -R $x_libraries"
19857 else
19858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19859 $as_echo "neither works" >&6; }
19860 fi
19861 rm -f core conftest.err conftest.$ac_objext \
19862     conftest$ac_exeext conftest.$ac_ext
19863 fi
19864 rm -f core conftest.err conftest.$ac_objext \
19865     conftest$ac_exeext conftest.$ac_ext
19866     ac_c_werror_flag=$ac_xsave_c_werror_flag
19867     LIBS=$ac_xsave_LIBS
19868   fi
19869
19870   # Check for system-dependent libraries X programs must link with.
19871   # Do this before checking for the system-independent R6 libraries
19872   # (-lICE), since we may need -lsocket or whatever for X linking.
19873
19874   if test "$ISC" = yes; then
19875     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19876   else
19877     # Martyn Johnson says this is needed for Ultrix, if the X
19878     # libraries were built with DECnet support.  And Karl Berry says
19879     # the Alpha needs dnet_stub (dnet does not exist).
19880     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19881     if test x$gcc_no_link = xyes; then
19882   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19883 fi
19884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h.  */
19886
19887 /* Override any GCC internal prototype to avoid an error.
19888    Use char because int might match the return type of a GCC
19889    builtin and then its argument prototype would still apply.  */
19890 #ifdef __cplusplus
19891 extern "C"
19892 #endif
19893 char XOpenDisplay ();
19894 int
19895 main ()
19896 {
19897 return XOpenDisplay ();
19898   ;
19899   return 0;
19900 }
19901 _ACEOF
19902 if ac_fn_c_try_link "$LINENO"; then :
19903
19904 else
19905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19906 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19907 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19908   $as_echo_n "(cached) " >&6
19909 else
19910   ac_check_lib_save_LIBS=$LIBS
19911 LIBS="-ldnet  $LIBS"
19912 if test x$gcc_no_link = xyes; then
19913   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19914 fi
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h.  */
19917
19918 /* Override any GCC internal prototype to avoid an error.
19919    Use char because int might match the return type of a GCC
19920    builtin and then its argument prototype would still apply.  */
19921 #ifdef __cplusplus
19922 extern "C"
19923 #endif
19924 char dnet_ntoa ();
19925 int
19926 main ()
19927 {
19928 return dnet_ntoa ();
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 if ac_fn_c_try_link "$LINENO"; then :
19934   ac_cv_lib_dnet_dnet_ntoa=yes
19935 else
19936   ac_cv_lib_dnet_dnet_ntoa=no
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext \
19939     conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19941 fi
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19943 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19944 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19945   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19946 fi
19947
19948     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19949       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19950 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19951 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19952   $as_echo_n "(cached) " >&6
19953 else
19954   ac_check_lib_save_LIBS=$LIBS
19955 LIBS="-ldnet_stub  $LIBS"
19956 if test x$gcc_no_link = xyes; then
19957   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19958 fi
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h.  */
19961
19962 /* Override any GCC internal prototype to avoid an error.
19963    Use char because int might match the return type of a GCC
19964    builtin and then its argument prototype would still apply.  */
19965 #ifdef __cplusplus
19966 extern "C"
19967 #endif
19968 char dnet_ntoa ();
19969 int
19970 main ()
19971 {
19972 return dnet_ntoa ();
19973   ;
19974   return 0;
19975 }
19976 _ACEOF
19977 if ac_fn_c_try_link "$LINENO"; then :
19978   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19979 else
19980   ac_cv_lib_dnet_stub_dnet_ntoa=no
19981 fi
19982 rm -f core conftest.err conftest.$ac_objext \
19983     conftest$ac_exeext conftest.$ac_ext
19984 LIBS=$ac_check_lib_save_LIBS
19985 fi
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19987 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19988 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19989   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19990 fi
19991
19992     fi
19993 fi
19994 rm -f core conftest.err conftest.$ac_objext \
19995     conftest$ac_exeext conftest.$ac_ext
19996     LIBS="$ac_xsave_LIBS"
19997
19998     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19999     # to get the SysV transport functions.
20000     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20001     # needs -lnsl.
20002     # The nsl library prevents programs from opening the X display
20003     # on Irix 5.2, according to T.E. Dickey.
20004     # The functions gethostbyname, getservbyname, and inet_addr are
20005     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20006     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20007 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20008
20009 fi
20010
20011     if test $ac_cv_func_gethostbyname = no; then
20012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20013 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20014 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20015   $as_echo_n "(cached) " >&6
20016 else
20017   ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lnsl  $LIBS"
20019 if test x$gcc_no_link = xyes; then
20020   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20021 fi
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h.  */
20024
20025 /* Override any GCC internal prototype to avoid an error.
20026    Use char because int might match the return type of a GCC
20027    builtin and then its argument prototype would still apply.  */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char gethostbyname ();
20032 int
20033 main ()
20034 {
20035 return gethostbyname ();
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 if ac_fn_c_try_link "$LINENO"; then :
20041   ac_cv_lib_nsl_gethostbyname=yes
20042 else
20043   ac_cv_lib_nsl_gethostbyname=no
20044 fi
20045 rm -f core conftest.err conftest.$ac_objext \
20046     conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20048 fi
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20050 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20051 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20052   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20053 fi
20054
20055       if test $ac_cv_lib_nsl_gethostbyname = no; then
20056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20057 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20058 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20059   $as_echo_n "(cached) " >&6
20060 else
20061   ac_check_lib_save_LIBS=$LIBS
20062 LIBS="-lbsd  $LIBS"
20063 if test x$gcc_no_link = xyes; then
20064   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20065 fi
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h.  */
20068
20069 /* Override any GCC internal prototype to avoid an error.
20070    Use char because int might match the return type of a GCC
20071    builtin and then its argument prototype would still apply.  */
20072 #ifdef __cplusplus
20073 extern "C"
20074 #endif
20075 char gethostbyname ();
20076 int
20077 main ()
20078 {
20079 return gethostbyname ();
20080   ;
20081   return 0;
20082 }
20083 _ACEOF
20084 if ac_fn_c_try_link "$LINENO"; then :
20085   ac_cv_lib_bsd_gethostbyname=yes
20086 else
20087   ac_cv_lib_bsd_gethostbyname=no
20088 fi
20089 rm -f core conftest.err conftest.$ac_objext \
20090     conftest$ac_exeext conftest.$ac_ext
20091 LIBS=$ac_check_lib_save_LIBS
20092 fi
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20094 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20095 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20096   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20097 fi
20098
20099       fi
20100     fi
20101
20102     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20103     # socket/setsockopt and other routines are undefined under SCO ODT
20104     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20105     # on later versions), says Simon Leinen: it contains gethostby*
20106     # variants that don't use the name server (or something).  -lsocket
20107     # must be given before -lnsl if both are needed.  We assume that
20108     # if connect needs -lnsl, so does gethostbyname.
20109     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20110 if test "x$ac_cv_func_connect" = x""yes; then :
20111
20112 fi
20113
20114     if test $ac_cv_func_connect = no; then
20115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20116 $as_echo_n "checking for connect in -lsocket... " >&6; }
20117 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20118   $as_echo_n "(cached) " >&6
20119 else
20120   ac_check_lib_save_LIBS=$LIBS
20121 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20122 if test x$gcc_no_link = xyes; then
20123   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20124 fi
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h.  */
20127
20128 /* Override any GCC internal prototype to avoid an error.
20129    Use char because int might match the return type of a GCC
20130    builtin and then its argument prototype would still apply.  */
20131 #ifdef __cplusplus
20132 extern "C"
20133 #endif
20134 char connect ();
20135 int
20136 main ()
20137 {
20138 return connect ();
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 if ac_fn_c_try_link "$LINENO"; then :
20144   ac_cv_lib_socket_connect=yes
20145 else
20146   ac_cv_lib_socket_connect=no
20147 fi
20148 rm -f core conftest.err conftest.$ac_objext \
20149     conftest$ac_exeext conftest.$ac_ext
20150 LIBS=$ac_check_lib_save_LIBS
20151 fi
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20153 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20154 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20155   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20156 fi
20157
20158     fi
20159
20160     # Guillermo Gomez says -lposix is necessary on A/UX.
20161     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20162 if test "x$ac_cv_func_remove" = x""yes; then :
20163
20164 fi
20165
20166     if test $ac_cv_func_remove = no; then
20167       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20168 $as_echo_n "checking for remove in -lposix... " >&6; }
20169 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20170   $as_echo_n "(cached) " >&6
20171 else
20172   ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lposix  $LIBS"
20174 if test x$gcc_no_link = xyes; then
20175   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20176 fi
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h.  */
20179
20180 /* Override any GCC internal prototype to avoid an error.
20181    Use char because int might match the return type of a GCC
20182    builtin and then its argument prototype would still apply.  */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 char remove ();
20187 int
20188 main ()
20189 {
20190 return remove ();
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 if ac_fn_c_try_link "$LINENO"; then :
20196   ac_cv_lib_posix_remove=yes
20197 else
20198   ac_cv_lib_posix_remove=no
20199 fi
20200 rm -f core conftest.err conftest.$ac_objext \
20201     conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20203 fi
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20205 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20206 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20207   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20208 fi
20209
20210     fi
20211
20212     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20213     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20214 if test "x$ac_cv_func_shmat" = x""yes; then :
20215
20216 fi
20217
20218     if test $ac_cv_func_shmat = no; then
20219       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20220 $as_echo_n "checking for shmat in -lipc... " >&6; }
20221 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20222   $as_echo_n "(cached) " >&6
20223 else
20224   ac_check_lib_save_LIBS=$LIBS
20225 LIBS="-lipc  $LIBS"
20226 if test x$gcc_no_link = xyes; then
20227   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20228 fi
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h.  */
20231
20232 /* Override any GCC internal prototype to avoid an error.
20233    Use char because int might match the return type of a GCC
20234    builtin and then its argument prototype would still apply.  */
20235 #ifdef __cplusplus
20236 extern "C"
20237 #endif
20238 char shmat ();
20239 int
20240 main ()
20241 {
20242 return shmat ();
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 if ac_fn_c_try_link "$LINENO"; then :
20248   ac_cv_lib_ipc_shmat=yes
20249 else
20250   ac_cv_lib_ipc_shmat=no
20251 fi
20252 rm -f core conftest.err conftest.$ac_objext \
20253     conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20255 fi
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20257 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20258 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20259   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20260 fi
20261
20262     fi
20263   fi
20264
20265   # Check for libraries that X11R6 Xt/Xaw programs need.
20266   ac_save_LDFLAGS=$LDFLAGS
20267   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20268   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20269   # check for ICE first), but we must link in the order -lSM -lICE or
20270   # we get undefined symbols.  So assume we have SM if we have ICE.
20271   # These have to be linked with before -lX11, unlike the other
20272   # libraries we check for below, so use a different variable.
20273   # John Interrante, Karl Berry
20274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20275 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20276 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20277   $as_echo_n "(cached) " >&6
20278 else
20279   ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20281 if test x$gcc_no_link = xyes; then
20282   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20283 fi
20284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20285 /* end confdefs.h.  */
20286
20287 /* Override any GCC internal prototype to avoid an error.
20288    Use char because int might match the return type of a GCC
20289    builtin and then its argument prototype would still apply.  */
20290 #ifdef __cplusplus
20291 extern "C"
20292 #endif
20293 char IceConnectionNumber ();
20294 int
20295 main ()
20296 {
20297 return IceConnectionNumber ();
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 if ac_fn_c_try_link "$LINENO"; then :
20303   ac_cv_lib_ICE_IceConnectionNumber=yes
20304 else
20305   ac_cv_lib_ICE_IceConnectionNumber=no
20306 fi
20307 rm -f core conftest.err conftest.$ac_objext \
20308     conftest$ac_exeext conftest.$ac_ext
20309 LIBS=$ac_check_lib_save_LIBS
20310 fi
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20312 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20313 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20314   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20315 fi
20316
20317   LDFLAGS=$ac_save_LDFLAGS
20318
20319 fi
20320
20321
20322 # FIXME: this should be _libs on some hosts.
20323 libsubdir=.libs
20324
20325 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20326
20327 LIBSTDCXXSPEC=
20328 # extra LD Flags which are required for targets
20329 case "${host}" in
20330 *-*-darwin[0-7].*)
20331     # For now we have to disable it on darwin[8-9] because it slows down
20332     # the linking phase. A possible bug in ld?
20333     # on Darwin -single_module speeds up loading of the dynamic libraries.
20334     extra_ldflags_libjava=-Wl,-single_module
20335     ;;
20336 *-*-darwin[912]*)
20337     extra_gij_ldflags=-Wl,-allow_stack_execute
20338     ;;
20339 arm*linux*eabi)
20340     # Some of the ARM unwinder code is actually in libstdc++.  We
20341     # could in principle replicate it in libgcj, but it's better to
20342     # have a dependency on libstdc++.
20343     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20344     LIBSTDCXXSPEC=-lstdc++
20345     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20346     ;;
20347 *-*-cygwin)
20348     extra_ldflags_libjava=-liconv
20349     ;;
20350 esac
20351
20352
20353
20354
20355
20356
20357
20358 # Allow the GC to be disabled.  Can be useful when debugging.
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20360 $as_echo_n "checking for garbage collector to use... " >&6; }
20361 # Check whether --enable-java-gc was given.
20362 if test "${enable_java_gc+set}" = set; then :
20363   enableval=$enable_java_gc; GC=$enableval
20364 else
20365   GC=boehm
20366 fi
20367
20368 GCLIBS=
20369 GCINCS=
20370 GCDEPS=
20371 GCSPEC=
20372 JC1GCSPEC=
20373 GCTESTSPEC=
20374 case "$GC" in
20375  boehm)
20376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20377 $as_echo "boehm" >&6; }
20378     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20379     JC1GCSPEC='-fuse-boehm-gc'
20380     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20381     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20382     GCOBJS=boehm.lo
20383     GCHDR=boehm-gc.h
20384     # The POSIX thread support needs to know this.
20385
20386 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20387
20388     ;;
20389  no)
20390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20391 $as_echo "none" >&6; }
20392     GCHDR=no-gc.h
20393     ;;
20394  *)
20395     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20396     ;;
20397 esac
20398
20399
20400
20401
20402
20403
20404 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20405
20406  if test "$GC" = boehm; then
20407   USING_BOEHMGC_TRUE=
20408   USING_BOEHMGC_FALSE='#'
20409 else
20410   USING_BOEHMGC_TRUE='#'
20411   USING_BOEHMGC_FALSE=
20412 fi
20413
20414  if test "$GC" = no; then
20415   USING_NOGC_TRUE=
20416   USING_NOGC_FALSE='#'
20417 else
20418   USING_NOGC_TRUE='#'
20419   USING_NOGC_FALSE=
20420 fi
20421
20422
20423
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20425 $as_echo_n "checking for thread model used by GCC... " >&6; }
20426 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20428 $as_echo "$THREADS" >&6; }
20429
20430 case "$THREADS" in
20431  no | none | single)
20432     THREADS=none
20433     ;;
20434  aix | posix | posix95 | pthreads)
20435     THREADS=posix
20436     case "$host" in
20437      *-*-linux*)
20438
20439 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20440
20441         ;;
20442     esac
20443     ;;
20444  win32)
20445     ;;
20446  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20447     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20448     ;;
20449  *)
20450     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20451     ;;
20452 esac
20453
20454 THREADCXXFLAGS=
20455 THREADLDFLAGS=
20456 THREADLIBS=
20457 THREADINCS=
20458 THREADDEPS=
20459 THREADH=
20460 THREADSPEC=
20461 THREADSTARTFILESPEC=
20462 case "$THREADS" in
20463  posix)
20464     case "$host" in
20465      *-*-cygwin*)
20466         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20467         ;;
20468      *-*-freebsd[1234]*)
20469         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20470         # merely adds pthread_* functions) but it does have a -pthread switch
20471         # which is required at link-time to select -lc_r *instead* of -lc.
20472         THREADLDFLAGS=-pthread
20473         # Don't set THREADSPEC here as might be expected since -pthread is
20474         # not processed when found within a spec file, it must come from
20475         # the command line.  For now, the user must provide the -pthread
20476         # switch to link code compiled with gcj.  In future, consider adding
20477         # support for weak references to pthread_* functions ala gthr.h API.
20478         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20479         ;;
20480      *-*-freebsd*)
20481         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20482         # systems which support threads and -lpthread.
20483         THREADLDFLAGS=-pthread
20484         THREADSPEC=-lpthread
20485         ;;
20486      alpha*-dec-osf* | hppa*-hp-hpux*)
20487         THREADCXXFLAGS=-pthread
20488         # boehm-gc needs some functions from librt, so link that too.
20489         THREADLIBS='-lpthread -lrt'
20490         THREADSPEC='-lpthread -lrt'
20491         ;;
20492      *)
20493         THREADLIBS=-lpthread
20494         THREADSPEC=-lpthread
20495         ;;
20496     esac
20497     THREADH=posix-threads.h
20498     # MIT pthreads doesn't seem to have the mutexattr functions.
20499     # But for now we don't check for it.  We just assume you aren't
20500     # using MIT pthreads.
20501
20502 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20503
20504
20505     # If we're using the Boehm GC, then we happen to know that it
20506     # defines _REENTRANT, so we don't bother.  Eww.
20507     if test "$GC" != boehm; then
20508
20509 $as_echo "#define _REENTRANT 1" >>confdefs.h
20510
20511     fi
20512
20513 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20514
20515     ;;
20516
20517  win32)
20518     THREADH=win32-threads.h
20519     THREADCXXFLAGS=-mthreads
20520     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20521     # But we do not want the executables created to be dependent on
20522     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20523     # exception handling contexts.  The following kludge achieves this effect
20524     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20525     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20526     # A workaround is to explicitly use -mthreads while linking Java programs.
20527     # See PR libgcj/28263.
20528     #
20529     # FIXME: In Java we are able to detect thread death at the end of
20530     # Thread.run() so we should be able to clean up the exception handling
20531     # contexts ourselves.
20532     THREADSTARTFILESPEC='crtmt%O%s'
20533     ;;
20534
20535  none)
20536     THREADH=no-threads.h
20537     ;;
20538 esac
20539 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20540
20541
20542
20543
20544
20545
20546
20547
20548  if test "$THREADS" = posix; then
20549   USING_POSIX_THREADS_TRUE=
20550   USING_POSIX_THREADS_FALSE='#'
20551 else
20552   USING_POSIX_THREADS_TRUE='#'
20553   USING_POSIX_THREADS_FALSE=
20554 fi
20555
20556  if test "$THREADS" = win32; then
20557   USING_WIN32_THREADS_TRUE=
20558   USING_WIN32_THREADS_FALSE='#'
20559 else
20560   USING_WIN32_THREADS_TRUE='#'
20561   USING_WIN32_THREADS_FALSE=
20562 fi
20563
20564  if test "$THREADS" = none; then
20565   USING_NO_THREADS_TRUE=
20566   USING_NO_THREADS_FALSE='#'
20567 else
20568   USING_NO_THREADS_TRUE='#'
20569   USING_NO_THREADS_FALSE=
20570 fi
20571
20572 if test "$enable_shared" != yes; then
20573   use_libgcj_bc=no
20574 fi
20575  if test "$use_libgcj_bc" = yes; then
20576   USE_LIBGCJ_BC_TRUE=
20577   USE_LIBGCJ_BC_FALSE='#'
20578 else
20579   USE_LIBGCJ_BC_TRUE='#'
20580   USE_LIBGCJ_BC_FALSE=
20581 fi
20582
20583
20584 if test -d sysdep; then true; else mkdir sysdep; fi
20585 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20586
20587 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20588
20589 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20590
20591
20592 LIBGCJ_SPEC_LGCJ=-lgcj
20593 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20594 if test x"$libgcj_spec_lgcj_override" != x ; then
20595   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20596 fi
20597 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20598   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20599 fi
20600 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20601 if test "$use_libgcj_bc" = yes; then
20602   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20603   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20604 fi
20605
20606
20607
20608 HASH_SYNC_SPEC=
20609 # Hash synchronization is only useful with posix threads right now.
20610 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20611    HASH_SYNC_SPEC=-fhash-synchronization
20612
20613 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20614
20615 fi
20616
20617
20618  if test "$GCC" = yes; then
20619   USING_GCC_TRUE=
20620   USING_GCC_FALSE='#'
20621 else
20622   USING_GCC_TRUE='#'
20623   USING_GCC_FALSE=
20624 fi
20625
20626
20627 # We're in the tree with gcc, and need to include some of its headers.
20628 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20629
20630 if test "x${with_newlib}" = "xyes"; then
20631    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20632    # may not work correctly, because the compiler may not be able to
20633    # link executables.
20634
20635    # We assume newlib.  This lets us hard-code the functions we know
20636    # we'll have.
20637
20638 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20639
20640
20641 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20642
20643
20644 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20645
20646
20647 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20648
20649
20650 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20651
20652
20653 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20654
20655    # This is only for POSIX threads.
20656
20657 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20658
20659
20660    # Assume we do not have getuid and friends.
20661
20662 $as_echo "#define NO_GETUID 1" >>confdefs.h
20663
20664    PLATFORMNET=NoNet
20665 else
20666    for ac_func in strerror_r select fstat open fsync sleep opendir \
20667                    localtime_r getpwuid_r getcwd \
20668                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20669                    nl_langinfo setlocale \
20670                    inet_pton uname inet_ntoa \
20671                    getrlimit sigaction ftruncate mmap \
20672                    getifaddrs
20673 do :
20674   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20676 eval as_val=\$$as_ac_var
20677    if test "x$as_val" = x""yes; then :
20678   cat >>confdefs.h <<_ACEOF
20679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682 fi
20683 done
20684
20685    for ac_func in inet_aton inet_addr
20686 do :
20687   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20689 eval as_val=\$$as_ac_var
20690    if test "x$as_val" = x""yes; then :
20691   cat >>confdefs.h <<_ACEOF
20692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20693 _ACEOF
20694  break
20695 fi
20696 done
20697
20698    for ac_header in unistd.h dlfcn.h sys/resource.h
20699 do :
20700   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20702 eval as_val=\$$as_ac_Header
20703    if test "x$as_val" = x""yes; then :
20704   cat >>confdefs.h <<_ACEOF
20705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706 _ACEOF
20707
20708 fi
20709
20710 done
20711
20712    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20714 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20715 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20716   $as_echo_n "(cached) " >&6
20717 else
20718   ac_check_lib_save_LIBS=$LIBS
20719 LIBS="-ldl  $LIBS"
20720 if test x$gcc_no_link = xyes; then
20721   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20722 fi
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h.  */
20725
20726 /* Override any GCC internal prototype to avoid an error.
20727    Use char because int might match the return type of a GCC
20728    builtin and then its argument prototype would still apply.  */
20729 #ifdef __cplusplus
20730 extern "C"
20731 #endif
20732 char dladdr ();
20733 int
20734 main ()
20735 {
20736 return dladdr ();
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 if ac_fn_c_try_link "$LINENO"; then :
20742   ac_cv_lib_dl_dladdr=yes
20743 else
20744   ac_cv_lib_dl_dladdr=no
20745 fi
20746 rm -f core conftest.err conftest.$ac_objext \
20747     conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20749 fi
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20751 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20752 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20753
20754
20755 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20756
20757 else
20758
20759        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20760 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20761 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20762   $as_echo_n "(cached) " >&6
20763 else
20764   ac_check_lib_save_LIBS=$LIBS
20765 LIBS="-ldld  $LIBS"
20766 if test x$gcc_no_link = xyes; then
20767   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20768 fi
20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20770 /* end confdefs.h.  */
20771
20772 /* Override any GCC internal prototype to avoid an error.
20773    Use char because int might match the return type of a GCC
20774    builtin and then its argument prototype would still apply.  */
20775 #ifdef __cplusplus
20776 extern "C"
20777 #endif
20778 char dladdr ();
20779 int
20780 main ()
20781 {
20782 return dladdr ();
20783   ;
20784   return 0;
20785 }
20786 _ACEOF
20787 if ac_fn_c_try_link "$LINENO"; then :
20788   ac_cv_lib_dld_dladdr=yes
20789 else
20790   ac_cv_lib_dld_dladdr=no
20791 fi
20792 rm -f core conftest.err conftest.$ac_objext \
20793     conftest$ac_exeext conftest.$ac_ext
20794 LIBS=$ac_check_lib_save_LIBS
20795 fi
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20797 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20798 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20799
20800
20801 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20802
20803 fi
20804
20805 fi
20806
20807
20808    if test x"$cross_compiling" = x"no"; then
20809      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20810 $as_echo_n "checking for /proc/self/exe... " >&6; }
20811 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20812   $as_echo_n "(cached) " >&6
20813 else
20814   test "$cross_compiling" = yes &&
20815   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20816 if test -r "/proc/self/exe"; then
20817   ac_cv_file__proc_self_exe=yes
20818 else
20819   ac_cv_file__proc_self_exe=no
20820 fi
20821 fi
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20823 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20824 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define HAVE__PROC_SELF_EXE 1
20828 _ACEOF
20829
20830
20831 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20832
20833 fi
20834
20835      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20836 $as_echo_n "checking for /proc/self/maps... " >&6; }
20837 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20838   $as_echo_n "(cached) " >&6
20839 else
20840   test "$cross_compiling" = yes &&
20841   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20842 if test -r "/proc/self/maps"; then
20843   ac_cv_file__proc_self_maps=yes
20844 else
20845   ac_cv_file__proc_self_maps=no
20846 fi
20847 fi
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20849 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20850 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20851
20852 cat >>confdefs.h <<_ACEOF
20853 #define HAVE__PROC_SELF_MAPS 1
20854 _ACEOF
20855
20856
20857 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20858
20859 fi
20860
20861    else
20862      case $host in
20863      *-linux*)
20864
20865 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20866
20867
20868 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20869
20870        ;;
20871      esac
20872    fi
20873
20874
20875       if test "X$prefix" = "XNONE"; then
20876     acl_final_prefix="$ac_default_prefix"
20877   else
20878     acl_final_prefix="$prefix"
20879   fi
20880   if test "X$exec_prefix" = "XNONE"; then
20881     acl_final_exec_prefix='${prefix}'
20882   else
20883     acl_final_exec_prefix="$exec_prefix"
20884   fi
20885   acl_save_prefix="$prefix"
20886   prefix="$acl_final_prefix"
20887   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20888   prefix="$acl_save_prefix"
20889
20890
20891 # Check whether --with-gnu-ld was given.
20892 if test "${with_gnu_ld+set}" = set; then :
20893   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20894 else
20895   with_gnu_ld=no
20896 fi
20897
20898 # Prepare PATH_SEPARATOR.
20899 # The user is always right.
20900 if test "${PATH_SEPARATOR+set}" != set; then
20901   echo "#! /bin/sh" >conf$$.sh
20902   echo  "exit 0"   >>conf$$.sh
20903   chmod +x conf$$.sh
20904   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20905     PATH_SEPARATOR=';'
20906   else
20907     PATH_SEPARATOR=:
20908   fi
20909   rm -f conf$$.sh
20910 fi
20911 ac_prog=ld
20912 if test "$GCC" = yes; then
20913   # Check if gcc -print-prog-name=ld gives a path.
20914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20915 $as_echo_n "checking for ld used by GCC... " >&6; }
20916   case $host in
20917   *-*-mingw*)
20918     # gcc leaves a trailing carriage return which upsets mingw
20919     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20920   *)
20921     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20922   esac
20923   case $ac_prog in
20924     # Accept absolute paths.
20925     [\\/]* | [A-Za-z]:[\\/]*)
20926       re_direlt='/[^/][^/]*/\.\./'
20927       # Canonicalize the path of ld
20928       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20929       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20930         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20931       done
20932       test -z "$LD" && LD="$ac_prog"
20933       ;;
20934   "")
20935     # If it fails, then pretend we aren't using GCC.
20936     ac_prog=ld
20937     ;;
20938   *)
20939     # If it is relative, then search for the first ld in PATH.
20940     with_gnu_ld=unknown
20941     ;;
20942   esac
20943 elif test "$with_gnu_ld" = yes; then
20944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20945 $as_echo_n "checking for GNU ld... " >&6; }
20946 else
20947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20948 $as_echo_n "checking for non-GNU ld... " >&6; }
20949 fi
20950 if test "${acl_cv_path_LD+set}" = set; then :
20951   $as_echo_n "(cached) " >&6
20952 else
20953   if test -z "$LD"; then
20954   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20955   for ac_dir in $PATH; do
20956     test -z "$ac_dir" && ac_dir=.
20957     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20958       acl_cv_path_LD="$ac_dir/$ac_prog"
20959       # Check to see if the program is GNU ld.  I'd rather use --version,
20960       # but apparently some GNU ld's only accept -v.
20961       # Break only if it was the GNU/non-GNU ld that we prefer.
20962       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20963         test "$with_gnu_ld" != no && break
20964       else
20965         test "$with_gnu_ld" != yes && break
20966       fi
20967     fi
20968   done
20969   IFS="$ac_save_ifs"
20970 else
20971   acl_cv_path_LD="$LD" # Let the user override the test with a path.
20972 fi
20973 fi
20974
20975 LD="$acl_cv_path_LD"
20976 if test -n "$LD"; then
20977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20978 $as_echo "$LD" >&6; }
20979 else
20980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981 $as_echo "no" >&6; }
20982 fi
20983 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20986 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20987   $as_echo_n "(cached) " >&6
20988 else
20989   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20990 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20991   acl_cv_prog_gnu_ld=yes
20992 else
20993   acl_cv_prog_gnu_ld=no
20994 fi
20995 fi
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20997 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20998 with_gnu_ld=$acl_cv_prog_gnu_ld
20999
21000
21001
21002                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21003 $as_echo_n "checking for shared library run path origin... " >&6; }
21004 if test "${acl_cv_rpath+set}" = set; then :
21005   $as_echo_n "(cached) " >&6
21006 else
21007
21008     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21009     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21010     . ./conftest.sh
21011     rm -f ./conftest.sh
21012     acl_cv_rpath=done
21013
21014 fi
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21016 $as_echo "$acl_cv_rpath" >&6; }
21017   wl="$acl_cv_wl"
21018   libext="$acl_cv_libext"
21019   shlibext="$acl_cv_shlibext"
21020   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21021   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21022   hardcode_direct="$acl_cv_hardcode_direct"
21023   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21024     # Check whether --enable-rpath was given.
21025 if test "${enable_rpath+set}" = set; then :
21026   enableval=$enable_rpath; :
21027 else
21028   enable_rpath=yes
21029 fi
21030
21031
21032
21033
21034
21035
21036
21037
21038     use_additional=yes
21039
21040   acl_save_prefix="$prefix"
21041   prefix="$acl_final_prefix"
21042   acl_save_exec_prefix="$exec_prefix"
21043   exec_prefix="$acl_final_exec_prefix"
21044
21045     eval additional_includedir=\"$includedir\"
21046     eval additional_libdir=\"$libdir\"
21047
21048   exec_prefix="$acl_save_exec_prefix"
21049   prefix="$acl_save_prefix"
21050
21051
21052 # Check whether --with-libiconv-prefix was given.
21053 if test "${with_libiconv_prefix+set}" = set; then :
21054   withval=$with_libiconv_prefix;
21055     if test "X$withval" = "Xno"; then
21056       use_additional=no
21057     else
21058       if test "X$withval" = "X"; then
21059
21060   acl_save_prefix="$prefix"
21061   prefix="$acl_final_prefix"
21062   acl_save_exec_prefix="$exec_prefix"
21063   exec_prefix="$acl_final_exec_prefix"
21064
21065           eval additional_includedir=\"$includedir\"
21066           eval additional_libdir=\"$libdir\"
21067
21068   exec_prefix="$acl_save_exec_prefix"
21069   prefix="$acl_save_prefix"
21070
21071       else
21072         additional_includedir="$withval/include"
21073         additional_libdir="$withval/lib"
21074       fi
21075     fi
21076
21077 fi
21078
21079       LIBICONV=
21080   LTLIBICONV=
21081   INCICONV=
21082   rpathdirs=
21083   ltrpathdirs=
21084   names_already_handled=
21085   names_next_round='iconv '
21086   while test -n "$names_next_round"; do
21087     names_this_round="$names_next_round"
21088     names_next_round=
21089     for name in $names_this_round; do
21090       already_handled=
21091       for n in $names_already_handled; do
21092         if test "$n" = "$name"; then
21093           already_handled=yes
21094           break
21095         fi
21096       done
21097       if test -z "$already_handled"; then
21098         names_already_handled="$names_already_handled $name"
21099                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21100         eval value=\"\$HAVE_LIB$uppername\"
21101         if test -n "$value"; then
21102           if test "$value" = yes; then
21103             eval value=\"\$LIB$uppername\"
21104             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21105             eval value=\"\$LTLIB$uppername\"
21106             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21107           else
21108                                     :
21109           fi
21110         else
21111                               found_dir=
21112           found_la=
21113           found_so=
21114           found_a=
21115           if test $use_additional = yes; then
21116             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21117               found_dir="$additional_libdir"
21118               found_so="$additional_libdir/lib$name.$shlibext"
21119               if test -f "$additional_libdir/lib$name.la"; then
21120                 found_la="$additional_libdir/lib$name.la"
21121               fi
21122             else
21123               if test -f "$additional_libdir/lib$name.$libext"; then
21124                 found_dir="$additional_libdir"
21125                 found_a="$additional_libdir/lib$name.$libext"
21126                 if test -f "$additional_libdir/lib$name.la"; then
21127                   found_la="$additional_libdir/lib$name.la"
21128                 fi
21129               fi
21130             fi
21131           fi
21132           if test "X$found_dir" = "X"; then
21133             for x in $LDFLAGS $LTLIBICONV; do
21134
21135   acl_save_prefix="$prefix"
21136   prefix="$acl_final_prefix"
21137   acl_save_exec_prefix="$exec_prefix"
21138   exec_prefix="$acl_final_exec_prefix"
21139   eval x=\"$x\"
21140   exec_prefix="$acl_save_exec_prefix"
21141   prefix="$acl_save_prefix"
21142
21143               case "$x" in
21144                 -L*)
21145                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21146                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21147                     found_dir="$dir"
21148                     found_so="$dir/lib$name.$shlibext"
21149                     if test -f "$dir/lib$name.la"; then
21150                       found_la="$dir/lib$name.la"
21151                     fi
21152                   else
21153                     if test -f "$dir/lib$name.$libext"; then
21154                       found_dir="$dir"
21155                       found_a="$dir/lib$name.$libext"
21156                       if test -f "$dir/lib$name.la"; then
21157                         found_la="$dir/lib$name.la"
21158                       fi
21159                     fi
21160                   fi
21161                   ;;
21162               esac
21163               if test "X$found_dir" != "X"; then
21164                 break
21165               fi
21166             done
21167           fi
21168           if test "X$found_dir" != "X"; then
21169                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21170             if test "X$found_so" != "X"; then
21171                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21172                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21173               else
21174                                                                                 haveit=
21175                 for x in $ltrpathdirs; do
21176                   if test "X$x" = "X$found_dir"; then
21177                     haveit=yes
21178                     break
21179                   fi
21180                 done
21181                 if test -z "$haveit"; then
21182                   ltrpathdirs="$ltrpathdirs $found_dir"
21183                 fi
21184                                 if test "$hardcode_direct" = yes; then
21185                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21186                 else
21187                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21188                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21189                                                             haveit=
21190                     for x in $rpathdirs; do
21191                       if test "X$x" = "X$found_dir"; then
21192                         haveit=yes
21193                         break
21194                       fi
21195                     done
21196                     if test -z "$haveit"; then
21197                       rpathdirs="$rpathdirs $found_dir"
21198                     fi
21199                   else
21200                                                                                 haveit=
21201                     for x in $LDFLAGS $LIBICONV; do
21202
21203   acl_save_prefix="$prefix"
21204   prefix="$acl_final_prefix"
21205   acl_save_exec_prefix="$exec_prefix"
21206   exec_prefix="$acl_final_exec_prefix"
21207   eval x=\"$x\"
21208   exec_prefix="$acl_save_exec_prefix"
21209   prefix="$acl_save_prefix"
21210
21211                       if test "X$x" = "X-L$found_dir"; then
21212                         haveit=yes
21213                         break
21214                       fi
21215                     done
21216                     if test -z "$haveit"; then
21217                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21218                     fi
21219                     if test "$hardcode_minus_L" != no; then
21220                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21221                     else
21222                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21223                     fi
21224                   fi
21225                 fi
21226               fi
21227             else
21228               if test "X$found_a" != "X"; then
21229                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21230               else
21231                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21232               fi
21233             fi
21234                         additional_includedir=
21235             case "$found_dir" in
21236               */lib | */lib/)
21237                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21238                 additional_includedir="$basedir/include"
21239                 ;;
21240             esac
21241             if test "X$additional_includedir" != "X"; then
21242                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21243                 haveit=
21244                 if test "X$additional_includedir" = "X/usr/local/include"; then
21245                   if test -n "$GCC"; then
21246                     case $host_os in
21247                       linux*) haveit=yes;;
21248                     esac
21249                   fi
21250                 fi
21251                 if test -z "$haveit"; then
21252                   for x in $CPPFLAGS $INCICONV; do
21253
21254   acl_save_prefix="$prefix"
21255   prefix="$acl_final_prefix"
21256   acl_save_exec_prefix="$exec_prefix"
21257   exec_prefix="$acl_final_exec_prefix"
21258   eval x=\"$x\"
21259   exec_prefix="$acl_save_exec_prefix"
21260   prefix="$acl_save_prefix"
21261
21262                     if test "X$x" = "X-I$additional_includedir"; then
21263                       haveit=yes
21264                       break
21265                     fi
21266                   done
21267                   if test -z "$haveit"; then
21268                     if test -d "$additional_includedir"; then
21269                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21270                     fi
21271                   fi
21272                 fi
21273               fi
21274             fi
21275                         if test -n "$found_la"; then
21276                                                         save_libdir="$libdir"
21277               case "$found_la" in
21278                 */* | *\\*) . "$found_la" ;;
21279                 *) . "./$found_la" ;;
21280               esac
21281               libdir="$save_libdir"
21282                             for dep in $dependency_libs; do
21283                 case "$dep" in
21284                   -L*)
21285                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21286                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21287                       haveit=
21288                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21289                         if test -n "$GCC"; then
21290                           case $host_os in
21291                             linux*) haveit=yes;;
21292                           esac
21293                         fi
21294                       fi
21295                       if test -z "$haveit"; then
21296                         haveit=
21297                         for x in $LDFLAGS $LIBICONV; do
21298
21299   acl_save_prefix="$prefix"
21300   prefix="$acl_final_prefix"
21301   acl_save_exec_prefix="$exec_prefix"
21302   exec_prefix="$acl_final_exec_prefix"
21303   eval x=\"$x\"
21304   exec_prefix="$acl_save_exec_prefix"
21305   prefix="$acl_save_prefix"
21306
21307                           if test "X$x" = "X-L$additional_libdir"; then
21308                             haveit=yes
21309                             break
21310                           fi
21311                         done
21312                         if test -z "$haveit"; then
21313                           if test -d "$additional_libdir"; then
21314                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21315                           fi
21316                         fi
21317                         haveit=
21318                         for x in $LDFLAGS $LTLIBICONV; do
21319
21320   acl_save_prefix="$prefix"
21321   prefix="$acl_final_prefix"
21322   acl_save_exec_prefix="$exec_prefix"
21323   exec_prefix="$acl_final_exec_prefix"
21324   eval x=\"$x\"
21325   exec_prefix="$acl_save_exec_prefix"
21326   prefix="$acl_save_prefix"
21327
21328                           if test "X$x" = "X-L$additional_libdir"; then
21329                             haveit=yes
21330                             break
21331                           fi
21332                         done
21333                         if test -z "$haveit"; then
21334                           if test -d "$additional_libdir"; then
21335                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21336                           fi
21337                         fi
21338                       fi
21339                     fi
21340                     ;;
21341                   -R*)
21342                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21343                     if test "$enable_rpath" != no; then
21344                                                                   haveit=
21345                       for x in $rpathdirs; do
21346                         if test "X$x" = "X$dir"; then
21347                           haveit=yes
21348                           break
21349                         fi
21350                       done
21351                       if test -z "$haveit"; then
21352                         rpathdirs="$rpathdirs $dir"
21353                       fi
21354                                                                   haveit=
21355                       for x in $ltrpathdirs; do
21356                         if test "X$x" = "X$dir"; then
21357                           haveit=yes
21358                           break
21359                         fi
21360                       done
21361                       if test -z "$haveit"; then
21362                         ltrpathdirs="$ltrpathdirs $dir"
21363                       fi
21364                     fi
21365                     ;;
21366                   -l*)
21367                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21368                     ;;
21369                   *.la)
21370                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21371                     ;;
21372                   *)
21373                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21374                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21375                     ;;
21376                 esac
21377               done
21378             fi
21379           else
21380                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21381             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21382           fi
21383         fi
21384       fi
21385     done
21386   done
21387   if test "X$rpathdirs" != "X"; then
21388     if test -n "$hardcode_libdir_separator"; then
21389                         alldirs=
21390       for found_dir in $rpathdirs; do
21391         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21392       done
21393             acl_save_libdir="$libdir"
21394       libdir="$alldirs"
21395       eval flag=\"$hardcode_libdir_flag_spec\"
21396       libdir="$acl_save_libdir"
21397       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21398     else
21399             for found_dir in $rpathdirs; do
21400         acl_save_libdir="$libdir"
21401         libdir="$found_dir"
21402         eval flag=\"$hardcode_libdir_flag_spec\"
21403         libdir="$acl_save_libdir"
21404         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21405       done
21406     fi
21407   fi
21408   if test "X$ltrpathdirs" != "X"; then
21409             for found_dir in $ltrpathdirs; do
21410       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21411     done
21412   fi
21413
21414
21415
21416
21417
21418
21419
21420           am_save_CPPFLAGS="$CPPFLAGS"
21421
21422   for element in $INCICONV; do
21423     haveit=
21424     for x in $CPPFLAGS; do
21425
21426   acl_save_prefix="$prefix"
21427   prefix="$acl_final_prefix"
21428   acl_save_exec_prefix="$exec_prefix"
21429   exec_prefix="$acl_final_exec_prefix"
21430   eval x=\"$x\"
21431   exec_prefix="$acl_save_exec_prefix"
21432   prefix="$acl_save_prefix"
21433
21434       if test "X$x" = "X$element"; then
21435         haveit=yes
21436         break
21437       fi
21438     done
21439     if test -z "$haveit"; then
21440       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21441     fi
21442   done
21443
21444
21445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21446 $as_echo_n "checking for iconv... " >&6; }
21447 if test "${am_cv_func_iconv+set}" = set; then :
21448   $as_echo_n "(cached) " >&6
21449 else
21450
21451     am_cv_func_iconv="no, consider installing GNU libiconv"
21452     am_cv_lib_iconv=no
21453     if test x$gcc_no_link = xyes; then
21454   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21455 fi
21456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457 /* end confdefs.h.  */
21458 #include <stdlib.h>
21459 #include <iconv.h>
21460 int
21461 main ()
21462 {
21463 iconv_t cd = iconv_open("","");
21464        iconv(cd,NULL,NULL,NULL,NULL);
21465        iconv_close(cd);
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 if ac_fn_c_try_link "$LINENO"; then :
21471   am_cv_func_iconv=yes
21472 fi
21473 rm -f core conftest.err conftest.$ac_objext \
21474     conftest$ac_exeext conftest.$ac_ext
21475     if test "$am_cv_func_iconv" != yes; then
21476       am_save_LIBS="$LIBS"
21477       LIBS="$LIBS $LIBICONV"
21478       if test x$gcc_no_link = xyes; then
21479   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21480 fi
21481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21482 /* end confdefs.h.  */
21483 #include <stdlib.h>
21484 #include <iconv.h>
21485 int
21486 main ()
21487 {
21488 iconv_t cd = iconv_open("","");
21489          iconv(cd,NULL,NULL,NULL,NULL);
21490          iconv_close(cd);
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 if ac_fn_c_try_link "$LINENO"; then :
21496   am_cv_lib_iconv=yes
21497         am_cv_func_iconv=yes
21498 fi
21499 rm -f core conftest.err conftest.$ac_objext \
21500     conftest$ac_exeext conftest.$ac_ext
21501       LIBS="$am_save_LIBS"
21502     fi
21503
21504 fi
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21506 $as_echo "$am_cv_func_iconv" >&6; }
21507   if test "$am_cv_func_iconv" = yes; then
21508
21509 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21510
21511   fi
21512   if test "$am_cv_lib_iconv" = yes; then
21513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21514 $as_echo_n "checking how to link with libiconv... " >&6; }
21515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21516 $as_echo "$LIBICONV" >&6; }
21517   else
21518             CPPFLAGS="$am_save_CPPFLAGS"
21519     LIBICONV=
21520     LTLIBICONV=
21521   fi
21522
21523
21524
21525   if test "$am_cv_func_iconv" = yes; then
21526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21527 $as_echo_n "checking for iconv declaration... " >&6; }
21528     if test "${am_cv_proto_iconv+set}" = set; then :
21529   $as_echo_n "(cached) " >&6
21530 else
21531
21532       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h.  */
21534
21535 #include <stdlib.h>
21536 #include <iconv.h>
21537 extern
21538 #ifdef __cplusplus
21539 "C"
21540 #endif
21541 #if defined(__STDC__) || defined(__cplusplus)
21542 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21543 #else
21544 size_t iconv();
21545 #endif
21546
21547 int
21548 main ()
21549 {
21550
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 if ac_fn_c_try_compile "$LINENO"; then :
21556   am_cv_proto_iconv_arg1=""
21557 else
21558   am_cv_proto_iconv_arg1="const"
21559 fi
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561       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);"
21562 fi
21563
21564     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21566          }$am_cv_proto_iconv" >&5
21567 $as_echo "${ac_t:-
21568          }$am_cv_proto_iconv" >&6; }
21569
21570 cat >>confdefs.h <<_ACEOF
21571 #define ICONV_CONST $am_cv_proto_iconv_arg1
21572 _ACEOF
21573
21574   fi
21575
21576
21577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21578 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21579 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21580   $as_echo_n "(cached) " >&6
21581 else
21582   if test x$gcc_no_link = xyes; then
21583   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21584 fi
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h.  */
21587 #include <locale.h>
21588 int
21589 main ()
21590 {
21591 return LC_MESSAGES
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 if ac_fn_c_try_link "$LINENO"; then :
21597   am_cv_val_LC_MESSAGES=yes
21598 else
21599   am_cv_val_LC_MESSAGES=no
21600 fi
21601 rm -f core conftest.err conftest.$ac_objext \
21602     conftest$ac_exeext conftest.$ac_ext
21603 fi
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21605 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21606   if test $am_cv_val_LC_MESSAGES = yes; then
21607
21608 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21609
21610   fi
21611
21612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21613 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21614 if test "${ac_cv_struct_tm+set}" = set; then :
21615   $as_echo_n "(cached) " >&6
21616 else
21617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21618 /* end confdefs.h.  */
21619 #include <sys/types.h>
21620 #include <time.h>
21621
21622 int
21623 main ()
21624 {
21625 struct tm tm;
21626                                      int *p = &tm.tm_sec;
21627                                      return !p;
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 if ac_fn_c_try_compile "$LINENO"; then :
21633   ac_cv_struct_tm=time.h
21634 else
21635   ac_cv_struct_tm=sys/time.h
21636 fi
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21640 $as_echo "$ac_cv_struct_tm" >&6; }
21641 if test $ac_cv_struct_tm = sys/time.h; then
21642
21643 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21644
21645 fi
21646
21647 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21648 #include <$ac_cv_struct_tm>
21649
21650 "
21651 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21652
21653 cat >>confdefs.h <<_ACEOF
21654 #define HAVE_STRUCT_TM_TM_ZONE 1
21655 _ACEOF
21656
21657
21658 fi
21659
21660 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21661
21662 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21663
21664 else
21665   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21666 "
21667 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21668   ac_have_decl=1
21669 else
21670   ac_have_decl=0
21671 fi
21672
21673 cat >>confdefs.h <<_ACEOF
21674 #define HAVE_DECL_TZNAME $ac_have_decl
21675 _ACEOF
21676
21677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21678 $as_echo_n "checking for tzname... " >&6; }
21679 if test "${ac_cv_var_tzname+set}" = set; then :
21680   $as_echo_n "(cached) " >&6
21681 else
21682   if test x$gcc_no_link = xyes; then
21683   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21684 fi
21685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h.  */
21687 #include <time.h>
21688 #if !HAVE_DECL_TZNAME
21689 extern char *tzname[];
21690 #endif
21691
21692 int
21693 main ()
21694 {
21695 return tzname[0][0];
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 if ac_fn_c_try_link "$LINENO"; then :
21701   ac_cv_var_tzname=yes
21702 else
21703   ac_cv_var_tzname=no
21704 fi
21705 rm -f core conftest.err conftest.$ac_objext \
21706     conftest$ac_exeext conftest.$ac_ext
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21709 $as_echo "$ac_cv_var_tzname" >&6; }
21710   if test $ac_cv_var_tzname = yes; then
21711
21712 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21713
21714   fi
21715 fi
21716
21717
21718    for ac_func in gethostbyname_r
21719 do :
21720   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21721 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21722   cat >>confdefs.h <<_ACEOF
21723 #define HAVE_GETHOSTBYNAME_R 1
21724 _ACEOF
21725
21726
21727 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21728
21729      # There are two different kinds of gethostbyname_r.
21730      # We look for the one that returns `int'.
21731      # Hopefully this check is robust enough.
21732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h.  */
21734 #include <netdb.h>
21735
21736 _ACEOF
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21739
21740
21741 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21742
21743 fi
21744 rm -f conftest*
21745
21746
21747      case " $GCINCS " in
21748      *" -D_REENTRANT "*) ;;
21749      *)
21750                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21751 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21752 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21753   $as_echo_n "(cached) " >&6
21754 else
21755    ac_ext=cpp
21756 ac_cpp='$CXXCPP $CPPFLAGS'
21757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21760
21761           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h.  */
21763 #include <netdb.h>
21764 int
21765 main ()
21766 {
21767 gethostbyname_r("", 0, 0);
21768   ;
21769   return 0;
21770 }
21771 _ACEOF
21772 if ac_fn_cxx_try_compile "$LINENO"; then :
21773   libjava_cv_gethostbyname_r_needs_reentrant=no
21774 else
21775                 CPPFLAGS_SAVE="$CPPFLAGS"
21776                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21777                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h.  */
21779 #include <netdb.h>
21780 int
21781 main ()
21782 {
21783 gethostbyname_r("", 0, 0);
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 if ac_fn_cxx_try_compile "$LINENO"; then :
21789   libjava_cv_gethostbyname_r_needs_reentrant=yes
21790 else
21791   libjava_cv_gethostbyname_r_needs_reentrant=fail
21792 fi
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794                 CPPFLAGS="$CPPFLAGS_SAVE"
21795
21796 fi
21797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21798           ac_ext=c
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21803
21804
21805 fi
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21807 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21808         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21809
21810 $as_echo "#define _REENTRANT 1" >>confdefs.h
21811
21812         fi
21813      ;;
21814      esac
21815
21816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21817 $as_echo_n "checking for struct hostent_data... " >&6; }
21818 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h.  */
21823
21824 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21825 # define _REENTRANT 1
21826 #endif
21827 #include <netdb.h>
21828 int
21829 main ()
21830 {
21831 struct hostent_data data;
21832   ;
21833   return 0;
21834 }
21835 _ACEOF
21836 if ac_fn_c_try_compile "$LINENO"; then :
21837   libjava_cv_struct_hostent_data=yes
21838 else
21839   libjava_cv_struct_hostent_data=no
21840 fi
21841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 fi
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21844 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21845      if test "x$libjava_cv_struct_hostent_data" = xyes; then
21846
21847 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21848
21849      fi
21850
21851 fi
21852 done
21853
21854
21855    # FIXME: libjava source code expects to find a prototype for
21856    # gethostbyaddr_r in netdb.h.  The outer check ensures that
21857    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21858    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
21859    # linkage check is enough, yet C++ code requires proper prototypes.)
21860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861 /* end confdefs.h.  */
21862 #include <netdb.h>
21863
21864 _ACEOF
21865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21866   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21867
21868    for ac_func in gethostbyaddr_r
21869 do :
21870   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21871 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21872   cat >>confdefs.h <<_ACEOF
21873 #define HAVE_GETHOSTBYADDR_R 1
21874 _ACEOF
21875
21876
21877 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21878
21879      # There are two different kinds of gethostbyaddr_r.
21880      # We look for the one that returns `int'.
21881      # Hopefully this check is robust enough.
21882      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h.  */
21884 #include <netdb.h>
21885
21886 _ACEOF
21887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21888   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21889
21890
21891 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21892
21893 fi
21894 rm -f conftest*
21895
21896 fi
21897 done
21898
21899 fi
21900 rm -f conftest*
21901
21902
21903    for ac_func in gethostname
21904 do :
21905   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21906 if test "x$ac_cv_func_gethostname" = x""yes; then :
21907   cat >>confdefs.h <<_ACEOF
21908 #define HAVE_GETHOSTNAME 1
21909 _ACEOF
21910
21911
21912 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21913
21914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h.  */
21916 #include <unistd.h>
21917
21918 _ACEOF
21919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21920   $EGREP "gethostname" >/dev/null 2>&1; then :
21921
21922
21923 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21924
21925 fi
21926 rm -f conftest*
21927
21928 fi
21929 done
21930
21931
21932    for ac_func in usleep
21933 do :
21934   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21935 if test "x$ac_cv_func_usleep" = x""yes; then :
21936   cat >>confdefs.h <<_ACEOF
21937 #define HAVE_USLEEP 1
21938 _ACEOF
21939
21940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h.  */
21942 #include <unistd.h>
21943
21944 _ACEOF
21945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21946   $EGREP "usleep" >/dev/null 2>&1; then :
21947
21948
21949 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21950
21951 fi
21952 rm -f conftest*
21953
21954 fi
21955 done
21956
21957
21958    # Look for these functions in the thread library, but only bother
21959    # if using POSIX threads.
21960    if test "$THREADS" = posix; then
21961       save_LIBS="$LIBS"
21962       LIBS="$LIBS $THREADLIBS"
21963
21964       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
21965       # Solaris 7 the name librt is preferred.
21966       for ac_func in sched_yield
21967 do :
21968   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21969 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21970   cat >>confdefs.h <<_ACEOF
21971 #define HAVE_SCHED_YIELD 1
21972 _ACEOF
21973
21974 else
21975
21976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21977 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21978 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21979   $as_echo_n "(cached) " >&6
21980 else
21981   ac_check_lib_save_LIBS=$LIBS
21982 LIBS="-lrt  $LIBS"
21983 if test x$gcc_no_link = xyes; then
21984   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21985 fi
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h.  */
21988
21989 /* Override any GCC internal prototype to avoid an error.
21990    Use char because int might match the return type of a GCC
21991    builtin and then its argument prototype would still apply.  */
21992 #ifdef __cplusplus
21993 extern "C"
21994 #endif
21995 char sched_yield ();
21996 int
21997 main ()
21998 {
21999 return sched_yield ();
22000   ;
22001   return 0;
22002 }
22003 _ACEOF
22004 if ac_fn_c_try_link "$LINENO"; then :
22005   ac_cv_lib_rt_sched_yield=yes
22006 else
22007   ac_cv_lib_rt_sched_yield=no
22008 fi
22009 rm -f core conftest.err conftest.$ac_objext \
22010     conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22012 fi
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22014 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22015 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22016
22017           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22018
22019           THREADLIBS="$THREADLIBS -lrt"
22020           THREADSPEC="$THREADSPEC -lrt"
22021 else
22022
22023           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22024 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22025 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22026   $as_echo_n "(cached) " >&6
22027 else
22028   ac_check_lib_save_LIBS=$LIBS
22029 LIBS="-lposix4  $LIBS"
22030 if test x$gcc_no_link = xyes; then
22031   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22032 fi
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h.  */
22035
22036 /* Override any GCC internal prototype to avoid an error.
22037    Use char because int might match the return type of a GCC
22038    builtin and then its argument prototype would still apply.  */
22039 #ifdef __cplusplus
22040 extern "C"
22041 #endif
22042 char sched_yield ();
22043 int
22044 main ()
22045 {
22046 return sched_yield ();
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 if ac_fn_c_try_link "$LINENO"; then :
22052   ac_cv_lib_posix4_sched_yield=yes
22053 else
22054   ac_cv_lib_posix4_sched_yield=no
22055 fi
22056 rm -f core conftest.err conftest.$ac_objext \
22057     conftest$ac_exeext conftest.$ac_ext
22058 LIBS=$ac_check_lib_save_LIBS
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22061 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22062 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22063
22064             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22065
22066             THREADLIBS="$THREADLIBS -lposix4"
22067             THREADSPEC="$THREADSPEC -lposix4"
22068 fi
22069
22070 fi
22071
22072 fi
22073 done
22074
22075
22076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22077 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22078 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22079   $as_echo_n "(cached) " >&6
22080 else
22081   ac_check_lib_save_LIBS=$LIBS
22082 LIBS="-lrt  $LIBS"
22083 if test x$gcc_no_link = xyes; then
22084   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22085 fi
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h.  */
22088
22089 /* Override any GCC internal prototype to avoid an error.
22090    Use char because int might match the return type of a GCC
22091    builtin and then its argument prototype would still apply.  */
22092 #ifdef __cplusplus
22093 extern "C"
22094 #endif
22095 char clock_gettime ();
22096 int
22097 main ()
22098 {
22099 return clock_gettime ();
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 if ac_fn_c_try_link "$LINENO"; then :
22105   ac_cv_lib_rt_clock_gettime=yes
22106 else
22107   ac_cv_lib_rt_clock_gettime=no
22108 fi
22109 rm -f core conftest.err conftest.$ac_objext \
22110     conftest$ac_exeext conftest.$ac_ext
22111 LIBS=$ac_check_lib_save_LIBS
22112 fi
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22114 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22115 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22116
22117
22118 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22119
22120          case "$THREADSPEC" in
22121            *-lrt*) ;;
22122            *)
22123              THREADSPEC="$THREADSPEC -lrt"
22124              THREADLIBS="$THREADLIBS -lrt"
22125              ;;
22126          esac
22127 fi
22128
22129
22130       LIBS="$save_LIBS"
22131
22132       # We can save a little space at runtime if the mutex has m_count
22133       # or __m_count.  This is a nice hack for Linux.
22134       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h.  */
22136 #include <pthread.h>
22137 int
22138 main ()
22139 {
22140
22141           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22142
22143   ;
22144   return 0;
22145 }
22146 _ACEOF
22147 if ac_fn_c_try_compile "$LINENO"; then :
22148
22149 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22150
22151 else
22152
22153         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h.  */
22155 #include <pthread.h>
22156 int
22157 main ()
22158 {
22159
22160             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22161
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 if ac_fn_c_try_compile "$LINENO"; then :
22167
22168 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22169
22170 fi
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 fi
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174    fi
22175
22176    # We require a way to get the time.
22177    time_found=no
22178    for ac_func in gettimeofday time ftime
22179 do :
22180   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22182 eval as_val=\$$as_ac_var
22183    if test "x$as_val" = x""yes; then :
22184   cat >>confdefs.h <<_ACEOF
22185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22186 _ACEOF
22187  time_found=yes
22188 fi
22189 done
22190
22191    if test "$time_found" = no; then
22192       as_fn_error "no function found to get the time" "$LINENO" 5
22193    fi
22194
22195    for ac_func in memmove
22196 do :
22197   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22198 if test "x$ac_cv_func_memmove" = x""yes; then :
22199   cat >>confdefs.h <<_ACEOF
22200 #define HAVE_MEMMOVE 1
22201 _ACEOF
22202
22203 fi
22204 done
22205
22206
22207    # We require memcpy.
22208    memcpy_found=no
22209    for ac_func in memcpy
22210 do :
22211   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22212 if test "x$ac_cv_func_memcpy" = x""yes; then :
22213   cat >>confdefs.h <<_ACEOF
22214 #define HAVE_MEMCPY 1
22215 _ACEOF
22216  memcpy_found=yes
22217 fi
22218 done
22219
22220    if test "$memcpy_found" = no; then
22221       as_fn_error "memcpy is required" "$LINENO" 5
22222    fi
22223    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22227   $as_echo_n "(cached) " >&6
22228 else
22229   ac_check_lib_save_LIBS=$LIBS
22230 LIBS="-ldl  $LIBS"
22231 if test x$gcc_no_link = xyes; then
22232   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22233 fi
22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h.  */
22236
22237 /* Override any GCC internal prototype to avoid an error.
22238    Use char because int might match the return type of a GCC
22239    builtin and then its argument prototype would still apply.  */
22240 #ifdef __cplusplus
22241 extern "C"
22242 #endif
22243 char dlopen ();
22244 int
22245 main ()
22246 {
22247 return dlopen ();
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 if ac_fn_c_try_link "$LINENO"; then :
22253   ac_cv_lib_dl_dlopen=yes
22254 else
22255   ac_cv_lib_dl_dlopen=no
22256 fi
22257 rm -f core conftest.err conftest.$ac_objext \
22258     conftest$ac_exeext conftest.$ac_ext
22259 LIBS=$ac_check_lib_save_LIBS
22260 fi
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22263 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22264
22265
22266 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22267
22268 else
22269
22270        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22271 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22272 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22273   $as_echo_n "(cached) " >&6
22274 else
22275   ac_check_lib_save_LIBS=$LIBS
22276 LIBS="-ldld  $LIBS"
22277 if test x$gcc_no_link = xyes; then
22278   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22279 fi
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h.  */
22282
22283 /* Override any GCC internal prototype to avoid an error.
22284    Use char because int might match the return type of a GCC
22285    builtin and then its argument prototype would still apply.  */
22286 #ifdef __cplusplus
22287 extern "C"
22288 #endif
22289 char dlopen ();
22290 int
22291 main ()
22292 {
22293 return dlopen ();
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 if ac_fn_c_try_link "$LINENO"; then :
22299   ac_cv_lib_dld_dlopen=yes
22300 else
22301   ac_cv_lib_dld_dlopen=no
22302 fi
22303 rm -f core conftest.err conftest.$ac_objext \
22304     conftest$ac_exeext conftest.$ac_ext
22305 LIBS=$ac_check_lib_save_LIBS
22306 fi
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22308 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22309 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22310
22311
22312 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22313
22314 fi
22315
22316 fi
22317
22318
22319    # Some library-finding code we stole from Tcl.
22320    #--------------------------------------------------------------------
22321    #    Check for the existence of the -lsocket and -lnsl libraries.
22322    #    The order here is important, so that they end up in the right
22323    #    order in the command line generated by make.  Here are some
22324    #    special considerations:
22325    #    1. Use "connect" and "accept" to check for -lsocket, and
22326    #       "gethostbyname" to check for -lnsl.
22327    #    2. Use each function name only once:  can't redo a check because
22328    #       autoconf caches the results of the last check and won't redo it.
22329    #    3. Use -lnsl and -lsocket only if they supply procedures that
22330    #       aren't already present in the normal libraries.  This is because
22331    #       IRIX 5.2 has libraries, but they aren't needed and they're
22332    #       bogus:  they goof up name resolution if used.
22333    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22334    #       To get around this problem, check for both libraries together
22335    #       if -lsocket doesn't work by itself.
22336    #--------------------------------------------------------------------
22337
22338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22339 $as_echo_n "checking for socket libraries... " >&6; }
22340 if test "${gcj_cv_lib_sockets+set}" = set; then :
22341   $as_echo_n "(cached) " >&6
22342 else
22343   gcj_cv_lib_sockets=
22344      gcj_checkBoth=0
22345      unset ac_cv_func_connect
22346      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22347 if test "x$ac_cv_func_connect" = x""yes; then :
22348   gcj_checkSocket=0
22349 else
22350   gcj_checkSocket=1
22351 fi
22352
22353      if test "$gcj_checkSocket" = 1; then
22354          unset ac_cv_func_connect
22355          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22356 $as_echo_n "checking for main in -lsocket... " >&6; }
22357 if test "${ac_cv_lib_socket_main+set}" = set; then :
22358   $as_echo_n "(cached) " >&6
22359 else
22360   ac_check_lib_save_LIBS=$LIBS
22361 LIBS="-lsocket  $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
22369 int
22370 main ()
22371 {
22372 return main ();
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 if ac_fn_c_try_link "$LINENO"; then :
22378   ac_cv_lib_socket_main=yes
22379 else
22380   ac_cv_lib_socket_main=no
22381 fi
22382 rm -f core conftest.err conftest.$ac_objext \
22383     conftest$ac_exeext conftest.$ac_ext
22384 LIBS=$ac_check_lib_save_LIBS
22385 fi
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22387 $as_echo "$ac_cv_lib_socket_main" >&6; }
22388 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22389   gcj_cv_lib_sockets="-lsocket"
22390 else
22391   gcj_checkBoth=1
22392 fi
22393
22394      fi
22395      if test "$gcj_checkBoth" = 1; then
22396          gcj_oldLibs=$LIBS
22397          LIBS="$LIBS -lsocket -lnsl"
22398          unset ac_cv_func_accept
22399          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22400 if test "x$ac_cv_func_accept" = x""yes; then :
22401   gcj_checkNsl=0
22402                         gcj_cv_lib_sockets="-lsocket -lnsl"
22403 fi
22404
22405          unset ac_cv_func_accept
22406          LIBS=$gcj_oldLibs
22407      fi
22408      unset ac_cv_func_gethostbyname
22409      gcj_oldLibs=$LIBS
22410      LIBS="$LIBS $gcj_cv_lib_sockets"
22411      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22412 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22413
22414 else
22415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22416 $as_echo_n "checking for main in -lnsl... " >&6; }
22417 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22418   $as_echo_n "(cached) " >&6
22419 else
22420   ac_check_lib_save_LIBS=$LIBS
22421 LIBS="-lnsl  $LIBS"
22422 if test x$gcc_no_link = xyes; then
22423   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22424 fi
22425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22426 /* end confdefs.h.  */
22427
22428
22429 int
22430 main ()
22431 {
22432 return main ();
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 if ac_fn_c_try_link "$LINENO"; then :
22438   ac_cv_lib_nsl_main=yes
22439 else
22440   ac_cv_lib_nsl_main=no
22441 fi
22442 rm -f core conftest.err conftest.$ac_objext \
22443     conftest$ac_exeext conftest.$ac_ext
22444 LIBS=$ac_check_lib_save_LIBS
22445 fi
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22447 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22448 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22449   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22450 fi
22451
22452 fi
22453
22454      unset ac_cv_func_gethostbyname
22455      LIBS=$gcj_oldLIBS
22456
22457 fi
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22459 $as_echo "$gcj_cv_lib_sockets" >&6; }
22460    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22461
22462    if test "$with_system_zlib" = yes; then
22463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22464 $as_echo_n "checking for deflate in -lz... " >&6; }
22465 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22466   $as_echo_n "(cached) " >&6
22467 else
22468   ac_check_lib_save_LIBS=$LIBS
22469 LIBS="-lz  $LIBS"
22470 if test x$gcc_no_link = xyes; then
22471   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22472 fi
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h.  */
22475
22476 /* Override any GCC internal prototype to avoid an error.
22477    Use char because int might match the return type of a GCC
22478    builtin and then its argument prototype would still apply.  */
22479 #ifdef __cplusplus
22480 extern "C"
22481 #endif
22482 char deflate ();
22483 int
22484 main ()
22485 {
22486 return deflate ();
22487   ;
22488   return 0;
22489 }
22490 _ACEOF
22491 if ac_fn_c_try_link "$LINENO"; then :
22492   ac_cv_lib_z_deflate=yes
22493 else
22494   ac_cv_lib_z_deflate=no
22495 fi
22496 rm -f core conftest.err conftest.$ac_objext \
22497     conftest$ac_exeext conftest.$ac_ext
22498 LIBS=$ac_check_lib_save_LIBS
22499 fi
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22501 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22502 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22503   ZLIBSPEC=-lz
22504 else
22505   ZLIBSPEC=
22506 fi
22507
22508    fi
22509
22510    # Test for Gtk stuff, if asked for.
22511    if test "$use_gtk_awt" = yes; then
22512
22513   succeeded=no
22514
22515   if test -z "$PKG_CONFIG"; then
22516     # Extract the first word of "pkg-config", so it can be a program name with args.
22517 set dummy pkg-config; ac_word=$2
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22519 $as_echo_n "checking for $ac_word... " >&6; }
22520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22521   $as_echo_n "(cached) " >&6
22522 else
22523   case $PKG_CONFIG in
22524   [\\/]* | ?:[\\/]*)
22525   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22526   ;;
22527   *)
22528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22529 for as_dir in $PATH
22530 do
22531   IFS=$as_save_IFS
22532   test -z "$as_dir" && as_dir=.
22533     for ac_exec_ext in '' $ac_executable_extensions; do
22534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22535     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22537     break 2
22538   fi
22539 done
22540   done
22541 IFS=$as_save_IFS
22542
22543   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22544   ;;
22545 esac
22546 fi
22547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22548 if test -n "$PKG_CONFIG"; then
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22550 $as_echo "$PKG_CONFIG" >&6; }
22551 else
22552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22554 fi
22555
22556
22557   fi
22558
22559   if test "$PKG_CONFIG" = "no" ; then
22560      echo "*** The pkg-config script could not be found. Make sure it is"
22561      echo "*** in your path, or set the PKG_CONFIG environment variable"
22562      echo "*** to the full path to pkg-config."
22563      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22564   else
22565      PKG_CONFIG_MIN_VERSION=0.9.0
22566      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22568 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22569
22570         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22571             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22572 $as_echo "yes" >&6; }
22573             succeeded=yes
22574
22575             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22576 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22577             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22578             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22579 $as_echo "$GTK_CFLAGS" >&6; }
22580
22581             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22582 $as_echo_n "checking GTK_LIBS... " >&6; }
22583             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22584             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22585 $as_echo "$GTK_LIBS" >&6; }
22586         else
22587             GTK_CFLAGS=""
22588             GTK_LIBS=""
22589             ## If we have a custom action on failure, don't print errors, but
22590             ## do set a variable so people can do so.
22591             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22592             echo $GTK_PKG_ERRORS
22593         fi
22594
22595
22596
22597      else
22598         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22599         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22600      fi
22601   fi
22602
22603   if test $succeeded = yes; then
22604      :
22605   else
22606      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
22607   fi
22608
22609
22610
22611
22612
22613   succeeded=no
22614
22615   if test -z "$PKG_CONFIG"; then
22616     # Extract the first word of "pkg-config", so it can be a program name with args.
22617 set dummy pkg-config; ac_word=$2
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22619 $as_echo_n "checking for $ac_word... " >&6; }
22620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22621   $as_echo_n "(cached) " >&6
22622 else
22623   case $PKG_CONFIG in
22624   [\\/]* | ?:[\\/]*)
22625   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22626   ;;
22627   *)
22628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22629 for as_dir in $PATH
22630 do
22631   IFS=$as_save_IFS
22632   test -z "$as_dir" && as_dir=.
22633     for ac_exec_ext in '' $ac_executable_extensions; do
22634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22635     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22637     break 2
22638   fi
22639 done
22640   done
22641 IFS=$as_save_IFS
22642
22643   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22644   ;;
22645 esac
22646 fi
22647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22648 if test -n "$PKG_CONFIG"; then
22649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22650 $as_echo "$PKG_CONFIG" >&6; }
22651 else
22652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654 fi
22655
22656
22657   fi
22658
22659   if test "$PKG_CONFIG" = "no" ; then
22660      echo "*** The pkg-config script could not be found. Make sure it is"
22661      echo "*** in your path, or set the PKG_CONFIG environment variable"
22662      echo "*** to the full path to pkg-config."
22663      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22664   else
22665      PKG_CONFIG_MIN_VERSION=0.9.0
22666      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22668 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22669
22670         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22671             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22672 $as_echo "yes" >&6; }
22673             succeeded=yes
22674
22675             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22676 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22677             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22678             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22679 $as_echo "$GLIB_CFLAGS" >&6; }
22680
22681             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22682 $as_echo_n "checking GLIB_LIBS... " >&6; }
22683             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22684             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22685 $as_echo "$GLIB_LIBS" >&6; }
22686         else
22687             GLIB_CFLAGS=""
22688             GLIB_LIBS=""
22689             ## If we have a custom action on failure, don't print errors, but
22690             ## do set a variable so people can do so.
22691             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22692             echo $GLIB_PKG_ERRORS
22693         fi
22694
22695
22696
22697      else
22698         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22699         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22700      fi
22701   fi
22702
22703   if test $succeeded = yes; then
22704      :
22705   else
22706      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
22707   fi
22708
22709
22710
22711
22712
22713   succeeded=no
22714
22715   if test -z "$PKG_CONFIG"; then
22716     # Extract the first word of "pkg-config", so it can be a program name with args.
22717 set dummy pkg-config; ac_word=$2
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22719 $as_echo_n "checking for $ac_word... " >&6; }
22720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22721   $as_echo_n "(cached) " >&6
22722 else
22723   case $PKG_CONFIG in
22724   [\\/]* | ?:[\\/]*)
22725   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22726   ;;
22727   *)
22728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22729 for as_dir in $PATH
22730 do
22731   IFS=$as_save_IFS
22732   test -z "$as_dir" && as_dir=.
22733     for ac_exec_ext in '' $ac_executable_extensions; do
22734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22735     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22737     break 2
22738   fi
22739 done
22740   done
22741 IFS=$as_save_IFS
22742
22743   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22744   ;;
22745 esac
22746 fi
22747 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22748 if test -n "$PKG_CONFIG"; then
22749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22750 $as_echo "$PKG_CONFIG" >&6; }
22751 else
22752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753 $as_echo "no" >&6; }
22754 fi
22755
22756
22757   fi
22758
22759   if test "$PKG_CONFIG" = "no" ; then
22760      echo "*** The pkg-config script could not be found. Make sure it is"
22761      echo "*** in your path, or set the PKG_CONFIG environment variable"
22762      echo "*** to the full path to pkg-config."
22763      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22764   else
22765      PKG_CONFIG_MIN_VERSION=0.9.0
22766      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22768 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22769
22770         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22771             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22772 $as_echo "yes" >&6; }
22773             succeeded=yes
22774
22775             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22776 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22777             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22778             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22779 $as_echo "$LIBART_CFLAGS" >&6; }
22780
22781             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22782 $as_echo_n "checking LIBART_LIBS... " >&6; }
22783             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22784             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22785 $as_echo "$LIBART_LIBS" >&6; }
22786         else
22787             LIBART_CFLAGS=""
22788             LIBART_LIBS=""
22789             ## If we have a custom action on failure, don't print errors, but
22790             ## do set a variable so people can do so.
22791             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22792             echo $LIBART_PKG_ERRORS
22793         fi
22794
22795
22796
22797      else
22798         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22799         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22800      fi
22801   fi
22802
22803   if test $succeeded = yes; then
22804      :
22805   else
22806      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
22807   fi
22808
22809
22810
22811
22812       # We require the XTest Extension to support java.awt.Robot.
22813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22814 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22815 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22816   $as_echo_n "(cached) " >&6
22817 else
22818   ac_check_lib_save_LIBS=$LIBS
22819 LIBS="-lXtst ${X_LIBS} $LIBS"
22820 if test x$gcc_no_link = xyes; then
22821   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22822 fi
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h.  */
22825
22826 /* Override any GCC internal prototype to avoid an error.
22827    Use char because int might match the return type of a GCC
22828    builtin and then its argument prototype would still apply.  */
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 char XTestQueryExtension ();
22833 int
22834 main ()
22835 {
22836 return XTestQueryExtension ();
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 if ac_fn_c_try_link "$LINENO"; then :
22842   ac_cv_lib_Xtst_XTestQueryExtension=yes
22843 else
22844   ac_cv_lib_Xtst_XTestQueryExtension=no
22845 fi
22846 rm -f core conftest.err conftest.$ac_objext \
22847     conftest$ac_exeext conftest.$ac_ext
22848 LIBS=$ac_check_lib_save_LIBS
22849 fi
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22851 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22852 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22853   true
22854 else
22855   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22856 fi
22857
22858    fi
22859
22860    # On Solaris, and maybe other architectures, the Boehm collector
22861    # requires -ldl.
22862    if test "$GC" = boehm; then
22863       case "${host}" in
22864           mips-sgi-irix6*)
22865             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22866             # libgcj.spec is used, so override here
22867             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22868           ;;
22869           *)
22870             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22871 $as_echo_n "checking for main in -ldl... " >&6; }
22872 if test "${ac_cv_lib_dl_main+set}" = set; then :
22873   $as_echo_n "(cached) " >&6
22874 else
22875   ac_check_lib_save_LIBS=$LIBS
22876 LIBS="-ldl  $LIBS"
22877 if test x$gcc_no_link = xyes; then
22878   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22879 fi
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h.  */
22882
22883
22884 int
22885 main ()
22886 {
22887 return main ();
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 if ac_fn_c_try_link "$LINENO"; then :
22893   ac_cv_lib_dl_main=yes
22894 else
22895   ac_cv_lib_dl_main=no
22896 fi
22897 rm -f core conftest.err conftest.$ac_objext \
22898     conftest$ac_exeext conftest.$ac_ext
22899 LIBS=$ac_check_lib_save_LIBS
22900 fi
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22902 $as_echo "$ac_cv_lib_dl_main" >&6; }
22903 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22904   SYSTEMSPEC="$SYSTEMSPEC -ldl"
22905 fi
22906
22907           ;;
22908       esac
22909    fi
22910 fi
22911
22912 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22913 case $build in
22914     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22915     *)         CLASSPATH_SEPARATOR=':' ;;
22916 esac
22917
22918
22919 # We must search the source tree for java.lang, since we still don't
22920 # have libgcj.jar nor java/lang/*.class
22921 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22922 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22923
22924 # Since some classes depend on this one, we need its source available
22925 # before we can do any GCJ compilation test :-(
22926 if test ! -f gnu/classpath/Configuration.java; then
22927   test -d gnu || mkdir gnu
22928   test -d gnu/classpath || mkdir gnu/classpath
22929   # Note that it is not crucial that all the values here be correct.
22930   sed -e "s,@prefix@,$prefix," \
22931       -e "s,@VERSION@,$VERSION," \
22932       -e "s,@LIBDEBUG@,false," \
22933       -e "s,@INIT_LOAD_LIBRARY@,false," \
22934       -e "s,@@,$LIBGCJDEBUG," \
22935       -e "s,@default_toolkit@,$TOOLKIT," \
22936       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22937       -e "s,@GTK_CAIRO_ENABLED@,false," \
22938       -e "s,@ECJ_JAR@,," \
22939       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22940         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22941         > gnu/classpath/Configuration.java
22942   # We do not want to redirect the output of the grep below to /dev/null,
22943   # but we add /dev/null to the input list so that grep will print the
22944   # filename of Configuration.java in case it finds any matches.
22945   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22946     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22947   fi
22948 fi
22949
22950
22951 for ac_prog in gcj
22952 do
22953   # Extract the first word of "$ac_prog", so it can be a program name with args.
22954 set dummy $ac_prog; ac_word=$2
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22956 $as_echo_n "checking for $ac_word... " >&6; }
22957 if test "${ac_cv_prog_GCJ+set}" = set; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   if test -n "$GCJ"; then
22961   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22962 else
22963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22964 for as_dir in $PATH
22965 do
22966   IFS=$as_save_IFS
22967   test -z "$as_dir" && as_dir=.
22968     for ac_exec_ext in '' $ac_executable_extensions; do
22969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22970     ac_cv_prog_GCJ="$ac_prog"
22971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22972     break 2
22973   fi
22974 done
22975   done
22976 IFS=$as_save_IFS
22977
22978 fi
22979 fi
22980 GCJ=$ac_cv_prog_GCJ
22981 if test -n "$GCJ"; then
22982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22983 $as_echo "$GCJ" >&6; }
22984 else
22985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22986 $as_echo "no" >&6; }
22987 fi
22988
22989
22990   test -n "$GCJ" && break
22991 done
22992 test -n "$GCJ" || GCJ="gcj"
22993
22994 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
22995 if test "x${GCJFLAGS-unset}" = xunset; then
22996    GCJFLAGS="-g -O2"
22997 fi
22998
22999
23000 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23001
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23003 $as_echo_n "checking dependency style of $depcc... " >&6; }
23004 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23005   $as_echo_n "(cached) " >&6
23006 else
23007   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23008   # We make a subdir and do the tests there.  Otherwise we can end up
23009   # making bogus files that we don't know about and never remove.  For
23010   # instance it was reported that on HP-UX the gcc test will end up
23011   # making a dummy file named `D' -- because `-MD' means `put the output
23012   # in D'.
23013   mkdir conftest.dir
23014   # Copy depcomp to subdir because otherwise we won't find it if we're
23015   # using a relative directory.
23016   cp "$am_depcomp" conftest.dir
23017   cd conftest.dir
23018   # We will build objects and dependencies in a subdirectory because
23019   # it helps to detect inapplicable dependency modes.  For instance
23020   # both Tru64's cc and ICC support -MD to output dependencies as a
23021   # side effect of compilation, but ICC will put the dependencies in
23022   # the current directory while Tru64 will put them in the object
23023   # directory.
23024   mkdir sub
23025
23026   am_cv_GCJ_dependencies_compiler_type=none
23027   if test "$am_compiler_list" = ""; then
23028      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23029   fi
23030   am__universal=false
23031
23032
23033   for depmode in $am_compiler_list; do
23034     # Setup a source with many dependencies, because some compilers
23035     # like to wrap large dependency lists on column 80 (with \), and
23036     # we should not choose a depcomp mode which is confused by this.
23037     #
23038     # We need to recreate these files for each test, as the compiler may
23039     # overwrite some of them when testing with obscure command lines.
23040     # This happens at least with the AIX C compiler.
23041     : > sub/conftest.c
23042     for i in 1 2 3 4 5 6; do
23043       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23044       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23045       # Solaris 8's {/usr,}/bin/sh.
23046       touch sub/conftst$i.h
23047     done
23048     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23049
23050     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23051     # mode.  It turns out that the SunPro C++ compiler does not properly
23052     # handle `-M -o', and we need to detect this.  Also, some Intel
23053     # versions had trouble with output in subdirs
23054     am__obj=sub/conftest.${OBJEXT-o}
23055     am__minus_obj="-o $am__obj"
23056     case $depmode in
23057     gcc)
23058       # This depmode causes a compiler race in universal mode.
23059       test "$am__universal" = false || continue
23060       ;;
23061     nosideeffect)
23062       # after this tag, mechanisms are not by side-effect, so they'll
23063       # only be used when explicitly requested
23064       if test "x$enable_dependency_tracking" = xyes; then
23065         continue
23066       else
23067         break
23068       fi
23069       ;;
23070     msvisualcpp | msvcmsys)
23071       # This compiler won't grok `-c -o', but also, the minuso test has
23072       # not run yet.  These depmodes are late enough in the game, and
23073       # so weak that their functioning should not be impacted.
23074       am__obj=conftest.${OBJEXT-o}
23075       am__minus_obj=
23076       ;;
23077     none) break ;;
23078     esac
23079     if depmode=$depmode \
23080        source=sub/conftest.c object=$am__obj \
23081        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23082        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23083          >/dev/null 2>conftest.err &&
23084        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23085        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23086        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23087        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23088       # icc doesn't choke on unknown options, it will just issue warnings
23089       # or remarks (even with -Werror).  So we grep stderr for any message
23090       # that says an option was ignored or not supported.
23091       # When given -MP, icc 7.0 and 7.1 complain thusly:
23092       #   icc: Command line warning: ignoring option '-M'; no argument required
23093       # The diagnosis changed in icc 8.0:
23094       #   icc: Command line remark: option '-MP' not supported
23095       if (grep 'ignoring option' conftest.err ||
23096           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23097         am_cv_GCJ_dependencies_compiler_type=$depmode
23098         break
23099       fi
23100     fi
23101   done
23102
23103   cd ..
23104   rm -rf conftest.dir
23105 else
23106   am_cv_GCJ_dependencies_compiler_type=none
23107 fi
23108
23109 fi
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23111 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23112 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23113
23114  if
23115   test "x$enable_dependency_tracking" != xno \
23116   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23117   am__fastdepGCJ_TRUE=
23118   am__fastdepGCJ_FALSE='#'
23119 else
23120   am__fastdepGCJ_TRUE='#'
23121   am__fastdepGCJ_FALSE=
23122 fi
23123
23124
23125
23126
23127 # Now remove it.
23128 rm -f gnu/classpath/Configuration.java
23129
23130 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23131
23132 # The cast to long int works around a bug in the HP C Compiler
23133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23135 # This bug is HP SR number 8606223364.
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23137 $as_echo_n "checking size of void *... " >&6; }
23138 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23139   $as_echo_n "(cached) " >&6
23140 else
23141   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23142
23143 else
23144   if test "$ac_cv_type_void_p" = yes; then
23145      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23147 { as_fn_set_status 77
23148 as_fn_error "cannot compute sizeof (void *)
23149 See \`config.log' for more details." "$LINENO" 5; }; }
23150    else
23151      ac_cv_sizeof_void_p=0
23152    fi
23153 fi
23154
23155 fi
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23157 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23158
23159
23160
23161 cat >>confdefs.h <<_ACEOF
23162 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23163 _ACEOF
23164
23165
23166
23167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23168 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23169 if test "${ac_cv_c_bigendian+set}" = set; then :
23170   $as_echo_n "(cached) " >&6
23171 else
23172   ac_cv_c_bigendian=unknown
23173     # See if we're dealing with a universal compiler.
23174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h.  */
23176 #ifndef __APPLE_CC__
23177                not a universal capable compiler
23178              #endif
23179              typedef int dummy;
23180
23181 _ACEOF
23182 if ac_fn_c_try_compile "$LINENO"; then :
23183
23184         # Check for potential -arch flags.  It is not universal unless
23185         # there are at least two -arch flags with different values.
23186         ac_arch=
23187         ac_prev=
23188         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23189          if test -n "$ac_prev"; then
23190            case $ac_word in
23191              i?86 | x86_64 | ppc | ppc64)
23192                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23193                  ac_arch=$ac_word
23194                else
23195                  ac_cv_c_bigendian=universal
23196                  break
23197                fi
23198                ;;
23199            esac
23200            ac_prev=
23201          elif test "x$ac_word" = "x-arch"; then
23202            ac_prev=arch
23203          fi
23204        done
23205 fi
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207     if test $ac_cv_c_bigendian = unknown; then
23208       # See if sys/param.h defines the BYTE_ORDER macro.
23209       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h.  */
23211 #include <sys/types.h>
23212              #include <sys/param.h>
23213
23214 int
23215 main ()
23216 {
23217 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23218                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23219                      && LITTLE_ENDIAN)
23220               bogus endian macros
23221              #endif
23222
23223   ;
23224   return 0;
23225 }
23226 _ACEOF
23227 if ac_fn_c_try_compile "$LINENO"; then :
23228   # It does; now see whether it defined to BIG_ENDIAN or not.
23229          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23230 /* end confdefs.h.  */
23231 #include <sys/types.h>
23232                 #include <sys/param.h>
23233
23234 int
23235 main ()
23236 {
23237 #if BYTE_ORDER != BIG_ENDIAN
23238                  not big endian
23239                 #endif
23240
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 if ac_fn_c_try_compile "$LINENO"; then :
23246   ac_cv_c_bigendian=yes
23247 else
23248   ac_cv_c_bigendian=no
23249 fi
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 fi
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253     fi
23254     if test $ac_cv_c_bigendian = unknown; then
23255       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23256       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h.  */
23258 #include <limits.h>
23259
23260 int
23261 main ()
23262 {
23263 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23264               bogus endian macros
23265              #endif
23266
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 if ac_fn_c_try_compile "$LINENO"; then :
23272   # It does; now see whether it defined to _BIG_ENDIAN or not.
23273          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274 /* end confdefs.h.  */
23275 #include <limits.h>
23276
23277 int
23278 main ()
23279 {
23280 #ifndef _BIG_ENDIAN
23281                  not big endian
23282                 #endif
23283
23284   ;
23285   return 0;
23286 }
23287 _ACEOF
23288 if ac_fn_c_try_compile "$LINENO"; then :
23289   ac_cv_c_bigendian=yes
23290 else
23291   ac_cv_c_bigendian=no
23292 fi
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294 fi
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23296     fi
23297     if test $ac_cv_c_bigendian = unknown; then
23298       # Compile a test program.
23299       if test "$cross_compiling" = yes; then :
23300   # Try to guess by grepping values from an object file.
23301          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302 /* end confdefs.h.  */
23303 short int ascii_mm[] =
23304                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23305                 short int ascii_ii[] =
23306                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23307                 int use_ascii (int i) {
23308                   return ascii_mm[i] + ascii_ii[i];
23309                 }
23310                 short int ebcdic_ii[] =
23311                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23312                 short int ebcdic_mm[] =
23313                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23314                 int use_ebcdic (int i) {
23315                   return ebcdic_mm[i] + ebcdic_ii[i];
23316                 }
23317                 extern int foo;
23318
23319 int
23320 main ()
23321 {
23322 return use_ascii (foo) == use_ebcdic (foo);
23323   ;
23324   return 0;
23325 }
23326 _ACEOF
23327 if ac_fn_c_try_compile "$LINENO"; then :
23328   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23329               ac_cv_c_bigendian=yes
23330             fi
23331             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23332               if test "$ac_cv_c_bigendian" = unknown; then
23333                 ac_cv_c_bigendian=no
23334               else
23335                 # finding both strings is unlikely to happen, but who knows?
23336                 ac_cv_c_bigendian=unknown
23337               fi
23338             fi
23339 fi
23340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23341 else
23342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h.  */
23344 $ac_includes_default
23345 int
23346 main ()
23347 {
23348
23349              /* Are we little or big endian?  From Harbison&Steele.  */
23350              union
23351              {
23352                long int l;
23353                char c[sizeof (long int)];
23354              } u;
23355              u.l = 1;
23356              return u.c[sizeof (long int) - 1] == 1;
23357
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 if ac_fn_c_try_run "$LINENO"; then :
23363   ac_cv_c_bigendian=no
23364 else
23365   ac_cv_c_bigendian=yes
23366 fi
23367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23368   conftest.$ac_objext conftest.beam conftest.$ac_ext
23369 fi
23370
23371     fi
23372 fi
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23374 $as_echo "$ac_cv_c_bigendian" >&6; }
23375  case $ac_cv_c_bigendian in #(
23376    yes)
23377      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23378 ;; #(
23379    no)
23380       ;; #(
23381    universal)
23382
23383 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23384
23385      ;; #(
23386    *)
23387      as_fn_error "unknown endianness
23388  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23389  esac
23390
23391
23392 ZLIBS=
23393 SYS_ZLIBS=
23394 ZINCS=
23395
23396 if test -z "$ZLIBSPEC"; then
23397    # Use zlib from the GCC tree.
23398    ZINCS='-I$(top_srcdir)/../zlib'
23399    ZLIBS=../zlib/libzgcj_convenience.la
23400 else
23401    # System's zlib.
23402    SYS_ZLIBS="$ZLIBSPEC"
23403 fi
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414  if test "$NATIVE" = yes; then
23415   NATIVE_TRUE=
23416   NATIVE_FALSE='#'
23417 else
23418   NATIVE_TRUE='#'
23419   NATIVE_FALSE=
23420 fi
23421
23422  if test "$enable_shared" = yes; then
23423   ENABLE_SHARED_TRUE=
23424   ENABLE_SHARED_FALSE='#'
23425 else
23426   ENABLE_SHARED_TRUE='#'
23427   ENABLE_SHARED_FALSE=
23428 fi
23429
23430  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23431   NEEDS_DATA_START_TRUE=
23432   NEEDS_DATA_START_FALSE='#'
23433 else
23434   NEEDS_DATA_START_TRUE='#'
23435   NEEDS_DATA_START_FALSE=
23436 fi
23437
23438  if test -z "${with_multisubdir}"; then
23439   INSTALL_BINARIES_TRUE=
23440   INSTALL_BINARIES_FALSE='#'
23441 else
23442   INSTALL_BINARIES_TRUE='#'
23443   INSTALL_BINARIES_FALSE=
23444 fi
23445
23446
23447
23448 # Process the option "--enable-version-specific-runtime-libs"
23449 # Calculate toolexeclibdir
23450 case ${version_specific_libs} in
23451   yes)
23452     # Need the gcc compiler version to know where to install libraries
23453     # and header files if --enable-version-specific-runtime-libs option
23454     # is selected.
23455     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23456     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23457     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23458     toolexeclibdir=$toolexecmainlibdir
23459     ;;
23460   no)
23461     if test -n "$with_cross_host" &&
23462        test x"$with_cross_host" != x"no"; then
23463       # Install a library built with a cross compiler in tooldir, not libdir.
23464       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23465       toolexecmainlibdir='$(toolexecdir)/lib'
23466     else
23467       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23468       toolexecmainlibdir='$(libdir)'
23469     fi
23470     multi_os_directory=`$CC -print-multi-os-directory`
23471     case $multi_os_directory in
23472       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23473       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23474     esac
23475     ;;
23476 esac
23477
23478
23479
23480
23481 # Determine gcj and libgcj version number.
23482 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23483 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23484 GCJVERSION=$gcjversion
23485
23486
23487 cat >>confdefs.h <<_ACEOF
23488 #define GCJVERSION "$GCJVERSION"
23489 _ACEOF
23490
23491
23492 # Determine where the standard .db file and GNU Classpath JNI
23493 # libraries are found.
23494 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23495 multi_os_directory=`$CC -print-multi-os-directory`
23496 case $multi_os_directory in
23497   .)
23498    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23499    ;;
23500   *)
23501    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23502    ;;
23503 esac
23504
23505
23506
23507
23508 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23509
23510
23511 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23512
23513
23514
23515 case "${with_gxx_include_dir}" in
23516   yes)
23517     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23518     ;;
23519   no | "")
23520     case "${enable_version_specific_runtime_libs}" in
23521       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23522       *)
23523         libstdcxx_incdir='c++/$(gcc_version)'
23524         gxx_include_dir='include/$(libstdcxx_incdir)'
23525         if test -n "$with_cross_host" &&
23526            test x"$with_cross_host" != x"no"; then
23527           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23528         else
23529           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23530         fi;;
23531     esac ;;
23532   *) gxx_include_dir=${with_gxx_include_dir} ;;
23533 esac
23534
23535
23536
23537
23538 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23539 # On that system, sys/ioctl.h will not include sys/filio.h unless
23540 # BSD_COMP is defined; just including sys/filio.h is simpler.
23541 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23542 # for now.  If you change this, you also must update natFile.cc.
23543 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23544                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23545                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23546                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23547                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23548 do :
23549   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23551 eval as_val=\$$as_ac_Header
23552    if test "x$as_val" = x""yes; then :
23553   cat >>confdefs.h <<_ACEOF
23554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23555 _ACEOF
23556
23557 fi
23558
23559 done
23560
23561 for ac_header in inttypes.h
23562 do :
23563   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23564 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23565   cat >>confdefs.h <<_ACEOF
23566 #define HAVE_INTTYPES_H 1
23567 _ACEOF
23568
23569
23570 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23571
23572
23573 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23574
23575
23576 fi
23577
23578 done
23579
23580
23581 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23582 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23583
23584 else
23585
23586 cat >>confdefs.h <<_ACEOF
23587 #define ssize_t int
23588 _ACEOF
23589
23590 fi
23591
23592 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23593 #ifdef HAVE_MAGIC_H
23594 #include <magic.h>
23595 #endif
23596 "
23597 if test "x$ac_cv_type_magic_t" = x""yes; then :
23598
23599
23600 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23601
23602 fi
23603
23604
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23606 $as_echo_n "checking for in_addr_t... " >&6; }
23607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23608 /* end confdefs.h.  */
23609 #include <sys/types.h>
23610 #if STDC_HEADERS
23611 #include <stdlib.h>
23612 #include <stddef.h>
23613 #endif
23614 #if HAVE_NETINET_IN_H
23615 #include <netinet/in.h>
23616 #endif
23617 int
23618 main ()
23619 {
23620 in_addr_t foo;
23621   ;
23622   return 0;
23623 }
23624 _ACEOF
23625 if ac_fn_c_try_compile "$LINENO"; then :
23626
23627 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23628
23629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630 $as_echo "yes" >&6; }
23631 else
23632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23633 $as_echo "no" >&6; }
23634 fi
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23638 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640 /* end confdefs.h.  */
23641 #include <netinet/in.h>
23642 int
23643 main ()
23644 {
23645 struct ip_mreq mreq;
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 if ac_fn_c_try_compile "$LINENO"; then :
23651
23652 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23653
23654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23655 $as_echo "yes" >&6; }
23656 else
23657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23658 $as_echo "no" >&6; }
23659 fi
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23663 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h.  */
23666 #include <netinet/in.h>
23667 int
23668 main ()
23669 {
23670 struct ipv6_mreq mreq6;
23671   ;
23672   return 0;
23673 }
23674 _ACEOF
23675 if ac_fn_c_try_compile "$LINENO"; then :
23676
23677 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23678
23679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 $as_echo "yes" >&6; }
23681 else
23682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23683 $as_echo "no" >&6; }
23684 fi
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23688 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23690 /* end confdefs.h.  */
23691 #include <netinet/in.h>
23692 int
23693 main ()
23694 {
23695 struct sockaddr_in6 addr6;
23696   ;
23697   return 0;
23698 }
23699 _ACEOF
23700 if ac_fn_c_try_compile "$LINENO"; then :
23701
23702 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23703
23704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23706 else
23707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23708 $as_echo "no" >&6; }
23709 fi
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23713 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h.  */
23716 #define _POSIX_PII_SOCKET
23717 #include <sys/types.h>
23718 #include <sys/socket.h>
23719 int
23720 main ()
23721 {
23722 socklen_t x = 5;
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 if ac_fn_c_try_compile "$LINENO"; then :
23728
23729 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23730
23731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23732 $as_echo "yes" >&6; }
23733 else
23734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23735 $as_echo "no" >&6; }
23736 fi
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23740 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23742 /* end confdefs.h.  */
23743 #include <time.h>
23744 int
23745 main ()
23746 {
23747 struct tm tim; tim.tm_gmtoff = 0;
23748   ;
23749   return 0;
23750 }
23751 _ACEOF
23752 if ac_fn_c_try_compile "$LINENO"; then :
23753
23754 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23755
23756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23757 $as_echo "yes" >&6; }
23758 else
23759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23762 $as_echo_n "checking for global timezone variable... " >&6; }
23763                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23764 /* end confdefs.h.  */
23765 #include <time.h>
23766 int
23767 main ()
23768 {
23769 void i(){long z2 = 2*timezone;}
23770   ;
23771   return 0;
23772 }
23773 _ACEOF
23774 if ac_fn_c_try_compile "$LINENO"; then :
23775
23776 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23777
23778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23779 $as_echo "yes" >&6; }
23780 else
23781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23782 $as_echo "no" >&6; }
23783        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23784 $as_echo_n "checking for global _timezone variable... " >&6; }
23785               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h.  */
23787 #include <time.h>
23788 int
23789 main ()
23790 {
23791 long z2 = _timezone;
23792   ;
23793   return 0;
23794 }
23795 _ACEOF
23796 if ac_fn_c_try_compile "$LINENO"; then :
23797
23798 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23799
23800           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23801 $as_echo "yes" >&6; }
23802 else
23803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23804 $as_echo "no" >&6; }
23805 fi
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 fi
23808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809 fi
23810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23811
23812 for ac_prog in perl
23813 do
23814   # Extract the first word of "$ac_prog", so it can be a program name with args.
23815 set dummy $ac_prog; ac_word=$2
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23817 $as_echo_n "checking for $ac_word... " >&6; }
23818 if test "${ac_cv_prog_PERL+set}" = set; then :
23819   $as_echo_n "(cached) " >&6
23820 else
23821   if test -n "$PERL"; then
23822   ac_cv_prog_PERL="$PERL" # Let the user override the test.
23823 else
23824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23825 for as_dir in $PATH
23826 do
23827   IFS=$as_save_IFS
23828   test -z "$as_dir" && as_dir=.
23829     for ac_exec_ext in '' $ac_executable_extensions; do
23830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23831     ac_cv_prog_PERL="$ac_prog"
23832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23833     break 2
23834   fi
23835 done
23836   done
23837 IFS=$as_save_IFS
23838
23839 fi
23840 fi
23841 PERL=$ac_cv_prog_PERL
23842 if test -n "$PERL"; then
23843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23844 $as_echo "$PERL" >&6; }
23845 else
23846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23847 $as_echo "no" >&6; }
23848 fi
23849
23850
23851   test -n "$PERL" && break
23852 done
23853 test -n "$PERL" || PERL="false"
23854
23855
23856 SYSDEP_SOURCES=
23857 SIGNAL_HANDLER_AUX=
23858
23859 case "${host}" in
23860  i?86-*-linux*)
23861     SIGNAL_HANDLER=include/i386-signal.h
23862     ;;
23863  sparc*-sun-solaris*)
23864     SIGNAL_HANDLER=include/sparc-signal.h
23865     ;;
23866 # ia64-*)
23867 #    SYSDEP_SOURCES=sysdep/ia64.c
23868 #    test -d sysdep || mkdir sysdep
23869 #    ;;
23870  hppa*-*-linux*)
23871     SIGNAL_HANDLER=include/pa-signal.h
23872     ;;
23873  hppa*-hp-hpux*)
23874     SIGNAL_HANDLER=include/hppa-signal.h
23875     ;;
23876  ia64-*-linux*)
23877     SIGNAL_HANDLER=include/dwarf2-signal.h
23878     ;;
23879  powerpc*-*-linux*)
23880     SIGNAL_HANDLER=include/powerpc-signal.h
23881     ;;
23882  alpha*-*-linux*)
23883     SIGNAL_HANDLER=include/dwarf2-signal.h
23884     ;;
23885  s390*-*-linux*)
23886     SIGNAL_HANDLER=include/s390-signal.h
23887     ;;
23888  x86_64*-*-linux*)
23889     SIGNAL_HANDLER=include/x86_64-signal.h
23890     SIGNAL_HANDLER_AUX=include/i386-signal.h
23891     ;;
23892  sparc*-*-linux*)
23893     SIGNAL_HANDLER=include/dwarf2-signal.h
23894     ;;
23895  sh*-*-linux*)
23896     SIGNAL_HANDLER=include/sh-signal.h
23897     ;;
23898  *mingw*)
23899     SIGNAL_HANDLER=include/win32-signal.h
23900     ;;
23901  mips*-*-linux*)
23902     SIGNAL_HANDLER=include/mips-signal.h
23903     ;;
23904  m68*-*-linux*)
23905     SIGNAL_HANDLER=include/dwarf2-signal.h
23906     ;;
23907  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23908     SIGNAL_HANDLER=include/darwin-signal.h
23909     ;;
23910  powerpc*-*-aix*)
23911     SIGNAL_HANDLER=include/aix-signal.h
23912     ;;
23913  *)
23914     SIGNAL_HANDLER=include/default-signal.h
23915     ;;
23916 esac
23917
23918 # If we're using sjlj exceptions, forget what we just learned.
23919 if test "$enable_sjlj_exceptions" = yes; then
23920    SIGNAL_HANDLER=include/default-signal.h
23921    SIGNAL_HANDLER_AUX=
23922 fi
23923
23924
23925
23926 if test -z "$SIGNAL_HANDLER_AUX"; then
23927   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23928 fi
23929
23930 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23931
23932
23933 if test "${multilib}" = "yes"; then
23934   multilib_arg="--enable-multilib"
23935 else
23936   multilib_arg=
23937 fi
23938
23939 # See if we support thread-local storage.
23940
23941
23942    # Check whether --enable-tls was given.
23943 if test "${enable_tls+set}" = set; then :
23944   enableval=$enable_tls;
23945       case "$enableval" in
23946        yes|no) ;;
23947        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23948       esac
23949
23950 else
23951   enable_tls=yes
23952 fi
23953
23954
23955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23956 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23957 if test "${gcc_cv_have_tls+set}" = set; then :
23958   $as_echo_n "(cached) " >&6
23959 else
23960
23961     if test "$cross_compiling" = yes; then :
23962                 if test x$gcc_no_link = xyes; then
23963   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23964 fi
23965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966 /* end confdefs.h.  */
23967 __thread int a; int b; int main() { return a = b; }
23968 _ACEOF
23969 if ac_fn_c_try_link "$LINENO"; then :
23970   chktls_save_LDFLAGS="$LDFLAGS"
23971                           case $host in
23972             *-*-linux*)
23973               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23974               ;;
23975           esac
23976           chktls_save_CFLAGS="$CFLAGS"
23977           CFLAGS="-fPIC $CFLAGS"
23978                   if test x$gcc_no_link = xyes; then
23979   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23980 fi
23981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23982 /* end confdefs.h.  */
23983 int f() { return 0; }
23984 _ACEOF
23985 if ac_fn_c_try_link "$LINENO"; then :
23986   if test x$gcc_no_link = xyes; then
23987   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23988 fi
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h.  */
23991 __thread int a; int b; int f() { return a = b; }
23992 _ACEOF
23993 if ac_fn_c_try_link "$LINENO"; then :
23994   gcc_cv_have_tls=yes
23995 else
23996   gcc_cv_have_tls=no
23997 fi
23998 rm -f core conftest.err conftest.$ac_objext \
23999     conftest$ac_exeext conftest.$ac_ext
24000 else
24001   gcc_cv_have_tls=yes
24002 fi
24003 rm -f core conftest.err conftest.$ac_objext \
24004     conftest$ac_exeext conftest.$ac_ext
24005           CFLAGS="$chktls_save_CFLAGS"
24006           LDFLAGS="$chktls_save_LDFLAGS"
24007 else
24008   gcc_cv_have_tls=no
24009 fi
24010 rm -f core conftest.err conftest.$ac_objext \
24011     conftest$ac_exeext conftest.$ac_ext
24012
24013
24014 else
24015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h.  */
24017 __thread int a; int b; int main() { return a = b; }
24018 _ACEOF
24019 if ac_fn_c_try_run "$LINENO"; then :
24020                       chktls_save_LDFLAGS="$LDFLAGS"
24021       LDFLAGS="-static $LDFLAGS"
24022       if test x$gcc_no_link = xyes; then
24023   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24024 fi
24025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24026 /* end confdefs.h.  */
24027 int main() { return 0; }
24028 _ACEOF
24029 if ac_fn_c_try_link "$LINENO"; then :
24030   if test "$cross_compiling" = yes; then :
24031   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24033 as_fn_error "cannot run test program while cross compiling
24034 See \`config.log' for more details." "$LINENO" 5; }
24035 else
24036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24037 /* end confdefs.h.  */
24038 __thread int a; int b; int main() { return a = b; }
24039 _ACEOF
24040 if ac_fn_c_try_run "$LINENO"; then :
24041   gcc_cv_have_tls=yes
24042 else
24043   gcc_cv_have_tls=no
24044 fi
24045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24046   conftest.$ac_objext conftest.beam conftest.$ac_ext
24047 fi
24048
24049 else
24050   gcc_cv_have_tls=yes
24051 fi
24052 rm -f core conftest.err conftest.$ac_objext \
24053     conftest$ac_exeext conftest.$ac_ext
24054       LDFLAGS="$chktls_save_LDFLAGS"
24055       if test $gcc_cv_have_tls = yes; then
24056                                                 chktls_save_CFLAGS="$CFLAGS"
24057         thread_CFLAGS=failed
24058         for flag in '' '-pthread' '-lpthread'; do
24059           CFLAGS="$flag $chktls_save_CFLAGS"
24060           if test x$gcc_no_link = xyes; then
24061   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24062 fi
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h.  */
24065 #include <pthread.h>
24066                 void *g(void *d) { return NULL; }
24067 int
24068 main ()
24069 {
24070 pthread_t t; pthread_create(&t,NULL,g,NULL);
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 if ac_fn_c_try_link "$LINENO"; then :
24076   thread_CFLAGS="$flag"
24077 fi
24078 rm -f core conftest.err conftest.$ac_objext \
24079     conftest$ac_exeext conftest.$ac_ext
24080           if test "X$thread_CFLAGS" != Xfailed; then
24081             break
24082           fi
24083         done
24084         CFLAGS="$chktls_save_CFLAGS"
24085         if test "X$thread_CFLAGS" != Xfailed; then
24086           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24087           if test "$cross_compiling" = yes; then :
24088   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24090 as_fn_error "cannot run test program while cross compiling
24091 See \`config.log' for more details." "$LINENO" 5; }
24092 else
24093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h.  */
24095 #include <pthread.h>
24096                 __thread int a;
24097                 static int *a_in_other_thread;
24098                 static void *
24099                 thread_func (void *arg)
24100                 {
24101                   a_in_other_thread = &a;
24102                   return (void *)0;
24103                 }
24104 int
24105 main ()
24106 {
24107 pthread_t thread;
24108                 void *thread_retval;
24109                 int *a_in_main_thread;
24110                 if (pthread_create (&thread, (pthread_attr_t *)0,
24111                                     thread_func, (void *)0))
24112                   return 0;
24113                 a_in_main_thread = &a;
24114                 if (pthread_join (thread, &thread_retval))
24115                   return 0;
24116                 return (a_in_other_thread == a_in_main_thread);
24117   ;
24118   return 0;
24119 }
24120 _ACEOF
24121 if ac_fn_c_try_run "$LINENO"; then :
24122   gcc_cv_have_tls=yes
24123 else
24124   gcc_cv_have_tls=no
24125 fi
24126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24127   conftest.$ac_objext conftest.beam conftest.$ac_ext
24128 fi
24129
24130           CFLAGS="$chktls_save_CFLAGS"
24131         fi
24132       fi
24133 else
24134   gcc_cv_have_tls=no
24135 fi
24136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24137   conftest.$ac_objext conftest.beam conftest.$ac_ext
24138 fi
24139
24140 fi
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24142 $as_echo "$gcc_cv_have_tls" >&6; }
24143   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24144
24145 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24146
24147   fi
24148
24149 # For _Unwind_GetIPInfo.
24150
24151
24152 # Check whether --with-system-libunwind was given.
24153 if test "${with_system_libunwind+set}" = set; then :
24154   withval=$with_system_libunwind;
24155 fi
24156
24157   # If system-libunwind was not specifically set, pick a default setting.
24158   if test x$with_system_libunwind = x; then
24159     case ${target} in
24160       ia64-*-hpux*) with_system_libunwind=yes ;;
24161       *) with_system_libunwind=no ;;
24162     esac
24163   fi
24164   # Based on system-libunwind and target, do we have ipinfo?
24165   if  test x$with_system_libunwind = xyes; then
24166     case ${target} in
24167       ia64-*-*) have_unwind_getipinfo=no ;;
24168       *) have_unwind_getipinfo=yes ;;
24169     esac
24170   else
24171     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24172
24173     case ${target} in
24174       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24175       *) have_unwind_getipinfo=yes ;;
24176     esac
24177
24178   fi
24179
24180   if test x$have_unwind_getipinfo = xyes; then
24181
24182 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24183
24184   fi
24185
24186
24187 # See if linker supports anonymous version scripts.
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24189 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24190 if test "${libjava_cv_anon_version_script+set}" = set; then :
24191   $as_echo_n "(cached) " >&6
24192 else
24193   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24194    libjava_cv_anon_version_script=no
24195    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24196    echo '{ global: globalsymb*; local: *; };' > conftest.map
24197    if test x$gcc_no_link = xyes; then
24198   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24199 fi
24200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h.  */
24202 void globalsymbol (void) {} void localsymbol (void) {}
24203 int
24204 main ()
24205 {
24206
24207   ;
24208   return 0;
24209 }
24210 _ACEOF
24211 if ac_fn_c_try_link "$LINENO"; then :
24212   libjava_cv_anon_version_script=yes
24213 fi
24214 rm -f core conftest.err conftest.$ac_objext \
24215     conftest$ac_exeext conftest.$ac_ext
24216    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24217
24218 fi
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24220 $as_echo "$libjava_cv_anon_version_script" >&6; }
24221  if test "$libjava_cv_anon_version_script" = yes; then
24222   ANONVERSCRIPT_TRUE=
24223   ANONVERSCRIPT_FALSE='#'
24224 else
24225   ANONVERSCRIPT_TRUE='#'
24226   ANONVERSCRIPT_FALSE=
24227 fi
24228
24229
24230 # Check if linker supports static linking on a per library basis
24231 LD_START_STATIC_SPEC=
24232 LD_FINISH_STATIC_SPEC=
24233 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24234   if $LD --help 2>&1 | grep -q -e -non_shared ; then
24235     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24236     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24237   fi
24238 fi
24239
24240
24241
24242 here=`${PWDCMD-pwd}`
24243
24244
24245 # We get this from the environment.
24246
24247
24248
24249 # Check whether --with-python-dir was given.
24250 if test "${with_python_dir+set}" = set; then :
24251   withval=$with_python_dir; with_python_dir=$withval
24252 else
24253   with_python_dir=""
24254 fi
24255
24256
24257 if test "x${with_python_dir}" = "x"
24258 then
24259   # Needed for installing Python modules during make install.
24260   python_mod_dir="\${prefix}/share/python"
24261   # Needed for substituting into aot-compile*
24262   python_mod_dir_expanded="${prefix}/share/python"
24263 else
24264   python_mod_dir="\${prefix}${with_python_dir}"
24265   python_mod_dir_expanded="${prefix}${with_python_dir}"
24266 fi
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24268 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24269
24270
24271
24272 # needed for aot-compile-rpm
24273 MAKE=`which make`
24274
24275
24276 # Check whether --enable-aot-compile-rpm was given.
24277 if test "${enable_aot_compile_rpm+set}" = set; then :
24278   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24279     yes) AOT_RPM_ENABLED=yes ;;
24280     no)  AOT_RPM_ENABLED=no ;;
24281     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24282   esac
24283 else
24284   AOT_RPM_ENABLED=no
24285
24286 fi
24287
24288  if test "x${AOT_RPM_ENABLED}" = xyes; then
24289   INSTALL_AOT_RPM_TRUE=
24290   INSTALL_AOT_RPM_FALSE='#'
24291 else
24292   INSTALL_AOT_RPM_TRUE='#'
24293   INSTALL_AOT_RPM_FALSE=
24294 fi
24295
24296
24297 # Check whether --enable-java-home was given.
24298 if test "${enable_java_home+set}" = set; then :
24299   enableval=$enable_java_home; case "${enableval}" in
24300     yes) JAVA_HOME_ENABLED=yes ;;
24301     no)  JAVA_HOME_ENABLED=no ;;
24302     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24303   esac
24304 else
24305   JAVA_HOME_ENABLED=no
24306
24307 fi
24308
24309  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24310   CREATE_JAVA_HOME_TRUE=
24311   CREATE_JAVA_HOME_FALSE='#'
24312 else
24313   CREATE_JAVA_HOME_TRUE='#'
24314   CREATE_JAVA_HOME_FALSE=
24315 fi
24316
24317
24318 # Only do these checks if java-home above is enabled.
24319 if test "x${JAVA_HOME_ENABLED}" = xyes
24320 then
24321
24322
24323 # Check whether --with-gcc-suffix was given.
24324 if test "${with_gcc_suffix+set}" = set; then :
24325   withval=$with_gcc_suffix; gcc_suffix=$withval
24326 else
24327   gcc_suffix=""
24328 fi
24329
24330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24331 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24332
24333
24334
24335 # Check whether --with-arch-directory was given.
24336 if test "${with_arch_directory+set}" = set; then :
24337   withval=$with_arch_directory; host_cpu=$withval
24338 else
24339   host_cpu=""
24340 fi
24341
24342
24343
24344 # Check whether --with-os-directory was given.
24345 if test "${with_os_directory+set}" = set; then :
24346   withval=$with_os_directory; host_os=$withval
24347 else
24348   host_os=""
24349 fi
24350
24351
24352
24353 # Check whether --with-origin-name was given.
24354 if test "${with_origin_name+set}" = set; then :
24355   withval=$with_origin_name; origin_name=$withval
24356 else
24357   origin_name=gcj${gcc_suffix}
24358 fi
24359
24360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24361 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24362
24363
24364 # Check whether --with-arch-suffix was given.
24365 if test "${with_arch_suffix+set}" = set; then :
24366   withval=$with_arch_suffix; arch_suffix=$withval
24367 else
24368   arch_suffix=""
24369 fi
24370
24371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24372 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24373
24374
24375 # Check whether --with-jvm-root-dir was given.
24376 if test "${with_jvm_root_dir+set}" = set; then :
24377   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24378 else
24379   jvm_root_dir="\${prefix}/lib/jvm"
24380 fi
24381
24382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24383 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24384
24385
24386 # Check whether --with-jvm-jar-dir was given.
24387 if test "${with_jvm_jar_dir+set}" = set; then :
24388   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24389 else
24390   jvm_jar_dir=\${prefix}/lib/jvm-exports
24391 fi
24392
24393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24394 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24395
24396   JAVA_VERSION=1.5.0
24397   BUILD_VERSION=0
24398
24399
24400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24401 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24402
24403   jre_dir=jre
24404   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24405   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24406
24407   JVM_ROOT_DIR=${jvm_root_dir}
24408
24409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24410 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24411
24412   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24413
24414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24415 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24416
24417   JVM_JAR_DIR=${jvm_jar_dir}
24418
24419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24420 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24421
24422   JRE_DIR=${jre_dir}
24423
24424
24425   JRE_LNK=${jre_lnk}
24426
24427
24428   SDK_LNK=${sdk_lnk}
24429
24430
24431   SDK_BIN_DIR=${jvm_root_dir}/bin
24432
24433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24434 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24435
24436   SDK_LIB_DIR=${jvm_root_dir}/lib
24437
24438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24439 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24440
24441   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24442
24443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24444 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24445
24446   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24447
24448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24449 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24450
24451   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24452
24453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24454 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24455
24456   # Find gcj prefix using gcj found in PATH.
24457   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24458
24459   # Where do the gcj binaries live?
24460   # For jhbuild based builds, they all live in a sibling of bin called
24461   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24462   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24463
24464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24465 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24466
24467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24468 $as_echo "host is ${host}" >&6; }
24469   if test "x${host_cpu}" = "x"
24470   then
24471     case ${host} in
24472       *-mingw* | *-cygwin*)
24473         host_cpu=x86;;
24474       i486-* | i586-* | i686-*)
24475         host_cpu=i386;;
24476       x86_64-*)
24477         host_cpu=amd64;;
24478       *)
24479         host_cpu=${host_cpu};;
24480     esac
24481   fi
24482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24483 $as_echo "arch directory: ${host_cpu}" >&6; }
24484   CPU=${host_cpu}
24485
24486
24487   if test "x${host_os}" = "x"
24488   then
24489     case ${host} in
24490       *-mingw* | *-cygwin*)
24491         host_os=win32;;
24492       *-linux*)
24493         host_os=linux;;
24494       *)
24495         host_os=${host_os};;
24496     esac
24497   fi
24498   echo os directory: ${host_os}
24499   OS=${host_os}
24500
24501
24502   # make an expanded $libdir, for substituting into
24503   # scripts (and other non-Makefile things).
24504   LIBDIR=$libdir
24505   if test "x${exec_prefix}" = "xNONE"
24506   then
24507       lib_exec_prefix=$prefix
24508   else
24509       lib_exec_prefix=$exec_prefix
24510   fi
24511   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24512
24513 fi
24514
24515 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"
24516
24517
24518 if test ${multilib} = yes; then
24519   multilib_arg="--enable-multilib"
24520 else
24521   multilib_arg=
24522 fi
24523
24524 ac_config_files="$ac_config_files scripts/jar"
24525
24526 cat >confcache <<\_ACEOF
24527 # This file is a shell script that caches the results of configure
24528 # tests run on this system so they can be shared between configure
24529 # scripts and configure runs, see configure's option --config-cache.
24530 # It is not useful on other systems.  If it contains results you don't
24531 # want to keep, you may remove or edit it.
24532 #
24533 # config.status only pays attention to the cache file if you give it
24534 # the --recheck option to rerun configure.
24535 #
24536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24538 # following values.
24539
24540 _ACEOF
24541
24542 # The following way of writing the cache mishandles newlines in values,
24543 # but we know of no workaround that is simple, portable, and efficient.
24544 # So, we kill variables containing newlines.
24545 # Ultrix sh set writes to stderr and can't be redirected directly,
24546 # and sets the high bit in the cache file unless we assign to the vars.
24547 (
24548   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24549     eval ac_val=\$$ac_var
24550     case $ac_val in #(
24551     *${as_nl}*)
24552       case $ac_var in #(
24553       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24555       esac
24556       case $ac_var in #(
24557       _ | IFS | as_nl) ;; #(
24558       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24559       *) { eval $ac_var=; unset $ac_var;} ;;
24560       esac ;;
24561     esac
24562   done
24563
24564   (set) 2>&1 |
24565     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24566     *${as_nl}ac_space=\ *)
24567       # `set' does not quote correctly, so add quotes: double-quote
24568       # substitution turns \\\\ into \\, and sed turns \\ into \.
24569       sed -n \
24570         "s/'/'\\\\''/g;
24571           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24572       ;; #(
24573     *)
24574       # `set' quotes correctly as required by POSIX, so do not add quotes.
24575       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24576       ;;
24577     esac |
24578     sort
24579 ) |
24580   sed '
24581      /^ac_cv_env_/b end
24582      t clear
24583      :clear
24584      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24585      t end
24586      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24587      :end' >>confcache
24588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24589   if test -w "$cache_file"; then
24590     test "x$cache_file" != "x/dev/null" &&
24591       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24592 $as_echo "$as_me: updating cache $cache_file" >&6;}
24593     cat confcache >$cache_file
24594   else
24595     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24597   fi
24598 fi
24599 rm -f confcache
24600
24601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24602 # Let make expand exec_prefix.
24603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24604
24605 DEFS=-DHAVE_CONFIG_H
24606
24607 ac_libobjs=
24608 ac_ltlibobjs=
24609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24610   # 1. Remove the extension, and $U if already installed.
24611   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24612   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24613   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24614   #    will be set to the directory where LIBOBJS objects are built.
24615   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24616   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24617 done
24618 LIBOBJS=$ac_libobjs
24619
24620 LTLIBOBJS=$ac_ltlibobjs
24621
24622
24623 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24624   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24626 fi
24627 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24628   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24630 fi
24631 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24632   as_fn_error "conditional \"AMDEP\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24634 fi
24635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24636   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24638 fi
24639 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24640   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24642 fi
24643  if test -n "$EXEEXT"; then
24644   am__EXEEXT_TRUE=
24645   am__EXEEXT_FALSE='#'
24646 else
24647   am__EXEEXT_TRUE='#'
24648   am__EXEEXT_FALSE=
24649 fi
24650
24651 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24652   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24654 fi
24655 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24656   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24658 fi
24659 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24660   as_fn_error "conditional \"XLIB_AWT\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24662 fi
24663 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24664   as_fn_error "conditional \"X_AWT\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24666 fi
24667 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24668   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24670 fi
24671 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24672   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24674 fi
24675 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24676   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24678 fi
24679 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24680   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24682 fi
24683 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24684   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24686 fi
24687 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24688   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24690 fi
24691 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24692   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24694 fi
24695 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24696   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24698 fi
24699 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24700   as_fn_error "conditional \"INTERPRETER\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24702 fi
24703 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24704   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24706 fi
24707 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24708   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24710 fi
24711 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24712   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24714 fi
24715 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24716   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24718 fi
24719 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24720   as_fn_error "conditional \"USING_NOGC\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24722 fi
24723 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24724   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24726 fi
24727 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24728   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24730 fi
24731 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24732   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24734 fi
24735 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24736   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24738 fi
24739 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24740   as_fn_error "conditional \"USING_GCC\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24742 fi
24743 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24744   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24746 fi
24747
24748 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24749   as_fn_error "conditional \"NATIVE\" was never defined.
24750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24751 fi
24752 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24753   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24755 fi
24756 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24757   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24759 fi
24760 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24761   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24763 fi
24764 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24765   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24767 fi
24768 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24769   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24771 fi
24772 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24773   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24775 fi
24776
24777 : ${CONFIG_STATUS=./config.status}
24778 ac_write_fail=0
24779 ac_clean_files_save=$ac_clean_files
24780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24783 as_write_fail=0
24784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24785 #! $SHELL
24786 # Generated by $as_me.
24787 # Run this file to recreate the current configuration.
24788 # Compiler output produced by configure, useful for debugging
24789 # configure, is in config.log if it exists.
24790
24791 debug=false
24792 ac_cs_recheck=false
24793 ac_cs_silent=false
24794
24795 SHELL=\${CONFIG_SHELL-$SHELL}
24796 export SHELL
24797 _ASEOF
24798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24799 ## -------------------- ##
24800 ## M4sh Initialization. ##
24801 ## -------------------- ##
24802
24803 # Be more Bourne compatible
24804 DUALCASE=1; export DUALCASE # for MKS sh
24805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24806   emulate sh
24807   NULLCMD=:
24808   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24809   # is contrary to our usage.  Disable this feature.
24810   alias -g '${1+"$@"}'='"$@"'
24811   setopt NO_GLOB_SUBST
24812 else
24813   case `(set -o) 2>/dev/null` in #(
24814   *posix*) :
24815     set -o posix ;; #(
24816   *) :
24817      ;;
24818 esac
24819 fi
24820
24821
24822 as_nl='
24823 '
24824 export as_nl
24825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24829 # Prefer a ksh shell builtin over an external printf program on Solaris,
24830 # but without wasting forks for bash or zsh.
24831 if test -z "$BASH_VERSION$ZSH_VERSION" \
24832     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24833   as_echo='print -r --'
24834   as_echo_n='print -rn --'
24835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24836   as_echo='printf %s\n'
24837   as_echo_n='printf %s'
24838 else
24839   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24840     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24841     as_echo_n='/usr/ucb/echo -n'
24842   else
24843     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24844     as_echo_n_body='eval
24845       arg=$1;
24846       case $arg in #(
24847       *"$as_nl"*)
24848         expr "X$arg" : "X\\(.*\\)$as_nl";
24849         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24850       esac;
24851       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24852     '
24853     export as_echo_n_body
24854     as_echo_n='sh -c $as_echo_n_body as_echo'
24855   fi
24856   export as_echo_body
24857   as_echo='sh -c $as_echo_body as_echo'
24858 fi
24859
24860 # The user is always right.
24861 if test "${PATH_SEPARATOR+set}" != set; then
24862   PATH_SEPARATOR=:
24863   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24864     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24865       PATH_SEPARATOR=';'
24866   }
24867 fi
24868
24869
24870 # IFS
24871 # We need space, tab and new line, in precisely that order.  Quoting is
24872 # there to prevent editors from complaining about space-tab.
24873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24874 # splitting by setting IFS to empty value.)
24875 IFS=" ""        $as_nl"
24876
24877 # Find who we are.  Look in the path if we contain no directory separator.
24878 case $0 in #((
24879   *[\\/]* ) as_myself=$0 ;;
24880   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in $PATH
24882 do
24883   IFS=$as_save_IFS
24884   test -z "$as_dir" && as_dir=.
24885     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24886   done
24887 IFS=$as_save_IFS
24888
24889      ;;
24890 esac
24891 # We did not find ourselves, most probably we were run as `sh COMMAND'
24892 # in which case we are not to be found in the path.
24893 if test "x$as_myself" = x; then
24894   as_myself=$0
24895 fi
24896 if test ! -f "$as_myself"; then
24897   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24898   exit 1
24899 fi
24900
24901 # Unset variables that we do not need and which cause bugs (e.g. in
24902 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24903 # suppresses any "Segmentation fault" message there.  '((' could
24904 # trigger a bug in pdksh 5.2.14.
24905 for as_var in BASH_ENV ENV MAIL MAILPATH
24906 do eval test x\${$as_var+set} = xset \
24907   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24908 done
24909 PS1='$ '
24910 PS2='> '
24911 PS4='+ '
24912
24913 # NLS nuisances.
24914 LC_ALL=C
24915 export LC_ALL
24916 LANGUAGE=C
24917 export LANGUAGE
24918
24919 # CDPATH.
24920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24921
24922
24923 # as_fn_error ERROR [LINENO LOG_FD]
24924 # ---------------------------------
24925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24927 # script with status $?, using 1 if that was 0.
24928 as_fn_error ()
24929 {
24930   as_status=$?; test $as_status -eq 0 && as_status=1
24931   if test "$3"; then
24932     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24933     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24934   fi
24935   $as_echo "$as_me: error: $1" >&2
24936   as_fn_exit $as_status
24937 } # as_fn_error
24938
24939
24940 # as_fn_set_status STATUS
24941 # -----------------------
24942 # Set $? to STATUS, without forking.
24943 as_fn_set_status ()
24944 {
24945   return $1
24946 } # as_fn_set_status
24947
24948 # as_fn_exit STATUS
24949 # -----------------
24950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24951 as_fn_exit ()
24952 {
24953   set +e
24954   as_fn_set_status $1
24955   exit $1
24956 } # as_fn_exit
24957
24958 # as_fn_unset VAR
24959 # ---------------
24960 # Portably unset VAR.
24961 as_fn_unset ()
24962 {
24963   { eval $1=; unset $1;}
24964 }
24965 as_unset=as_fn_unset
24966 # as_fn_append VAR VALUE
24967 # ----------------------
24968 # Append the text in VALUE to the end of the definition contained in VAR. Take
24969 # advantage of any shell optimizations that allow amortized linear growth over
24970 # repeated appends, instead of the typical quadratic growth present in naive
24971 # implementations.
24972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24973   eval 'as_fn_append ()
24974   {
24975     eval $1+=\$2
24976   }'
24977 else
24978   as_fn_append ()
24979   {
24980     eval $1=\$$1\$2
24981   }
24982 fi # as_fn_append
24983
24984 # as_fn_arith ARG...
24985 # ------------------
24986 # Perform arithmetic evaluation on the ARGs, and store the result in the
24987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24988 # must be portable across $(()) and expr.
24989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24990   eval 'as_fn_arith ()
24991   {
24992     as_val=$(( $* ))
24993   }'
24994 else
24995   as_fn_arith ()
24996   {
24997     as_val=`expr "$@" || test $? -eq 1`
24998   }
24999 fi # as_fn_arith
25000
25001
25002 if expr a : '\(a\)' >/dev/null 2>&1 &&
25003    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25004   as_expr=expr
25005 else
25006   as_expr=false
25007 fi
25008
25009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25010   as_basename=basename
25011 else
25012   as_basename=false
25013 fi
25014
25015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25016   as_dirname=dirname
25017 else
25018   as_dirname=false
25019 fi
25020
25021 as_me=`$as_basename -- "$0" ||
25022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25023          X"$0" : 'X\(//\)$' \| \
25024          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25025 $as_echo X/"$0" |
25026     sed '/^.*\/\([^/][^/]*\)\/*$/{
25027             s//\1/
25028             q
25029           }
25030           /^X\/\(\/\/\)$/{
25031             s//\1/
25032             q
25033           }
25034           /^X\/\(\/\).*/{
25035             s//\1/
25036             q
25037           }
25038           s/.*/./; q'`
25039
25040 # Avoid depending upon Character Ranges.
25041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25044 as_cr_digits='0123456789'
25045 as_cr_alnum=$as_cr_Letters$as_cr_digits
25046
25047 ECHO_C= ECHO_N= ECHO_T=
25048 case `echo -n x` in #(((((
25049 -n*)
25050   case `echo 'xy\c'` in
25051   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25052   xy)  ECHO_C='\c';;
25053   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25054        ECHO_T=' ';;
25055   esac;;
25056 *)
25057   ECHO_N='-n';;
25058 esac
25059
25060 rm -f conf$$ conf$$.exe conf$$.file
25061 if test -d conf$$.dir; then
25062   rm -f conf$$.dir/conf$$.file
25063 else
25064   rm -f conf$$.dir
25065   mkdir conf$$.dir 2>/dev/null
25066 fi
25067 if (echo >conf$$.file) 2>/dev/null; then
25068   if ln -s conf$$.file conf$$ 2>/dev/null; then
25069     as_ln_s='ln -s'
25070     # ... but there are two gotchas:
25071     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25072     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25073     # In both cases, we have to default to `cp -p'.
25074     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25075       as_ln_s='cp -p'
25076   elif ln conf$$.file conf$$ 2>/dev/null; then
25077     as_ln_s=ln
25078   else
25079     as_ln_s='cp -p'
25080   fi
25081 else
25082   as_ln_s='cp -p'
25083 fi
25084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25085 rmdir conf$$.dir 2>/dev/null
25086
25087
25088 # as_fn_mkdir_p
25089 # -------------
25090 # Create "$as_dir" as a directory, including parents if necessary.
25091 as_fn_mkdir_p ()
25092 {
25093
25094   case $as_dir in #(
25095   -*) as_dir=./$as_dir;;
25096   esac
25097   test -d "$as_dir" || eval $as_mkdir_p || {
25098     as_dirs=
25099     while :; do
25100       case $as_dir in #(
25101       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25102       *) as_qdir=$as_dir;;
25103       esac
25104       as_dirs="'$as_qdir' $as_dirs"
25105       as_dir=`$as_dirname -- "$as_dir" ||
25106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107          X"$as_dir" : 'X\(//\)[^/]' \| \
25108          X"$as_dir" : 'X\(//\)$' \| \
25109          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25110 $as_echo X"$as_dir" |
25111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25112             s//\1/
25113             q
25114           }
25115           /^X\(\/\/\)[^/].*/{
25116             s//\1/
25117             q
25118           }
25119           /^X\(\/\/\)$/{
25120             s//\1/
25121             q
25122           }
25123           /^X\(\/\).*/{
25124             s//\1/
25125             q
25126           }
25127           s/.*/./; q'`
25128       test -d "$as_dir" && break
25129     done
25130     test -z "$as_dirs" || eval "mkdir $as_dirs"
25131   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25132
25133
25134 } # as_fn_mkdir_p
25135 if mkdir -p . 2>/dev/null; then
25136   as_mkdir_p='mkdir -p "$as_dir"'
25137 else
25138   test -d ./-p && rmdir ./-p
25139   as_mkdir_p=false
25140 fi
25141
25142 if test -x / >/dev/null 2>&1; then
25143   as_test_x='test -x'
25144 else
25145   if ls -dL / >/dev/null 2>&1; then
25146     as_ls_L_option=L
25147   else
25148     as_ls_L_option=
25149   fi
25150   as_test_x='
25151     eval sh -c '\''
25152       if test -d "$1"; then
25153         test -d "$1/.";
25154       else
25155         case $1 in #(
25156         -*)set "./$1";;
25157         esac;
25158         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25159         ???[sx]*):;;*)false;;esac;fi
25160     '\'' sh
25161   '
25162 fi
25163 as_executable_p=$as_test_x
25164
25165 # Sed expression to map a string onto a valid CPP name.
25166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25167
25168 # Sed expression to map a string onto a valid variable name.
25169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25170
25171
25172 exec 6>&1
25173 ## ----------------------------------- ##
25174 ## Main body of $CONFIG_STATUS script. ##
25175 ## ----------------------------------- ##
25176 _ASEOF
25177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25178
25179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25180 # Save the log message, to keep $0 and so on meaningful, and to
25181 # report actual input values of CONFIG_FILES etc. instead of their
25182 # values after options handling.
25183 ac_log="
25184 This file was extended by libjava $as_me version-unused, which was
25185 generated by GNU Autoconf 2.64.  Invocation command line was
25186
25187   CONFIG_FILES    = $CONFIG_FILES
25188   CONFIG_HEADERS  = $CONFIG_HEADERS
25189   CONFIG_LINKS    = $CONFIG_LINKS
25190   CONFIG_COMMANDS = $CONFIG_COMMANDS
25191   $ $0 $@
25192
25193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25194 "
25195
25196 _ACEOF
25197
25198 case $ac_config_files in *"
25199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25200 esac
25201
25202 case $ac_config_headers in *"
25203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25204 esac
25205
25206
25207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25208 # Files that config.status was made for.
25209 config_files="$ac_config_files"
25210 config_headers="$ac_config_headers"
25211 config_links="$ac_config_links"
25212 config_commands="$ac_config_commands"
25213
25214 _ACEOF
25215
25216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25217 ac_cs_usage="\
25218 \`$as_me' instantiates files and other configuration actions
25219 from templates according to the current configuration.  Unless the files
25220 and actions are specified as TAGs, all are instantiated by default.
25221
25222 Usage: $0 [OPTION]... [TAG]...
25223
25224   -h, --help       print this help, then exit
25225   -V, --version    print version number and configuration settings, then exit
25226   -q, --quiet, --silent
25227                    do not print progress messages
25228   -d, --debug      don't remove temporary files
25229       --recheck    update $as_me by reconfiguring in the same conditions
25230       --file=FILE[:TEMPLATE]
25231                    instantiate the configuration file FILE
25232       --header=FILE[:TEMPLATE]
25233                    instantiate the configuration header FILE
25234
25235 Configuration files:
25236 $config_files
25237
25238 Configuration headers:
25239 $config_headers
25240
25241 Configuration links:
25242 $config_links
25243
25244 Configuration commands:
25245 $config_commands
25246
25247 Report bugs to the package provider."
25248
25249 _ACEOF
25250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25251 ac_cs_version="\\
25252 libjava config.status version-unused
25253 configured by $0, generated by GNU Autoconf 2.64,
25254   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25255
25256 Copyright (C) 2009 Free Software Foundation, Inc.
25257 This config.status script is free software; the Free Software Foundation
25258 gives unlimited permission to copy, distribute and modify it."
25259
25260 ac_pwd='$ac_pwd'
25261 srcdir='$srcdir'
25262 INSTALL='$INSTALL'
25263 MKDIR_P='$MKDIR_P'
25264 AWK='$AWK'
25265 test -n "\$AWK" || AWK=awk
25266 _ACEOF
25267
25268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25269 # The default lists apply if the user does not specify any file.
25270 ac_need_defaults=:
25271 while test $# != 0
25272 do
25273   case $1 in
25274   --*=*)
25275     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25276     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25277     ac_shift=:
25278     ;;
25279   *)
25280     ac_option=$1
25281     ac_optarg=$2
25282     ac_shift=shift
25283     ;;
25284   esac
25285
25286   case $ac_option in
25287   # Handling of the options.
25288   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25289     ac_cs_recheck=: ;;
25290   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25291     $as_echo "$ac_cs_version"; exit ;;
25292   --debug | --debu | --deb | --de | --d | -d )
25293     debug=: ;;
25294   --file | --fil | --fi | --f )
25295     $ac_shift
25296     case $ac_optarg in
25297     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25298     esac
25299     as_fn_append CONFIG_FILES " '$ac_optarg'"
25300     ac_need_defaults=false;;
25301   --header | --heade | --head | --hea )
25302     $ac_shift
25303     case $ac_optarg in
25304     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25305     esac
25306     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25307     ac_need_defaults=false;;
25308   --he | --h)
25309     # Conflict between --help and --header
25310     as_fn_error "ambiguous option: \`$1'
25311 Try \`$0 --help' for more information.";;
25312   --help | --hel | -h )
25313     $as_echo "$ac_cs_usage"; exit ;;
25314   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25315   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25316     ac_cs_silent=: ;;
25317
25318   # This is an error.
25319   -*) as_fn_error "unrecognized option: \`$1'
25320 Try \`$0 --help' for more information." ;;
25321
25322   *) as_fn_append ac_config_targets " $1"
25323      ac_need_defaults=false ;;
25324
25325   esac
25326   shift
25327 done
25328
25329 ac_configure_extra_args=
25330
25331 if $ac_cs_silent; then
25332   exec 6>/dev/null
25333   ac_configure_extra_args="$ac_configure_extra_args --silent"
25334 fi
25335
25336 _ACEOF
25337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25338 if \$ac_cs_recheck; then
25339   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25340   shift
25341   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25342   CONFIG_SHELL='$SHELL'
25343   export CONFIG_SHELL
25344   exec "\$@"
25345 fi
25346
25347 _ACEOF
25348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25349 exec 5>>config.log
25350 {
25351   echo
25352   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25353 ## Running $as_me. ##
25354 _ASBOX
25355   $as_echo "$ac_log"
25356 } >&5
25357
25358 _ACEOF
25359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25360 #
25361 # INIT-COMMANDS
25362 #
25363
25364 srcdir="$srcdir"
25365 host="$host"
25366 target="$target"
25367 with_multisubdir="$with_multisubdir"
25368 with_multisrctop="$with_multisrctop"
25369 with_target_subdir="$with_target_subdir"
25370 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25371 multi_basedir="$multi_basedir"
25372 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25373 CC="$CC"
25374 CXX="$CXX"
25375 GFORTRAN="$GFORTRAN"
25376 GCJ="$GCJ"
25377 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25378
25379
25380 # The HP-UX ksh and POSIX shell print the target directory to stdout
25381 # if CDPATH is set.
25382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25383
25384 sed_quote_subst='$sed_quote_subst'
25385 double_quote_subst='$double_quote_subst'
25386 delay_variable_subst='$delay_variable_subst'
25387 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25388 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25389 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25390 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25391 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25392 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25393 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25394 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25395 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25396 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25397 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25398 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25399 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25400 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25401 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25402 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25403 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25404 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25405 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25406 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25407 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25408 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25409 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25410 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25411 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25412 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25413 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25414 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25415 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25416 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25417 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25418 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25419 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25420 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25421 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25422 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25423 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25424 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25425 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25426 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25427 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25428 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25429 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25430 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25431 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25432 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25433 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25434 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25435 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25436 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25437 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25438 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25439 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25440 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25441 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25442 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25443 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25444 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25445 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25446 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25447 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25448 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25449 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25450 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25451 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25452 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25453 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25454 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25455 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25456 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25457 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25458 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25459 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25460 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25461 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25462 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25463 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25464 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25465 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25466 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25467 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25468 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25469 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25470 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25471 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25472 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25473 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25474 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25475 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25476 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25477 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25478 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25479 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25480 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25481 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25482 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25483 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25484 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25485 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25486 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25487 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25488 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25489 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25490 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25491 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25492 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25493 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25494 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25495 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25496 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25497 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25498 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25499 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25500 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25501 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25502 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25503 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25504 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25505 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25506 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25507 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25508 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25509 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25510 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25511 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25512 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25513 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25514 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25515 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25516 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25517 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25518 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25519 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25520 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25521 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25522 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25523 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25524 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25525 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25526 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25527 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25528 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25529 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25530 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25531 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25532 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25533 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25534 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25535 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25536 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25537 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25538 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25539 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25540 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25541 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25542 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25543 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25544 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25545 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25546 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25547 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25548 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25549 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25550 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25551 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25552 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25553 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25554 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25555 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25556 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25557 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25558 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25559 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25560 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25561 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25562 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25563 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25564 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25565 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25566 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25567 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25568 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25569 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25570 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25571 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25572 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25573 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25574 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25575 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25576 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25577 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25578 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25579 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25580 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25581 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25582 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25583 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25584 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25585 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25586 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25587 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25588 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25589 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25590 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25591 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25592 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25593 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25594 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25595 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25596 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25597 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25598 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25599 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25600 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25601 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25602 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25603 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25604 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25605
25606 LTCC='$LTCC'
25607 LTCFLAGS='$LTCFLAGS'
25608 compiler='$compiler_DEFAULT'
25609
25610 # Quote evaled strings.
25611 for var in SED \
25612 GREP \
25613 EGREP \
25614 FGREP \
25615 LD \
25616 NM \
25617 LN_S \
25618 lt_SP2NL \
25619 lt_NL2SP \
25620 reload_flag \
25621 OBJDUMP \
25622 deplibs_check_method \
25623 file_magic_cmd \
25624 AR \
25625 AR_FLAGS \
25626 STRIP \
25627 RANLIB \
25628 CC \
25629 CFLAGS \
25630 compiler \
25631 lt_cv_sys_global_symbol_pipe \
25632 lt_cv_sys_global_symbol_to_cdecl \
25633 lt_cv_sys_global_symbol_to_c_name_address \
25634 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25635 SHELL \
25636 ECHO \
25637 lt_prog_compiler_no_builtin_flag \
25638 lt_prog_compiler_wl \
25639 lt_prog_compiler_pic \
25640 lt_prog_compiler_static \
25641 lt_cv_prog_compiler_c_o \
25642 need_locks \
25643 DSYMUTIL \
25644 NMEDIT \
25645 LIPO \
25646 OTOOL \
25647 OTOOL64 \
25648 shrext_cmds \
25649 export_dynamic_flag_spec \
25650 whole_archive_flag_spec \
25651 compiler_needs_object \
25652 with_gnu_ld \
25653 allow_undefined_flag \
25654 no_undefined_flag \
25655 hardcode_libdir_flag_spec \
25656 hardcode_libdir_flag_spec_ld \
25657 hardcode_libdir_separator \
25658 fix_srcfile_path \
25659 exclude_expsyms \
25660 include_expsyms \
25661 file_list_spec \
25662 variables_saved_for_relink \
25663 libname_spec \
25664 library_names_spec \
25665 soname_spec \
25666 finish_eval \
25667 old_striplib \
25668 striplib \
25669 compiler_lib_search_dirs \
25670 predep_objects \
25671 postdep_objects \
25672 predeps \
25673 postdeps \
25674 compiler_lib_search_path \
25675 LD_CXX \
25676 LD_GCJ \
25677 compiler_CXX \
25678 compiler_GCJ \
25679 lt_prog_compiler_no_builtin_flag_CXX \
25680 lt_prog_compiler_no_builtin_flag_GCJ \
25681 lt_prog_compiler_wl_CXX \
25682 lt_prog_compiler_wl_GCJ \
25683 lt_prog_compiler_pic_CXX \
25684 lt_prog_compiler_pic_GCJ \
25685 lt_prog_compiler_static_CXX \
25686 lt_prog_compiler_static_GCJ \
25687 lt_cv_prog_compiler_c_o_CXX \
25688 lt_cv_prog_compiler_c_o_GCJ \
25689 export_dynamic_flag_spec_CXX \
25690 export_dynamic_flag_spec_GCJ \
25691 whole_archive_flag_spec_CXX \
25692 whole_archive_flag_spec_GCJ \
25693 compiler_needs_object_CXX \
25694 compiler_needs_object_GCJ \
25695 with_gnu_ld_CXX \
25696 with_gnu_ld_GCJ \
25697 allow_undefined_flag_CXX \
25698 allow_undefined_flag_GCJ \
25699 no_undefined_flag_CXX \
25700 no_undefined_flag_GCJ \
25701 hardcode_libdir_flag_spec_CXX \
25702 hardcode_libdir_flag_spec_GCJ \
25703 hardcode_libdir_flag_spec_ld_CXX \
25704 hardcode_libdir_flag_spec_ld_GCJ \
25705 hardcode_libdir_separator_CXX \
25706 hardcode_libdir_separator_GCJ \
25707 fix_srcfile_path_CXX \
25708 fix_srcfile_path_GCJ \
25709 exclude_expsyms_CXX \
25710 exclude_expsyms_GCJ \
25711 include_expsyms_CXX \
25712 include_expsyms_GCJ \
25713 file_list_spec_CXX \
25714 file_list_spec_GCJ \
25715 compiler_lib_search_dirs_CXX \
25716 compiler_lib_search_dirs_GCJ \
25717 predep_objects_CXX \
25718 predep_objects_GCJ \
25719 postdep_objects_CXX \
25720 postdep_objects_GCJ \
25721 predeps_CXX \
25722 predeps_GCJ \
25723 postdeps_CXX \
25724 postdeps_GCJ \
25725 compiler_lib_search_path_CXX \
25726 compiler_lib_search_path_GCJ; do
25727     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25728     *[\\\\\\\`\\"\\\$]*)
25729       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25730       ;;
25731     *)
25732       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25733       ;;
25734     esac
25735 done
25736
25737 # Double-quote double-evaled strings.
25738 for var in reload_cmds \
25739 old_postinstall_cmds \
25740 old_postuninstall_cmds \
25741 old_archive_cmds \
25742 extract_expsyms_cmds \
25743 old_archive_from_new_cmds \
25744 old_archive_from_expsyms_cmds \
25745 archive_cmds \
25746 archive_expsym_cmds \
25747 module_cmds \
25748 module_expsym_cmds \
25749 export_symbols_cmds \
25750 prelink_cmds \
25751 postinstall_cmds \
25752 postuninstall_cmds \
25753 finish_cmds \
25754 sys_lib_search_path_spec \
25755 sys_lib_dlsearch_path_spec \
25756 old_archive_cmds_CXX \
25757 old_archive_cmds_GCJ \
25758 old_archive_from_new_cmds_CXX \
25759 old_archive_from_new_cmds_GCJ \
25760 old_archive_from_expsyms_cmds_CXX \
25761 old_archive_from_expsyms_cmds_GCJ \
25762 archive_cmds_CXX \
25763 archive_cmds_GCJ \
25764 archive_expsym_cmds_CXX \
25765 archive_expsym_cmds_GCJ \
25766 module_cmds_CXX \
25767 module_cmds_GCJ \
25768 module_expsym_cmds_CXX \
25769 module_expsym_cmds_GCJ \
25770 export_symbols_cmds_CXX \
25771 export_symbols_cmds_GCJ \
25772 prelink_cmds_CXX \
25773 prelink_cmds_GCJ; do
25774     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25775     *[\\\\\\\`\\"\\\$]*)
25776       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25777       ;;
25778     *)
25779       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25780       ;;
25781     esac
25782 done
25783
25784 # Fix-up fallback echo if it was mangled by the above quoting rules.
25785 case \$lt_ECHO in
25786 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25787   ;;
25788 esac
25789
25790 ac_aux_dir='$ac_aux_dir'
25791 xsi_shell='$xsi_shell'
25792 lt_shell_append='$lt_shell_append'
25793
25794 # See if we are running on zsh, and set the options which allow our
25795 # commands through without removal of \ escapes INIT.
25796 if test -n "\${ZSH_VERSION+set}" ; then
25797    setopt NO_GLOB_SUBST
25798 fi
25799
25800
25801     PACKAGE='$PACKAGE'
25802     VERSION='$VERSION'
25803     TIMESTAMP='$TIMESTAMP'
25804     RM='$RM'
25805     ofile='$ofile'
25806
25807
25808
25809
25810
25811
25812
25813
25814 _ACEOF
25815
25816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25817
25818 # Handling of arguments.
25819 for ac_config_target in $ac_config_targets
25820 do
25821   case $ac_config_target in
25822     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25823     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25824     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25825     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25826     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25827     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25828     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25829     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25830     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25831     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25832     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25833     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25834     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25835     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25836     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25837     "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" ;;
25838     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25839     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25840     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25841     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25842     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25843     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25844     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25845     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25846     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25847     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25848     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25849     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25850     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25851     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25852     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25853     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25854     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25855     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25856     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25857     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25858
25859   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25860   esac
25861 done
25862
25863
25864 # If the user did not use the arguments to specify the items to instantiate,
25865 # then the envvar interface is used.  Set only those that are not.
25866 # We use the long form for the default assignment because of an extremely
25867 # bizarre bug on SunOS 4.1.3.
25868 if $ac_need_defaults; then
25869   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25870   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25871   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25872   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25873 fi
25874
25875 # Have a temporary directory for convenience.  Make it in the build tree
25876 # simply because there is no reason against having it here, and in addition,
25877 # creating and moving files from /tmp can sometimes cause problems.
25878 # Hook for its removal unless debugging.
25879 # Note that there is a small window in which the directory will not be cleaned:
25880 # after its creation but before its name has been assigned to `$tmp'.
25881 $debug ||
25882 {
25883   tmp=
25884   trap 'exit_status=$?
25885   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25886 ' 0
25887   trap 'as_fn_exit 1' 1 2 13 15
25888 }
25889 # Create a (secure) tmp directory for tmp files.
25890
25891 {
25892   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25893   test -n "$tmp" && test -d "$tmp"
25894 }  ||
25895 {
25896   tmp=./conf$$-$RANDOM
25897   (umask 077 && mkdir "$tmp")
25898 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25899
25900 # Set up the scripts for CONFIG_FILES section.
25901 # No need to generate them if there are no CONFIG_FILES.
25902 # This happens for instance with `./config.status config.h'.
25903 if test -n "$CONFIG_FILES"; then
25904
25905
25906 ac_cr=`echo X | tr X '\015'`
25907 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25908 # But we know of no other shell where ac_cr would be empty at this
25909 # point, so we can use a bashism as a fallback.
25910 if test "x$ac_cr" = x; then
25911   eval ac_cr=\$\'\\r\'
25912 fi
25913 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25914 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25915   ac_cs_awk_cr='\r'
25916 else
25917   ac_cs_awk_cr=$ac_cr
25918 fi
25919
25920 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25921 _ACEOF
25922
25923
25924 {
25925   echo "cat >conf$$subs.awk <<_ACEOF" &&
25926   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25927   echo "_ACEOF"
25928 } >conf$$subs.sh ||
25929   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25930 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25931 ac_delim='%!_!# '
25932 for ac_last_try in false false false false false :; do
25933   . ./conf$$subs.sh ||
25934     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25935
25936   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25937   if test $ac_delim_n = $ac_delim_num; then
25938     break
25939   elif $ac_last_try; then
25940     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25941   else
25942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25943   fi
25944 done
25945 rm -f conf$$subs.sh
25946
25947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25948 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25949 _ACEOF
25950 sed -n '
25951 h
25952 s/^/S["/; s/!.*/"]=/
25953 p
25954 g
25955 s/^[^!]*!//
25956 :repl
25957 t repl
25958 s/'"$ac_delim"'$//
25959 t delim
25960 :nl
25961 h
25962 s/\(.\{148\}\).*/\1/
25963 t more1
25964 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25965 p
25966 n
25967 b repl
25968 :more1
25969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25970 p
25971 g
25972 s/.\{148\}//
25973 t nl
25974 :delim
25975 h
25976 s/\(.\{148\}\).*/\1/
25977 t more2
25978 s/["\\]/\\&/g; s/^/"/; s/$/"/
25979 p
25980 b
25981 :more2
25982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25983 p
25984 g
25985 s/.\{148\}//
25986 t delim
25987 ' <conf$$subs.awk | sed '
25988 /^[^""]/{
25989   N
25990   s/\n//
25991 }
25992 ' >>$CONFIG_STATUS || ac_write_fail=1
25993 rm -f conf$$subs.awk
25994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25995 _ACAWK
25996 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25997   for (key in S) S_is_set[key] = 1
25998   FS = "\a"
25999
26000 }
26001 {
26002   line = $ 0
26003   nfields = split(line, field, "@")
26004   substed = 0
26005   len = length(field[1])
26006   for (i = 2; i < nfields; i++) {
26007     key = field[i]
26008     keylen = length(key)
26009     if (S_is_set[key]) {
26010       value = S[key]
26011       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26012       len += length(value) + length(field[++i])
26013       substed = 1
26014     } else
26015       len += 1 + keylen
26016   }
26017
26018   print line
26019 }
26020
26021 _ACAWK
26022 _ACEOF
26023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26024 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26025   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26026 else
26027   cat
26028 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26029   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26030 _ACEOF
26031
26032 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26033 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26034 # trailing colons and then remove the whole line if VPATH becomes empty
26035 # (actually we leave an empty line to preserve line numbers).
26036 if test "x$srcdir" = x.; then
26037   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26038 s/:*\$(srcdir):*/:/
26039 s/:*\${srcdir}:*/:/
26040 s/:*@srcdir@:*/:/
26041 s/^\([^=]*=[     ]*\):*/\1/
26042 s/:*$//
26043 s/^[^=]*=[       ]*$//
26044 }'
26045 fi
26046
26047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26048 fi # test -n "$CONFIG_FILES"
26049
26050 # Set up the scripts for CONFIG_HEADERS section.
26051 # No need to generate them if there are no CONFIG_HEADERS.
26052 # This happens for instance with `./config.status Makefile'.
26053 if test -n "$CONFIG_HEADERS"; then
26054 cat >"$tmp/defines.awk" <<\_ACAWK ||
26055 BEGIN {
26056 _ACEOF
26057
26058 # Transform confdefs.h into an awk script `defines.awk', embedded as
26059 # here-document in config.status, that substitutes the proper values into
26060 # config.h.in to produce config.h.
26061
26062 # Create a delimiter string that does not exist in confdefs.h, to ease
26063 # handling of long lines.
26064 ac_delim='%!_!# '
26065 for ac_last_try in false false :; do
26066   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26067   if test -z "$ac_t"; then
26068     break
26069   elif $ac_last_try; then
26070     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26071   else
26072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26073   fi
26074 done
26075
26076 # For the awk script, D is an array of macro values keyed by name,
26077 # likewise P contains macro parameters if any.  Preserve backslash
26078 # newline sequences.
26079
26080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26081 sed -n '
26082 s/.\{148\}/&'"$ac_delim"'/g
26083 t rset
26084 :rset
26085 s/^[     ]*#[    ]*define[       ][      ]*/ /
26086 t def
26087 d
26088 :def
26089 s/\\$//
26090 t bsnl
26091 s/["\\]/\\&/g
26092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26093 D["\1"]=" \3"/p
26094 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26095 d
26096 :bsnl
26097 s/["\\]/\\&/g
26098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26099 D["\1"]=" \3\\\\\\n"\\/p
26100 t cont
26101 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26102 t cont
26103 d
26104 :cont
26105 n
26106 s/.\{148\}/&'"$ac_delim"'/g
26107 t clear
26108 :clear
26109 s/\\$//
26110 t bsnlc
26111 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26112 d
26113 :bsnlc
26114 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26115 b cont
26116 ' <confdefs.h | sed '
26117 s/'"$ac_delim"'/"\\\
26118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26119
26120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26121   for (key in D) D_is_set[key] = 1
26122   FS = "\a"
26123 }
26124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26125   line = \$ 0
26126   split(line, arg, " ")
26127   if (arg[1] == "#") {
26128     defundef = arg[2]
26129     mac1 = arg[3]
26130   } else {
26131     defundef = substr(arg[1], 2)
26132     mac1 = arg[2]
26133   }
26134   split(mac1, mac2, "(") #)
26135   macro = mac2[1]
26136   prefix = substr(line, 1, index(line, defundef) - 1)
26137   if (D_is_set[macro]) {
26138     # Preserve the white space surrounding the "#".
26139     print prefix "define", macro P[macro] D[macro]
26140     next
26141   } else {
26142     # Replace #undef with comments.  This is necessary, for example,
26143     # in the case of _POSIX_SOURCE, which is predefined and required
26144     # on some systems where configure will not decide to define it.
26145     if (defundef == "undef") {
26146       print "/*", prefix defundef, macro, "*/"
26147       next
26148     }
26149   }
26150 }
26151 { print }
26152 _ACAWK
26153 _ACEOF
26154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26155   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26156 fi # test -n "$CONFIG_HEADERS"
26157
26158
26159 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26160 shift
26161 for ac_tag
26162 do
26163   case $ac_tag in
26164   :[FHLC]) ac_mode=$ac_tag; continue;;
26165   esac
26166   case $ac_mode$ac_tag in
26167   :[FHL]*:*);;
26168   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26169   :[FH]-) ac_tag=-:-;;
26170   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26171   esac
26172   ac_save_IFS=$IFS
26173   IFS=:
26174   set x $ac_tag
26175   IFS=$ac_save_IFS
26176   shift
26177   ac_file=$1
26178   shift
26179
26180   case $ac_mode in
26181   :L) ac_source=$1;;
26182   :[FH])
26183     ac_file_inputs=
26184     for ac_f
26185     do
26186       case $ac_f in
26187       -) ac_f="$tmp/stdin";;
26188       *) # Look for the file first in the build tree, then in the source tree
26189          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26190          # because $ac_f cannot contain `:'.
26191          test -f "$ac_f" ||
26192            case $ac_f in
26193            [\\/$]*) false;;
26194            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26195            esac ||
26196            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26197       esac
26198       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26199       as_fn_append ac_file_inputs " '$ac_f'"
26200     done
26201
26202     # Let's still pretend it is `configure' which instantiates (i.e., don't
26203     # use $as_me), people would be surprised to read:
26204     #    /* config.h.  Generated by config.status.  */
26205     configure_input='Generated from '`
26206           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26207         `' by configure.'
26208     if test x"$ac_file" != x-; then
26209       configure_input="$ac_file.  $configure_input"
26210       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26211 $as_echo "$as_me: creating $ac_file" >&6;}
26212     fi
26213     # Neutralize special characters interpreted by sed in replacement strings.
26214     case $configure_input in #(
26215     *\&* | *\|* | *\\* )
26216        ac_sed_conf_input=`$as_echo "$configure_input" |
26217        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26218     *) ac_sed_conf_input=$configure_input;;
26219     esac
26220
26221     case $ac_tag in
26222     *:-:* | *:-) cat >"$tmp/stdin" \
26223       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26224     esac
26225     ;;
26226   esac
26227
26228   ac_dir=`$as_dirname -- "$ac_file" ||
26229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26230          X"$ac_file" : 'X\(//\)[^/]' \| \
26231          X"$ac_file" : 'X\(//\)$' \| \
26232          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26233 $as_echo X"$ac_file" |
26234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26235             s//\1/
26236             q
26237           }
26238           /^X\(\/\/\)[^/].*/{
26239             s//\1/
26240             q
26241           }
26242           /^X\(\/\/\)$/{
26243             s//\1/
26244             q
26245           }
26246           /^X\(\/\).*/{
26247             s//\1/
26248             q
26249           }
26250           s/.*/./; q'`
26251   as_dir="$ac_dir"; as_fn_mkdir_p
26252   ac_builddir=.
26253
26254 case "$ac_dir" in
26255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26256 *)
26257   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26258   # A ".." for each directory in $ac_dir_suffix.
26259   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26260   case $ac_top_builddir_sub in
26261   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26262   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26263   esac ;;
26264 esac
26265 ac_abs_top_builddir=$ac_pwd
26266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26267 # for backward compatibility:
26268 ac_top_builddir=$ac_top_build_prefix
26269
26270 case $srcdir in
26271   .)  # We are building in place.
26272     ac_srcdir=.
26273     ac_top_srcdir=$ac_top_builddir_sub
26274     ac_abs_top_srcdir=$ac_pwd ;;
26275   [\\/]* | ?:[\\/]* )  # Absolute name.
26276     ac_srcdir=$srcdir$ac_dir_suffix;
26277     ac_top_srcdir=$srcdir
26278     ac_abs_top_srcdir=$srcdir ;;
26279   *) # Relative name.
26280     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26281     ac_top_srcdir=$ac_top_build_prefix$srcdir
26282     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26283 esac
26284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26285
26286
26287   case $ac_mode in
26288   :F)
26289   #
26290   # CONFIG_FILE
26291   #
26292
26293   case $INSTALL in
26294   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26295   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26296   esac
26297   ac_MKDIR_P=$MKDIR_P
26298   case $MKDIR_P in
26299   [\\/$]* | ?:[\\/]* ) ;;
26300   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26301   esac
26302 _ACEOF
26303
26304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26305 # If the template does not know about datarootdir, expand it.
26306 # FIXME: This hack should be removed a few years after 2.60.
26307 ac_datarootdir_hack=; ac_datarootdir_seen=
26308 ac_sed_dataroot='
26309 /datarootdir/ {
26310   p
26311   q
26312 }
26313 /@datadir@/p
26314 /@docdir@/p
26315 /@infodir@/p
26316 /@localedir@/p
26317 /@mandir@/p'
26318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26319 *datarootdir*) ac_datarootdir_seen=yes;;
26320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26321   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26323 _ACEOF
26324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26325   ac_datarootdir_hack='
26326   s&@datadir@&$datadir&g
26327   s&@docdir@&$docdir&g
26328   s&@infodir@&$infodir&g
26329   s&@localedir@&$localedir&g
26330   s&@mandir@&$mandir&g
26331   s&\\\${datarootdir}&$datarootdir&g' ;;
26332 esac
26333 _ACEOF
26334
26335 # Neutralize VPATH when `$srcdir' = `.'.
26336 # Shell code in configure.ac might set extrasub.
26337 # FIXME: do we really want to maintain this feature?
26338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26339 ac_sed_extra="$ac_vpsub
26340 $extrasub
26341 _ACEOF
26342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26343 :t
26344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26345 s|@configure_input@|$ac_sed_conf_input|;t t
26346 s&@top_builddir@&$ac_top_builddir_sub&;t t
26347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26348 s&@srcdir@&$ac_srcdir&;t t
26349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26350 s&@top_srcdir@&$ac_top_srcdir&;t t
26351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26352 s&@builddir@&$ac_builddir&;t t
26353 s&@abs_builddir@&$ac_abs_builddir&;t t
26354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26355 s&@INSTALL@&$ac_INSTALL&;t t
26356 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26357 $ac_datarootdir_hack
26358 "
26359 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26360   || as_fn_error "could not create $ac_file" "$LINENO" 5
26361
26362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26363   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26364   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26365   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26366 which seems to be undefined.  Please make sure it is defined." >&5
26367 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26368 which seems to be undefined.  Please make sure it is defined." >&2;}
26369
26370   rm -f "$tmp/stdin"
26371   case $ac_file in
26372   -) cat "$tmp/out" && rm -f "$tmp/out";;
26373   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26374   esac \
26375   || as_fn_error "could not create $ac_file" "$LINENO" 5
26376  ;;
26377   :H)
26378   #
26379   # CONFIG_HEADER
26380   #
26381   if test x"$ac_file" != x-; then
26382     {
26383       $as_echo "/* $configure_input  */" \
26384       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26385     } >"$tmp/config.h" \
26386       || as_fn_error "could not create $ac_file" "$LINENO" 5
26387     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26388       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26389 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26390     else
26391       rm -f "$ac_file"
26392       mv "$tmp/config.h" "$ac_file" \
26393         || as_fn_error "could not create $ac_file" "$LINENO" 5
26394     fi
26395   else
26396     $as_echo "/* $configure_input  */" \
26397       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26398       || as_fn_error "could not create -" "$LINENO" 5
26399   fi
26400 # Compute "$ac_file"'s index in $config_headers.
26401 _am_arg="$ac_file"
26402 _am_stamp_count=1
26403 for _am_header in $config_headers :; do
26404   case $_am_header in
26405     $_am_arg | $_am_arg:* )
26406       break ;;
26407     * )
26408       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26409   esac
26410 done
26411 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26412 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26413          X"$_am_arg" : 'X\(//\)[^/]' \| \
26414          X"$_am_arg" : 'X\(//\)$' \| \
26415          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26416 $as_echo X"$_am_arg" |
26417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26418             s//\1/
26419             q
26420           }
26421           /^X\(\/\/\)[^/].*/{
26422             s//\1/
26423             q
26424           }
26425           /^X\(\/\/\)$/{
26426             s//\1/
26427             q
26428           }
26429           /^X\(\/\).*/{
26430             s//\1/
26431             q
26432           }
26433           s/.*/./; q'`/stamp-h$_am_stamp_count
26434  ;;
26435   :L)
26436   #
26437   # CONFIG_LINK
26438   #
26439
26440   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26441     :
26442   else
26443     # Prefer the file from the source tree if names are identical.
26444     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26445       ac_source=$srcdir/$ac_source
26446     fi
26447
26448     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26449 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26450
26451     if test ! -r "$ac_source"; then
26452       as_fn_error "$ac_source: file not found" "$LINENO" 5
26453     fi
26454     rm -f "$ac_file"
26455
26456     # Try a relative symlink, then a hard link, then a copy.
26457     case $srcdir in
26458     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26459         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26460     esac
26461     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26462       ln "$ac_source" "$ac_file" 2>/dev/null ||
26463       cp -p "$ac_source" "$ac_file" ||
26464       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26465   fi
26466  ;;
26467   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26468 $as_echo "$as_me: executing $ac_file commands" >&6;}
26469  ;;
26470   esac
26471
26472
26473   case $ac_file$ac_mode in
26474     "default-1":C)
26475 # Only add multilib support code if we just rebuilt the top-level
26476 # Makefile.
26477 case " $CONFIG_FILES " in
26478  *" Makefile "*)
26479    ac_file=Makefile . ${multi_basedir}/config-ml.in
26480    ;;
26481 esac ;;
26482     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26483   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26484   # are listed without --file.  Let's play safe and only enable the eval
26485   # if we detect the quoting.
26486   case $CONFIG_FILES in
26487   *\'*) eval set x "$CONFIG_FILES" ;;
26488   *)   set x $CONFIG_FILES ;;
26489   esac
26490   shift
26491   for mf
26492   do
26493     # Strip MF so we end up with the name of the file.
26494     mf=`echo "$mf" | sed -e 's/:.*$//'`
26495     # Check whether this is an Automake generated Makefile or not.
26496     # We used to match only the files named `Makefile.in', but
26497     # some people rename them; so instead we look at the file content.
26498     # Grep'ing the first line is not enough: some people post-process
26499     # each Makefile.in and add a new line on top of each file to say so.
26500     # Grep'ing the whole file is not good either: AIX grep has a line
26501     # limit of 2048, but all sed's we know have understand at least 4000.
26502     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26503       dirpart=`$as_dirname -- "$mf" ||
26504 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26505          X"$mf" : 'X\(//\)[^/]' \| \
26506          X"$mf" : 'X\(//\)$' \| \
26507          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26508 $as_echo X"$mf" |
26509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26510             s//\1/
26511             q
26512           }
26513           /^X\(\/\/\)[^/].*/{
26514             s//\1/
26515             q
26516           }
26517           /^X\(\/\/\)$/{
26518             s//\1/
26519             q
26520           }
26521           /^X\(\/\).*/{
26522             s//\1/
26523             q
26524           }
26525           s/.*/./; q'`
26526     else
26527       continue
26528     fi
26529     # Extract the definition of DEPDIR, am__include, and am__quote
26530     # from the Makefile without running `make'.
26531     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26532     test -z "$DEPDIR" && continue
26533     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26534     test -z "am__include" && continue
26535     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26536     # When using ansi2knr, U may be empty or an underscore; expand it
26537     U=`sed -n 's/^U = //p' < "$mf"`
26538     # Find all dependency output files, they are included files with
26539     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26540     # simplest approach to changing $(DEPDIR) to its actual value in the
26541     # expansion.
26542     for file in `sed -n "
26543       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26544          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26545       # Make sure the directory exists.
26546       test -f "$dirpart/$file" && continue
26547       fdir=`$as_dirname -- "$file" ||
26548 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26549          X"$file" : 'X\(//\)[^/]' \| \
26550          X"$file" : 'X\(//\)$' \| \
26551          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26552 $as_echo X"$file" |
26553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26554             s//\1/
26555             q
26556           }
26557           /^X\(\/\/\)[^/].*/{
26558             s//\1/
26559             q
26560           }
26561           /^X\(\/\/\)$/{
26562             s//\1/
26563             q
26564           }
26565           /^X\(\/\).*/{
26566             s//\1/
26567             q
26568           }
26569           s/.*/./; q'`
26570       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26571       # echo "creating $dirpart/$file"
26572       echo '# dummy' > "$dirpart/$file"
26573     done
26574   done
26575 }
26576  ;;
26577     "libtool":C)
26578
26579     # See if we are running on zsh, and set the options which allow our
26580     # commands through without removal of \ escapes.
26581     if test -n "${ZSH_VERSION+set}" ; then
26582       setopt NO_GLOB_SUBST
26583     fi
26584
26585     cfgfile="${ofile}T"
26586     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26587     $RM "$cfgfile"
26588
26589     cat <<_LT_EOF >> "$cfgfile"
26590 #! $SHELL
26591
26592 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26593 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26596 #
26597 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26598 #                 2006, 2007, 2008 Free Software Foundation, Inc.
26599 #   Written by Gordon Matzigkeit, 1996
26600 #
26601 #   This file is part of GNU Libtool.
26602 #
26603 # GNU Libtool is free software; you can redistribute it and/or
26604 # modify it under the terms of the GNU General Public License as
26605 # published by the Free Software Foundation; either version 2 of
26606 # the License, or (at your option) any later version.
26607 #
26608 # As a special exception to the GNU General Public License,
26609 # if you distribute this file as part of a program or library that
26610 # is built using GNU Libtool, you may include this file under the
26611 # same distribution terms that you use for the rest of that program.
26612 #
26613 # GNU Libtool is distributed in the hope that it will be useful,
26614 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26615 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26616 # GNU General Public License for more details.
26617 #
26618 # You should have received a copy of the GNU General Public License
26619 # along with GNU Libtool; see the file COPYING.  If not, a copy
26620 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26621 # obtained by writing to the Free Software Foundation, Inc.,
26622 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26623
26624
26625 # The names of the tagged configurations supported by this script.
26626 available_tags="CXX GCJ "
26627
26628 # ### BEGIN LIBTOOL CONFIG
26629
26630 # Which release of libtool.m4 was used?
26631 macro_version=$macro_version
26632 macro_revision=$macro_revision
26633
26634 # Whether or not to build shared libraries.
26635 build_libtool_libs=$enable_shared
26636
26637 # Whether or not to build static libraries.
26638 build_old_libs=$enable_static
26639
26640 # What type of objects to build.
26641 pic_mode=$pic_mode
26642
26643 # Whether or not to optimize for fast installation.
26644 fast_install=$enable_fast_install
26645
26646 # The host system.
26647 host_alias=$host_alias
26648 host=$host
26649 host_os=$host_os
26650
26651 # The build system.
26652 build_alias=$build_alias
26653 build=$build
26654 build_os=$build_os
26655
26656 # A sed program that does not truncate output.
26657 SED=$lt_SED
26658
26659 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26660 Xsed="\$SED -e 1s/^X//"
26661
26662 # A grep program that handles long lines.
26663 GREP=$lt_GREP
26664
26665 # An ERE matcher.
26666 EGREP=$lt_EGREP
26667
26668 # A literal string matcher.
26669 FGREP=$lt_FGREP
26670
26671 # A BSD- or MS-compatible name lister.
26672 NM=$lt_NM
26673
26674 # Whether we need soft or hard links.
26675 LN_S=$lt_LN_S
26676
26677 # What is the maximum length of a command?
26678 max_cmd_len=$max_cmd_len
26679
26680 # Object file suffix (normally "o").
26681 objext=$ac_objext
26682
26683 # Executable file suffix (normally "").
26684 exeext=$exeext
26685
26686 # whether the shell understands "unset".
26687 lt_unset=$lt_unset
26688
26689 # turn spaces into newlines.
26690 SP2NL=$lt_lt_SP2NL
26691
26692 # turn newlines into spaces.
26693 NL2SP=$lt_lt_NL2SP
26694
26695 # How to create reloadable object files.
26696 reload_flag=$lt_reload_flag
26697 reload_cmds=$lt_reload_cmds
26698
26699 # An object symbol dumper.
26700 OBJDUMP=$lt_OBJDUMP
26701
26702 # Method to check whether dependent libraries are shared objects.
26703 deplibs_check_method=$lt_deplibs_check_method
26704
26705 # Command to use when deplibs_check_method == "file_magic".
26706 file_magic_cmd=$lt_file_magic_cmd
26707
26708 # The archiver.
26709 AR=$lt_AR
26710 AR_FLAGS=$lt_AR_FLAGS
26711
26712 # A symbol stripping program.
26713 STRIP=$lt_STRIP
26714
26715 # Commands used to install an old-style archive.
26716 RANLIB=$lt_RANLIB
26717 old_postinstall_cmds=$lt_old_postinstall_cmds
26718 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26719
26720 # A C compiler.
26721 LTCC=$lt_CC
26722
26723 # LTCC compiler flags.
26724 LTCFLAGS=$lt_CFLAGS
26725
26726 # Take the output of nm and produce a listing of raw symbols and C names.
26727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26728
26729 # Transform the output of nm in a proper C declaration.
26730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26731
26732 # Transform the output of nm in a C name address pair.
26733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26734
26735 # Transform the output of nm in a C name address pair when lib prefix is needed.
26736 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26737
26738 # The name of the directory that contains temporary libtool files.
26739 objdir=$objdir
26740
26741 # Shell to use when invoking shell scripts.
26742 SHELL=$lt_SHELL
26743
26744 # An echo program that does not interpret backslashes.
26745 ECHO=$lt_ECHO
26746
26747 # Used to examine libraries when file_magic_cmd begins with "file".
26748 MAGIC_CMD=$MAGIC_CMD
26749
26750 # Must we lock files when doing compilation?
26751 need_locks=$lt_need_locks
26752
26753 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26754 DSYMUTIL=$lt_DSYMUTIL
26755
26756 # Tool to change global to local symbols on Mac OS X.
26757 NMEDIT=$lt_NMEDIT
26758
26759 # Tool to manipulate fat objects and archives on Mac OS X.
26760 LIPO=$lt_LIPO
26761
26762 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26763 OTOOL=$lt_OTOOL
26764
26765 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26766 OTOOL64=$lt_OTOOL64
26767
26768 # Old archive suffix (normally "a").
26769 libext=$libext
26770
26771 # Shared library suffix (normally ".so").
26772 shrext_cmds=$lt_shrext_cmds
26773
26774 # The commands to extract the exported symbol list from a shared archive.
26775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26776
26777 # Variables whose values should be saved in libtool wrapper scripts and
26778 # restored at link time.
26779 variables_saved_for_relink=$lt_variables_saved_for_relink
26780
26781 # Do we need the "lib" prefix for modules?
26782 need_lib_prefix=$need_lib_prefix
26783
26784 # Do we need a version for libraries?
26785 need_version=$need_version
26786
26787 # Library versioning type.
26788 version_type=$version_type
26789
26790 # Shared library runtime path variable.
26791 runpath_var=$runpath_var
26792
26793 # Shared library path variable.
26794 shlibpath_var=$shlibpath_var
26795
26796 # Is shlibpath searched before the hard-coded library search path?
26797 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26798
26799 # Format of library name prefix.
26800 libname_spec=$lt_libname_spec
26801
26802 # List of archive names.  First name is the real one, the rest are links.
26803 # The last name is the one that the linker finds with -lNAME
26804 library_names_spec=$lt_library_names_spec
26805
26806 # The coded name of the library, if different from the real name.
26807 soname_spec=$lt_soname_spec
26808
26809 # Command to use after installation of a shared archive.
26810 postinstall_cmds=$lt_postinstall_cmds
26811
26812 # Command to use after uninstallation of a shared archive.
26813 postuninstall_cmds=$lt_postuninstall_cmds
26814
26815 # Commands used to finish a libtool library installation in a directory.
26816 finish_cmds=$lt_finish_cmds
26817
26818 # As "finish_cmds", except a single script fragment to be evaled but
26819 # not shown.
26820 finish_eval=$lt_finish_eval
26821
26822 # Whether we should hardcode library paths into libraries.
26823 hardcode_into_libs=$hardcode_into_libs
26824
26825 # Compile-time system search path for libraries.
26826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26827
26828 # Run-time system search path for libraries.
26829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26830
26831 # Whether dlopen is supported.
26832 dlopen_support=$enable_dlopen
26833
26834 # Whether dlopen of programs is supported.
26835 dlopen_self=$enable_dlopen_self
26836
26837 # Whether dlopen of statically linked programs is supported.
26838 dlopen_self_static=$enable_dlopen_self_static
26839
26840 # Commands to strip libraries.
26841 old_striplib=$lt_old_striplib
26842 striplib=$lt_striplib
26843
26844
26845 # The linker used to build libraries.
26846 LD=$lt_LD
26847
26848 # Commands used to build an old-style archive.
26849 old_archive_cmds=$lt_old_archive_cmds
26850
26851 # A language specific compiler.
26852 CC=$lt_compiler
26853
26854 # Is the compiler the GNU compiler?
26855 with_gcc=$GCC
26856
26857 # Compiler flag to turn off builtin functions.
26858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26859
26860 # How to pass a linker flag through the compiler.
26861 wl=$lt_lt_prog_compiler_wl
26862
26863 # Additional compiler flags for building library objects.
26864 pic_flag=$lt_lt_prog_compiler_pic
26865
26866 # Compiler flag to prevent dynamic linking.
26867 link_static_flag=$lt_lt_prog_compiler_static
26868
26869 # Does compiler simultaneously support -c and -o options?
26870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26871
26872 # Whether or not to add -lc for building shared libraries.
26873 build_libtool_need_lc=$archive_cmds_need_lc
26874
26875 # Whether or not to disallow shared libs when runtime libs are static.
26876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26877
26878 # Compiler flag to allow reflexive dlopens.
26879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26880
26881 # Compiler flag to generate shared objects directly from archives.
26882 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26883
26884 # Whether the compiler copes with passing no objects directly.
26885 compiler_needs_object=$lt_compiler_needs_object
26886
26887 # Create an old-style archive from a shared archive.
26888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26889
26890 # Create a temporary old-style archive to link instead of a shared archive.
26891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26892
26893 # Commands used to build a shared archive.
26894 archive_cmds=$lt_archive_cmds
26895 archive_expsym_cmds=$lt_archive_expsym_cmds
26896
26897 # Commands used to build a loadable module if different from building
26898 # a shared archive.
26899 module_cmds=$lt_module_cmds
26900 module_expsym_cmds=$lt_module_expsym_cmds
26901
26902 # Whether we are building with GNU ld or not.
26903 with_gnu_ld=$lt_with_gnu_ld
26904
26905 # Flag that allows shared libraries with undefined symbols to be built.
26906 allow_undefined_flag=$lt_allow_undefined_flag
26907
26908 # Flag that enforces no undefined symbols.
26909 no_undefined_flag=$lt_no_undefined_flag
26910
26911 # Flag to hardcode \$libdir into a binary during linking.
26912 # This must work even if \$libdir does not exist
26913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26914
26915 # If ld is used when linking, flag to hardcode \$libdir into a binary
26916 # during linking.  This must work even if \$libdir does not exist.
26917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26918
26919 # Whether we need a single "-rpath" flag with a separated argument.
26920 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26921
26922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26923 # DIR into the resulting binary.
26924 hardcode_direct=$hardcode_direct
26925
26926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26927 # DIR into the resulting binary and the resulting library dependency is
26928 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26929 # library is relocated.
26930 hardcode_direct_absolute=$hardcode_direct_absolute
26931
26932 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26933 # into the resulting binary.
26934 hardcode_minus_L=$hardcode_minus_L
26935
26936 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26937 # into the resulting binary.
26938 hardcode_shlibpath_var=$hardcode_shlibpath_var
26939
26940 # Set to "yes" if building a shared library automatically hardcodes DIR
26941 # into the library and all subsequent libraries and executables linked
26942 # against it.
26943 hardcode_automatic=$hardcode_automatic
26944
26945 # Set to yes if linker adds runtime paths of dependent libraries
26946 # to runtime path list.
26947 inherit_rpath=$inherit_rpath
26948
26949 # Whether libtool must link a program against all its dependency libraries.
26950 link_all_deplibs=$link_all_deplibs
26951
26952 # Fix the shell variable \$srcfile for the compiler.
26953 fix_srcfile_path=$lt_fix_srcfile_path
26954
26955 # Set to "yes" if exported symbols are required.
26956 always_export_symbols=$always_export_symbols
26957
26958 # The commands to list exported symbols.
26959 export_symbols_cmds=$lt_export_symbols_cmds
26960
26961 # Symbols that should not be listed in the preloaded symbols.
26962 exclude_expsyms=$lt_exclude_expsyms
26963
26964 # Symbols that must always be exported.
26965 include_expsyms=$lt_include_expsyms
26966
26967 # Commands necessary for linking programs (against libraries) with templates.
26968 prelink_cmds=$lt_prelink_cmds
26969
26970 # Specify filename containing input files.
26971 file_list_spec=$lt_file_list_spec
26972
26973 # How to hardcode a shared library path into an executable.
26974 hardcode_action=$hardcode_action
26975
26976 # The directories searched by this compiler when creating a shared library.
26977 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26978
26979 # Dependencies to place before and after the objects being linked to
26980 # create a shared library.
26981 predep_objects=$lt_predep_objects
26982 postdep_objects=$lt_postdep_objects
26983 predeps=$lt_predeps
26984 postdeps=$lt_postdeps
26985
26986 # The library search path used internally by the compiler when linking
26987 # a shared library.
26988 compiler_lib_search_path=$lt_compiler_lib_search_path
26989
26990 # ### END LIBTOOL CONFIG
26991
26992 _LT_EOF
26993
26994   case $host_os in
26995   aix3*)
26996     cat <<\_LT_EOF >> "$cfgfile"
26997 # AIX sometimes has problems with the GCC collect2 program.  For some
26998 # reason, if we set the COLLECT_NAMES environment variable, the problems
26999 # vanish in a puff of smoke.
27000 if test "X${COLLECT_NAMES+set}" != Xset; then
27001   COLLECT_NAMES=
27002   export COLLECT_NAMES
27003 fi
27004 _LT_EOF
27005     ;;
27006   esac
27007
27008
27009 ltmain="$ac_aux_dir/ltmain.sh"
27010
27011
27012   # We use sed instead of cat because bash on DJGPP gets confused if
27013   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27014   # text mode, it properly converts lines to CR/LF.  This bash problem
27015   # is reportedly fixed, but why not run on old versions too?
27016   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27017     || (rm -f "$cfgfile"; exit 1)
27018
27019   case $xsi_shell in
27020   yes)
27021     cat << \_LT_EOF >> "$cfgfile"
27022
27023 # func_dirname file append nondir_replacement
27024 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27025 # otherwise set result to NONDIR_REPLACEMENT.
27026 func_dirname ()
27027 {
27028   case ${1} in
27029     */*) func_dirname_result="${1%/*}${2}" ;;
27030     *  ) func_dirname_result="${3}" ;;
27031   esac
27032 }
27033
27034 # func_basename file
27035 func_basename ()
27036 {
27037   func_basename_result="${1##*/}"
27038 }
27039
27040 # func_dirname_and_basename file append nondir_replacement
27041 # perform func_basename and func_dirname in a single function
27042 # call:
27043 #   dirname:  Compute the dirname of FILE.  If nonempty,
27044 #             add APPEND to the result, otherwise set result
27045 #             to NONDIR_REPLACEMENT.
27046 #             value returned in "$func_dirname_result"
27047 #   basename: Compute filename of FILE.
27048 #             value retuned in "$func_basename_result"
27049 # Implementation must be kept synchronized with func_dirname
27050 # and func_basename. For efficiency, we do not delegate to
27051 # those functions but instead duplicate the functionality here.
27052 func_dirname_and_basename ()
27053 {
27054   case ${1} in
27055     */*) func_dirname_result="${1%/*}${2}" ;;
27056     *  ) func_dirname_result="${3}" ;;
27057   esac
27058   func_basename_result="${1##*/}"
27059 }
27060
27061 # func_stripname prefix suffix name
27062 # strip PREFIX and SUFFIX off of NAME.
27063 # PREFIX and SUFFIX must not contain globbing or regex special
27064 # characters, hashes, percent signs, but SUFFIX may contain a leading
27065 # dot (in which case that matches only a dot).
27066 func_stripname ()
27067 {
27068   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27069   # positional parameters, so assign one to ordinary parameter first.
27070   func_stripname_result=${3}
27071   func_stripname_result=${func_stripname_result#"${1}"}
27072   func_stripname_result=${func_stripname_result%"${2}"}
27073 }
27074
27075 # func_opt_split
27076 func_opt_split ()
27077 {
27078   func_opt_split_opt=${1%%=*}
27079   func_opt_split_arg=${1#*=}
27080 }
27081
27082 # func_lo2o object
27083 func_lo2o ()
27084 {
27085   case ${1} in
27086     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27087     *)    func_lo2o_result=${1} ;;
27088   esac
27089 }
27090
27091 # func_xform libobj-or-source
27092 func_xform ()
27093 {
27094   func_xform_result=${1%.*}.lo
27095 }
27096
27097 # func_arith arithmetic-term...
27098 func_arith ()
27099 {
27100   func_arith_result=$(( $* ))
27101 }
27102
27103 # func_len string
27104 # STRING may not start with a hyphen.
27105 func_len ()
27106 {
27107   func_len_result=${#1}
27108 }
27109
27110 _LT_EOF
27111     ;;
27112   *) # Bourne compatible functions.
27113     cat << \_LT_EOF >> "$cfgfile"
27114
27115 # func_dirname file append nondir_replacement
27116 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27117 # otherwise set result to NONDIR_REPLACEMENT.
27118 func_dirname ()
27119 {
27120   # Extract subdirectory from the argument.
27121   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27122   if test "X$func_dirname_result" = "X${1}"; then
27123     func_dirname_result="${3}"
27124   else
27125     func_dirname_result="$func_dirname_result${2}"
27126   fi
27127 }
27128
27129 # func_basename file
27130 func_basename ()
27131 {
27132   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27133 }
27134
27135
27136 # func_stripname prefix suffix name
27137 # strip PREFIX and SUFFIX off of NAME.
27138 # PREFIX and SUFFIX must not contain globbing or regex special
27139 # characters, hashes, percent signs, but SUFFIX may contain a leading
27140 # dot (in which case that matches only a dot).
27141 # func_strip_suffix prefix name
27142 func_stripname ()
27143 {
27144   case ${2} in
27145     .*) func_stripname_result=`$ECHO "X${3}" \
27146            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27147     *)  func_stripname_result=`$ECHO "X${3}" \
27148            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27149   esac
27150 }
27151
27152 # sed scripts:
27153 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27154 my_sed_long_arg='1s/^-[^=]*=//'
27155
27156 # func_opt_split
27157 func_opt_split ()
27158 {
27159   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27160   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27161 }
27162
27163 # func_lo2o object
27164 func_lo2o ()
27165 {
27166   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27167 }
27168
27169 # func_xform libobj-or-source
27170 func_xform ()
27171 {
27172   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27173 }
27174
27175 # func_arith arithmetic-term...
27176 func_arith ()
27177 {
27178   func_arith_result=`expr "$@"`
27179 }
27180
27181 # func_len string
27182 # STRING may not start with a hyphen.
27183 func_len ()
27184 {
27185   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27186 }
27187
27188 _LT_EOF
27189 esac
27190
27191 case $lt_shell_append in
27192   yes)
27193     cat << \_LT_EOF >> "$cfgfile"
27194
27195 # func_append var value
27196 # Append VALUE to the end of shell variable VAR.
27197 func_append ()
27198 {
27199   eval "$1+=\$2"
27200 }
27201 _LT_EOF
27202     ;;
27203   *)
27204     cat << \_LT_EOF >> "$cfgfile"
27205
27206 # func_append var value
27207 # Append VALUE to the end of shell variable VAR.
27208 func_append ()
27209 {
27210   eval "$1=\$$1\$2"
27211 }
27212
27213 _LT_EOF
27214     ;;
27215   esac
27216
27217
27218   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27219     || (rm -f "$cfgfile"; exit 1)
27220
27221   mv -f "$cfgfile" "$ofile" ||
27222     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27223   chmod +x "$ofile"
27224
27225
27226     cat <<_LT_EOF >> "$ofile"
27227
27228 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27229
27230 # The linker used to build libraries.
27231 LD=$lt_LD_CXX
27232
27233 # Commands used to build an old-style archive.
27234 old_archive_cmds=$lt_old_archive_cmds_CXX
27235
27236 # A language specific compiler.
27237 CC=$lt_compiler_CXX
27238
27239 # Is the compiler the GNU compiler?
27240 with_gcc=$GCC_CXX
27241
27242 # Compiler flag to turn off builtin functions.
27243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27244
27245 # How to pass a linker flag through the compiler.
27246 wl=$lt_lt_prog_compiler_wl_CXX
27247
27248 # Additional compiler flags for building library objects.
27249 pic_flag=$lt_lt_prog_compiler_pic_CXX
27250
27251 # Compiler flag to prevent dynamic linking.
27252 link_static_flag=$lt_lt_prog_compiler_static_CXX
27253
27254 # Does compiler simultaneously support -c and -o options?
27255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27256
27257 # Whether or not to add -lc for building shared libraries.
27258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27259
27260 # Whether or not to disallow shared libs when runtime libs are static.
27261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27262
27263 # Compiler flag to allow reflexive dlopens.
27264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27265
27266 # Compiler flag to generate shared objects directly from archives.
27267 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27268
27269 # Whether the compiler copes with passing no objects directly.
27270 compiler_needs_object=$lt_compiler_needs_object_CXX
27271
27272 # Create an old-style archive from a shared archive.
27273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27274
27275 # Create a temporary old-style archive to link instead of a shared archive.
27276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27277
27278 # Commands used to build a shared archive.
27279 archive_cmds=$lt_archive_cmds_CXX
27280 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27281
27282 # Commands used to build a loadable module if different from building
27283 # a shared archive.
27284 module_cmds=$lt_module_cmds_CXX
27285 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27286
27287 # Whether we are building with GNU ld or not.
27288 with_gnu_ld=$lt_with_gnu_ld_CXX
27289
27290 # Flag that allows shared libraries with undefined symbols to be built.
27291 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27292
27293 # Flag that enforces no undefined symbols.
27294 no_undefined_flag=$lt_no_undefined_flag_CXX
27295
27296 # Flag to hardcode \$libdir into a binary during linking.
27297 # This must work even if \$libdir does not exist
27298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27299
27300 # If ld is used when linking, flag to hardcode \$libdir into a binary
27301 # during linking.  This must work even if \$libdir does not exist.
27302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27303
27304 # Whether we need a single "-rpath" flag with a separated argument.
27305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27306
27307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27308 # DIR into the resulting binary.
27309 hardcode_direct=$hardcode_direct_CXX
27310
27311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27312 # DIR into the resulting binary and the resulting library dependency is
27313 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27314 # library is relocated.
27315 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27316
27317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27318 # into the resulting binary.
27319 hardcode_minus_L=$hardcode_minus_L_CXX
27320
27321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27322 # into the resulting binary.
27323 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27324
27325 # Set to "yes" if building a shared library automatically hardcodes DIR
27326 # into the library and all subsequent libraries and executables linked
27327 # against it.
27328 hardcode_automatic=$hardcode_automatic_CXX
27329
27330 # Set to yes if linker adds runtime paths of dependent libraries
27331 # to runtime path list.
27332 inherit_rpath=$inherit_rpath_CXX
27333
27334 # Whether libtool must link a program against all its dependency libraries.
27335 link_all_deplibs=$link_all_deplibs_CXX
27336
27337 # Fix the shell variable \$srcfile for the compiler.
27338 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27339
27340 # Set to "yes" if exported symbols are required.
27341 always_export_symbols=$always_export_symbols_CXX
27342
27343 # The commands to list exported symbols.
27344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27345
27346 # Symbols that should not be listed in the preloaded symbols.
27347 exclude_expsyms=$lt_exclude_expsyms_CXX
27348
27349 # Symbols that must always be exported.
27350 include_expsyms=$lt_include_expsyms_CXX
27351
27352 # Commands necessary for linking programs (against libraries) with templates.
27353 prelink_cmds=$lt_prelink_cmds_CXX
27354
27355 # Specify filename containing input files.
27356 file_list_spec=$lt_file_list_spec_CXX
27357
27358 # How to hardcode a shared library path into an executable.
27359 hardcode_action=$hardcode_action_CXX
27360
27361 # The directories searched by this compiler when creating a shared library.
27362 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27363
27364 # Dependencies to place before and after the objects being linked to
27365 # create a shared library.
27366 predep_objects=$lt_predep_objects_CXX
27367 postdep_objects=$lt_postdep_objects_CXX
27368 predeps=$lt_predeps_CXX
27369 postdeps=$lt_postdeps_CXX
27370
27371 # The library search path used internally by the compiler when linking
27372 # a shared library.
27373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27374
27375 # ### END LIBTOOL TAG CONFIG: CXX
27376 _LT_EOF
27377
27378
27379     cat <<_LT_EOF >> "$ofile"
27380
27381 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27382
27383 # The linker used to build libraries.
27384 LD=$lt_LD_GCJ
27385
27386 # Commands used to build an old-style archive.
27387 old_archive_cmds=$lt_old_archive_cmds_GCJ
27388
27389 # A language specific compiler.
27390 CC=$lt_compiler_GCJ
27391
27392 # Is the compiler the GNU compiler?
27393 with_gcc=$GCC_GCJ
27394
27395 # Compiler flag to turn off builtin functions.
27396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27397
27398 # How to pass a linker flag through the compiler.
27399 wl=$lt_lt_prog_compiler_wl_GCJ
27400
27401 # Additional compiler flags for building library objects.
27402 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27403
27404 # Compiler flag to prevent dynamic linking.
27405 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27406
27407 # Does compiler simultaneously support -c and -o options?
27408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27409
27410 # Whether or not to add -lc for building shared libraries.
27411 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27412
27413 # Whether or not to disallow shared libs when runtime libs are static.
27414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27415
27416 # Compiler flag to allow reflexive dlopens.
27417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27418
27419 # Compiler flag to generate shared objects directly from archives.
27420 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27421
27422 # Whether the compiler copes with passing no objects directly.
27423 compiler_needs_object=$lt_compiler_needs_object_GCJ
27424
27425 # Create an old-style archive from a shared archive.
27426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27427
27428 # Create a temporary old-style archive to link instead of a shared archive.
27429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27430
27431 # Commands used to build a shared archive.
27432 archive_cmds=$lt_archive_cmds_GCJ
27433 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27434
27435 # Commands used to build a loadable module if different from building
27436 # a shared archive.
27437 module_cmds=$lt_module_cmds_GCJ
27438 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27439
27440 # Whether we are building with GNU ld or not.
27441 with_gnu_ld=$lt_with_gnu_ld_GCJ
27442
27443 # Flag that allows shared libraries with undefined symbols to be built.
27444 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27445
27446 # Flag that enforces no undefined symbols.
27447 no_undefined_flag=$lt_no_undefined_flag_GCJ
27448
27449 # Flag to hardcode \$libdir into a binary during linking.
27450 # This must work even if \$libdir does not exist
27451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27452
27453 # If ld is used when linking, flag to hardcode \$libdir into a binary
27454 # during linking.  This must work even if \$libdir does not exist.
27455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27456
27457 # Whether we need a single "-rpath" flag with a separated argument.
27458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27459
27460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27461 # DIR into the resulting binary.
27462 hardcode_direct=$hardcode_direct_GCJ
27463
27464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27465 # DIR into the resulting binary and the resulting library dependency is
27466 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27467 # library is relocated.
27468 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27469
27470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27471 # into the resulting binary.
27472 hardcode_minus_L=$hardcode_minus_L_GCJ
27473
27474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27475 # into the resulting binary.
27476 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27477
27478 # Set to "yes" if building a shared library automatically hardcodes DIR
27479 # into the library and all subsequent libraries and executables linked
27480 # against it.
27481 hardcode_automatic=$hardcode_automatic_GCJ
27482
27483 # Set to yes if linker adds runtime paths of dependent libraries
27484 # to runtime path list.
27485 inherit_rpath=$inherit_rpath_GCJ
27486
27487 # Whether libtool must link a program against all its dependency libraries.
27488 link_all_deplibs=$link_all_deplibs_GCJ
27489
27490 # Fix the shell variable \$srcfile for the compiler.
27491 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27492
27493 # Set to "yes" if exported symbols are required.
27494 always_export_symbols=$always_export_symbols_GCJ
27495
27496 # The commands to list exported symbols.
27497 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27498
27499 # Symbols that should not be listed in the preloaded symbols.
27500 exclude_expsyms=$lt_exclude_expsyms_GCJ
27501
27502 # Symbols that must always be exported.
27503 include_expsyms=$lt_include_expsyms_GCJ
27504
27505 # Commands necessary for linking programs (against libraries) with templates.
27506 prelink_cmds=$lt_prelink_cmds_GCJ
27507
27508 # Specify filename containing input files.
27509 file_list_spec=$lt_file_list_spec_GCJ
27510
27511 # How to hardcode a shared library path into an executable.
27512 hardcode_action=$hardcode_action_GCJ
27513
27514 # The directories searched by this compiler when creating a shared library.
27515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27516
27517 # Dependencies to place before and after the objects being linked to
27518 # create a shared library.
27519 predep_objects=$lt_predep_objects_GCJ
27520 postdep_objects=$lt_postdep_objects_GCJ
27521 predeps=$lt_predeps_GCJ
27522 postdeps=$lt_postdeps_GCJ
27523
27524 # The library search path used internally by the compiler when linking
27525 # a shared library.
27526 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27527
27528 # ### END LIBTOOL TAG CONFIG: GCJ
27529 _LT_EOF
27530
27531  ;;
27532     "scripts/jar":F) chmod +x scripts/jar ;;
27533
27534   esac
27535 done # for ac_tag
27536
27537
27538 as_fn_exit 0
27539 _ACEOF
27540 ac_clean_files=$ac_clean_files_save
27541
27542 test $ac_write_fail = 0 ||
27543   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27544
27545
27546 # configure is writing to config.log, and then calls config.status.
27547 # config.status does its own redirection, appending to config.log.
27548 # Unfortunately, on DOS this fails, as config.log is still kept open
27549 # by configure, so config.status won't be able to write to it; its
27550 # output is simply discarded.  So we exec the FD to /dev/null,
27551 # effectively closing config.log, so it can be properly (re)opened and
27552 # appended to by config.status.  When coming back to configure, we
27553 # need to make the FD available again.
27554 if test "$no_create" != yes; then
27555   ac_cs_success=:
27556   ac_config_status_args=
27557   test "$silent" = yes &&
27558     ac_config_status_args="$ac_config_status_args --quiet"
27559   exec 5>/dev/null
27560   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27561   exec 5>>config.log
27562   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27563   # would make configure fail if this is the last instruction.
27564   $ac_cs_success || as_fn_exit $?
27565 fi
27566
27567 #
27568 # CONFIG_SUBDIRS section.
27569 #
27570 if test "$no_recursion" != yes; then
27571
27572   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27573   # so they do not pile up.
27574   ac_sub_configure_args=
27575   ac_prev=
27576   eval "set x $ac_configure_args"
27577   shift
27578   for ac_arg
27579   do
27580     if test -n "$ac_prev"; then
27581       ac_prev=
27582       continue
27583     fi
27584     case $ac_arg in
27585     -cache-file | --cache-file | --cache-fil | --cache-fi \
27586     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27587       ac_prev=cache_file ;;
27588     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27589     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27590     | --c=*)
27591       ;;
27592     --config-cache | -C)
27593       ;;
27594     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27595       ac_prev=srcdir ;;
27596     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27597       ;;
27598     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27599       ac_prev=prefix ;;
27600     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27601       ;;
27602     --disable-option-checking)
27603       ;;
27604     *)
27605       case $ac_arg in
27606       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27607       esac
27608       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27609     esac
27610   done
27611
27612   # Always prepend --prefix to ensure using the same prefix
27613   # in subdir configurations.
27614   ac_arg="--prefix=$prefix"
27615   case $ac_arg in
27616   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27617   esac
27618   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27619
27620   # Pass --silent
27621   if test "$silent" = yes; then
27622     ac_sub_configure_args="--silent $ac_sub_configure_args"
27623   fi
27624
27625   # Always prepend --disable-option-checking to silence warnings, since
27626   # different subdirs can have different --enable and --with options.
27627   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27628
27629   ac_popdir=`pwd`
27630   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27631
27632     # Do not complain, so a configure script can configure whichever
27633     # parts of a large source tree are present.
27634     test -d "$srcdir/$ac_dir" || continue
27635
27636     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27637     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27638     $as_echo "$ac_msg" >&6
27639     as_dir="$ac_dir"; as_fn_mkdir_p
27640     ac_builddir=.
27641
27642 case "$ac_dir" in
27643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27644 *)
27645   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27646   # A ".." for each directory in $ac_dir_suffix.
27647   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27648   case $ac_top_builddir_sub in
27649   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27650   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27651   esac ;;
27652 esac
27653 ac_abs_top_builddir=$ac_pwd
27654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27655 # for backward compatibility:
27656 ac_top_builddir=$ac_top_build_prefix
27657
27658 case $srcdir in
27659   .)  # We are building in place.
27660     ac_srcdir=.
27661     ac_top_srcdir=$ac_top_builddir_sub
27662     ac_abs_top_srcdir=$ac_pwd ;;
27663   [\\/]* | ?:[\\/]* )  # Absolute name.
27664     ac_srcdir=$srcdir$ac_dir_suffix;
27665     ac_top_srcdir=$srcdir
27666     ac_abs_top_srcdir=$srcdir ;;
27667   *) # Relative name.
27668     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27669     ac_top_srcdir=$ac_top_build_prefix$srcdir
27670     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27671 esac
27672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27673
27674
27675     cd "$ac_dir"
27676
27677     # Check for guested configure; otherwise get Cygnus style configure.
27678     if test -f "$ac_srcdir/configure.gnu"; then
27679       ac_sub_configure=$ac_srcdir/configure.gnu
27680     elif test -f "$ac_srcdir/configure"; then
27681       ac_sub_configure=$ac_srcdir/configure
27682     elif test -f "$ac_srcdir/configure.in"; then
27683       # This should be Cygnus configure.
27684       ac_sub_configure=$ac_aux_dir/configure
27685     else
27686       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27688       ac_sub_configure=
27689     fi
27690
27691     # The recursion is here.
27692     if test -n "$ac_sub_configure"; then
27693       # Make the cache file name correct relative to the subdirectory.
27694       case $cache_file in
27695       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27696       *) # Relative name.
27697         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27698       esac
27699
27700       { $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
27701 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27702       # The eval makes quoting arguments work.
27703       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27704            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27705         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27706     fi
27707
27708     cd "$ac_popdir"
27709   done
27710 fi
27711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27712   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27713 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27714 fi
27715