re PR preprocessor/28435 (-MMD vs not found system header (included from a system...
[gcc.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 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
919 LIBGCJ_LD_SYMBOLIC
920 LIBGCJ_JAVAFLAGS
921 LIBGCJ_CXXFLAGS
922 LIBGCJ_CFLAGS
923 MAINT
924 MAINTAINER_MODE_FALSE
925 MAINTAINER_MODE_TRUE
926 UNZIP
927 ZIP
928 JAR
929 RANLIB
930 AR
931 LD
932 AS
933 am__fastdepCXX_FALSE
934 am__fastdepCXX_TRUE
935 CXXDEPMODE
936 am__fastdepCC_FALSE
937 am__fastdepCC_TRUE
938 CCDEPMODE
939 AMDEPBACKSLASH
940 AMDEP_FALSE
941 AMDEP_TRUE
942 am__quote
943 am__include
944 DEPDIR
945 am__untar
946 am__tar
947 AMTAR
948 am__leading_dot
949 SET_MAKE
950 AWK
951 mkdir_p
952 MKDIR_P
953 INSTALL_STRIP_PROGRAM
954 STRIP
955 install_sh
956 MAKEINFO
957 AUTOHEADER
958 AUTOMAKE
959 AUTOCONF
960 ACLOCAL
961 VERSION
962 PACKAGE
963 CYGPATH_W
964 am__isrc
965 INSTALL_DATA
966 INSTALL_SCRIPT
967 INSTALL_PROGRAM
968 ac_ct_CXX
969 CXXFLAGS
970 CXX
971 OBJEXT
972 EXEEXT
973 ac_ct_CC
974 CPPFLAGS
975 LDFLAGS
976 CFLAGS
977 CC
978 JAVA_MAINTAINER_MODE_FALSE
979 JAVA_MAINTAINER_MODE_TRUE
980 CREATE_GJDOC_FALSE
981 CREATE_GJDOC_TRUE
982 ANTLR_JAR
983 mkinstalldirs
984 LN_S
985 target_noncanonical
986 target_os
987 target_vendor
988 target_cpu
989 target
990 host_os
991 host_vendor
992 host_cpu
993 host
994 multi_basedir
995 target_subdir
996 host_subdir
997 build_subdir
998 build_libsubdir
999 build_os
1000 build_vendor
1001 build_cpu
1002 build
1003 target_alias
1004 host_alias
1005 build_alias
1006 LIBS
1007 ECHO_T
1008 ECHO_N
1009 ECHO_C
1010 DEFS
1011 mandir
1012 localedir
1013 libdir
1014 psdir
1015 pdfdir
1016 dvidir
1017 htmldir
1018 infodir
1019 docdir
1020 oldincludedir
1021 includedir
1022 localstatedir
1023 sharedstatedir
1024 sysconfdir
1025 datadir
1026 datarootdir
1027 libexecdir
1028 sbindir
1029 bindir
1030 program_transform_name
1031 prefix
1032 exec_prefix
1033 PACKAGE_URL
1034 PACKAGE_BUGREPORT
1035 PACKAGE_STRING
1036 PACKAGE_VERSION
1037 PACKAGE_TARNAME
1038 PACKAGE_NAME
1039 PATH_SEPARATOR
1040 SHELL'
1041 ac_subst_files=''
1042 ac_user_opts='
1043 enable_option_checking
1044 with_build_libsubdir
1045 with_target_subdir
1046 enable_multilib
1047 with_cross_host
1048 with_newlib
1049 enable_version_specific_runtime_libs
1050 enable_plugin
1051 enable_gconf_peer
1052 with_antlr_jar
1053 enable_gjdoc
1054 enable_java_maintainer_mode
1055 enable_dependency_tracking
1056 enable_maintainer_mode
1057 enable_libgcj_debug
1058 with_escher
1059 enable_java_awt
1060 enable_shared
1061 enable_static
1062 with_pic
1063 enable_fast_install
1064 with_gnu_ld
1065 enable_libtool_lock
1066 enable_getenv_properties
1067 enable_hash_synchronization
1068 with_ecj_jar
1069 with_java_home
1070 enable_libgcj_bc
1071 enable_reduced_reflection
1072 with_win32_nlsapi
1073 enable_gc_debug
1074 enable_interpreter
1075 enable_sjlj_exceptions
1076 enable_java_net
1077 with_libffi
1078 enable_jvmpi
1079 with_ecos
1080 with_system_zlib
1081 with_x
1082 enable_java_gc
1083 enable_rpath
1084 with_libiconv_prefix
1085 enable_tls
1086 with_system_libunwind
1087 with_python_dir
1088 enable_aot_compile_rpm
1089 enable_java_home
1090 with_gcc_suffix
1091 with_arch_directory
1092 with_os_directory
1093 with_origin_name
1094 with_arch_suffix
1095 with_jvm_root_dir
1096 with_jvm_jar_dir
1097 '
1098 ac_precious_vars='build_alias
1099 host_alias
1100 target_alias
1101 CPP
1102 CPPFLAGS
1103 CXX
1104 CXXFLAGS
1105 LDFLAGS
1106 LIBS
1107 CCC
1108 CXXCPP
1109 XMKMF'
1110 ac_subdirs_all='classpath libltdl'
1111
1112 # Initialize some variables set by options.
1113 ac_init_help=
1114 ac_init_version=false
1115 ac_unrecognized_opts=
1116 ac_unrecognized_sep=
1117 # The variables have the same names as the options, with
1118 # dashes changed to underlines.
1119 cache_file=/dev/null
1120 exec_prefix=NONE
1121 no_create=
1122 no_recursion=
1123 prefix=NONE
1124 program_prefix=NONE
1125 program_suffix=NONE
1126 program_transform_name=s,x,x,
1127 silent=
1128 site=
1129 srcdir=
1130 verbose=
1131 x_includes=NONE
1132 x_libraries=NONE
1133
1134 # Installation directory options.
1135 # These are left unexpanded so users can "make install exec_prefix=/foo"
1136 # and all the variables that are supposed to be based on exec_prefix
1137 # by default will actually change.
1138 # Use braces instead of parens because sh, perl, etc. also accept them.
1139 # (The list follows the same order as the GNU Coding Standards.)
1140 bindir='${exec_prefix}/bin'
1141 sbindir='${exec_prefix}/sbin'
1142 libexecdir='${exec_prefix}/libexec'
1143 datarootdir='${prefix}/share'
1144 datadir='${datarootdir}'
1145 sysconfdir='${prefix}/etc'
1146 sharedstatedir='${prefix}/com'
1147 localstatedir='${prefix}/var'
1148 includedir='${prefix}/include'
1149 oldincludedir='/usr/include'
1150 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1151 infodir='${datarootdir}/info'
1152 htmldir='${docdir}'
1153 dvidir='${docdir}'
1154 pdfdir='${docdir}'
1155 psdir='${docdir}'
1156 libdir='${exec_prefix}/lib'
1157 localedir='${datarootdir}/locale'
1158 mandir='${datarootdir}/man'
1159
1160 ac_prev=
1161 ac_dashdash=
1162 for ac_option
1163 do
1164 # If the previous option needs an argument, assign it.
1165 if test -n "$ac_prev"; then
1166 eval $ac_prev=\$ac_option
1167 ac_prev=
1168 continue
1169 fi
1170
1171 case $ac_option in
1172 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1173 *) ac_optarg=yes ;;
1174 esac
1175
1176 # Accept the important Cygnus configure options, so we can diagnose typos.
1177
1178 case $ac_dashdash$ac_option in
1179 --)
1180 ac_dashdash=yes ;;
1181
1182 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1183 ac_prev=bindir ;;
1184 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1185 bindir=$ac_optarg ;;
1186
1187 -build | --build | --buil | --bui | --bu)
1188 ac_prev=build_alias ;;
1189 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1190 build_alias=$ac_optarg ;;
1191
1192 -cache-file | --cache-file | --cache-fil | --cache-fi \
1193 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1194 ac_prev=cache_file ;;
1195 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1196 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1197 cache_file=$ac_optarg ;;
1198
1199 --config-cache | -C)
1200 cache_file=config.cache ;;
1201
1202 -datadir | --datadir | --datadi | --datad)
1203 ac_prev=datadir ;;
1204 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1205 datadir=$ac_optarg ;;
1206
1207 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1208 | --dataroo | --dataro | --datar)
1209 ac_prev=datarootdir ;;
1210 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1211 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1212 datarootdir=$ac_optarg ;;
1213
1214 -disable-* | --disable-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error "invalid feature name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "enable_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval enable_$ac_useropt=no ;;
1229
1230 -docdir | --docdir | --docdi | --doc | --do)
1231 ac_prev=docdir ;;
1232 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1233 docdir=$ac_optarg ;;
1234
1235 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1236 ac_prev=dvidir ;;
1237 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1238 dvidir=$ac_optarg ;;
1239
1240 -enable-* | --enable-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error "invalid feature name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "enable_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval enable_$ac_useropt=\$ac_optarg ;;
1255
1256 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1257 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1258 | --exec | --exe | --ex)
1259 ac_prev=exec_prefix ;;
1260 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1261 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1262 | --exec=* | --exe=* | --ex=*)
1263 exec_prefix=$ac_optarg ;;
1264
1265 -gas | --gas | --ga | --g)
1266 # Obsolete; use --with-gas.
1267 with_gas=yes ;;
1268
1269 -help | --help | --hel | --he | -h)
1270 ac_init_help=long ;;
1271 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1272 ac_init_help=recursive ;;
1273 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1274 ac_init_help=short ;;
1275
1276 -host | --host | --hos | --ho)
1277 ac_prev=host_alias ;;
1278 -host=* | --host=* | --hos=* | --ho=*)
1279 host_alias=$ac_optarg ;;
1280
1281 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1282 ac_prev=htmldir ;;
1283 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1284 | --ht=*)
1285 htmldir=$ac_optarg ;;
1286
1287 -includedir | --includedir | --includedi | --included | --include \
1288 | --includ | --inclu | --incl | --inc)
1289 ac_prev=includedir ;;
1290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1291 | --includ=* | --inclu=* | --incl=* | --inc=*)
1292 includedir=$ac_optarg ;;
1293
1294 -infodir | --infodir | --infodi | --infod | --info | --inf)
1295 ac_prev=infodir ;;
1296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1297 infodir=$ac_optarg ;;
1298
1299 -libdir | --libdir | --libdi | --libd)
1300 ac_prev=libdir ;;
1301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1302 libdir=$ac_optarg ;;
1303
1304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1305 | --libexe | --libex | --libe)
1306 ac_prev=libexecdir ;;
1307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1308 | --libexe=* | --libex=* | --libe=*)
1309 libexecdir=$ac_optarg ;;
1310
1311 -localedir | --localedir | --localedi | --localed | --locale)
1312 ac_prev=localedir ;;
1313 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1314 localedir=$ac_optarg ;;
1315
1316 -localstatedir | --localstatedir | --localstatedi | --localstated \
1317 | --localstate | --localstat | --localsta | --localst | --locals)
1318 ac_prev=localstatedir ;;
1319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1320 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1321 localstatedir=$ac_optarg ;;
1322
1323 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1324 ac_prev=mandir ;;
1325 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1326 mandir=$ac_optarg ;;
1327
1328 -nfp | --nfp | --nf)
1329 # Obsolete; use --without-fp.
1330 with_fp=no ;;
1331
1332 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1333 | --no-cr | --no-c | -n)
1334 no_create=yes ;;
1335
1336 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1337 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1338 no_recursion=yes ;;
1339
1340 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1341 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1342 | --oldin | --oldi | --old | --ol | --o)
1343 ac_prev=oldincludedir ;;
1344 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1345 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1346 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1347 oldincludedir=$ac_optarg ;;
1348
1349 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1350 ac_prev=prefix ;;
1351 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1352 prefix=$ac_optarg ;;
1353
1354 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1355 | --program-pre | --program-pr | --program-p)
1356 ac_prev=program_prefix ;;
1357 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1358 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1359 program_prefix=$ac_optarg ;;
1360
1361 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1362 | --program-suf | --program-su | --program-s)
1363 ac_prev=program_suffix ;;
1364 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1365 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1366 program_suffix=$ac_optarg ;;
1367
1368 -program-transform-name | --program-transform-name \
1369 | --program-transform-nam | --program-transform-na \
1370 | --program-transform-n | --program-transform- \
1371 | --program-transform | --program-transfor \
1372 | --program-transfo | --program-transf \
1373 | --program-trans | --program-tran \
1374 | --progr-tra | --program-tr | --program-t)
1375 ac_prev=program_transform_name ;;
1376 -program-transform-name=* | --program-transform-name=* \
1377 | --program-transform-nam=* | --program-transform-na=* \
1378 | --program-transform-n=* | --program-transform-=* \
1379 | --program-transform=* | --program-transfor=* \
1380 | --program-transfo=* | --program-transf=* \
1381 | --program-trans=* | --program-tran=* \
1382 | --progr-tra=* | --program-tr=* | --program-t=*)
1383 program_transform_name=$ac_optarg ;;
1384
1385 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1386 ac_prev=pdfdir ;;
1387 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1388 pdfdir=$ac_optarg ;;
1389
1390 -psdir | --psdir | --psdi | --psd | --ps)
1391 ac_prev=psdir ;;
1392 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1393 psdir=$ac_optarg ;;
1394
1395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396 | -silent | --silent | --silen | --sile | --sil)
1397 silent=yes ;;
1398
1399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1400 ac_prev=sbindir ;;
1401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1402 | --sbi=* | --sb=*)
1403 sbindir=$ac_optarg ;;
1404
1405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1407 | --sharedst | --shareds | --shared | --share | --shar \
1408 | --sha | --sh)
1409 ac_prev=sharedstatedir ;;
1410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1413 | --sha=* | --sh=*)
1414 sharedstatedir=$ac_optarg ;;
1415
1416 -site | --site | --sit)
1417 ac_prev=site ;;
1418 -site=* | --site=* | --sit=*)
1419 site=$ac_optarg ;;
1420
1421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1422 ac_prev=srcdir ;;
1423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1424 srcdir=$ac_optarg ;;
1425
1426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1427 | --syscon | --sysco | --sysc | --sys | --sy)
1428 ac_prev=sysconfdir ;;
1429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1431 sysconfdir=$ac_optarg ;;
1432
1433 -target | --target | --targe | --targ | --tar | --ta | --t)
1434 ac_prev=target_alias ;;
1435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1436 target_alias=$ac_optarg ;;
1437
1438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1439 verbose=yes ;;
1440
1441 -version | --version | --versio | --versi | --vers | -V)
1442 ac_init_version=: ;;
1443
1444 -with-* | --with-*)
1445 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1446 # Reject names that are not valid shell variable names.
1447 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1448 as_fn_error "invalid package name: $ac_useropt"
1449 ac_useropt_orig=$ac_useropt
1450 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451 case $ac_user_opts in
1452 *"
1453 "with_$ac_useropt"
1454 "*) ;;
1455 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1456 ac_unrecognized_sep=', ';;
1457 esac
1458 eval with_$ac_useropt=\$ac_optarg ;;
1459
1460 -without-* | --without-*)
1461 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464 as_fn_error "invalid package name: $ac_useropt"
1465 ac_useropt_orig=$ac_useropt
1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1468 *"
1469 "with_$ac_useropt"
1470 "*) ;;
1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1472 ac_unrecognized_sep=', ';;
1473 esac
1474 eval with_$ac_useropt=no ;;
1475
1476 --x)
1477 # Obsolete; use --with-x.
1478 with_x=yes ;;
1479
1480 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1481 | --x-incl | --x-inc | --x-in | --x-i)
1482 ac_prev=x_includes ;;
1483 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1484 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1485 x_includes=$ac_optarg ;;
1486
1487 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1488 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1489 ac_prev=x_libraries ;;
1490 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1491 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1492 x_libraries=$ac_optarg ;;
1493
1494 -*) as_fn_error "unrecognized option: \`$ac_option'
1495 Try \`$0 --help' for more information."
1496 ;;
1497
1498 *=*)
1499 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1500 # Reject names that are not valid shell variable names.
1501 case $ac_envvar in #(
1502 '' | [0-9]* | *[!_$as_cr_alnum]* )
1503 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1504 esac
1505 eval $ac_envvar=\$ac_optarg
1506 export $ac_envvar ;;
1507
1508 *)
1509 # FIXME: should be removed in autoconf 3.0.
1510 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1511 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1512 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1513 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1514 ;;
1515
1516 esac
1517 done
1518
1519 if test -n "$ac_prev"; then
1520 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1521 as_fn_error "missing argument to $ac_option"
1522 fi
1523
1524 if test -n "$ac_unrecognized_opts"; then
1525 case $enable_option_checking in
1526 no) ;;
1527 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1528 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1529 esac
1530 fi
1531
1532 # Check all directory arguments for consistency.
1533 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1534 datadir sysconfdir sharedstatedir localstatedir includedir \
1535 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1536 libdir localedir mandir
1537 do
1538 eval ac_val=\$$ac_var
1539 # Remove trailing slashes.
1540 case $ac_val in
1541 */ )
1542 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1543 eval $ac_var=\$ac_val;;
1544 esac
1545 # Be sure to have absolute directory names.
1546 case $ac_val in
1547 [\\/$]* | ?:[\\/]* ) continue;;
1548 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1549 esac
1550 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1551 done
1552
1553 # There might be people who depend on the old broken behavior: `$host'
1554 # used to hold the argument of --host etc.
1555 # FIXME: To remove some day.
1556 build=$build_alias
1557 host=$host_alias
1558 target=$target_alias
1559
1560 # FIXME: To remove some day.
1561 if test "x$host_alias" != x; then
1562 if test "x$build_alias" = x; then
1563 cross_compiling=maybe
1564 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1565 If a cross compiler is detected then cross compile mode will be used." >&2
1566 elif test "x$build_alias" != "x$host_alias"; then
1567 cross_compiling=yes
1568 fi
1569 fi
1570
1571 ac_tool_prefix=
1572 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1573
1574 test "$silent" = yes && exec 6>/dev/null
1575
1576
1577 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1578 ac_ls_di=`ls -di .` &&
1579 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1580 as_fn_error "working directory cannot be determined"
1581 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1582 as_fn_error "pwd does not report name of working directory"
1583
1584
1585 # Find the source files, if location was not specified.
1586 if test -z "$srcdir"; then
1587 ac_srcdir_defaulted=yes
1588 # Try the directory containing this script, then the parent directory.
1589 ac_confdir=`$as_dirname -- "$as_myself" ||
1590 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1591 X"$as_myself" : 'X\(//\)[^/]' \| \
1592 X"$as_myself" : 'X\(//\)$' \| \
1593 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1594 $as_echo X"$as_myself" |
1595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1596 s//\1/
1597 q
1598 }
1599 /^X\(\/\/\)[^/].*/{
1600 s//\1/
1601 q
1602 }
1603 /^X\(\/\/\)$/{
1604 s//\1/
1605 q
1606 }
1607 /^X\(\/\).*/{
1608 s//\1/
1609 q
1610 }
1611 s/.*/./; q'`
1612 srcdir=$ac_confdir
1613 if test ! -r "$srcdir/$ac_unique_file"; then
1614 srcdir=..
1615 fi
1616 else
1617 ac_srcdir_defaulted=no
1618 fi
1619 if test ! -r "$srcdir/$ac_unique_file"; then
1620 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1621 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1622 fi
1623 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1624 ac_abs_confdir=`(
1625 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1626 pwd)`
1627 # When building in place, set srcdir=.
1628 if test "$ac_abs_confdir" = "$ac_pwd"; then
1629 srcdir=.
1630 fi
1631 # Remove unnecessary trailing slashes from srcdir.
1632 # Double slashes in file names in object file debugging info
1633 # mess up M-x gdb in Emacs.
1634 case $srcdir in
1635 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1636 esac
1637 for ac_var in $ac_precious_vars; do
1638 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1639 eval ac_env_${ac_var}_value=\$${ac_var}
1640 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1641 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1642 done
1643
1644 #
1645 # Report the --help message.
1646 #
1647 if test "$ac_init_help" = "long"; then
1648 # Omit some internal or obsolete options to make the list less imposing.
1649 # This message is too long to be a string in the A/UX 3.1 sh.
1650 cat <<_ACEOF
1651 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1652
1653 Usage: $0 [OPTION]... [VAR=VALUE]...
1654
1655 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1656 VAR=VALUE. See below for descriptions of some of the useful variables.
1657
1658 Defaults for the options are specified in brackets.
1659
1660 Configuration:
1661 -h, --help display this help and exit
1662 --help=short display options specific to this package
1663 --help=recursive display the short help of all the included packages
1664 -V, --version display version information and exit
1665 -q, --quiet, --silent do not print \`checking...' messages
1666 --cache-file=FILE cache test results in FILE [disabled]
1667 -C, --config-cache alias for \`--cache-file=config.cache'
1668 -n, --no-create do not create output files
1669 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1670
1671 Installation directories:
1672 --prefix=PREFIX install architecture-independent files in PREFIX
1673 [$ac_default_prefix]
1674 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1675 [PREFIX]
1676
1677 By default, \`make install' will install all the files in
1678 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1679 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1680 for instance \`--prefix=\$HOME'.
1681
1682 For better control, use the options below.
1683
1684 Fine tuning of the installation directories:
1685 --bindir=DIR user executables [EPREFIX/bin]
1686 --sbindir=DIR system admin executables [EPREFIX/sbin]
1687 --libexecdir=DIR program executables [EPREFIX/libexec]
1688 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1689 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1690 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1691 --libdir=DIR object code libraries [EPREFIX/lib]
1692 --includedir=DIR C header files [PREFIX/include]
1693 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1694 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1695 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1696 --infodir=DIR info documentation [DATAROOTDIR/info]
1697 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1698 --mandir=DIR man documentation [DATAROOTDIR/man]
1699 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1700 --htmldir=DIR html documentation [DOCDIR]
1701 --dvidir=DIR dvi documentation [DOCDIR]
1702 --pdfdir=DIR pdf documentation [DOCDIR]
1703 --psdir=DIR ps documentation [DOCDIR]
1704 _ACEOF
1705
1706 cat <<\_ACEOF
1707
1708 Program names:
1709 --program-prefix=PREFIX prepend PREFIX to installed program names
1710 --program-suffix=SUFFIX append SUFFIX to installed program names
1711 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1712
1713 X features:
1714 --x-includes=DIR X include files are in DIR
1715 --x-libraries=DIR X library files are in DIR
1716
1717 System types:
1718 --build=BUILD configure for building on BUILD [guessed]
1719 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1720 --target=TARGET configure for building compilers for TARGET [HOST]
1721 _ACEOF
1722 fi
1723
1724 if test -n "$ac_init_help"; then
1725 case $ac_init_help in
1726 short | recursive ) echo "Configuration of libjava version-unused:";;
1727 esac
1728 cat <<\_ACEOF
1729
1730 Optional Features:
1731 --disable-option-checking ignore unrecognized --enable/--with options
1732 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1733 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1734 --enable-multilib build many library versions (default)
1735 --enable-version-specific-runtime-libs
1736 specify that runtime libraries should be installed
1737 in a compiler-specific directory
1738 --enable-plugin build gcjwebplugin web browser plugin
1739 --enable-gconf-peer compile GConf native peers for util.preferences
1740 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1741 default=yes
1742 --enable-java-maintainer-mode
1743 allow rebuilding of .class and .h files
1744 --disable-dependency-tracking speeds up one-time build
1745 --enable-dependency-tracking do not reject slow dependency extractors
1746 --enable-maintainer-mode enable make rules and dependencies not useful
1747 (and sometimes confusing) to the casual installer
1748 --enable-libgcj-debug enable runtime debugging code
1749 --enable-java-awt list of AWT peer implementations to be built
1750 --enable-shared[=PKGS] build shared libraries [default=yes]
1751 --enable-static[=PKGS] build static libraries [default=yes]
1752 --enable-fast-install[=PKGS]
1753 optimize for fast installation [default=yes]
1754 --disable-libtool-lock avoid locking (might break parallel builds)
1755 --disable-getenv-properties
1756 don't set system properties from GCJ_PROPERTIES
1757 --enable-hash-synchronization
1758 use global hash table for monitor locks
1759 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1760 libgcj
1761 --enable-reduced-reflection
1762 enable or disable(default) -freduced-reflection when
1763 building portions of libgcj
1764 --enable-gc-debug include full support for pointer backtracing etc.
1765 --enable-interpreter enable interpreter
1766 --enable-sjlj-exceptions
1767 force use of builtin_setjmp for exceptions
1768 --disable-java-net disable java.net
1769 --disable-jvmpi disable JVMPI support
1770 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1771 --disable-rpath do not hardcode runtime library paths
1772 --enable-tls Use thread-local storage [default=yes]
1773 --enable-aot-compile-rpm
1774 enable installation of aot-compile-rpm [default=no]
1775 --enable-java-home create a standard JDK-style directory layout in the
1776 install tree [default=no]
1777
1778 Optional Packages:
1779 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1780 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1781 --with-build-libsubdir=DIR Directory where to find libraries for build system
1782 --with-target-subdir=SUBDIR
1783 configure in a subdirectory
1784 --with-cross-host=HOST configure with a cross compiler from HOST
1785 --with-newlib configure with newlib
1786 --with-antlr-jar=file Use ANTLR from the specified jar file
1787 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1788 --with-pic try to use only PIC/non-PIC objects [default=use
1789 both]
1790 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1791 --with-ecj-jar=FILE use preinstalled ecj jar
1792 --with-java-home=DIRECTORY
1793 value of java.home system property
1794 --with-win32-nlsapi=ansi or unicows or unicode
1795 native MinGW libgcj Win32 OS API (default is ansi)
1796 --without-libffi don't use libffi
1797 --with-ecos enable runtime eCos target support
1798 --with-system-zlib use installed libz
1799 --with-x use the X Window System
1800 --with-gnu-ld assume the C compiler uses GNU ld default=no
1801 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1802 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1803 --with-system-libunwind use installed libunwind
1804 --with-python-dir the location to install Python modules. This path
1805 should NOT include the prefix.
1806 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1807 --with-arch-directory the arch directory under jre/lib (defaults to
1808 auto-detect)
1809 --with-os-directory the os directory under include (defaults to
1810 auto-detect)
1811 --with-origin-name the JPackage origin name of this package (default is
1812 gcj${gcc_suffix}
1813 --with-arch-suffix the arch directory suffix (default is the empty
1814 string
1815 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1816 --with-jvm-jar-dir where to install jars (default is
1817 ${prefix}/lib/jvm-exports)
1818
1819 Some influential environment variables:
1820 CC C compiler command
1821 CFLAGS C compiler flags
1822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1823 nonstandard directory <lib dir>
1824 LIBS libraries to pass to the linker, e.g. -l<library>
1825 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1826 you have headers in a nonstandard directory <include dir>
1827 CXX C++ compiler command
1828 CXXFLAGS C++ compiler flags
1829 CPP C preprocessor
1830 CXXCPP C++ preprocessor
1831 XMKMF Path to xmkmf, Makefile generator for X Window System
1832
1833 Use these variables to override the choices made by `configure' or to help
1834 it to find libraries and programs with nonstandard names/locations.
1835
1836 Report bugs to the package provider.
1837 _ACEOF
1838 ac_status=$?
1839 fi
1840
1841 if test "$ac_init_help" = "recursive"; then
1842 # If there are subdirs, report their specific --help.
1843 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1844 test -d "$ac_dir" ||
1845 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1846 continue
1847 ac_builddir=.
1848
1849 case "$ac_dir" in
1850 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1851 *)
1852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1853 # A ".." for each directory in $ac_dir_suffix.
1854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1855 case $ac_top_builddir_sub in
1856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1858 esac ;;
1859 esac
1860 ac_abs_top_builddir=$ac_pwd
1861 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1862 # for backward compatibility:
1863 ac_top_builddir=$ac_top_build_prefix
1864
1865 case $srcdir in
1866 .) # We are building in place.
1867 ac_srcdir=.
1868 ac_top_srcdir=$ac_top_builddir_sub
1869 ac_abs_top_srcdir=$ac_pwd ;;
1870 [\\/]* | ?:[\\/]* ) # Absolute name.
1871 ac_srcdir=$srcdir$ac_dir_suffix;
1872 ac_top_srcdir=$srcdir
1873 ac_abs_top_srcdir=$srcdir ;;
1874 *) # Relative name.
1875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1876 ac_top_srcdir=$ac_top_build_prefix$srcdir
1877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1878 esac
1879 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1880
1881 cd "$ac_dir" || { ac_status=$?; continue; }
1882 # Check for guested configure.
1883 if test -f "$ac_srcdir/configure.gnu"; then
1884 echo &&
1885 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1886 elif test -f "$ac_srcdir/configure"; then
1887 echo &&
1888 $SHELL "$ac_srcdir/configure" --help=recursive
1889 else
1890 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1891 fi || ac_status=$?
1892 cd "$ac_pwd" || { ac_status=$?; break; }
1893 done
1894 fi
1895
1896 test -n "$ac_init_help" && exit $ac_status
1897 if $ac_init_version; then
1898 cat <<\_ACEOF
1899 libjava configure version-unused
1900 generated by GNU Autoconf 2.64
1901
1902 Copyright (C) 2009 Free Software Foundation, Inc.
1903 This configure script is free software; the Free Software Foundation
1904 gives unlimited permission to copy, distribute and modify it.
1905 _ACEOF
1906 exit
1907 fi
1908
1909 ## ------------------------ ##
1910 ## Autoconf initialization. ##
1911 ## ------------------------ ##
1912
1913 # ac_fn_c_try_compile LINENO
1914 # --------------------------
1915 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_compile ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext
1920 if { { ac_try="$ac_compile"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_compile") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1933 fi
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest.$ac_objext; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944 ac_retval=1
1945 fi
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 return $ac_retval
1948
1949 } # ac_fn_c_try_compile
1950
1951 # ac_fn_cxx_try_compile LINENO
1952 # ----------------------------
1953 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_compile ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext
1958 if { { ac_try="$ac_compile"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_compile") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest.$ac_objext; then :
1977 ac_retval=0
1978 else
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983 fi
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 return $ac_retval
1986
1987 } # ac_fn_cxx_try_compile
1988
1989 # ac_fn_c_try_link LINENO
1990 # -----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_c_try_link ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_c_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 $as_test_x conftest$ac_exeext
2017 }; then :
2018 ac_retval=0
2019 else
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024 fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 return $ac_retval
2032
2033 } # ac_fn_c_try_link
2034
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $4
2050 #include <$2>
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064 } # ac_fn_c_check_header_compile
2065
2066 # ac_fn_c_try_cpp LINENO
2067 # ----------------------
2068 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2069 ac_fn_c_try_cpp ()
2070 {
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if { { ac_try="$ac_cpp conftest.$ac_ext"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2080 ac_status=$?
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2085 fi
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } >/dev/null && {
2088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2090 }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 ac_retval=1
2097 fi
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099 return $ac_retval
2100
2101 } # ac_fn_c_try_cpp
2102
2103 # ac_fn_c_try_run LINENO
2104 # ----------------------
2105 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2106 # that executables *can* be run.
2107 ac_fn_c_try_run ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 if { { ac_try="$ac_link"
2111 case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_link") 2>&5
2118 ac_status=$?
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2121 { { case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126 $as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_try") 2>&5
2128 ac_status=$?
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; }; }; then :
2131 ac_retval=0
2132 else
2133 $as_echo "$as_me: program exited with status $ac_status" >&5
2134 $as_echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2136
2137 ac_retval=$ac_status
2138 fi
2139 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 return $ac_retval
2142
2143 } # ac_fn_c_try_run
2144
2145 # ac_fn_c_check_func LINENO FUNC VAR
2146 # ----------------------------------
2147 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2148 ac_fn_c_check_func ()
2149 {
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2154 $as_echo_n "(cached) " >&6
2155 else
2156 if test x$gcc_no_link = xyes; then
2157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2158 fi
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2163 #define $2 innocuous_$2
2164
2165 /* System header to define __stub macros and hopefully few prototypes,
2166 which can conflict with char $2 (); below.
2167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2168 <limits.h> exists even on freestanding compilers. */
2169
2170 #ifdef __STDC__
2171 # include <limits.h>
2172 #else
2173 # include <assert.h>
2174 #endif
2175
2176 #undef $2
2177
2178 /* Override any GCC internal prototype to avoid an error.
2179 Use char because int might match the return type of a GCC
2180 builtin and then its argument prototype would still apply. */
2181 #ifdef __cplusplus
2182 extern "C"
2183 #endif
2184 char $2 ();
2185 /* The GNU C library defines this for functions which it implements
2186 to always fail with ENOSYS. Some functions are actually named
2187 something starting with __ and the normal name is an alias. */
2188 #if defined __stub_$2 || defined __stub___$2
2189 choke me
2190 #endif
2191
2192 int
2193 main ()
2194 {
2195 return $2 ();
2196 ;
2197 return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_c_try_link "$LINENO"; then :
2201 eval "$3=yes"
2202 else
2203 eval "$3=no"
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext \
2206 conftest$ac_exeext conftest.$ac_ext
2207 fi
2208 eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212
2213 } # ac_fn_c_check_func
2214
2215 # ac_fn_cxx_try_cpp LINENO
2216 # ------------------------
2217 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2218 ac_fn_cxx_try_cpp ()
2219 {
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { { ac_try="$ac_cpp conftest.$ac_ext"
2222 case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2225 esac
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 $as_echo "$ac_try_echo"; } >&5
2228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2229 ac_status=$?
2230 if test -s conftest.err; then
2231 grep -v '^ *+' conftest.err >conftest.er1
2232 cat conftest.er1 >&5
2233 mv -f conftest.er1 conftest.err
2234 fi
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; } >/dev/null && {
2237 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2238 test ! -s conftest.err
2239 }; then :
2240 ac_retval=0
2241 else
2242 $as_echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 ac_retval=1
2246 fi
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 return $ac_retval
2249
2250 } # ac_fn_cxx_try_cpp
2251
2252 # ac_fn_cxx_try_link LINENO
2253 # -------------------------
2254 # Try to link conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_link ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 rm -f conftest.$ac_objext conftest$ac_exeext
2259 if { { ac_try="$ac_link"
2260 case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>conftest.err
2267 ac_status=$?
2268 if test -s conftest.err; then
2269 grep -v '^ *+' conftest.err >conftest.er1
2270 cat conftest.er1 >&5
2271 mv -f conftest.er1 conftest.err
2272 fi
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && {
2275 test -z "$ac_cxx_werror_flag" ||
2276 test ! -s conftest.err
2277 } && test -s conftest$ac_exeext && {
2278 test "$cross_compiling" = yes ||
2279 $as_test_x conftest$ac_exeext
2280 }; then :
2281 ac_retval=0
2282 else
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 ac_retval=1
2287 fi
2288 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2289 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2290 # interfere with the next link command; also delete a directory that is
2291 # left behind by Apple's compiler. We do this before executing the actions.
2292 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2294 return $ac_retval
2295
2296 } # ac_fn_cxx_try_link
2297
2298 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2299 # -------------------------------------------------------
2300 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2301 # the include files in INCLUDES and setting the cache variable VAR
2302 # accordingly.
2303 ac_fn_c_check_header_mongrel ()
2304 {
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2311 fi
2312 eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 else
2316 # Is the header compilable?
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2318 $as_echo_n "checking $2 usability... " >&6; }
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $4
2322 #include <$2>
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325 ac_header_compiler=yes
2326 else
2327 ac_header_compiler=no
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2331 $as_echo "$ac_header_compiler" >&6; }
2332
2333 # Is the header present?
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2335 $as_echo_n "checking $2 presence... " >&6; }
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 #include <$2>
2339 _ACEOF
2340 if ac_fn_c_try_cpp "$LINENO"; then :
2341 ac_header_preproc=yes
2342 else
2343 ac_header_preproc=no
2344 fi
2345 rm -f conftest.err conftest.$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2347 $as_echo "$ac_header_preproc" >&6; }
2348
2349 # So? What about this header?
2350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2351 yes:no: )
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2353 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2355 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2356 ;;
2357 no:yes:* )
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2359 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2361 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2363 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2365 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2367 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2368 ;;
2369 esac
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 eval "$3=\$ac_header_compiler"
2376 fi
2377 eval ac_res=\$$3
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379 $as_echo "$ac_res" >&6; }
2380 fi
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382
2383 } # ac_fn_c_check_header_mongrel
2384
2385 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2386 # ----------------------------------------------------
2387 # Tries to find if the field MEMBER exists in type AGGR, after including
2388 # INCLUDES, setting cache variable VAR accordingly.
2389 ac_fn_c_check_member ()
2390 {
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2393 $as_echo_n "checking for $2.$3... " >&6; }
2394 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $5
2400 int
2401 main ()
2402 {
2403 static $2 ac_aggr;
2404 if (ac_aggr.$3)
2405 return 0;
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411 eval "$4=yes"
2412 else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $5
2416 int
2417 main ()
2418 {
2419 static $2 ac_aggr;
2420 if (sizeof ac_aggr.$3)
2421 return 0;
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 eval "$4=yes"
2428 else
2429 eval "$4=no"
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 fi
2435 eval ac_res=\$$4
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439
2440 } # ac_fn_c_check_member
2441
2442 # ac_fn_c_check_decl LINENO SYMBOL VAR
2443 # ------------------------------------
2444 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2445 ac_fn_c_check_decl ()
2446 {
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2449 $as_echo_n "checking whether $2 is declared... " >&6; }
2450 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2455 $4
2456 int
2457 main ()
2458 {
2459 #ifndef $2
2460 (void) $2;
2461 #endif
2462
2463 ;
2464 return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468 eval "$3=yes"
2469 else
2470 eval "$3=no"
2471 fi
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 fi
2474 eval ac_res=\$$3
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478
2479 } # ac_fn_c_check_decl
2480
2481 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2482 # --------------------------------------------
2483 # Tries to find the compile-time value of EXPR in a program that includes
2484 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2485 # computed
2486 ac_fn_c_compute_int ()
2487 {
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 if test "$cross_compiling" = yes; then
2490 # Depending upon the size, compute the lo and hi bounds.
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2493 $4
2494 int
2495 main ()
2496 {
2497 static int test_array [1 - 2 * !(($2) >= 0)];
2498 test_array [0] = 0
2499
2500 ;
2501 return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_lo=0 ac_mid=0
2506 while :; do
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 $4
2510 int
2511 main ()
2512 {
2513 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2514 test_array [0] = 0
2515
2516 ;
2517 return 0;
2518 }
2519 _ACEOF
2520 if ac_fn_c_try_compile "$LINENO"; then :
2521 ac_hi=$ac_mid; break
2522 else
2523 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2524 if test $ac_lo -le $ac_mid; then
2525 ac_lo= ac_hi=
2526 break
2527 fi
2528 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2529 fi
2530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531 done
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $4
2536 int
2537 main ()
2538 {
2539 static int test_array [1 - 2 * !(($2) < 0)];
2540 test_array [0] = 0
2541
2542 ;
2543 return 0;
2544 }
2545 _ACEOF
2546 if ac_fn_c_try_compile "$LINENO"; then :
2547 ac_hi=-1 ac_mid=-1
2548 while :; do
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 $4
2552 int
2553 main ()
2554 {
2555 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2556 test_array [0] = 0
2557
2558 ;
2559 return 0;
2560 }
2561 _ACEOF
2562 if ac_fn_c_try_compile "$LINENO"; then :
2563 ac_lo=$ac_mid; break
2564 else
2565 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2566 if test $ac_mid -le $ac_hi; then
2567 ac_lo= ac_hi=
2568 break
2569 fi
2570 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 else
2575 ac_lo= ac_hi=
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 # Binary search between lo and hi bounds.
2581 while test "x$ac_lo" != "x$ac_hi"; do
2582 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 $4
2586 int
2587 main ()
2588 {
2589 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2590 test_array [0] = 0
2591
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 ac_hi=$ac_mid
2598 else
2599 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 done
2603 case $ac_lo in #((
2604 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2605 '') ac_retval=1 ;;
2606 esac
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2610 $4
2611 static long int longval () { return $2; }
2612 static unsigned long int ulongval () { return $2; }
2613 #include <stdio.h>
2614 #include <stdlib.h>
2615 int
2616 main ()
2617 {
2618
2619 FILE *f = fopen ("conftest.val", "w");
2620 if (! f)
2621 return 1;
2622 if (($2) < 0)
2623 {
2624 long int i = longval ();
2625 if (i != ($2))
2626 return 1;
2627 fprintf (f, "%ld", i);
2628 }
2629 else
2630 {
2631 unsigned long int i = ulongval ();
2632 if (i != ($2))
2633 return 1;
2634 fprintf (f, "%lu", i);
2635 }
2636 /* Do not output a trailing newline, as this causes \r\n confusion
2637 on some platforms. */
2638 return ferror (f) || fclose (f) != 0;
2639
2640 ;
2641 return 0;
2642 }
2643 _ACEOF
2644 if ac_fn_c_try_run "$LINENO"; then :
2645 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2646 else
2647 ac_retval=1
2648 fi
2649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2650 conftest.$ac_objext conftest.beam conftest.$ac_ext
2651 rm -f conftest.val
2652
2653 fi
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655 return $ac_retval
2656
2657 } # ac_fn_c_compute_int
2658
2659 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2660 # -------------------------------------------
2661 # Tests whether TYPE exists after having included INCLUDES, setting cache
2662 # variable VAR accordingly.
2663 ac_fn_c_check_type ()
2664 {
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 eval "$3=no"
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2674 $4
2675 int
2676 main ()
2677 {
2678 if (sizeof ($2))
2679 return 0;
2680 ;
2681 return 0;
2682 }
2683 _ACEOF
2684 if ac_fn_c_try_compile "$LINENO"; then :
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h. */
2687 $4
2688 int
2689 main ()
2690 {
2691 if (sizeof (($2)))
2692 return 0;
2693 ;
2694 return 0;
2695 }
2696 _ACEOF
2697 if ac_fn_c_try_compile "$LINENO"; then :
2698
2699 else
2700 eval "$3=yes"
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 fi
2706 eval ac_res=\$$3
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2710
2711 } # ac_fn_c_check_type
2712 cat >config.log <<_ACEOF
2713 This file contains any messages produced by compilers while
2714 running configure, to aid debugging if configure makes a mistake.
2715
2716 It was created by libjava $as_me version-unused, which was
2717 generated by GNU Autoconf 2.64. Invocation command line was
2718
2719 $ $0 $@
2720
2721 _ACEOF
2722 exec 5>>config.log
2723 {
2724 cat <<_ASUNAME
2725 ## --------- ##
2726 ## Platform. ##
2727 ## --------- ##
2728
2729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2734
2735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2737
2738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2745
2746 _ASUNAME
2747
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 $as_echo "PATH: $as_dir"
2754 done
2755 IFS=$as_save_IFS
2756
2757 } >&5
2758
2759 cat >&5 <<_ACEOF
2760
2761
2762 ## ----------- ##
2763 ## Core tests. ##
2764 ## ----------- ##
2765
2766 _ACEOF
2767
2768
2769 # Keep a trace of the command line.
2770 # Strip out --no-create and --no-recursion so they do not pile up.
2771 # Strip out --silent because we don't want to record it for future runs.
2772 # Also quote any args containing shell meta-characters.
2773 # Make two passes to allow for proper duplicate-argument suppression.
2774 ac_configure_args=
2775 ac_configure_args0=
2776 ac_configure_args1=
2777 ac_must_keep_next=false
2778 for ac_pass in 1 2
2779 do
2780 for ac_arg
2781 do
2782 case $ac_arg in
2783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2785 | -silent | --silent | --silen | --sile | --sil)
2786 continue ;;
2787 *\'*)
2788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2789 esac
2790 case $ac_pass in
2791 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2792 2)
2793 as_fn_append ac_configure_args1 " '$ac_arg'"
2794 if test $ac_must_keep_next = true; then
2795 ac_must_keep_next=false # Got value, back to normal.
2796 else
2797 case $ac_arg in
2798 *=* | --config-cache | -C | -disable-* | --disable-* \
2799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2801 | -with-* | --with-* | -without-* | --without-* | --x)
2802 case "$ac_configure_args0 " in
2803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2804 esac
2805 ;;
2806 -* ) ac_must_keep_next=true ;;
2807 esac
2808 fi
2809 as_fn_append ac_configure_args " '$ac_arg'"
2810 ;;
2811 esac
2812 done
2813 done
2814 { ac_configure_args0=; unset ac_configure_args0;}
2815 { ac_configure_args1=; unset ac_configure_args1;}
2816
2817 # When interrupted or exit'd, cleanup temporary files, and complete
2818 # config.log. We remove comments because anyway the quotes in there
2819 # would cause problems or look ugly.
2820 # WARNING: Use '\'' to represent an apostrophe within the trap.
2821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2822 trap 'exit_status=$?
2823 # Save into config.log some information that might help in debugging.
2824 {
2825 echo
2826
2827 cat <<\_ASBOX
2828 ## ---------------- ##
2829 ## Cache variables. ##
2830 ## ---------------- ##
2831 _ASBOX
2832 echo
2833 # The following way of writing the cache mishandles newlines in values,
2834 (
2835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2836 eval ac_val=\$$ac_var
2837 case $ac_val in #(
2838 *${as_nl}*)
2839 case $ac_var in #(
2840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2842 esac
2843 case $ac_var in #(
2844 _ | IFS | as_nl) ;; #(
2845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2846 *) { eval $ac_var=; unset $ac_var;} ;;
2847 esac ;;
2848 esac
2849 done
2850 (set) 2>&1 |
2851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2852 *${as_nl}ac_space=\ *)
2853 sed -n \
2854 "s/'\''/'\''\\\\'\'''\''/g;
2855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2856 ;; #(
2857 *)
2858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2859 ;;
2860 esac |
2861 sort
2862 )
2863 echo
2864
2865 cat <<\_ASBOX
2866 ## ----------------- ##
2867 ## Output variables. ##
2868 ## ----------------- ##
2869 _ASBOX
2870 echo
2871 for ac_var in $ac_subst_vars
2872 do
2873 eval ac_val=\$$ac_var
2874 case $ac_val in
2875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2876 esac
2877 $as_echo "$ac_var='\''$ac_val'\''"
2878 done | sort
2879 echo
2880
2881 if test -n "$ac_subst_files"; then
2882 cat <<\_ASBOX
2883 ## ------------------- ##
2884 ## File substitutions. ##
2885 ## ------------------- ##
2886 _ASBOX
2887 echo
2888 for ac_var in $ac_subst_files
2889 do
2890 eval ac_val=\$$ac_var
2891 case $ac_val in
2892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2893 esac
2894 $as_echo "$ac_var='\''$ac_val'\''"
2895 done | sort
2896 echo
2897 fi
2898
2899 if test -s confdefs.h; then
2900 cat <<\_ASBOX
2901 ## ----------- ##
2902 ## confdefs.h. ##
2903 ## ----------- ##
2904 _ASBOX
2905 echo
2906 cat confdefs.h
2907 echo
2908 fi
2909 test "$ac_signal" != 0 &&
2910 $as_echo "$as_me: caught signal $ac_signal"
2911 $as_echo "$as_me: exit $exit_status"
2912 } >&5
2913 rm -f core *.core core.conftest.* &&
2914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2915 exit $exit_status
2916 ' 0
2917 for ac_signal in 1 2 13 15; do
2918 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2919 done
2920 ac_signal=0
2921
2922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2923 rm -f -r conftest* confdefs.h
2924
2925 $as_echo "/* confdefs.h */" > confdefs.h
2926
2927 # Predefined preprocessor variables.
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_NAME "$PACKAGE_NAME"
2931 _ACEOF
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2935 _ACEOF
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2939 _ACEOF
2940
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_STRING "$PACKAGE_STRING"
2943 _ACEOF
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2947 _ACEOF
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_URL "$PACKAGE_URL"
2951 _ACEOF
2952
2953
2954 # Let the site file select an alternate cache file if it wants to.
2955 # Prefer an explicitly selected file to automatically selected ones.
2956 ac_site_file1=NONE
2957 ac_site_file2=NONE
2958 if test -n "$CONFIG_SITE"; then
2959 ac_site_file1=$CONFIG_SITE
2960 elif test "x$prefix" != xNONE; then
2961 ac_site_file1=$prefix/share/config.site
2962 ac_site_file2=$prefix/etc/config.site
2963 else
2964 ac_site_file1=$ac_default_prefix/share/config.site
2965 ac_site_file2=$ac_default_prefix/etc/config.site
2966 fi
2967 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2968 do
2969 test "x$ac_site_file" = xNONE && continue
2970 if test -r "$ac_site_file"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2972 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2973 sed 's/^/| /' "$ac_site_file" >&5
2974 . "$ac_site_file"
2975 fi
2976 done
2977
2978 if test -r "$cache_file"; then
2979 # Some versions of bash will fail to source /dev/null (special
2980 # files actually), so we avoid doing that.
2981 if test -f "$cache_file"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2983 $as_echo "$as_me: loading cache $cache_file" >&6;}
2984 case $cache_file in
2985 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2986 *) . "./$cache_file";;
2987 esac
2988 fi
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2991 $as_echo "$as_me: creating cache $cache_file" >&6;}
2992 >$cache_file
2993 fi
2994
2995 # Check that the precious variables saved in the cache have kept the same
2996 # value.
2997 ac_cache_corrupted=false
2998 for ac_var in $ac_precious_vars; do
2999 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3000 eval ac_new_set=\$ac_env_${ac_var}_set
3001 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3002 eval ac_new_val=\$ac_env_${ac_var}_value
3003 case $ac_old_set,$ac_new_set in
3004 set,)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3006 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3007 ac_cache_corrupted=: ;;
3008 ,set)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3010 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3011 ac_cache_corrupted=: ;;
3012 ,);;
3013 *)
3014 if test "x$ac_old_val" != "x$ac_new_val"; then
3015 # differences in whitespace do not lead to failure.
3016 ac_old_val_w=`echo x $ac_old_val`
3017 ac_new_val_w=`echo x $ac_new_val`
3018 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3020 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3021 ac_cache_corrupted=:
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3024 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3025 eval $ac_var=\$ac_old_val
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3028 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3030 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3031 fi;;
3032 esac
3033 # Pass precious variables to config.status.
3034 if test "$ac_new_set" = set; then
3035 case $ac_new_val in
3036 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3037 *) ac_arg=$ac_var=$ac_new_val ;;
3038 esac
3039 case " $ac_configure_args " in
3040 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3041 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3042 esac
3043 fi
3044 done
3045 if $ac_cache_corrupted; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3049 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3050 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3051 fi
3052 ## -------------------- ##
3053 ## Main body of script. ##
3054 ## -------------------- ##
3055
3056 ac_ext=c
3057 ac_cpp='$CPP $CPPFLAGS'
3058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061
3062
3063
3064
3065
3066
3067
3068
3069 ac_aux_dir=
3070 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3071 for ac_t in install-sh install.sh shtool; do
3072 if test -f "$ac_dir/$ac_t"; then
3073 ac_aux_dir=$ac_dir
3074 ac_install_sh="$ac_aux_dir/$ac_t -c"
3075 break 2
3076 fi
3077 done
3078 done
3079 if test -z "$ac_aux_dir"; then
3080 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3081 fi
3082
3083 # These three variables are undocumented and unsupported,
3084 # and are intended to be withdrawn in a future Autoconf release.
3085 # They can cause serious problems if a builder's source tree is in a directory
3086 # whose full name contains unusual characters.
3087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3090
3091
3092 # Make sure we can run config.sub.
3093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3094 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3095
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3097 $as_echo_n "checking build system type... " >&6; }
3098 if test "${ac_cv_build+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 ac_build_alias=$build_alias
3102 test "x$ac_build_alias" = x &&
3103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3104 test "x$ac_build_alias" = x &&
3105 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3107 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3108
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3111 $as_echo "$ac_cv_build" >&6; }
3112 case $ac_cv_build in
3113 *-*-*) ;;
3114 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3115 esac
3116 build=$ac_cv_build
3117 ac_save_IFS=$IFS; IFS='-'
3118 set x $ac_cv_build
3119 shift
3120 build_cpu=$1
3121 build_vendor=$2
3122 shift; shift
3123 # Remember, the first character of IFS is used to create $*,
3124 # except with old shells:
3125 build_os=$*
3126 IFS=$ac_save_IFS
3127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3128
3129
3130 case ${build_alias} in
3131 "") build_noncanonical=${build} ;;
3132 *) build_noncanonical=${build_alias} ;;
3133 esac
3134
3135 case ${host_alias} in
3136 "") host_noncanonical=${build_noncanonical} ;;
3137 *) host_noncanonical=${host_alias} ;;
3138 esac
3139
3140 case ${target_alias} in
3141 "") target_noncanonical=${host_noncanonical} ;;
3142 *) target_noncanonical=${target_alias} ;;
3143 esac
3144
3145
3146 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3147 # have matching libraries, they should use host libraries: Makefile.tpl
3148 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3149 # However, they still use the build modules, because the corresponding
3150 # host modules (e.g. bison) are only built for the host when bootstrap
3151 # finishes. So:
3152 # - build_subdir is where we find build modules, and never changes.
3153 # - build_libsubdir is where we find build libraries, and can be overridden.
3154
3155 # Prefix 'build-' so this never conflicts with target_subdir.
3156 build_subdir="build-${build_noncanonical}"
3157
3158 # Check whether --with-build-libsubdir was given.
3159 if test "${with_build_libsubdir+set}" = set; then :
3160 withval=$with_build_libsubdir; build_libsubdir="$withval"
3161 else
3162 build_libsubdir="$build_subdir"
3163 fi
3164
3165 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3166 if ( test $srcdir = . && test -d gcc ) \
3167 || test -d $srcdir/../host-${host_noncanonical}; then
3168 host_subdir="host-${host_noncanonical}"
3169 else
3170 host_subdir=.
3171 fi
3172 # No prefix.
3173 target_subdir=${target_noncanonical}
3174
3175
3176 # We use these options to decide which functions to include.
3177
3178 # Check whether --with-target-subdir was given.
3179 if test "${with_target_subdir+set}" = set; then :
3180 withval=$with_target_subdir;
3181 fi
3182
3183
3184 # We may get other options which we don't document:
3185 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3186
3187 # Find the rest of the source tree framework.
3188 # Default to --enable-multilib
3189 # Check whether --enable-multilib was given.
3190 if test "${enable_multilib+set}" = set; then :
3191 enableval=$enable_multilib; case "$enableval" in
3192 yes) multilib=yes ;;
3193 no) multilib=no ;;
3194 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3195 esac
3196 else
3197 multilib=yes
3198 fi
3199
3200
3201 # We may get other options which we leave undocumented:
3202 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3203 # See config-ml.in if you want the gory details.
3204
3205 if test "$srcdir" = "."; then
3206 if test "$with_target_subdir" != "."; then
3207 multi_basedir="$srcdir/$with_multisrctop../.."
3208 else
3209 multi_basedir="$srcdir/$with_multisrctop.."
3210 fi
3211 else
3212 multi_basedir="$srcdir/.."
3213 fi
3214
3215
3216 # Even if the default multilib is not a cross compilation,
3217 # it may be that some of the other multilibs are.
3218 if test $cross_compiling = no && test $multilib = yes \
3219 && test "x${with_multisubdir}" != x ; then
3220 cross_compiling=maybe
3221 fi
3222
3223 ac_config_commands="$ac_config_commands default-1"
3224
3225
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3227 $as_echo_n "checking host system type... " >&6; }
3228 if test "${ac_cv_host+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test "x$host_alias" = x; then
3232 ac_cv_host=$ac_cv_build
3233 else
3234 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3235 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3236 fi
3237
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3240 $as_echo "$ac_cv_host" >&6; }
3241 case $ac_cv_host in
3242 *-*-*) ;;
3243 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3244 esac
3245 host=$ac_cv_host
3246 ac_save_IFS=$IFS; IFS='-'
3247 set x $ac_cv_host
3248 shift
3249 host_cpu=$1
3250 host_vendor=$2
3251 shift; shift
3252 # Remember, the first character of IFS is used to create $*,
3253 # except with old shells:
3254 host_os=$*
3255 IFS=$ac_save_IFS
3256 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3257
3258
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3260 $as_echo_n "checking target system type... " >&6; }
3261 if test "${ac_cv_target+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test "x$target_alias" = x; then
3265 ac_cv_target=$ac_cv_host
3266 else
3267 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3268 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3269 fi
3270
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3273 $as_echo "$ac_cv_target" >&6; }
3274 case $ac_cv_target in
3275 *-*-*) ;;
3276 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3277 esac
3278 target=$ac_cv_target
3279 ac_save_IFS=$IFS; IFS='-'
3280 set x $ac_cv_target
3281 shift
3282 target_cpu=$1
3283 target_vendor=$2
3284 shift; shift
3285 # Remember, the first character of IFS is used to create $*,
3286 # except with old shells:
3287 target_os=$*
3288 IFS=$ac_save_IFS
3289 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3290
3291
3292 # The aliases save the names the user supplied, while $host etc.
3293 # will get canonicalized.
3294 test -n "$target_alias" &&
3295 test "$program_prefix$program_suffix$program_transform_name" = \
3296 NONENONEs,x,x, &&
3297 program_prefix=${target_alias}-
3298
3299 case ${build_alias} in
3300 "") build_noncanonical=${build} ;;
3301 *) build_noncanonical=${build_alias} ;;
3302 esac
3303
3304 case ${target_alias} in
3305 "") target_noncanonical=${host_noncanonical} ;;
3306 *) target_noncanonical=${target_alias} ;;
3307 esac
3308
3309
3310
3311
3312 # This works around the fact that libtool configuration may change LD
3313 # for this particular configuration, but some shells, instead of
3314 # keeping the changes in LD private, export them just because LD is
3315 # exported.
3316 ORIGINAL_LD_FOR_MULTILIBS=$LD
3317
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3319 $as_echo_n "checking whether ln -s works... " >&6; }
3320 LN_S=$as_ln_s
3321 if test "$LN_S" = "ln -s"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3326 $as_echo "no, using $LN_S" >&6; }
3327 fi
3328
3329
3330 # This works around an automake problem.
3331 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3332
3333
3334
3335 # Check whether --with-cross-host was given.
3336 if test "${with_cross_host+set}" = set; then :
3337 withval=$with_cross_host;
3338 fi
3339
3340
3341
3342 # Check whether --with-newlib was given.
3343 if test "${with_newlib+set}" = set; then :
3344 withval=$with_newlib;
3345 fi
3346
3347
3348 # Check whether --enable-version-specific-runtime-libs was given.
3349 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3350 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3351 yes) version_specific_libs=yes ;;
3352 no) version_specific_libs=no ;;
3353 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3354 esac
3355 else
3356 version_specific_libs=no
3357
3358 fi
3359
3360
3361 # Check whether --enable-plugin was given.
3362 if test "${enable_plugin+set}" = set; then :
3363 enableval=$enable_plugin; case "$enableval" in
3364 yes) plugin_enabled=yes ;;
3365 no) plugin_enabled=no ;;
3366 *) as_fn_error "Unknown argument to enable/disable plugin" "$LINENO" 5;;
3367 esac
3368 else
3369 plugin_enabled=no
3370
3371 fi
3372
3373
3374 # Check whether --enable-gconf-peer was given.
3375 if test "${enable_gconf_peer+set}" = set; then :
3376 enableval=$enable_gconf_peer; case "$enableval" in
3377 yes) gconf_enabled=yes ;;
3378 no) gconf_enabled=no ;;
3379 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3380 esac
3381 else
3382 gconf_enabled=no
3383
3384 fi
3385
3386
3387
3388 # Check whether --with-antlr-jar was given.
3389 if test "${with_antlr_jar+set}" = set; then :
3390 withval=$with_antlr_jar;
3391 ANTLR_JAR=$withval
3392
3393 else
3394
3395 ANTLR_JAR=
3396
3397 fi
3398
3399
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3401 $as_echo_n "checking for antlr.jar... " >&6; }
3402 if test "x$ANTLR_JAR" = x; then
3403 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3404 /usr/share/antlr/lib /usr/share/java /usr/lib;
3405 do
3406 if test -f "$antlr_lib_home/antlr.jar"; then
3407 # FIXME: version check for antlr needed without using a VM
3408 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3409 break
3410 fi
3411 done
3412 if test "x$ANTLR_JAR" = x; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3414 $as_echo "not found" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3417 $as_echo "$ANTLR_JAR" >&6; }
3418 fi
3419 else
3420 if test -f "${ANTLR_JAR}"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3422 $as_echo "$ANTLR_JAR" >&6; }
3423 else
3424 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3425 fi
3426 fi
3427
3428
3429 # Check whether --enable-gjdoc was given.
3430 if test "${enable_gjdoc+set}" = set; then :
3431 enableval=$enable_gjdoc; case "${enableval}" in
3432 yes) BUILD_GJDOC=yes ;;
3433 no) BUILD_GJDOC=no ;;
3434 *) BUILD_GJDOC=yes ;;
3435 esac
3436 else
3437 BUILD_GJDOC=maybe
3438 fi
3439
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3442 $as_echo_n "checking whether to build gjdoc... " >&6; }
3443 if test "x$BUILD_GJDOC" = xmaybe; then
3444 if test -f "${ANTLR_JAR}"; then
3445 BUILD_GJDOC=yes
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3447 $as_echo "yes" >&6; }
3448 else
3449 BUILD_GJDOC=no
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3451 $as_echo "no, antlr.jar not found" >&6; }
3452 fi
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3455 $as_echo "$BUILD_GJDOC" >&6; }
3456 fi
3457 if test "x${BUILD_GJDOC}" = xyes; then
3458 CREATE_GJDOC_TRUE=
3459 CREATE_GJDOC_FALSE='#'
3460 else
3461 CREATE_GJDOC_TRUE='#'
3462 CREATE_GJDOC_FALSE=
3463 fi
3464
3465
3466 # Check whether --enable-java-maintainer-mode was given.
3467 if test "${enable_java_maintainer_mode+set}" = set; then :
3468 enableval=$enable_java_maintainer_mode;
3469 fi
3470
3471 if test "$enable_java_maintainer_mode" = yes; then
3472 JAVA_MAINTAINER_MODE_TRUE=
3473 JAVA_MAINTAINER_MODE_FALSE='#'
3474 else
3475 JAVA_MAINTAINER_MODE_TRUE='#'
3476 JAVA_MAINTAINER_MODE_FALSE=
3477 fi
3478
3479
3480 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3481
3482
3483 # (1) We use an abnormal CXX (without library references), so we
3484 # must cache it under a different name.
3485 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3486 # the non-multilib-adjusted value will be used in multilibs.
3487 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3488 # (4) As another side effect, automake doesn't automatically include them
3489 # in Makefile.in.
3490 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3491 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3492 # used in later tests. This may not be necessary in libjava; I don't know.
3493
3494
3495 save_CXXFLAGS="$CXXFLAGS"
3496 CXXFLAGS="$CXXFLAGS -fno-builtin"
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540 fi
3541 if test -z "$ac_cv_prog_CC"; then
3542 ac_ct_CC=$CC
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3589 fi
3590 else
3591 CC="$ac_cv_prog_CC"
3592 fi
3593
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 fi
3622 fi
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 fi
3631
3632
3633 fi
3634 fi
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 ac_prog_rejected=no
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3657 fi
3658 ac_cv_prog_CC="cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 fi
3677 fi
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 test -n "$CC" && break
3733 done
3734 fi
3735 if test -z "$CC"; then
3736 ac_ct_CC=$CC
3737 for ac_prog in cl.exe
3738 do
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 test -n "$ac_ct_CC" && break
3777 done
3778
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3789 fi
3790 fi
3791
3792 fi
3793
3794
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3799
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3820 fi
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3824
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 # FIXME: Cleanup?
3837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3838 (eval $ac_link) 2>&5
3839 ac_status=$?
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; then :
3842 gcc_no_link=no
3843 else
3844 gcc_no_link=yes
3845 fi
3846 if test x$gcc_no_link = xyes; then
3847 # Setting cross_compile will disable run tests; it will
3848 # also disable AC_CHECK_FILE but that's generally
3849 # correct if we can't link.
3850 cross_compiling=yes
3851 EXEEXT=
3852 else
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855
3856 int
3857 main ()
3858 {
3859
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 ac_clean_files_save=$ac_clean_files
3865 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3866 # Try to create an executable without -o first, disregard a.out.
3867 # It will help us diagnose broken compilers, and finding out an intuition
3868 # of exeext.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3870 $as_echo_n "checking for C compiler default output file name... " >&6; }
3871 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3872
3873 # The possible output files:
3874 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3875
3876 ac_rmfiles=
3877 for ac_file in $ac_files
3878 do
3879 case $ac_file in
3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3881 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3882 esac
3883 done
3884 rm -f $ac_rmfiles
3885
3886 if { { ac_try="$ac_link_default"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_link_default") 2>&5
3894 ac_status=$?
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }; then :
3897 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3898 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3899 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3900 # so that the user can short-circuit this test for compilers unknown to
3901 # Autoconf.
3902 for ac_file in $ac_files ''
3903 do
3904 test -f "$ac_file" || continue
3905 case $ac_file in
3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3907 ;;
3908 [ab].out )
3909 # We found the default executable, but exeext='' is most
3910 # certainly right.
3911 break;;
3912 *.* )
3913 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3914 then :; else
3915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3916 fi
3917 # We set ac_cv_exeext here because the later test for it is not
3918 # safe: cross compilers may not add the suffix if given an `-o'
3919 # argument, so we may need to know it at that point already.
3920 # Even if this section looks crufty: it has the advantage of
3921 # actually working.
3922 break;;
3923 * )
3924 break;;
3925 esac
3926 done
3927 test "$ac_cv_exeext" = no && ac_cv_exeext=
3928
3929 else
3930 ac_file=''
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3933 $as_echo "$ac_file" >&6; }
3934 if test -z "$ac_file"; then :
3935 $as_echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 { as_fn_set_status 77
3941 as_fn_error "C compiler cannot create executables
3942 See \`config.log' for more details." "$LINENO" 5; }; }
3943 fi
3944 ac_exeext=$ac_cv_exeext
3945
3946 # Check that the compiler produces executables we can run. If not, either
3947 # the compiler is broken, or we cross compile.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3949 $as_echo_n "checking whether the C compiler works... " >&6; }
3950 # If not cross compiling, check that we can run a simple program.
3951 if test "$cross_compiling" != yes; then
3952 if { ac_try='./$ac_file'
3953 { { case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_try") 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; }; then
3963 cross_compiling=no
3964 else
3965 if test "$cross_compiling" = maybe; then
3966 cross_compiling=yes
3967 else
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error "cannot run C compiled programs.
3971 If you meant to cross compile, use \`--host'.
3972 See \`config.log' for more details." "$LINENO" 5; }
3973 fi
3974 fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3977 $as_echo "yes" >&6; }
3978
3979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3980 ac_clean_files=$ac_clean_files_save
3981 # Check that the compiler produces executables we can run. If not, either
3982 # the compiler is broken, or we cross compile.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3984 $as_echo_n "checking whether we are cross compiling... " >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3986 $as_echo "$cross_compiling" >&6; }
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3989 $as_echo_n "checking for suffix of executables... " >&6; }
3990 if { { ac_try="$ac_link"
3991 case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 $as_echo "$ac_try_echo"; } >&5
3997 (eval "$ac_link") 2>&5
3998 ac_status=$?
3999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4000 test $ac_status = 0; }; then :
4001 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4002 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4003 # work properly (i.e., refer to `conftest.exe'), while it won't with
4004 # `rm'.
4005 for ac_file in conftest.exe conftest conftest.*; do
4006 test -f "$ac_file" || continue
4007 case $ac_file in
4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4009 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4010 break;;
4011 * ) break;;
4012 esac
4013 done
4014 else
4015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error "cannot compute suffix of executables: cannot compile and link
4018 See \`config.log' for more details." "$LINENO" 5; }
4019 fi
4020 rm -f conftest$ac_cv_exeext
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4022 $as_echo "$ac_cv_exeext" >&6; }
4023
4024 rm -f conftest.$ac_ext
4025 EXEEXT=$ac_cv_exeext
4026 ac_exeext=$EXEEXT
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029 $as_echo_n "checking for suffix of object files... " >&6; }
4030 if test "${ac_cv_objext+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.o conftest.obj
4045 if { { ac_try="$ac_compile"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compile") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 for ac_file in conftest.o conftest.obj conftest.*; do
4057 test -f "$ac_file" || continue;
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4061 break;;
4062 esac
4063 done
4064 else
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error "cannot compute suffix of object files: cannot compile
4071 See \`config.log' for more details." "$LINENO" 5; }
4072 fi
4073 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4076 $as_echo "$ac_cv_objext" >&6; }
4077 OBJEXT=$ac_cv_objext
4078 ac_objext=$OBJEXT
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main ()
4089 {
4090 #ifndef __GNUC__
4091 choke me
4092 #endif
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_compiler_gnu=yes
4100 else
4101 ac_compiler_gnu=no
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4105
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109 if test $ac_compiler_gnu = yes; then
4110 GCC=yes
4111 else
4112 GCC=
4113 fi
4114 ac_test_CFLAGS=${CFLAGS+set}
4115 ac_save_CFLAGS=$CFLAGS
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4118 if test "${ac_cv_prog_cc_g+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4123 ac_cv_prog_cc_g=no
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127
4128 int
4129 main ()
4130 {
4131
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4138 else
4139 CFLAGS=""
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142
4143 int
4144 main ()
4145 {
4146
4147 ;
4148 return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152
4153 else
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158
4159 int
4160 main ()
4161 {
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178 $as_echo "$ac_cv_prog_cc_g" >&6; }
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4186 fi
4187 else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4192 fi
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 ac_cv_prog_cc_c89=no
4200 ac_save_CC=$CC
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <stdarg.h>
4204 #include <stdio.h>
4205 #include <sys/types.h>
4206 #include <sys/stat.h>
4207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4208 struct buf { int x; };
4209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4210 static char *e (p, i)
4211 char **p;
4212 int i;
4213 {
4214 return p[i];
4215 }
4216 static char *f (char * (*g) (char **, int), char **p, ...)
4217 {
4218 char *s;
4219 va_list v;
4220 va_start (v,p);
4221 s = g (p, va_arg (v,int));
4222 va_end (v);
4223 return s;
4224 }
4225
4226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4227 function prototypes and stuff, but not '\xHH' hex character constants.
4228 These don't provoke an error unfortunately, instead are silently treated
4229 as 'x'. The following induces an error, until -std is added to get
4230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4231 array size at least. It's necessary to write '\x00'==0 to get something
4232 that's true only with -std. */
4233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234
4235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4236 inside strings and character constants. */
4237 #define FOO(x) 'x'
4238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239
4240 int test (int i, double x);
4241 struct s1 {int (*f) (int a);};
4242 struct s2 {int (*f) (double a);};
4243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 int argc;
4245 char **argv;
4246 int
4247 main ()
4248 {
4249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 do
4257 CC="$ac_save_CC $ac_arg"
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_prog_cc_c89=$ac_arg
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext
4262 test "x$ac_cv_prog_cc_c89" != "xno" && break
4263 done
4264 rm -f conftest.$ac_ext
4265 CC=$ac_save_CC
4266
4267 fi
4268 # AC_CACHE_VAL
4269 case "x$ac_cv_prog_cc_c89" in
4270 x)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 $as_echo "none needed" >&6; } ;;
4273 xno)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275 $as_echo "unsupported" >&6; } ;;
4276 *)
4277 CC="$CC $ac_cv_prog_cc_c89"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4279 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280 esac
4281 if test "x$ac_cv_prog_cc_c89" != xno; then :
4282
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291 ac_ext=cpp
4292 ac_cpp='$CXXCPP $CPPFLAGS'
4293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4296 if test -z "$CXX"; then
4297 if test -n "$CCC"; then
4298 CXX=$CCC
4299 else
4300 if test -n "$ac_tool_prefix"; then
4301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4302 do
4303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_prog_CXX+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$CXX"; then
4311 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 CXX=$ac_cv_prog_CXX
4331 if test -n "$CXX"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4333 $as_echo "$CXX" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 test -n "$CXX" && break
4341 done
4342 fi
4343 if test -z "$CXX"; then
4344 ac_ct_CXX=$CXX
4345 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4346 do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348 set dummy $ac_prog; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -n "$ac_ct_CXX"; then
4355 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_ac_ct_CXX="$ac_prog"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368 done
4369 done
4370 IFS=$as_save_IFS
4371
4372 fi
4373 fi
4374 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4375 if test -n "$ac_ct_CXX"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4377 $as_echo "$ac_ct_CXX" >&6; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 fi
4382
4383
4384 test -n "$ac_ct_CXX" && break
4385 done
4386
4387 if test "x$ac_ct_CXX" = x; then
4388 CXX="g++"
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391 yes:)
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394 ac_tool_warned=yes ;;
4395 esac
4396 CXX=$ac_ct_CXX
4397 fi
4398 fi
4399
4400 fi
4401 fi
4402 # Provide some information about the compiler.
4403 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4404 set X $ac_compile
4405 ac_compiler=$2
4406 for ac_option in --version -v -V -qversion; do
4407 { { ac_try="$ac_compiler $ac_option >&5"
4408 case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 $as_echo "$ac_try_echo"; } >&5
4414 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4415 ac_status=$?
4416 if test -s conftest.err; then
4417 sed '10a\
4418 ... rest of stderr output deleted ...
4419 10q' conftest.err >conftest.er1
4420 cat conftest.er1 >&5
4421 rm -f conftest.er1 conftest.err
4422 fi
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; }
4425 done
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4428 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4429 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434
4435 int
4436 main ()
4437 {
4438 #ifndef __GNUC__
4439 choke me
4440 #endif
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_cxx_try_compile "$LINENO"; then :
4447 ac_compiler_gnu=yes
4448 else
4449 ac_compiler_gnu=no
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4453
4454 fi
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4456 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4457 if test $ac_compiler_gnu = yes; then
4458 GXX=yes
4459 else
4460 GXX=
4461 fi
4462 ac_test_CXXFLAGS=${CXXFLAGS+set}
4463 ac_save_CXXFLAGS=$CXXFLAGS
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4465 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4466 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4470 ac_cxx_werror_flag=yes
4471 ac_cv_prog_cxx_g=no
4472 CXXFLAGS="-g"
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475
4476 int
4477 main ()
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_cxx_try_compile "$LINENO"; then :
4485 ac_cv_prog_cxx_g=yes
4486 else
4487 CXXFLAGS=""
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 int
4492 main ()
4493 {
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4500
4501 else
4502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4503 CXXFLAGS="-g"
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506
4507 int
4508 main ()
4509 {
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_cxx_try_compile "$LINENO"; then :
4516 ac_cv_prog_cxx_g=yes
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 fi
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4526 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4527 if test "$ac_test_CXXFLAGS" = set; then
4528 CXXFLAGS=$ac_save_CXXFLAGS
4529 elif test $ac_cv_prog_cxx_g = yes; then
4530 if test "$GXX" = yes; then
4531 CXXFLAGS="-g -O2"
4532 else
4533 CXXFLAGS="-g"
4534 fi
4535 else
4536 if test "$GXX" = yes; then
4537 CXXFLAGS="-O2"
4538 else
4539 CXXFLAGS=
4540 fi
4541 fi
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 CXXFLAGS="$save_CXXFLAGS"
4549
4550
4551
4552
4553
4554 am__api_version='1.11'
4555
4556 # Find a good install program. We prefer a C program (faster),
4557 # so one script is as good as another. But avoid the broken or
4558 # incompatible versions:
4559 # SysV /etc/install, /usr/sbin/install
4560 # SunOS /usr/etc/install
4561 # IRIX /sbin/install
4562 # AIX /bin/install
4563 # AmigaOS /C/install, which installs bootblocks on floppy discs
4564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4567 # OS/2's system install, which has a completely different semantic
4568 # ./install, which can be erroneously created by make from ./install.sh.
4569 # Reject install programs that cannot install multiple files.
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4571 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4572 if test -z "$INSTALL"; then
4573 if test "${ac_cv_path_install+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 # Account for people who put trailing slashes in PATH elements.
4582 case $as_dir/ in #((
4583 ./ | .// | /[cC]/* | \
4584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4586 /usr/ucb/* ) ;;
4587 *)
4588 # OSF1 and SCO ODT 3.0 have their own names for install.
4589 # Don't use installbsd from OSF since it installs stuff as root
4590 # by default.
4591 for ac_prog in ginstall scoinst install; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4594 if test $ac_prog = install &&
4595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4596 # AIX install. It has an incompatible calling convention.
4597 :
4598 elif test $ac_prog = install &&
4599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4600 # program-specific install script used by HP pwplus--don't use.
4601 :
4602 else
4603 rm -rf conftest.one conftest.two conftest.dir
4604 echo one > conftest.one
4605 echo two > conftest.two
4606 mkdir conftest.dir
4607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4608 test -s conftest.one && test -s conftest.two &&
4609 test -s conftest.dir/conftest.one &&
4610 test -s conftest.dir/conftest.two
4611 then
4612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4613 break 3
4614 fi
4615 fi
4616 fi
4617 done
4618 done
4619 ;;
4620 esac
4621
4622 done
4623 IFS=$as_save_IFS
4624
4625 rm -rf conftest.one conftest.two conftest.dir
4626
4627 fi
4628 if test "${ac_cv_path_install+set}" = set; then
4629 INSTALL=$ac_cv_path_install
4630 else
4631 # As a last resort, use the slow shell script. Don't cache a
4632 # value for INSTALL within a source directory, because that will
4633 # break other packages using the cache if that directory is
4634 # removed, or if the value is a relative name.
4635 INSTALL=$ac_install_sh
4636 fi
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4639 $as_echo "$INSTALL" >&6; }
4640
4641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4642 # It thinks the first close brace ends the variable substitution.
4643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4644
4645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4646
4647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4650 $as_echo_n "checking whether build environment is sane... " >&6; }
4651 # Just in case
4652 sleep 1
4653 echo timestamp > conftest.file
4654 # Reject unsafe characters in $srcdir or the absolute working directory
4655 # name. Accept space and tab only in the latter.
4656 am_lf='
4657 '
4658 case `pwd` in
4659 *[\\\"\#\$\&\'\`$am_lf]*)
4660 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4661 esac
4662 case $srcdir in
4663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4664 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4665 esac
4666
4667 # Do `set' in a subshell so we don't clobber the current shell's
4668 # arguments. Must try -L first in case configure is actually a
4669 # symlink; some systems play weird games with the mod time of symlinks
4670 # (eg FreeBSD returns the mod time of the symlink's containing
4671 # directory).
4672 if (
4673 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4674 if test "$*" = "X"; then
4675 # -L didn't work.
4676 set X `ls -t "$srcdir/configure" conftest.file`
4677 fi
4678 rm -f conftest.file
4679 if test "$*" != "X $srcdir/configure conftest.file" \
4680 && test "$*" != "X conftest.file $srcdir/configure"; then
4681
4682 # If neither matched, then we have a broken ls. This can happen
4683 # if, for instance, CONFIG_SHELL is bash and it inherits a
4684 # broken ls alias from the environment. This has actually
4685 # happened. Such a system could not be considered "sane".
4686 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4687 alias in your environment" "$LINENO" 5
4688 fi
4689
4690 test "$2" = conftest.file
4691 )
4692 then
4693 # Ok.
4694 :
4695 else
4696 as_fn_error "newly created file is older than distributed files!
4697 Check your system clock" "$LINENO" 5
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700 $as_echo "yes" >&6; }
4701 test "$program_prefix" != NONE &&
4702 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4703 # Use a double $ so make ignores it.
4704 test "$program_suffix" != NONE &&
4705 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4706 # Double any \ or $.
4707 # By default was `s,x,x', remove it if useless.
4708 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4709 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4710
4711 # expand $ac_aux_dir to an absolute path
4712 am_aux_dir=`cd $ac_aux_dir && pwd`
4713
4714 if test x"${MISSING+set}" != xset; then
4715 case $am_aux_dir in
4716 *\ * | *\ *)
4717 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4718 *)
4719 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4720 esac
4721 fi
4722 # Use eval to expand $SHELL
4723 if eval "$MISSING --run true"; then
4724 am_missing_run="$MISSING --run "
4725 else
4726 am_missing_run=
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4728 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4729 fi
4730
4731 if test x"${install_sh}" != xset; then
4732 case $am_aux_dir in
4733 *\ * | *\ *)
4734 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4735 *)
4736 install_sh="\${SHELL} $am_aux_dir/install-sh"
4737 esac
4738 fi
4739
4740 # Installed binaries are usually stripped using `strip' when the user
4741 # run `make install-strip'. However `strip' might not be the right
4742 # tool to use in cross-compilation environments, therefore Automake
4743 # will honor the `STRIP' environment variable to overrule this program.
4744 if test "$cross_compiling" != no; then
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4747 set dummy ${ac_tool_prefix}strip; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_prog_STRIP+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$STRIP"; then
4754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 STRIP=$ac_cv_prog_STRIP
4774 if test -n "$STRIP"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4776 $as_echo "$STRIP" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782
4783 fi
4784 if test -z "$ac_cv_prog_STRIP"; then
4785 ac_ct_STRIP=$STRIP
4786 # Extract the first word of "strip", so it can be a program name with args.
4787 set dummy strip; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$ac_ct_STRIP"; then
4794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_ac_ct_STRIP="strip"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807 done
4808 done
4809 IFS=$as_save_IFS
4810
4811 fi
4812 fi
4813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4814 if test -n "$ac_ct_STRIP"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4816 $as_echo "$ac_ct_STRIP" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822 if test "x$ac_ct_STRIP" = x; then
4823 STRIP=":"
4824 else
4825 case $cross_compiling:$ac_tool_warned in
4826 yes:)
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829 ac_tool_warned=yes ;;
4830 esac
4831 STRIP=$ac_ct_STRIP
4832 fi
4833 else
4834 STRIP="$ac_cv_prog_STRIP"
4835 fi
4836
4837 fi
4838 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4841 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4842 if test -z "$MKDIR_P"; then
4843 if test "${ac_cv_path_mkdir+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_prog in mkdir gmkdir; do
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4854 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4855 'mkdir (GNU coreutils) '* | \
4856 'mkdir (coreutils) '* | \
4857 'mkdir (fileutils) '4.1*)
4858 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4859 break 3;;
4860 esac
4861 done
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867
4868 if test "${ac_cv_path_mkdir+set}" = set; then
4869 MKDIR_P="$ac_cv_path_mkdir -p"
4870 else
4871 # As a last resort, use the slow shell script. Don't cache a
4872 # value for MKDIR_P within a source directory, because that will
4873 # break other packages using the cache if that directory is
4874 # removed, or if the value is a relative name.
4875 test -d ./--version && rmdir ./--version
4876 MKDIR_P="$ac_install_sh -d"
4877 fi
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4880 $as_echo "$MKDIR_P" >&6; }
4881
4882 mkdir_p="$MKDIR_P"
4883 case $mkdir_p in
4884 [\\/$]* | ?:[\\/]*) ;;
4885 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4886 esac
4887
4888 for ac_prog in gawk mawk nawk awk
4889 do
4890 # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_AWK+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$AWK"; then
4898 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_AWK="$ac_prog"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 AWK=$ac_cv_prog_AWK
4918 if test -n "$AWK"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4920 $as_echo "$AWK" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926
4927 test -n "$AWK" && break
4928 done
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4931 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4932 set x ${MAKE-make}
4933 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4934 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat >conftest.make <<\_ACEOF
4938 SHELL = /bin/sh
4939 all:
4940 @echo '@@@%%%=$(MAKE)=@@@%%%'
4941 _ACEOF
4942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4943 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4944 *@@@%%%=?*=@@@%%%*)
4945 eval ac_cv_prog_make_${ac_make}_set=yes;;
4946 *)
4947 eval ac_cv_prog_make_${ac_make}_set=no;;
4948 esac
4949 rm -f conftest.make
4950 fi
4951 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 $as_echo "yes" >&6; }
4954 SET_MAKE=
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 SET_MAKE="MAKE=${MAKE-make}"
4959 fi
4960
4961 rm -rf .tst 2>/dev/null
4962 mkdir .tst 2>/dev/null
4963 if test -d .tst; then
4964 am__leading_dot=.
4965 else
4966 am__leading_dot=_
4967 fi
4968 rmdir .tst 2>/dev/null
4969
4970 DEPDIR="${am__leading_dot}deps"
4971
4972 ac_config_commands="$ac_config_commands depfiles"
4973
4974
4975 am_make=${MAKE-make}
4976 cat > confinc << 'END'
4977 am__doit:
4978 @echo this is the am__doit target
4979 .PHONY: am__doit
4980 END
4981 # If we don't find an include directive, just comment out the code.
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4983 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4984 am__include="#"
4985 am__quote=
4986 _am_result=none
4987 # First try GNU make style include.
4988 echo "include confinc" > confmf
4989 # Ignore all kinds of additional output from `make'.
4990 case `$am_make -s -f confmf 2> /dev/null` in #(
4991 *the\ am__doit\ target*)
4992 am__include=include
4993 am__quote=
4994 _am_result=GNU
4995 ;;
4996 esac
4997 # Now try BSD make style include.
4998 if test "$am__include" = "#"; then
4999 echo '.include "confinc"' > confmf
5000 case `$am_make -s -f confmf 2> /dev/null` in #(
5001 *the\ am__doit\ target*)
5002 am__include=.include
5003 am__quote="\""
5004 _am_result=BSD
5005 ;;
5006 esac
5007 fi
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5011 $as_echo "$_am_result" >&6; }
5012 rm -f confinc confmf
5013
5014 # Check whether --enable-dependency-tracking was given.
5015 if test "${enable_dependency_tracking+set}" = set; then :
5016 enableval=$enable_dependency_tracking;
5017 fi
5018
5019 if test "x$enable_dependency_tracking" != xno; then
5020 am_depcomp="$ac_aux_dir/depcomp"
5021 AMDEPBACKSLASH='\'
5022 fi
5023 if test "x$enable_dependency_tracking" != xno; then
5024 AMDEP_TRUE=
5025 AMDEP_FALSE='#'
5026 else
5027 AMDEP_TRUE='#'
5028 AMDEP_FALSE=
5029 fi
5030
5031
5032 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5033 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5034 # is not polluted with repeated "-I."
5035 am__isrc=' -I$(srcdir)'
5036 # test to see if srcdir already configured
5037 if test -f $srcdir/config.status; then
5038 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5039 fi
5040 fi
5041
5042 # test whether we have cygpath
5043 if test -z "$CYGPATH_W"; then
5044 if (cygpath --version) >/dev/null 2>/dev/null; then
5045 CYGPATH_W='cygpath -w'
5046 else
5047 CYGPATH_W=echo
5048 fi
5049 fi
5050
5051
5052 # Define the identity of the package.
5053 PACKAGE='libjava'
5054 VERSION='version-unused'
5055
5056
5057 cat >>confdefs.h <<_ACEOF
5058 #define PACKAGE "$PACKAGE"
5059 _ACEOF
5060
5061
5062 cat >>confdefs.h <<_ACEOF
5063 #define VERSION "$VERSION"
5064 _ACEOF
5065
5066 # Some tools Automake needs.
5067
5068 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5069
5070
5071 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5072
5073
5074 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5075
5076
5077 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5078
5079
5080 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5081
5082 # We need awk for the "check" target. The system "awk" is bad on
5083 # some platforms.
5084 # Always define AMTAR for backward compatibility.
5085
5086 AMTAR=${AMTAR-"${am_missing_run}tar"}
5087
5088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5089
5090
5091
5092
5093 depcc="$CC" am_compiler_list=
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5096 $as_echo_n "checking dependency style of $depcc... " >&6; }
5097 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named `D' -- because `-MD' means `put the output
5105 # in D'.
5106 mkdir conftest.dir
5107 # Copy depcomp to subdir because otherwise we won't find it if we're
5108 # using a relative directory.
5109 cp "$am_depcomp" conftest.dir
5110 cd conftest.dir
5111 # We will build objects and dependencies in a subdirectory because
5112 # it helps to detect inapplicable dependency modes. For instance
5113 # both Tru64's cc and ICC support -MD to output dependencies as a
5114 # side effect of compilation, but ICC will put the dependencies in
5115 # the current directory while Tru64 will put them in the object
5116 # directory.
5117 mkdir sub
5118
5119 am_cv_CC_dependencies_compiler_type=none
5120 if test "$am_compiler_list" = ""; then
5121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5122 fi
5123 am__universal=false
5124 case " $depcc " in #(
5125 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5126 esac
5127
5128 for depmode in $am_compiler_list; do
5129 # Setup a source with many dependencies, because some compilers
5130 # like to wrap large dependency lists on column 80 (with \), and
5131 # we should not choose a depcomp mode which is confused by this.
5132 #
5133 # We need to recreate these files for each test, as the compiler may
5134 # overwrite some of them when testing with obscure command lines.
5135 # This happens at least with the AIX C compiler.
5136 : > sub/conftest.c
5137 for i in 1 2 3 4 5 6; do
5138 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5139 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5140 # Solaris 8's {/usr,}/bin/sh.
5141 touch sub/conftst$i.h
5142 done
5143 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5144
5145 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5146 # mode. It turns out that the SunPro C++ compiler does not properly
5147 # handle `-M -o', and we need to detect this. Also, some Intel
5148 # versions had trouble with output in subdirs
5149 am__obj=sub/conftest.${OBJEXT-o}
5150 am__minus_obj="-o $am__obj"
5151 case $depmode in
5152 gcc)
5153 # This depmode causes a compiler race in universal mode.
5154 test "$am__universal" = false || continue
5155 ;;
5156 nosideeffect)
5157 # after this tag, mechanisms are not by side-effect, so they'll
5158 # only be used when explicitly requested
5159 if test "x$enable_dependency_tracking" = xyes; then
5160 continue
5161 else
5162 break
5163 fi
5164 ;;
5165 msvisualcpp | msvcmsys)
5166 # This compiler won't grok `-c -o', but also, the minuso test has
5167 # not run yet. These depmodes are late enough in the game, and
5168 # so weak that their functioning should not be impacted.
5169 am__obj=conftest.${OBJEXT-o}
5170 am__minus_obj=
5171 ;;
5172 none) break ;;
5173 esac
5174 if depmode=$depmode \
5175 source=sub/conftest.c object=$am__obj \
5176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5177 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5178 >/dev/null 2>conftest.err &&
5179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CC_dependencies_compiler_type=$depmode
5193 break
5194 fi
5195 fi
5196 done
5197
5198 cd ..
5199 rm -rf conftest.dir
5200 else
5201 am_cv_CC_dependencies_compiler_type=none
5202 fi
5203
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5208
5209 if
5210 test "x$enable_dependency_tracking" != xno \
5211 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5212 am__fastdepCC_TRUE=
5213 am__fastdepCC_FALSE='#'
5214 else
5215 am__fastdepCC_TRUE='#'
5216 am__fastdepCC_FALSE=
5217 fi
5218
5219
5220 depcc="$CXX" am_compiler_list=
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5223 $as_echo_n "checking dependency style of $depcc... " >&6; }
5224 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5228 # We make a subdir and do the tests there. Otherwise we can end up
5229 # making bogus files that we don't know about and never remove. For
5230 # instance it was reported that on HP-UX the gcc test will end up
5231 # making a dummy file named `D' -- because `-MD' means `put the output
5232 # in D'.
5233 mkdir conftest.dir
5234 # Copy depcomp to subdir because otherwise we won't find it if we're
5235 # using a relative directory.
5236 cp "$am_depcomp" conftest.dir
5237 cd conftest.dir
5238 # We will build objects and dependencies in a subdirectory because
5239 # it helps to detect inapplicable dependency modes. For instance
5240 # both Tru64's cc and ICC support -MD to output dependencies as a
5241 # side effect of compilation, but ICC will put the dependencies in
5242 # the current directory while Tru64 will put them in the object
5243 # directory.
5244 mkdir sub
5245
5246 am_cv_CXX_dependencies_compiler_type=none
5247 if test "$am_compiler_list" = ""; then
5248 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5249 fi
5250 am__universal=false
5251 case " $depcc " in #(
5252 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5253 esac
5254
5255 for depmode in $am_compiler_list; do
5256 # Setup a source with many dependencies, because some compilers
5257 # like to wrap large dependency lists on column 80 (with \), and
5258 # we should not choose a depcomp mode which is confused by this.
5259 #
5260 # We need to recreate these files for each test, as the compiler may
5261 # overwrite some of them when testing with obscure command lines.
5262 # This happens at least with the AIX C compiler.
5263 : > sub/conftest.c
5264 for i in 1 2 3 4 5 6; do
5265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5266 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5267 # Solaris 8's {/usr,}/bin/sh.
5268 touch sub/conftst$i.h
5269 done
5270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5271
5272 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5273 # mode. It turns out that the SunPro C++ compiler does not properly
5274 # handle `-M -o', and we need to detect this. Also, some Intel
5275 # versions had trouble with output in subdirs
5276 am__obj=sub/conftest.${OBJEXT-o}
5277 am__minus_obj="-o $am__obj"
5278 case $depmode in
5279 gcc)
5280 # This depmode causes a compiler race in universal mode.
5281 test "$am__universal" = false || continue
5282 ;;
5283 nosideeffect)
5284 # after this tag, mechanisms are not by side-effect, so they'll
5285 # only be used when explicitly requested
5286 if test "x$enable_dependency_tracking" = xyes; then
5287 continue
5288 else
5289 break
5290 fi
5291 ;;
5292 msvisualcpp | msvcmsys)
5293 # This compiler won't grok `-c -o', but also, the minuso test has
5294 # not run yet. These depmodes are late enough in the game, and
5295 # so weak that their functioning should not be impacted.
5296 am__obj=conftest.${OBJEXT-o}
5297 am__minus_obj=
5298 ;;
5299 none) break ;;
5300 esac
5301 if depmode=$depmode \
5302 source=sub/conftest.c object=$am__obj \
5303 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5304 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5305 >/dev/null 2>conftest.err &&
5306 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5308 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5310 # icc doesn't choke on unknown options, it will just issue warnings
5311 # or remarks (even with -Werror). So we grep stderr for any message
5312 # that says an option was ignored or not supported.
5313 # When given -MP, icc 7.0 and 7.1 complain thusly:
5314 # icc: Command line warning: ignoring option '-M'; no argument required
5315 # The diagnosis changed in icc 8.0:
5316 # icc: Command line remark: option '-MP' not supported
5317 if (grep 'ignoring option' conftest.err ||
5318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5319 am_cv_CXX_dependencies_compiler_type=$depmode
5320 break
5321 fi
5322 fi
5323 done
5324
5325 cd ..
5326 rm -rf conftest.dir
5327 else
5328 am_cv_CXX_dependencies_compiler_type=none
5329 fi
5330
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5333 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5334 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5335
5336 if
5337 test "x$enable_dependency_tracking" != xno \
5338 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5339 am__fastdepCXX_TRUE=
5340 am__fastdepCXX_FALSE='#'
5341 else
5342 am__fastdepCXX_TRUE='#'
5343 am__fastdepCXX_FALSE=
5344 fi
5345
5346
5347
5348
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}as; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_AS+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$AS"; then
5358 ac_cv_prog_AS="$AS" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_AS="${ac_tool_prefix}as"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371 done
5372 done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 AS=$ac_cv_prog_AS
5378 if test -n "$AS"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5380 $as_echo "$AS" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387 fi
5388 if test -z "$ac_cv_prog_AS"; then
5389 ac_ct_AS=$AS
5390 # Extract the first word of "as", so it can be a program name with args.
5391 set dummy as; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$ac_ct_AS"; then
5398 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_AS="as"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5418 if test -n "$ac_ct_AS"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5420 $as_echo "$ac_ct_AS" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426 if test "x$ac_ct_AS" = x; then
5427 AS=""
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435 AS=$ac_ct_AS
5436 fi
5437 else
5438 AS="$ac_cv_prog_AS"
5439 fi
5440
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5443 set dummy ${ac_tool_prefix}ld; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_prog_LD+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$LD"; then
5450 ac_cv_prog_LD="$LD" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_prog_LD="${ac_tool_prefix}ld"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463 done
5464 done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 LD=$ac_cv_prog_LD
5470 if test -n "$LD"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5472 $as_echo "$LD" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 fi
5480 if test -z "$ac_cv_prog_LD"; then
5481 ac_ct_LD=$LD
5482 # Extract the first word of "ld", so it can be a program name with args.
5483 set dummy ld; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -n "$ac_ct_LD"; then
5490 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_ac_ct_LD="ld"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5510 if test -n "$ac_ct_LD"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5512 $as_echo "$ac_ct_LD" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518 if test "x$ac_ct_LD" = x; then
5519 LD=""
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522 yes:)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned=yes ;;
5526 esac
5527 LD=$ac_ct_LD
5528 fi
5529 else
5530 LD="$ac_cv_prog_LD"
5531 fi
5532
5533 if test -n "$ac_tool_prefix"; then
5534 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5535 set dummy ${ac_tool_prefix}ar; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_AR+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$AR"; then
5542 ac_cv_prog_AR="$AR" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_AR="${ac_tool_prefix}ar"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 AR=$ac_cv_prog_AR
5562 if test -n "$AR"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5564 $as_echo "$AR" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 fi
5572 if test -z "$ac_cv_prog_AR"; then
5573 ac_ct_AR=$AR
5574 # Extract the first word of "ar", so it can be a program name with args.
5575 set dummy ar; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$ac_ct_AR"; then
5582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_ac_ct_AR="ar"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5602 if test -n "$ac_ct_AR"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5604 $as_echo "$ac_ct_AR" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610 if test "x$ac_ct_AR" = x; then
5611 AR=""
5612 else
5613 case $cross_compiling:$ac_tool_warned in
5614 yes:)
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617 ac_tool_warned=yes ;;
5618 esac
5619 AR=$ac_ct_AR
5620 fi
5621 else
5622 AR="$ac_cv_prog_AR"
5623 fi
5624
5625 if test -n "$ac_tool_prefix"; then
5626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$RANLIB"; then
5634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5646 fi
5647 done
5648 done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 RANLIB=$ac_cv_prog_RANLIB
5654 if test -n "$RANLIB"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5656 $as_echo "$RANLIB" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662
5663 fi
5664 if test -z "$ac_cv_prog_RANLIB"; then
5665 ac_ct_RANLIB=$RANLIB
5666 # Extract the first word of "ranlib", so it can be a program name with args.
5667 set dummy ranlib; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$ac_ct_RANLIB"; then
5674 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_prog_ac_ct_RANLIB="ranlib"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5694 if test -n "$ac_ct_RANLIB"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5696 $as_echo "$ac_ct_RANLIB" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702 if test "x$ac_ct_RANLIB" = x; then
5703 RANLIB=":"
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711 RANLIB=$ac_ct_RANLIB
5712 fi
5713 else
5714 RANLIB="$ac_cv_prog_RANLIB"
5715 fi
5716
5717 for ac_prog in gawk mawk nawk awk
5718 do
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy $ac_prog; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_AWK+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$AWK"; then
5727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_AWK="$ac_prog"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 AWK=$ac_cv_prog_AWK
5747 if test -n "$AWK"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5749 $as_echo "$AWK" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 test -n "$AWK" && break
5757 done
5758
5759 for ac_prog in jar fastjar gjar
5760 do
5761 # Extract the first word of "$ac_prog", so it can be a program name with args.
5762 set dummy $ac_prog; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_prog_JAR+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$JAR"; then
5769 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_JAR="$ac_prog"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 JAR=$ac_cv_prog_JAR
5789 if test -n "$JAR"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5791 $as_echo "$JAR" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797
5798 test -n "$JAR" && break
5799 done
5800 test -n "$JAR" || JAR="no"
5801
5802 # Extract the first word of "zip", so it can be a program name with args.
5803 set dummy zip; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if test "${ac_cv_path_ZIP+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 case $ZIP in
5810 [\\/]* | ?:[\\/]*)
5811 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5812 ;;
5813 *)
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5830 ;;
5831 esac
5832 fi
5833 ZIP=$ac_cv_path_ZIP
5834 if test -n "$ZIP"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5836 $as_echo "$ZIP" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841
5842
5843 # Extract the first word of "unzip", so it can be a program name with args.
5844 set dummy unzip; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if test "${ac_cv_path_UNZIP+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 case $UNZIP in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5853 ;;
5854 *)
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5871 ;;
5872 esac
5873 fi
5874 UNZIP=$ac_cv_path_UNZIP
5875 if test -n "$UNZIP"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5877 $as_echo "$UNZIP" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883
5884
5885 # We need a jar that supports -@. This is a GNU extension.
5886 if test "$JAR" != no; then
5887 rm -f config-test.jar
5888 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5889 if test -f config-test.jar; then
5890 rm -f config-test.jar
5891 else
5892 JAR=no
5893 fi
5894 fi
5895
5896 # Prefer the jar we found, but fall back to our jar script.
5897 if test "$JAR" = no; then
5898 if test "$ZIP" = no; then
5899 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5900 else
5901 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5902 JAR=`pwd`/scripts/jar
5903 fi
5904 fi
5905
5906
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5910 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5911 # Check whether --enable-maintainer-mode was given.
5912 if test "${enable_maintainer_mode+set}" = set; then :
5913 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5914 else
5915 USE_MAINTAINER_MODE=no
5916 fi
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5919 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5920 if test $USE_MAINTAINER_MODE = yes; then
5921 MAINTAINER_MODE_TRUE=
5922 MAINTAINER_MODE_FALSE='#'
5923 else
5924 MAINTAINER_MODE_TRUE='#'
5925 MAINTAINER_MODE_FALSE=
5926 fi
5927
5928 MAINT=$MAINTAINER_MODE_TRUE
5929
5930
5931
5932
5933
5934 # configure.host sets the following important variables
5935 # libgcj_cflags - host specific C compiler flags
5936 # libgcj_cxxflags - host specific C++ compiler flags
5937 # libgcj_javaflags - host specific Java compiler flags
5938
5939 libgcj_cflags=
5940 libgcj_cxxflags=
5941 libgcj_javaflags=
5942
5943 . ${srcdir}/configure.host
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5946 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5947 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5951 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5952 acl_cv_prog_gnu_ld=yes
5953 else
5954 acl_cv_prog_gnu_ld=no
5955 fi
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5958 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5959 with_gnu_ld=$acl_cv_prog_gnu_ld
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5962 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5963 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966
5967 acl_cv_prog_gnu_ld_symbolic=no
5968
5969 if test x"$with_gnu_ld" = x"yes"; then
5970 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5971 acl_cv_prog_gnu_ld_symbolic=yes
5972 fi
5973 fi
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5976 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5977 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5978 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5979 else
5980 SYMBOLIC_LDFLAGS=''
5981 fi
5982
5983 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5984 if test -z "$libgcj_ld_symbolic"; then
5985 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5986 fi
5987
5988 LIBGCJ_CFLAGS="${libgcj_cflags}"
5989 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5990 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5991 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5992 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5993
5994
5995
5996
5997
5998
5999 # Only use libltdl for non-newlib builds.
6000 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6002 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6003 library_names_spec=
6004 libname_spec='lib$name'
6005 soname_spec=
6006 shrext=".so"
6007 postinstall_cmds=
6008 postuninstall_cmds=
6009 finish_cmds=
6010 finish_eval=
6011 shlibpath_var=
6012 shlibpath_overrides_runpath=unknown
6013 version_type=none
6014 dynamic_linker="$host_os ld.so"
6015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6016 if test "$GCC" = yes; then
6017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6018 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6019 # if the path contains ";" then we assume it to be the separator
6020 # otherwise default to the standard path separator (i.e. ":") - it is
6021 # assumed that no part of a normal pathname contains ";" but that should
6022 # okay in the real world where ";" in dirpaths is itself problematic.
6023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6024 else
6025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6026 fi
6027 else
6028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6029 fi
6030 need_lib_prefix=unknown
6031 hardcode_into_libs=no
6032
6033 # when you set need_version to no, make sure it does not cause -set_version
6034 # flags to be left without arguments
6035 need_version=unknown
6036
6037 case $host_os in
6038 aix3*)
6039 version_type=linux
6040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6041 shlibpath_var=LIBPATH
6042
6043 # AIX 3 has no versioning support, so we append a major version to the name.
6044 soname_spec='${libname}${release}${shared_ext}$major'
6045 ;;
6046
6047 aix[4-9]*)
6048 version_type=linux
6049 need_lib_prefix=no
6050 need_version=no
6051 hardcode_into_libs=yes
6052 if test "$host_cpu" = ia64; then
6053 # AIX 5 supports IA64
6054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6055 shlibpath_var=LD_LIBRARY_PATH
6056 else
6057 # With GCC up to 2.95.x, collect2 would create an import file
6058 # for dependence libraries. The import file would start with
6059 # the line `#! .'. This would cause the generated library to
6060 # depend on `.', always an invalid library. This was fixed in
6061 # development snapshots of GCC prior to 3.0.
6062 case $host_os in
6063 aix4 | aix4.[01] | aix4.[01].*)
6064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6065 echo ' yes '
6066 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6067 :
6068 else
6069 can_build_shared=no
6070 fi
6071 ;;
6072 esac
6073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6074 # soname into executable. Probably we can add versioning support to
6075 # collect2, so additional links can be useful in future.
6076 if test "$aix_use_runtimelinking" = yes; then
6077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6078 # instead of lib<name>.a to let people know that these are not
6079 # typical AIX shared libraries.
6080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6081 else
6082 # We preserve .a as extension for shared libraries through AIX4.2
6083 # and later when we are not doing run time linking.
6084 library_names_spec='${libname}${release}.a $libname.a'
6085 soname_spec='${libname}${release}${shared_ext}$major'
6086 fi
6087 shlibpath_var=LIBPATH
6088 fi
6089 ;;
6090
6091 amigaos*)
6092 library_names_spec='$libname.ixlibrary $libname.a'
6093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6094 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'
6095 ;;
6096
6097 beos*)
6098 library_names_spec='${libname}${shared_ext}'
6099 dynamic_linker="$host_os ld.so"
6100 shlibpath_var=LIBRARY_PATH
6101 ;;
6102
6103 bsdi4*)
6104 version_type=linux
6105 need_version=no
6106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6107 soname_spec='${libname}${release}${shared_ext}$major'
6108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6109 shlibpath_var=LD_LIBRARY_PATH
6110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6112 # the default ld.so.conf also contains /usr/contrib/lib and
6113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6114 # libtool to hard-code these into programs
6115 ;;
6116
6117 cygwin* | mingw* | pw32*)
6118 version_type=windows
6119 shrext=".dll"
6120 need_version=no
6121 need_lib_prefix=no
6122
6123 case $GCC,$host_os in
6124 yes,cygwin* | yes,mingw* | yes,pw32*)
6125 library_names_spec='$libname.dll.a'
6126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6127 postinstall_cmds='base_file=`basename \${file}`~
6128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6129 dldir=$destdir/`dirname \$dlpath`~
6130 test -d \$dldir || mkdir -p \$dldir~
6131 $install_prog $dir/$dlname \$dldir/$dlname'
6132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6133 dlpath=$dir/\$dldll~
6134 $rm \$dlpath'
6135 shlibpath_overrides_runpath=yes
6136
6137 case $host_os in
6138 cygwin*)
6139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6141 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6142 ;;
6143 mingw*)
6144 # MinGW DLLs use traditional 'lib' prefix
6145 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6146 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6147 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6148 # It is most probably a Windows format PATH printed by
6149 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6150 # path with ; separators, and with drive letters. We can handle the
6151 # drive letters (cygwin fileutils understands them), so leave them,
6152 # especially as we might pass files found there to a mingw objdump,
6153 # which wouldn't understand a cygwinified path. Ahh.
6154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6155 else
6156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6157 fi
6158 ;;
6159 pw32*)
6160 # pw32 DLLs use 'pw' prefix rather than 'lib'
6161 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6162 ;;
6163 esac
6164 ;;
6165
6166 *)
6167 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6168 ;;
6169 esac
6170 dynamic_linker='Win32 ld.exe'
6171 # FIXME: first we should search . and the directory the executable is in
6172 shlibpath_var=PATH
6173 ;;
6174
6175 darwin* | rhapsody*)
6176 dynamic_linker="$host_os dyld"
6177 version_type=darwin
6178 need_lib_prefix=no
6179 need_version=no
6180 # FIXME: Relying on posixy $() will cause problems for
6181 # cross-compilation, but unfortunately the echo tests do not
6182 # yet detect zsh echo's removal of \ escapes.
6183 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6184 soname_spec='${libname}${release}${major}$shared_ext'
6185 shlibpath_overrides_runpath=yes
6186 shlibpath_var=DYLD_LIBRARY_PATH
6187 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6188 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6189 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6190 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"`
6191 fi
6192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6193 ;;
6194
6195 dgux*)
6196 version_type=linux
6197 need_lib_prefix=no
6198 need_version=no
6199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6200 soname_spec='${libname}${release}${shared_ext}$major'
6201 shlibpath_var=LD_LIBRARY_PATH
6202 ;;
6203
6204 freebsd1*)
6205 dynamic_linker=no
6206 ;;
6207
6208 freebsd*)
6209 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6210 version_type=freebsd-$objformat
6211 case $version_type in
6212 freebsd-elf*)
6213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6214 need_version=no
6215 need_lib_prefix=no
6216 ;;
6217 freebsd-*)
6218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6219 need_version=yes
6220 ;;
6221 esac
6222 shlibpath_var=LD_LIBRARY_PATH
6223 case $host_os in
6224 freebsd2*)
6225 shlibpath_overrides_runpath=yes
6226 ;;
6227 freebsd3.01* | freebsdelf3.01*)
6228 shlibpath_overrides_runpath=yes
6229 hardcode_into_libs=yes
6230 ;;
6231 *) # from 3.2 on
6232 shlibpath_overrides_runpath=no
6233 hardcode_into_libs=yes
6234 ;;
6235 esac
6236 ;;
6237
6238 gnu*)
6239 version_type=linux
6240 need_lib_prefix=no
6241 need_version=no
6242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6243 soname_spec='${libname}${release}${shared_ext}$major'
6244 shlibpath_var=LD_LIBRARY_PATH
6245 hardcode_into_libs=yes
6246 ;;
6247
6248 hpux9* | hpux10* | hpux11*)
6249 # Give a soname corresponding to the major version so that dld.sl refuses to
6250 # link against other versions.
6251 version_type=sunos
6252 need_lib_prefix=no
6253 need_version=no
6254 case "$host_cpu" in
6255 ia64*)
6256 shrext='.so'
6257 hardcode_into_libs=yes
6258 dynamic_linker="$host_os dld.so"
6259 shlibpath_var=LD_LIBRARY_PATH
6260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6262 soname_spec='${libname}${release}${shared_ext}$major'
6263 if test "X$HPUX_IA64_MODE" = X32; then
6264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6265 else
6266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6267 fi
6268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6269 ;;
6270 hppa*64*)
6271 shrext='.sl'
6272 hardcode_into_libs=yes
6273 dynamic_linker="$host_os dld.sl"
6274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6277 soname_spec='${libname}${release}${shared_ext}$major'
6278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6280 ;;
6281 *)
6282 shrext='.sl'
6283 dynamic_linker="$host_os dld.sl"
6284 shlibpath_var=SHLIB_PATH
6285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6287 soname_spec='${libname}${release}${shared_ext}$major'
6288 ;;
6289 esac
6290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6291 postinstall_cmds='chmod 555 $lib'
6292 ;;
6293
6294 irix5* | irix6* | nonstopux*)
6295 case $host_os in
6296 nonstopux*) version_type=nonstopux ;;
6297 *)
6298 if test "$lt_cv_prog_gnu_ld" = yes; then
6299 version_type=linux
6300 else
6301 version_type=irix
6302 fi ;;
6303 esac
6304 need_lib_prefix=no
6305 need_version=no
6306 soname_spec='${libname}${release}${shared_ext}$major'
6307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6308 case $host_os in
6309 irix5* | nonstopux*)
6310 libsuff= shlibsuff=
6311 ;;
6312 *)
6313 case $LD in # libtool.m4 will add one of these switches to LD
6314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6315 libsuff= shlibsuff= libmagic=32-bit;;
6316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6317 libsuff=32 shlibsuff=N32 libmagic=N32;;
6318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6320 *) libsuff= shlibsuff= libmagic=never-match;;
6321 esac
6322 ;;
6323 esac
6324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6325 shlibpath_overrides_runpath=no
6326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6328 hardcode_into_libs=yes
6329 ;;
6330
6331 # No shared lib support for Linux oldld, aout, or coff.
6332 linux*oldld* | linux*aout* | linux*coff*)
6333 dynamic_linker=no
6334 ;;
6335
6336 # This must be Linux ELF.
6337 linux*|k*bsd*-gnu)
6338 version_type=linux
6339 need_lib_prefix=no
6340 need_version=no
6341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6342 soname_spec='${libname}${release}${shared_ext}$major'
6343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6344 shlibpath_var=LD_LIBRARY_PATH
6345 shlibpath_overrides_runpath=no
6346 # This implies no fast_install, which is unacceptable.
6347 # Some rework will be needed to allow for fast_install
6348 # before this can be enabled.
6349 hardcode_into_libs=yes
6350
6351 # We used to test for /lib/ld.so.1 and disable shared libraries on
6352 # powerpc, because MkLinux only supported shared libraries with the
6353 # GNU dynamic linker. Since this was broken with cross compilers,
6354 # most powerpc-linux boxes support dynamic linking these days and
6355 # people can always --disable-shared, the test was removed, and we
6356 # assume the GNU/Linux dynamic linker is in use.
6357 dynamic_linker='GNU/Linux ld.so'
6358 ;;
6359
6360 netbsd*)
6361 version_type=sunos
6362 need_lib_prefix=no
6363 need_version=no
6364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6367 dynamic_linker='NetBSD (a.out) ld.so'
6368 else
6369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6370 soname_spec='${libname}${release}${shared_ext}$major'
6371 dynamic_linker='NetBSD ld.elf_so'
6372 fi
6373 shlibpath_var=LD_LIBRARY_PATH
6374 shlibpath_overrides_runpath=yes
6375 hardcode_into_libs=yes
6376 ;;
6377
6378 newsos6)
6379 version_type=linux
6380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6381 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6383 ;;
6384
6385 nto-qnx)
6386 version_type=linux
6387 need_lib_prefix=no
6388 need_version=no
6389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6390 soname_spec='${libname}${release}${shared_ext}$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 shlibpath_overrides_runpath=yes
6393 ;;
6394
6395 openbsd*)
6396 version_type=sunos
6397 need_lib_prefix=no
6398 need_version=no
6399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6401 shlibpath_var=LD_LIBRARY_PATH
6402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403 case $host_os in
6404 openbsd2.[89] | openbsd2.[89].*)
6405 shlibpath_overrides_runpath=no
6406 ;;
6407 *)
6408 shlibpath_overrides_runpath=yes
6409 ;;
6410 esac
6411 else
6412 shlibpath_overrides_runpath=yes
6413 fi
6414 ;;
6415
6416 os2*)
6417 libname_spec='$name'
6418 shrext=".dll"
6419 need_lib_prefix=no
6420 library_names_spec='$libname${shared_ext} $libname.a'
6421 dynamic_linker='OS/2 ld.exe'
6422 shlibpath_var=LIBPATH
6423 ;;
6424
6425 osf3* | osf4* | osf5*)
6426 version_type=osf
6427 need_lib_prefix=no
6428 need_version=no
6429 soname_spec='${libname}${release}${shared_ext}$major'
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6434 ;;
6435
6436 sco3.2v5*)
6437 version_type=osf
6438 soname_spec='${libname}${release}${shared_ext}$major'
6439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6440 shlibpath_var=LD_LIBRARY_PATH
6441 ;;
6442
6443 solaris*)
6444 version_type=linux
6445 need_lib_prefix=no
6446 need_version=no
6447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6448 soname_spec='${libname}${release}${shared_ext}$major'
6449 shlibpath_var=LD_LIBRARY_PATH
6450 shlibpath_overrides_runpath=yes
6451 hardcode_into_libs=yes
6452 # ldd complains unless libraries are executable
6453 postinstall_cmds='chmod +x $lib'
6454 ;;
6455
6456 sunos4*)
6457 version_type=sunos
6458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 shlibpath_overrides_runpath=yes
6462 if test "$with_gnu_ld" = yes; then
6463 need_lib_prefix=no
6464 fi
6465 need_version=yes
6466 ;;
6467
6468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6469 version_type=linux
6470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6471 soname_spec='${libname}${release}${shared_ext}$major'
6472 shlibpath_var=LD_LIBRARY_PATH
6473 case $host_vendor in
6474 sni)
6475 shlibpath_overrides_runpath=no
6476 need_lib_prefix=no
6477 export_dynamic_flag_spec='${wl}-Blargedynsym'
6478 runpath_var=LD_RUN_PATH
6479 ;;
6480 siemens)
6481 need_lib_prefix=no
6482 ;;
6483 motorola)
6484 need_lib_prefix=no
6485 need_version=no
6486 shlibpath_overrides_runpath=no
6487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6488 ;;
6489 esac
6490 ;;
6491
6492 sysv4*MP*)
6493 if test -d /usr/nec ;then
6494 version_type=linux
6495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6496 soname_spec='$libname${shared_ext}.$major'
6497 shlibpath_var=LD_LIBRARY_PATH
6498 fi
6499 ;;
6500
6501 uts4*)
6502 version_type=linux
6503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6504 soname_spec='${libname}${release}${shared_ext}$major'
6505 shlibpath_var=LD_LIBRARY_PATH
6506 ;;
6507
6508 *)
6509 dynamic_linker=no
6510 ;;
6511 esac
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6513 $as_echo "$dynamic_linker" >&6; }
6514 test "$dynamic_linker" = no && can_build_shared=no
6515
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6518 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6519 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 libltdl_cv_shlibpath_var="$shlibpath_var"
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6525 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6526 if test -n "$libltdl_cv_shlibpath_var"; then
6527
6528 cat >>confdefs.h <<_ACEOF
6529 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6530 _ACEOF
6531
6532 fi
6533
6534 fi
6535
6536 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6537
6538
6539 # See if the user has requested runtime debugging.
6540 LIBGCJDEBUG="disable"
6541
6542 # Check whether --enable-libgcj-debug was given.
6543 if test "${enable_libgcj_debug+set}" = set; then :
6544 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6545
6546 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6547
6548 LIBGCJDEBUG="enable"
6549 fi
6550 fi
6551
6552
6553
6554 # Check whether --with-escher was given.
6555 if test "${with_escher+set}" = set; then :
6556 withval=$with_escher;
6557 fi
6558
6559 case "$with_escher" in
6560 "")
6561 use_escher=false
6562 ;;
6563 "no")
6564 use_escher=false
6565 ;;
6566 "yes")
6567 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6568 ;;
6569 *)
6570 use_escher=true
6571 ;;
6572 esac
6573
6574 # Determine which AWT peer libraries to build
6575 # Check whether --enable-java-awt was given.
6576 if test "${enable_java_awt+set}" = set; then :
6577 enableval=$enable_java_awt;
6578 fi
6579
6580
6581 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6582 use_xlib_awt=""
6583 use_gtk_awt=""
6584 use_qt_awt=""
6585 use_x_awt=""
6586 # The default toolkit to use is the first one specified.
6587 TOOLKIT=
6588
6589
6590 for peer in $peerlibs ; do
6591 case $peer in
6592 xlib)
6593 if test "$no_x" = yes; then
6594 echo "*** xlib peers requested but no X library available" 1>&2
6595 exit 1
6596 else
6597 use_xlib_awt="yes"
6598 if test -z "$TOOLKIT"; then
6599 TOOLKIT=gnu.awt.xlib.XToolkit
6600 fi
6601 fi
6602 ;;
6603 gtk)
6604 if test "$no_x" = yes; then
6605 echo "*** gtk peers requested but no X library available" 1>&2
6606 exit 1
6607 else
6608 use_gtk_awt=yes
6609 if test -z "$TOOLKIT"; then
6610 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6611 fi
6612 fi
6613 ;;
6614 qt)
6615 if test "$no_x" = yes; then
6616 # Perhaps we should admit the possibility of embedded Qt.
6617 echo "*** Qt peers requested but no X library available" 1>&2
6618 exit 1
6619 else
6620 use_qt_awt=yes
6621 if test -z "$TOOLKIT"; then
6622 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6623 fi
6624 fi
6625 ;;
6626 x)
6627 use_x_awt=yes
6628 if test -z "$TOOLKIT"; then
6629 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6630 fi
6631 ;;
6632 no)
6633 use_xlib_awt=
6634 use_gtk_awt=
6635 use_qt_awt=
6636 use_x_awt=
6637 break
6638 ;;
6639 *)
6640 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6641 exit 1
6642 esac
6643 done
6644
6645 if test "$use_xlib_awt" = yes; then
6646 XLIB_AWT_TRUE=
6647 XLIB_AWT_FALSE='#'
6648 else
6649 XLIB_AWT_TRUE='#'
6650 XLIB_AWT_FALSE=
6651 fi
6652
6653 if test "$use_x_awt" = yes; then
6654 X_AWT_TRUE=
6655 X_AWT_FALSE='#'
6656 else
6657 X_AWT_TRUE='#'
6658 X_AWT_FALSE=
6659 fi
6660
6661
6662
6663 cat >>confdefs.h <<_ACEOF
6664 #define AWT_TOOLKIT "$TOOLKIT"
6665 _ACEOF
6666
6667
6668
6669 cat >>confdefs.h <<_ACEOF
6670 #define LIBGCJ_PREFIX "$prefix"
6671 _ACEOF
6672
6673
6674 # Create standard.omit based on decisions we just made.
6675 cp $srcdir/standard.omit.in standard.omit
6676 if test "$use_xlib_awt" != yes; then
6677 echo gnu/awt/xlib >> standard.omit
6678 echo gnu/gcj/xlib >> standard.omit
6679 fi
6680 if test "$use_x_awt" != yes; then
6681 echo gnu/java/awt/peer/x >> standard.omit
6682 fi
6683
6684 # Tools that need to be compiled against classpath's tools classes
6685 : > vm-tools-packages
6686 for package in gnu/gcj/tools/gc_analyze ; do
6687 echo $package >> standard.omit
6688 echo $package >> vm-tools-packages
6689 done
6690
6691 if test -z "${with_multisubdir}"; then
6692 builddotdot=.
6693 else
6694 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6695 fi
6696
6697 NATIVE=yes
6698
6699 # Which gcj and host gcj (for ecjx) do we use?
6700 which_gcj=default
6701 host_exeext=${ac_exeext}
6702 GCJ_FOR_ECJX=
6703 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6704 if test -n "${with_cross_host}"; then
6705 # We are being configured with a cross compiler. We can't
6706 # use ac_exeext, because that is for the target platform.
6707 NATIVE=no
6708 cross_host_exeext=
6709 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6710 case "${with_cross_host}" in
6711 *mingw* | *cygwin*)
6712 cross_host_exeext=.exe
6713 ;;
6714 esac
6715 host_exeext=${cross_host_exeext}
6716 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6717 if test x"$build_noncanonical" = x"$with_cross_host"; then
6718 # Ordinary cross (host!=target and host=build)
6719 which_gcj=built
6720 else
6721 # Canadian cross (host!=target and host!=build)
6722 which_gcj=cross
6723 fi
6724 else
6725 which_gcj=cross
6726 fi
6727 else
6728 # We are being configured with a native or crossed-native compiler
6729 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6730 if test x"$build" = x"$host"; then
6731 # True native build (host=target and host=build)
6732 which_gcj=built
6733 else
6734 # Crossed-native build (host=target and host!=build)
6735 which_gcj=cross
6736 fi
6737 else
6738 which_gcj=path
6739 fi
6740 fi
6741 libgcjdir=`${PWDCMD-pwd}`
6742 case $GCJ in
6743 *" -B"*)
6744 # Just in case there is a comma in the build dir, quote it for the
6745 # sed command below.
6746 case $libgcjdir in
6747 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6748 *) qlibgcjdir=$libgcjdir;;
6749 esac
6750 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6751 ;;
6752 *)
6753 GCJ=$GCJ" -B$libgcjdir/"
6754 ;;
6755 esac
6756 case "${which_gcj}" in
6757 built)
6758 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6759 ;;
6760 cross)
6761 if test "x${with_newlib}" = "xyes"; then
6762 # FIXME (comment): Why is this needed?
6763 GCC_UNWIND_INCLUDE=
6764 fi
6765 GCJH='$(target_noncanonical)-gcjh'
6766 ;;
6767 path)
6768 GCJH=gcjh
6769 ;;
6770 esac
6771 JAVAC="$GCJ -C"
6772 export JAVAC
6773
6774
6775
6776
6777
6778 # Create it, so that compile/link tests don't fail
6779 test -f libgcj.spec || touch libgcj.spec
6780
6781
6782
6783 # Set up to configure Classpath.
6784 # FIXME: no supported way to pass args in autoconf.
6785 # Disable tool wrappers to avoid ltdl.h configure check.
6786 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6787 ac_configure_args="$ac_configure_args --disable-load-library"
6788 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6789 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6790 dir1=`cd $srcdir && pwd`
6791 dir2=`pwd`
6792 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6793 ac_configure_args="$ac_configure_args --disable-core-jni"
6794 ac_configure_args="$ac_configure_args --disable-examples"
6795 ac_configure_args="$ac_configure_args --with-glibj=build"
6796 if test "$plugin_enabled" != yes; then
6797 ac_configure_args="$ac_configure_args --disable-plugin"
6798 fi
6799 if test "$gconf_enabled" != yes; then
6800 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6801 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6802 fi
6803 if test "$use_gtk_awt" != yes; then
6804 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6805 fi
6806 if test "$use_qt_awt" != yes; then
6807 ac_configure_args="$ac_configure_args --disable-qt-peer"
6808 else
6809 # We need this as qt is disabled by default in classpath.
6810 ac_configure_args="$ac_configure_args --enable-qt-peer"
6811 fi
6812 if test "$use_x_awt" != yes; then
6813 ac_configure_args="$ac_configure_args --without-escher"
6814 else
6815 # We need this as escher is disabled by default in classpath.
6816 if test "$use_escher" != true; then
6817 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6818 else
6819 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6820 fi
6821 fi
6822 if test "x$BUILD_GJDOC" = xno; then
6823 ac_configure_args="$ac_configure_args --disable-gjdoc"
6824 fi
6825 # -Werror causes unavoidable problems in code using alsa.
6826 ac_configure_args="$ac_configure_args --disable-regen-headers"
6827 ac_configure_args="$ac_configure_args --disable-Werror"
6828
6829 # Only use libltdl for non-newlib builds.
6830 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6831 case $enable_ltdl_convenience in
6832 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6833 "") enable_ltdl_convenience=yes
6834 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6835 esac
6836 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6837 LTDLINCL='-I${top_srcdir}/''libltdl'
6838 # For backwards non-gettext consistent compatibility...
6839 INCLTDL="$LTDLINCL"
6840
6841 enable_dlopen=yes
6842
6843
6844
6845 DIRLTDL=libltdl
6846
6847 $as_echo "#define USE_LTDL 1" >>confdefs.h
6848
6849 # Sigh. Libtool's macro doesn't do the right thing.
6850 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6851 # FIXME: this is a hack.
6852 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6853 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6854 fi
6855
6856
6857
6858 case `pwd` in
6859 *\ * | *\ *)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6861 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6862 esac
6863
6864
6865
6866 macro_version='2.2.6'
6867 macro_revision='1.3012'
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 ltmain="$ac_aux_dir/ltmain.sh"
6882
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6885 if test "${ac_cv_path_SED+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6889 for ac_i in 1 2 3 4 5 6 7; do
6890 ac_script="$ac_script$as_nl$ac_script"
6891 done
6892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6893 { ac_script=; unset ac_script;}
6894 if test -z "$SED"; then
6895 ac_path_SED_found=false
6896 # Loop through the user's path and test for each of PROGNAME-LIST
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_prog in sed gsed; do
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6905 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6906 # Check for GNU ac_path_SED and select it if it is found.
6907 # Check for GNU $ac_path_SED
6908 case `"$ac_path_SED" --version 2>&1` in
6909 *GNU*)
6910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6911 *)
6912 ac_count=0
6913 $as_echo_n 0123456789 >"conftest.in"
6914 while :
6915 do
6916 cat "conftest.in" "conftest.in" >"conftest.tmp"
6917 mv "conftest.tmp" "conftest.in"
6918 cp "conftest.in" "conftest.nl"
6919 $as_echo '' >> "conftest.nl"
6920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6922 as_fn_arith $ac_count + 1 && ac_count=$as_val
6923 if test $ac_count -gt ${ac_path_SED_max-0}; then
6924 # Best one so far, save it but keep looking for a better one
6925 ac_cv_path_SED="$ac_path_SED"
6926 ac_path_SED_max=$ac_count
6927 fi
6928 # 10*(2^10) chars as input seems more than enough
6929 test $ac_count -gt 10 && break
6930 done
6931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6932 esac
6933
6934 $ac_path_SED_found && break 3
6935 done
6936 done
6937 done
6938 IFS=$as_save_IFS
6939 if test -z "$ac_cv_path_SED"; then
6940 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6941 fi
6942 else
6943 ac_cv_path_SED=$SED
6944 fi
6945
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6948 $as_echo "$ac_cv_path_SED" >&6; }
6949 SED="$ac_cv_path_SED"
6950 rm -f conftest.sed
6951
6952 test -z "$SED" && SED=sed
6953 Xsed="$SED -e 1s/^X//"
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6967 if test "${ac_cv_path_GREP+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -z "$GREP"; then
6971 ac_path_GREP_found=false
6972 # Loop through the user's path and test for each of PROGNAME-LIST
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6975 do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_prog in grep ggrep; do
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6982 # Check for GNU ac_path_GREP and select it if it is found.
6983 # Check for GNU $ac_path_GREP
6984 case `"$ac_path_GREP" --version 2>&1` in
6985 *GNU*)
6986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6987 *)
6988 ac_count=0
6989 $as_echo_n 0123456789 >"conftest.in"
6990 while :
6991 do
6992 cat "conftest.in" "conftest.in" >"conftest.tmp"
6993 mv "conftest.tmp" "conftest.in"
6994 cp "conftest.in" "conftest.nl"
6995 $as_echo 'GREP' >> "conftest.nl"
6996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6998 as_fn_arith $ac_count + 1 && ac_count=$as_val
6999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7000 # Best one so far, save it but keep looking for a better one
7001 ac_cv_path_GREP="$ac_path_GREP"
7002 ac_path_GREP_max=$ac_count
7003 fi
7004 # 10*(2^10) chars as input seems more than enough
7005 test $ac_count -gt 10 && break
7006 done
7007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7008 esac
7009
7010 $ac_path_GREP_found && break 3
7011 done
7012 done
7013 done
7014 IFS=$as_save_IFS
7015 if test -z "$ac_cv_path_GREP"; then
7016 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7017 fi
7018 else
7019 ac_cv_path_GREP=$GREP
7020 fi
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7024 $as_echo "$ac_cv_path_GREP" >&6; }
7025 GREP="$ac_cv_path_GREP"
7026
7027
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7029 $as_echo_n "checking for egrep... " >&6; }
7030 if test "${ac_cv_path_EGREP+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7034 then ac_cv_path_EGREP="$GREP -E"
7035 else
7036 if test -z "$EGREP"; then
7037 ac_path_EGREP_found=false
7038 # Loop through the user's path and test for each of PROGNAME-LIST
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_prog in egrep; do
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7048 # Check for GNU ac_path_EGREP and select it if it is found.
7049 # Check for GNU $ac_path_EGREP
7050 case `"$ac_path_EGREP" --version 2>&1` in
7051 *GNU*)
7052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7053 *)
7054 ac_count=0
7055 $as_echo_n 0123456789 >"conftest.in"
7056 while :
7057 do
7058 cat "conftest.in" "conftest.in" >"conftest.tmp"
7059 mv "conftest.tmp" "conftest.in"
7060 cp "conftest.in" "conftest.nl"
7061 $as_echo 'EGREP' >> "conftest.nl"
7062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7064 as_fn_arith $ac_count + 1 && ac_count=$as_val
7065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7066 # Best one so far, save it but keep looking for a better one
7067 ac_cv_path_EGREP="$ac_path_EGREP"
7068 ac_path_EGREP_max=$ac_count
7069 fi
7070 # 10*(2^10) chars as input seems more than enough
7071 test $ac_count -gt 10 && break
7072 done
7073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7074 esac
7075
7076 $ac_path_EGREP_found && break 3
7077 done
7078 done
7079 done
7080 IFS=$as_save_IFS
7081 if test -z "$ac_cv_path_EGREP"; then
7082 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083 fi
7084 else
7085 ac_cv_path_EGREP=$EGREP
7086 fi
7087
7088 fi
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7091 $as_echo "$ac_cv_path_EGREP" >&6; }
7092 EGREP="$ac_cv_path_EGREP"
7093
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7096 $as_echo_n "checking for fgrep... " >&6; }
7097 if test "${ac_cv_path_FGREP+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7101 then ac_cv_path_FGREP="$GREP -F"
7102 else
7103 if test -z "$FGREP"; then
7104 ac_path_FGREP_found=false
7105 # Loop through the user's path and test for each of PROGNAME-LIST
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_prog in fgrep; do
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7114 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7115 # Check for GNU ac_path_FGREP and select it if it is found.
7116 # Check for GNU $ac_path_FGREP
7117 case `"$ac_path_FGREP" --version 2>&1` in
7118 *GNU*)
7119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7120 *)
7121 ac_count=0
7122 $as_echo_n 0123456789 >"conftest.in"
7123 while :
7124 do
7125 cat "conftest.in" "conftest.in" >"conftest.tmp"
7126 mv "conftest.tmp" "conftest.in"
7127 cp "conftest.in" "conftest.nl"
7128 $as_echo 'FGREP' >> "conftest.nl"
7129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7131 as_fn_arith $ac_count + 1 && ac_count=$as_val
7132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7133 # Best one so far, save it but keep looking for a better one
7134 ac_cv_path_FGREP="$ac_path_FGREP"
7135 ac_path_FGREP_max=$ac_count
7136 fi
7137 # 10*(2^10) chars as input seems more than enough
7138 test $ac_count -gt 10 && break
7139 done
7140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7141 esac
7142
7143 $ac_path_FGREP_found && break 3
7144 done
7145 done
7146 done
7147 IFS=$as_save_IFS
7148 if test -z "$ac_cv_path_FGREP"; then
7149 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7150 fi
7151 else
7152 ac_cv_path_FGREP=$FGREP
7153 fi
7154
7155 fi
7156 fi
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7158 $as_echo "$ac_cv_path_FGREP" >&6; }
7159 FGREP="$ac_cv_path_FGREP"
7160
7161
7162 test -z "$GREP" && GREP=grep
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 # Check whether --with-gnu-ld was given.
7183 if test "${with_gnu_ld+set}" = set; then :
7184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7185 else
7186 with_gnu_ld=no
7187 fi
7188
7189 ac_prog=ld
7190 if test "$GCC" = yes; then
7191 # Check if gcc -print-prog-name=ld gives a path.
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7193 $as_echo_n "checking for ld used by $CC... " >&6; }
7194 case $host in
7195 *-*-mingw*)
7196 # gcc leaves a trailing carriage return which upsets mingw
7197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7198 *)
7199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7200 esac
7201 case $ac_prog in
7202 # Accept absolute paths.
7203 [\\/]* | ?:[\\/]*)
7204 re_direlt='/[^/][^/]*/\.\./'
7205 # Canonicalize the pathname of ld
7206 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7207 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7208 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7209 done
7210 test -z "$LD" && LD="$ac_prog"
7211 ;;
7212 "")
7213 # If it fails, then pretend we aren't using GCC.
7214 ac_prog=ld
7215 ;;
7216 *)
7217 # If it is relative, then search for the first ld in PATH.
7218 with_gnu_ld=unknown
7219 ;;
7220 esac
7221 elif test "$with_gnu_ld" = yes; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7223 $as_echo_n "checking for GNU ld... " >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7226 $as_echo_n "checking for non-GNU ld... " >&6; }
7227 fi
7228 if test "${lt_cv_path_LD+set}" = set; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -z "$LD"; then
7232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7233 for ac_dir in $PATH; do
7234 IFS="$lt_save_ifs"
7235 test -z "$ac_dir" && ac_dir=.
7236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7237 lt_cv_path_LD="$ac_dir/$ac_prog"
7238 # Check to see if the program is GNU ld. I'd rather use --version,
7239 # but apparently some variants of GNU ld only accept -v.
7240 # Break only if it was the GNU/non-GNU ld that we prefer.
7241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7242 *GNU* | *'with BFD'*)
7243 test "$with_gnu_ld" != no && break
7244 ;;
7245 *)
7246 test "$with_gnu_ld" != yes && break
7247 ;;
7248 esac
7249 fi
7250 done
7251 IFS="$lt_save_ifs"
7252 else
7253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7254 fi
7255 fi
7256
7257 LD="$lt_cv_path_LD"
7258 if test -n "$LD"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7260 $as_echo "$LD" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7268 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7272 case `$LD -v 2>&1 </dev/null` in
7273 *GNU* | *'with BFD'*)
7274 lt_cv_prog_gnu_ld=yes
7275 ;;
7276 *)
7277 lt_cv_prog_gnu_ld=no
7278 ;;
7279 esac
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7282 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7283 with_gnu_ld=$lt_cv_prog_gnu_ld
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7294 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7295 if test "${lt_cv_path_NM+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$NM"; then
7299 # Let the user override the test.
7300 lt_cv_path_NM="$NM"
7301 else
7302 lt_nm_to_check="${ac_tool_prefix}nm"
7303 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7304 lt_nm_to_check="$lt_nm_to_check nm"
7305 fi
7306 for lt_tmp_nm in $lt_nm_to_check; do
7307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7308 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7309 IFS="$lt_save_ifs"
7310 test -z "$ac_dir" && ac_dir=.
7311 tmp_nm="$ac_dir/$lt_tmp_nm"
7312 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7313 # Check to see if the nm accepts a BSD-compat flag.
7314 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7315 # nm: unknown option "B" ignored
7316 # Tru64's nm complains that /dev/null is an invalid object file
7317 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7318 */dev/null* | *'Invalid file or object type'*)
7319 lt_cv_path_NM="$tmp_nm -B"
7320 break
7321 ;;
7322 *)
7323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7324 */dev/null*)
7325 lt_cv_path_NM="$tmp_nm -p"
7326 break
7327 ;;
7328 *)
7329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7330 continue # so that we can try to find one that supports BSD flags
7331 ;;
7332 esac
7333 ;;
7334 esac
7335 fi
7336 done
7337 IFS="$lt_save_ifs"
7338 done
7339 : ${lt_cv_path_NM=no}
7340 fi
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7343 $as_echo "$lt_cv_path_NM" >&6; }
7344 if test "$lt_cv_path_NM" != "no"; then
7345 NM="$lt_cv_path_NM"
7346 else
7347 # Didn't find any BSD compatible name lister, look for dumpbin.
7348 if test -n "$ac_tool_prefix"; then
7349 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7350 do
7351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 if test -n "$DUMPBIN"; then
7359 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 DUMPBIN=$ac_cv_prog_DUMPBIN
7379 if test -n "$DUMPBIN"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7381 $as_echo "$DUMPBIN" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388 test -n "$DUMPBIN" && break
7389 done
7390 fi
7391 if test -z "$DUMPBIN"; then
7392 ac_ct_DUMPBIN=$DUMPBIN
7393 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7394 do
7395 # Extract the first word of "$ac_prog", so it can be a program name with args.
7396 set dummy $ac_prog; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$ac_ct_DUMPBIN"; then
7403 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7423 if test -n "$ac_ct_DUMPBIN"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7425 $as_echo "$ac_ct_DUMPBIN" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431
7432 test -n "$ac_ct_DUMPBIN" && break
7433 done
7434
7435 if test "x$ac_ct_DUMPBIN" = x; then
7436 DUMPBIN=":"
7437 else
7438 case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444 DUMPBIN=$ac_ct_DUMPBIN
7445 fi
7446 fi
7447
7448
7449 if test "$DUMPBIN" != ":"; then
7450 NM="$DUMPBIN"
7451 fi
7452 fi
7453 test -z "$NM" && NM=nm
7454
7455
7456
7457
7458
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7461 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7462 if test "${lt_cv_nm_interface+set}" = set; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 lt_cv_nm_interface="BSD nm"
7466 echo "int some_variable = 0;" > conftest.$ac_ext
7467 (eval echo "\"\$as_me:7467: $ac_compile\"" >&5)
7468 (eval "$ac_compile" 2>conftest.err)
7469 cat conftest.err >&5
7470 (eval echo "\"\$as_me:7470: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7472 cat conftest.err >&5
7473 (eval echo "\"\$as_me:7473: output\"" >&5)
7474 cat conftest.out >&5
7475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7476 lt_cv_nm_interface="MS dumpbin"
7477 fi
7478 rm -f conftest*
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7481 $as_echo "$lt_cv_nm_interface" >&6; }
7482
7483 # find the maximum length of command line arguments
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7485 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7486 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 i=0
7490 teststring="ABCD"
7491
7492 case $build_os in
7493 msdosdjgpp*)
7494 # On DJGPP, this test can blow up pretty badly due to problems in libc
7495 # (any single argument exceeding 2000 bytes causes a buffer overrun
7496 # during glob expansion). Even if it were fixed, the result of this
7497 # check would be larger than it should be.
7498 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7499 ;;
7500
7501 gnu*)
7502 # Under GNU Hurd, this test is not required because there is
7503 # no limit to the length of command line arguments.
7504 # Libtool will interpret -1 as no limit whatsoever
7505 lt_cv_sys_max_cmd_len=-1;
7506 ;;
7507
7508 cygwin* | mingw* | cegcc*)
7509 # On Win9x/ME, this test blows up -- it succeeds, but takes
7510 # about 5 minutes as the teststring grows exponentially.
7511 # Worse, since 9x/ME are not pre-emptively multitasking,
7512 # you end up with a "frozen" computer, even though with patience
7513 # the test eventually succeeds (with a max line length of 256k).
7514 # Instead, let's just punt: use the minimum linelength reported by
7515 # all of the supported platforms: 8192 (on NT/2K/XP).
7516 lt_cv_sys_max_cmd_len=8192;
7517 ;;
7518
7519 amigaos*)
7520 # On AmigaOS with pdksh, this test takes hours, literally.
7521 # So we just punt and use a minimum line length of 8192.
7522 lt_cv_sys_max_cmd_len=8192;
7523 ;;
7524
7525 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7526 # This has been around since 386BSD, at least. Likely further.
7527 if test -x /sbin/sysctl; then
7528 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7529 elif test -x /usr/sbin/sysctl; then
7530 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7531 else
7532 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7533 fi
7534 # And add a safety zone
7535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7537 ;;
7538
7539 interix*)
7540 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7541 lt_cv_sys_max_cmd_len=196608
7542 ;;
7543
7544 osf*)
7545 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7546 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7547 # nice to cause kernel panics so lets avoid the loop below.
7548 # First set a reasonable default.
7549 lt_cv_sys_max_cmd_len=16384
7550 #
7551 if test -x /sbin/sysconfig; then
7552 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7553 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7554 esac
7555 fi
7556 ;;
7557 sco3.2v5*)
7558 lt_cv_sys_max_cmd_len=102400
7559 ;;
7560 sysv5* | sco5v6* | sysv4.2uw2*)
7561 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7562 if test -n "$kargmax"; then
7563 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7564 else
7565 lt_cv_sys_max_cmd_len=32768
7566 fi
7567 ;;
7568 *)
7569 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7570 if test -n "$lt_cv_sys_max_cmd_len"; then
7571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7573 else
7574 # Make teststring a little bigger before we do anything with it.
7575 # a 1K string should be a reasonable start.
7576 for i in 1 2 3 4 5 6 7 8 ; do
7577 teststring=$teststring$teststring
7578 done
7579 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7580 # If test is not a shell built-in, we'll probably end up computing a
7581 # maximum length that is only half of the actual maximum length, but
7582 # we can't tell.
7583 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7584 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7585 test $i != 17 # 1/2 MB should be enough
7586 do
7587 i=`expr $i + 1`
7588 teststring=$teststring$teststring
7589 done
7590 # Only check the string length outside the loop.
7591 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7592 teststring=
7593 # Add a significant safety factor because C++ compilers can tack on
7594 # massive amounts of additional arguments before passing them to the
7595 # linker. It appears as though 1/2 is a usable value.
7596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7597 fi
7598 ;;
7599 esac
7600
7601 fi
7602
7603 if test -n $lt_cv_sys_max_cmd_len ; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7605 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7608 $as_echo "none" >&6; }
7609 fi
7610 max_cmd_len=$lt_cv_sys_max_cmd_len
7611
7612
7613
7614
7615
7616
7617 : ${CP="cp -f"}
7618 : ${MV="mv -f"}
7619 : ${RM="rm -f"}
7620
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7622 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7623 # Try some XSI features
7624 xsi_shell=no
7625 ( _lt_dummy="a/b/c"
7626 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7627 = c,a/b,, \
7628 && eval 'test $(( 1 + 1 )) -eq 2 \
7629 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7630 && xsi_shell=yes
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7632 $as_echo "$xsi_shell" >&6; }
7633
7634
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7636 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7637 lt_shell_append=no
7638 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7639 >/dev/null 2>&1 \
7640 && lt_shell_append=yes
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7642 $as_echo "$lt_shell_append" >&6; }
7643
7644
7645 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7646 lt_unset=unset
7647 else
7648 lt_unset=false
7649 fi
7650
7651
7652
7653
7654
7655 # test EBCDIC or ASCII
7656 case `echo X|tr X '\101'` in
7657 A) # ASCII based system
7658 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7659 lt_SP2NL='tr \040 \012'
7660 lt_NL2SP='tr \015\012 \040\040'
7661 ;;
7662 *) # EBCDIC based system
7663 lt_SP2NL='tr \100 \n'
7664 lt_NL2SP='tr \r\n \100\100'
7665 ;;
7666 esac
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7677 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7678 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 lt_cv_ld_reload_flag='-r'
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7684 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7685 reload_flag=$lt_cv_ld_reload_flag
7686 case $reload_flag in
7687 "" | " "*) ;;
7688 *) reload_flag=" $reload_flag" ;;
7689 esac
7690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7691 case $host_os in
7692 darwin*)
7693 if test "$GCC" = yes; then
7694 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7695 else
7696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7697 fi
7698 ;;
7699 esac
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 if test -n "$ac_tool_prefix"; then
7710 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7711 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$OBJDUMP"; then
7718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 OBJDUMP=$ac_cv_prog_OBJDUMP
7738 if test -n "$OBJDUMP"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7740 $as_echo "$OBJDUMP" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747 fi
7748 if test -z "$ac_cv_prog_OBJDUMP"; then
7749 ac_ct_OBJDUMP=$OBJDUMP
7750 # Extract the first word of "objdump", so it can be a program name with args.
7751 set dummy objdump; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 if test -n "$ac_ct_OBJDUMP"; then
7758 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771 done
7772 done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7778 if test -n "$ac_ct_OBJDUMP"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7780 $as_echo "$ac_ct_OBJDUMP" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786 if test "x$ac_ct_OBJDUMP" = x; then
7787 OBJDUMP="false"
7788 else
7789 case $cross_compiling:$ac_tool_warned in
7790 yes:)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7793 ac_tool_warned=yes ;;
7794 esac
7795 OBJDUMP=$ac_ct_OBJDUMP
7796 fi
7797 else
7798 OBJDUMP="$ac_cv_prog_OBJDUMP"
7799 fi
7800
7801 test -z "$OBJDUMP" && OBJDUMP=objdump
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7812 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7813 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 lt_cv_file_magic_cmd='$MAGIC_CMD'
7817 lt_cv_file_magic_test_file=
7818 lt_cv_deplibs_check_method='unknown'
7819 # Need to set the preceding variable on all platforms that support
7820 # interlibrary dependencies.
7821 # 'none' -- dependencies not supported.
7822 # `unknown' -- same as none, but documents that we really don't know.
7823 # 'pass_all' -- all dependencies passed with no checks.
7824 # 'test_compile' -- check by making test program.
7825 # 'file_magic [[regex]]' -- check by looking for files in library path
7826 # which responds to the $file_magic_cmd with a given extended regex.
7827 # If you have `file' or equivalent on your system and you're not sure
7828 # whether `pass_all' will *always* work, you probably want this one.
7829
7830 case $host_os in
7831 aix[4-9]*)
7832 lt_cv_deplibs_check_method=pass_all
7833 ;;
7834
7835 beos*)
7836 lt_cv_deplibs_check_method=pass_all
7837 ;;
7838
7839 bsdi[45]*)
7840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7841 lt_cv_file_magic_cmd='/usr/bin/file -L'
7842 lt_cv_file_magic_test_file=/shlib/libc.so
7843 ;;
7844
7845 cygwin*)
7846 # func_win32_libid is a shell function defined in ltmain.sh
7847 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7848 lt_cv_file_magic_cmd='func_win32_libid'
7849 ;;
7850
7851 mingw* | pw32*)
7852 # Base MSYS/MinGW do not provide the 'file' command needed by
7853 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7854 # unless we find 'file', for example because we are cross-compiling.
7855 if ( file / ) >/dev/null 2>&1; then
7856 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7857 lt_cv_file_magic_cmd='func_win32_libid'
7858 else
7859 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7860 lt_cv_file_magic_cmd='$OBJDUMP -f'
7861 fi
7862 ;;
7863
7864 cegcc)
7865 # use the weaker test based on 'objdump'. See mingw*.
7866 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7867 lt_cv_file_magic_cmd='$OBJDUMP -f'
7868 ;;
7869
7870 darwin* | rhapsody*)
7871 lt_cv_deplibs_check_method=pass_all
7872 ;;
7873
7874 freebsd* | dragonfly*)
7875 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7876 case $host_cpu in
7877 i*86 )
7878 # Not sure whether the presence of OpenBSD here was a mistake.
7879 # Let's accept both of them until this is cleared up.
7880 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7881 lt_cv_file_magic_cmd=/usr/bin/file
7882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7883 ;;
7884 esac
7885 else
7886 lt_cv_deplibs_check_method=pass_all
7887 fi
7888 ;;
7889
7890 gnu*)
7891 lt_cv_deplibs_check_method=pass_all
7892 ;;
7893
7894 hpux10.20* | hpux11*)
7895 lt_cv_file_magic_cmd=/usr/bin/file
7896 case $host_cpu in
7897 ia64*)
7898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7899 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7900 ;;
7901 hppa*64*)
7902 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]'
7903 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7904 ;;
7905 *)
7906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7907 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7908 ;;
7909 esac
7910 ;;
7911
7912 interix[3-9]*)
7913 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7915 ;;
7916
7917 irix5* | irix6* | nonstopux*)
7918 case $LD in
7919 *-32|*"-32 ") libmagic=32-bit;;
7920 *-n32|*"-n32 ") libmagic=N32;;
7921 *-64|*"-64 ") libmagic=64-bit;;
7922 *) libmagic=never-match;;
7923 esac
7924 lt_cv_deplibs_check_method=pass_all
7925 ;;
7926
7927 # This must be Linux ELF.
7928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7929 lt_cv_deplibs_check_method=pass_all
7930 ;;
7931
7932 netbsd*)
7933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7935 else
7936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7937 fi
7938 ;;
7939
7940 newos6*)
7941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7942 lt_cv_file_magic_cmd=/usr/bin/file
7943 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7944 ;;
7945
7946 *nto* | *qnx*)
7947 lt_cv_deplibs_check_method=pass_all
7948 ;;
7949
7950 openbsd*)
7951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7953 else
7954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7955 fi
7956 ;;
7957
7958 osf3* | osf4* | osf5*)
7959 lt_cv_deplibs_check_method=pass_all
7960 ;;
7961
7962 rdos*)
7963 lt_cv_deplibs_check_method=pass_all
7964 ;;
7965
7966 solaris*)
7967 lt_cv_deplibs_check_method=pass_all
7968 ;;
7969
7970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7971 lt_cv_deplibs_check_method=pass_all
7972 ;;
7973
7974 sysv4 | sysv4.3*)
7975 case $host_vendor in
7976 motorola)
7977 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]'
7978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7979 ;;
7980 ncr)
7981 lt_cv_deplibs_check_method=pass_all
7982 ;;
7983 sequent)
7984 lt_cv_file_magic_cmd='/bin/file'
7985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7986 ;;
7987 sni)
7988 lt_cv_file_magic_cmd='/bin/file'
7989 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7990 lt_cv_file_magic_test_file=/lib/libc.so
7991 ;;
7992 siemens)
7993 lt_cv_deplibs_check_method=pass_all
7994 ;;
7995 pc)
7996 lt_cv_deplibs_check_method=pass_all
7997 ;;
7998 esac
7999 ;;
8000
8001 tpf*)
8002 lt_cv_deplibs_check_method=pass_all
8003 ;;
8004 esac
8005
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8008 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8009 file_magic_cmd=$lt_cv_file_magic_cmd
8010 deplibs_check_method=$lt_cv_deplibs_check_method
8011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}ar; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if test "${ac_cv_prog_AR+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$AR"; then
8033 ac_cv_prog_AR="$AR" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_prog_AR="${ac_tool_prefix}ar"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 AR=$ac_cv_prog_AR
8053 if test -n "$AR"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8055 $as_echo "$AR" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_AR"; then
8064 ac_ct_AR=$AR
8065 # Extract the first word of "ar", so it can be a program name with args.
8066 set dummy ar; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_AR"; then
8073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_ac_ct_AR="ar"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8093 if test -n "$ac_ct_AR"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8095 $as_echo "$ac_ct_AR" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_AR" = x; then
8102 AR="false"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 AR=$ac_ct_AR
8111 fi
8112 else
8113 AR="$ac_cv_prog_AR"
8114 fi
8115
8116 test -z "$AR" && AR=ar
8117 test -z "$AR_FLAGS" && AR_FLAGS=cru
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129 if test -n "$ac_tool_prefix"; then
8130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8131 set dummy ${ac_tool_prefix}strip; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_STRIP+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$STRIP"; then
8138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 STRIP=$ac_cv_prog_STRIP
8158 if test -n "$STRIP"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8160 $as_echo "$STRIP" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167 fi
8168 if test -z "$ac_cv_prog_STRIP"; then
8169 ac_ct_STRIP=$STRIP
8170 # Extract the first word of "strip", so it can be a program name with args.
8171 set dummy strip; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$ac_ct_STRIP"; then
8178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_ac_ct_STRIP="strip"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8198 if test -n "$ac_ct_STRIP"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8200 $as_echo "$ac_ct_STRIP" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206 if test "x$ac_ct_STRIP" = x; then
8207 STRIP=":"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215 STRIP=$ac_ct_STRIP
8216 fi
8217 else
8218 STRIP="$ac_cv_prog_STRIP"
8219 fi
8220
8221 test -z "$STRIP" && STRIP=:
8222
8223
8224
8225
8226
8227
8228 if test -n "$ac_tool_prefix"; then
8229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 if test -n "$RANLIB"; then
8237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254 fi
8255 fi
8256 RANLIB=$ac_cv_prog_RANLIB
8257 if test -n "$RANLIB"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8259 $as_echo "$RANLIB" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264
8265
8266 fi
8267 if test -z "$ac_cv_prog_RANLIB"; then
8268 ac_ct_RANLIB=$RANLIB
8269 # Extract the first word of "ranlib", so it can be a program name with args.
8270 set dummy ranlib; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$ac_ct_RANLIB"; then
8277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_ac_ct_RANLIB="ranlib"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8297 if test -n "$ac_ct_RANLIB"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8299 $as_echo "$ac_ct_RANLIB" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305 if test "x$ac_ct_RANLIB" = x; then
8306 RANLIB=":"
8307 else
8308 case $cross_compiling:$ac_tool_warned in
8309 yes:)
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8312 ac_tool_warned=yes ;;
8313 esac
8314 RANLIB=$ac_ct_RANLIB
8315 fi
8316 else
8317 RANLIB="$ac_cv_prog_RANLIB"
8318 fi
8319
8320 test -z "$RANLIB" && RANLIB=:
8321
8322
8323
8324
8325
8326
8327 # Determine commands to create old-style static archives.
8328 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8329 old_postinstall_cmds='chmod 644 $oldlib'
8330 old_postuninstall_cmds=
8331
8332 if test -n "$RANLIB"; then
8333 case $host_os in
8334 openbsd*)
8335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8336 ;;
8337 *)
8338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8339 ;;
8340 esac
8341 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8342 fi
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377 # If no C compiler was specified, use CC.
8378 LTCC=${LTCC-"$CC"}
8379
8380 # If no C compiler flags were specified, use CFLAGS.
8381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8382
8383 # Allow CC to be a program name with arguments.
8384 compiler=$CC
8385
8386
8387 # Check for command to grab the raw symbol name followed by C symbol from nm.
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8389 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8390 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393
8394 # These are sane defaults that work on at least a few old systems.
8395 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8396
8397 # Character class describing NM global symbol codes.
8398 symcode='[BCDEGRST]'
8399
8400 # Regexp to match symbols that can be accessed directly from C.
8401 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8402
8403 # Define system-specific variables.
8404 case $host_os in
8405 aix*)
8406 symcode='[BCDT]'
8407 ;;
8408 cygwin* | mingw* | pw32* | cegcc*)
8409 symcode='[ABCDGISTW]'
8410 ;;
8411 hpux*)
8412 if test "$host_cpu" = ia64; then
8413 symcode='[ABCDEGRST]'
8414 fi
8415 ;;
8416 irix* | nonstopux*)
8417 symcode='[BCDEGRST]'
8418 ;;
8419 osf*)
8420 symcode='[BCDEGQRST]'
8421 ;;
8422 solaris*)
8423 symcode='[BDRT]'
8424 ;;
8425 sco3.2v5*)
8426 symcode='[DT]'
8427 ;;
8428 sysv4.2uw2*)
8429 symcode='[DT]'
8430 ;;
8431 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8432 symcode='[ABDT]'
8433 ;;
8434 sysv4)
8435 symcode='[DFNSTU]'
8436 ;;
8437 esac
8438
8439 # If we're using GNU nm, then use its standard symbol codes.
8440 case `$NM -V 2>&1` in
8441 *GNU* | *'with BFD'*)
8442 symcode='[ABCDGIRSTW]' ;;
8443 esac
8444
8445 # Transform an extracted symbol line into a proper C declaration.
8446 # Some systems (esp. on ia64) link data and code symbols differently,
8447 # so use this general approach.
8448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8449
8450 # Transform an extracted symbol line into symbol name and symbol address
8451 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8452 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'"
8453
8454 # Handle CRLF in mingw tool chain
8455 opt_cr=
8456 case $build_os in
8457 mingw*)
8458 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8459 ;;
8460 esac
8461
8462 # Try without a prefix underscore, then with it.
8463 for ac_symprfx in "" "_"; do
8464
8465 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8466 symxfrm="\\1 $ac_symprfx\\2 \\2"
8467
8468 # Write the raw and C identifiers.
8469 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8470 # Fake it for dumpbin and say T for any non-static function
8471 # and D for any global variable.
8472 # Also find C++ and __fastcall symbols from MSVC++,
8473 # which start with @ or ?.
8474 lt_cv_sys_global_symbol_pipe="$AWK '"\
8475 " {last_section=section; section=\$ 3};"\
8476 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8477 " \$ 0!~/External *\|/{next};"\
8478 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8479 " {if(hide[section]) next};"\
8480 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8481 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8482 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8483 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8484 " ' prfx=^$ac_symprfx"
8485 else
8486 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8487 fi
8488
8489 # Check to see that the pipe works correctly.
8490 pipe_works=no
8491
8492 rm -f conftest*
8493 cat > conftest.$ac_ext <<_LT_EOF
8494 #ifdef __cplusplus
8495 extern "C" {
8496 #endif
8497 char nm_test_var;
8498 void nm_test_func(void);
8499 void nm_test_func(void){}
8500 #ifdef __cplusplus
8501 }
8502 #endif
8503 int main(){nm_test_var='a';nm_test_func();return(0);}
8504 _LT_EOF
8505
8506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8507 (eval $ac_compile) 2>&5
8508 ac_status=$?
8509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8510 test $ac_status = 0; }; then
8511 # Now try to grab the symbols.
8512 nlist=conftest.nm
8513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8515 ac_status=$?
8516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8517 test $ac_status = 0; } && test -s "$nlist"; then
8518 # Try sorting and uniquifying the output.
8519 if sort "$nlist" | uniq > "$nlist"T; then
8520 mv -f "$nlist"T "$nlist"
8521 else
8522 rm -f "$nlist"T
8523 fi
8524
8525 # Make sure that we snagged all the symbols we need.
8526 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8527 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8528 cat <<_LT_EOF > conftest.$ac_ext
8529 #ifdef __cplusplus
8530 extern "C" {
8531 #endif
8532
8533 _LT_EOF
8534 # Now generate the symbol file.
8535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8536
8537 cat <<_LT_EOF >> conftest.$ac_ext
8538
8539 /* The mapping between symbol names and symbols. */
8540 const struct {
8541 const char *name;
8542 void *address;
8543 }
8544 lt__PROGRAM__LTX_preloaded_symbols[] =
8545 {
8546 { "@PROGRAM@", (void *) 0 },
8547 _LT_EOF
8548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8549 cat <<\_LT_EOF >> conftest.$ac_ext
8550 {0, (void *) 0}
8551 };
8552
8553 /* This works around a problem in FreeBSD linker */
8554 #ifdef FREEBSD_WORKAROUND
8555 static const void *lt_preloaded_setup() {
8556 return lt__PROGRAM__LTX_preloaded_symbols;
8557 }
8558 #endif
8559
8560 #ifdef __cplusplus
8561 }
8562 #endif
8563 _LT_EOF
8564 # Now try linking the two files.
8565 mv conftest.$ac_objext conftstm.$ac_objext
8566 lt_save_LIBS="$LIBS"
8567 lt_save_CFLAGS="$CFLAGS"
8568 LIBS="conftstm.$ac_objext"
8569 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8571 (eval $ac_link) 2>&5
8572 ac_status=$?
8573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8575 pipe_works=yes
8576 fi
8577 LIBS="$lt_save_LIBS"
8578 CFLAGS="$lt_save_CFLAGS"
8579 else
8580 echo "cannot find nm_test_func in $nlist" >&5
8581 fi
8582 else
8583 echo "cannot find nm_test_var in $nlist" >&5
8584 fi
8585 else
8586 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8587 fi
8588 else
8589 echo "$progname: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8591 fi
8592 rm -rf conftest* conftst*
8593
8594 # Do not use the global_symbol_pipe unless it works.
8595 if test "$pipe_works" = yes; then
8596 break
8597 else
8598 lt_cv_sys_global_symbol_pipe=
8599 fi
8600 done
8601
8602 fi
8603
8604 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8605 lt_cv_sys_global_symbol_to_cdecl=
8606 fi
8607 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8609 $as_echo "failed" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8612 $as_echo "ok" >&6; }
8613 fi
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637 # Check whether --enable-libtool-lock was given.
8638 if test "${enable_libtool_lock+set}" = set; then :
8639 enableval=$enable_libtool_lock;
8640 fi
8641
8642 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8643
8644 # Some flags need to be propagated to the compiler or linker for good
8645 # libtool support.
8646 case $host in
8647 ia64-*-hpux*)
8648 # Find out which ABI we are using.
8649 echo 'int i;' > conftest.$ac_ext
8650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8651 (eval $ac_compile) 2>&5
8652 ac_status=$?
8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654 test $ac_status = 0; }; then
8655 case `/usr/bin/file conftest.$ac_objext` in
8656 *ELF-32*)
8657 HPUX_IA64_MODE="32"
8658 ;;
8659 *ELF-64*)
8660 HPUX_IA64_MODE="64"
8661 ;;
8662 esac
8663 fi
8664 rm -rf conftest*
8665 ;;
8666 *-*-irix6*)
8667 # Find out which ABI we are using.
8668 echo '#line 8668 "configure"' > conftest.$ac_ext
8669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8670 (eval $ac_compile) 2>&5
8671 ac_status=$?
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; }; then
8674 if test "$lt_cv_prog_gnu_ld" = yes; then
8675 case `/usr/bin/file conftest.$ac_objext` in
8676 *32-bit*)
8677 LD="${LD-ld} -melf32bsmip"
8678 ;;
8679 *N32*)
8680 LD="${LD-ld} -melf32bmipn32"
8681 ;;
8682 *64-bit*)
8683 LD="${LD-ld} -melf64bmip"
8684 ;;
8685 esac
8686 else
8687 case `/usr/bin/file conftest.$ac_objext` in
8688 *32-bit*)
8689 LD="${LD-ld} -32"
8690 ;;
8691 *N32*)
8692 LD="${LD-ld} -n32"
8693 ;;
8694 *64-bit*)
8695 LD="${LD-ld} -64"
8696 ;;
8697 esac
8698 fi
8699 fi
8700 rm -rf conftest*
8701 ;;
8702
8703 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8704 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8705 # Find out which ABI we are using.
8706 echo 'int i;' > conftest.$ac_ext
8707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8708 (eval $ac_compile) 2>&5
8709 ac_status=$?
8710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8711 test $ac_status = 0; }; then
8712 case `/usr/bin/file conftest.o` in
8713 *32-bit*)
8714 case $host in
8715 x86_64-*kfreebsd*-gnu)
8716 LD="${LD-ld} -m elf_i386_fbsd"
8717 ;;
8718 x86_64-*linux*)
8719 LD="${LD-ld} -m elf_i386"
8720 ;;
8721 ppc64-*linux*|powerpc64-*linux*)
8722 LD="${LD-ld} -m elf32ppclinux"
8723 ;;
8724 s390x-*linux*)
8725 LD="${LD-ld} -m elf_s390"
8726 ;;
8727 sparc64-*linux*)
8728 LD="${LD-ld} -m elf32_sparc"
8729 ;;
8730 esac
8731 ;;
8732 *64-bit*)
8733 case $host in
8734 x86_64-*kfreebsd*-gnu)
8735 LD="${LD-ld} -m elf_x86_64_fbsd"
8736 ;;
8737 x86_64-*linux*)
8738 LD="${LD-ld} -m elf_x86_64"
8739 ;;
8740 ppc*-*linux*|powerpc*-*linux*)
8741 LD="${LD-ld} -m elf64ppc"
8742 ;;
8743 s390*-*linux*|s390*-*tpf*)
8744 LD="${LD-ld} -m elf64_s390"
8745 ;;
8746 sparc*-*linux*)
8747 LD="${LD-ld} -m elf64_sparc"
8748 ;;
8749 esac
8750 ;;
8751 esac
8752 fi
8753 rm -rf conftest*
8754 ;;
8755
8756 *-*-sco3.2v5*)
8757 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8758 SAVE_CFLAGS="$CFLAGS"
8759 CFLAGS="$CFLAGS -belf"
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8761 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8762 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 ac_ext=c
8766 ac_cpp='$CPP $CPPFLAGS'
8767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8770
8771 if test x$gcc_no_link = xyes; then
8772 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8773 fi
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776
8777 int
8778 main ()
8779 {
8780
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_link "$LINENO"; then :
8786 lt_cv_cc_needs_belf=yes
8787 else
8788 lt_cv_cc_needs_belf=no
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8792 ac_ext=c
8793 ac_cpp='$CPP $CPPFLAGS'
8794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8800 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8803 CFLAGS="$SAVE_CFLAGS"
8804 fi
8805 ;;
8806 sparc*-*solaris*)
8807 # Find out which ABI we are using.
8808 echo 'int i;' > conftest.$ac_ext
8809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8810 (eval $ac_compile) 2>&5
8811 ac_status=$?
8812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8813 test $ac_status = 0; }; then
8814 case `/usr/bin/file conftest.o` in
8815 *64-bit*)
8816 case $lt_cv_prog_gnu_ld in
8817 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8818 *)
8819 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8820 LD="${LD-ld} -64"
8821 fi
8822 ;;
8823 esac
8824 ;;
8825 esac
8826 fi
8827 rm -rf conftest*
8828 ;;
8829 esac
8830
8831 need_locks="$enable_libtool_lock"
8832
8833
8834 case $host_os in
8835 rhapsody* | darwin*)
8836 if test -n "$ac_tool_prefix"; then
8837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8838 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 if test -n "$DSYMUTIL"; then
8845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858 done
8859 done
8860 IFS=$as_save_IFS
8861
8862 fi
8863 fi
8864 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8865 if test -n "$DSYMUTIL"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8867 $as_echo "$DSYMUTIL" >&6; }
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 fi
8872
8873
8874 fi
8875 if test -z "$ac_cv_prog_DSYMUTIL"; then
8876 ac_ct_DSYMUTIL=$DSYMUTIL
8877 # Extract the first word of "dsymutil", so it can be a program name with args.
8878 set dummy dsymutil; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$ac_ct_DSYMUTIL"; then
8885 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898 done
8899 done
8900 IFS=$as_save_IFS
8901
8902 fi
8903 fi
8904 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8905 if test -n "$ac_ct_DSYMUTIL"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8907 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913 if test "x$ac_ct_DSYMUTIL" = x; then
8914 DSYMUTIL=":"
8915 else
8916 case $cross_compiling:$ac_tool_warned in
8917 yes:)
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8920 ac_tool_warned=yes ;;
8921 esac
8922 DSYMUTIL=$ac_ct_DSYMUTIL
8923 fi
8924 else
8925 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8926 fi
8927
8928 if test -n "$ac_tool_prefix"; then
8929 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8930 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932 $as_echo_n "checking for $ac_word... " >&6; }
8933 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 if test -n "$NMEDIT"; then
8937 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8938 else
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8941 do
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8946 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 break 2
8949 fi
8950 done
8951 done
8952 IFS=$as_save_IFS
8953
8954 fi
8955 fi
8956 NMEDIT=$ac_cv_prog_NMEDIT
8957 if test -n "$NMEDIT"; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8959 $as_echo "$NMEDIT" >&6; }
8960 else
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 fi
8964
8965
8966 fi
8967 if test -z "$ac_cv_prog_NMEDIT"; then
8968 ac_ct_NMEDIT=$NMEDIT
8969 # Extract the first word of "nmedit", so it can be a program name with args.
8970 set dummy nmedit; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 if test -n "$ac_ct_NMEDIT"; then
8977 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990 done
8991 done
8992 IFS=$as_save_IFS
8993
8994 fi
8995 fi
8996 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8997 if test -n "$ac_ct_NMEDIT"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8999 $as_echo "$ac_ct_NMEDIT" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9003 fi
9004
9005 if test "x$ac_ct_NMEDIT" = x; then
9006 NMEDIT=":"
9007 else
9008 case $cross_compiling:$ac_tool_warned in
9009 yes:)
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9012 ac_tool_warned=yes ;;
9013 esac
9014 NMEDIT=$ac_ct_NMEDIT
9015 fi
9016 else
9017 NMEDIT="$ac_cv_prog_NMEDIT"
9018 fi
9019
9020 if test -n "$ac_tool_prefix"; then
9021 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9022 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if test "${ac_cv_prog_LIPO+set}" = set; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 if test -n "$LIPO"; then
9029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9030 else
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9033 do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9038 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042 done
9043 done
9044 IFS=$as_save_IFS
9045
9046 fi
9047 fi
9048 LIPO=$ac_cv_prog_LIPO
9049 if test -n "$LIPO"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9051 $as_echo "$LIPO" >&6; }
9052 else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9055 fi
9056
9057
9058 fi
9059 if test -z "$ac_cv_prog_LIPO"; then
9060 ac_ct_LIPO=$LIPO
9061 # Extract the first word of "lipo", so it can be a program name with args.
9062 set dummy lipo; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 if test -n "$ac_ct_LIPO"; then
9069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9070 else
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9073 do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_prog_ac_ct_LIPO="lipo"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9081 fi
9082 done
9083 done
9084 IFS=$as_save_IFS
9085
9086 fi
9087 fi
9088 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9089 if test -n "$ac_ct_LIPO"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9091 $as_echo "$ac_ct_LIPO" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9095 fi
9096
9097 if test "x$ac_ct_LIPO" = x; then
9098 LIPO=":"
9099 else
9100 case $cross_compiling:$ac_tool_warned in
9101 yes:)
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9104 ac_tool_warned=yes ;;
9105 esac
9106 LIPO=$ac_ct_LIPO
9107 fi
9108 else
9109 LIPO="$ac_cv_prog_LIPO"
9110 fi
9111
9112 if test -n "$ac_tool_prefix"; then
9113 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9114 set dummy ${ac_tool_prefix}otool; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 if test -n "$OTOOL"; then
9121 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9122 else
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9125 do
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9133 fi
9134 done
9135 done
9136 IFS=$as_save_IFS
9137
9138 fi
9139 fi
9140 OTOOL=$ac_cv_prog_OTOOL
9141 if test -n "$OTOOL"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9143 $as_echo "$OTOOL" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9147 fi
9148
9149
9150 fi
9151 if test -z "$ac_cv_prog_OTOOL"; then
9152 ac_ct_OTOOL=$OTOOL
9153 # Extract the first word of "otool", so it can be a program name with args.
9154 set dummy otool; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 if test -n "$ac_ct_OTOOL"; then
9161 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9162 else
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 for as_dir in $PATH
9165 do
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_prog_ac_ct_OTOOL="otool"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9173 fi
9174 done
9175 done
9176 IFS=$as_save_IFS
9177
9178 fi
9179 fi
9180 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9181 if test -n "$ac_ct_OTOOL"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9183 $as_echo "$ac_ct_OTOOL" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9187 fi
9188
9189 if test "x$ac_ct_OTOOL" = x; then
9190 OTOOL=":"
9191 else
9192 case $cross_compiling:$ac_tool_warned in
9193 yes:)
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9196 ac_tool_warned=yes ;;
9197 esac
9198 OTOOL=$ac_ct_OTOOL
9199 fi
9200 else
9201 OTOOL="$ac_cv_prog_OTOOL"
9202 fi
9203
9204 if test -n "$ac_tool_prefix"; then
9205 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9206 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 if test -n "$OTOOL64"; then
9213 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9214 else
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9222 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224 break 2
9225 fi
9226 done
9227 done
9228 IFS=$as_save_IFS
9229
9230 fi
9231 fi
9232 OTOOL64=$ac_cv_prog_OTOOL64
9233 if test -n "$OTOOL64"; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9235 $as_echo "$OTOOL64" >&6; }
9236 else
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9239 fi
9240
9241
9242 fi
9243 if test -z "$ac_cv_prog_OTOOL64"; then
9244 ac_ct_OTOOL64=$OTOOL64
9245 # Extract the first word of "otool64", so it can be a program name with args.
9246 set dummy otool64; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -n "$ac_ct_OTOOL64"; then
9253 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9254 else
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9257 do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_ac_ct_OTOOL64="otool64"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266 done
9267 done
9268 IFS=$as_save_IFS
9269
9270 fi
9271 fi
9272 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9273 if test -n "$ac_ct_OTOOL64"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9275 $as_echo "$ac_ct_OTOOL64" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9279 fi
9280
9281 if test "x$ac_ct_OTOOL64" = x; then
9282 OTOOL64=":"
9283 else
9284 case $cross_compiling:$ac_tool_warned in
9285 yes:)
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9288 ac_tool_warned=yes ;;
9289 esac
9290 OTOOL64=$ac_ct_OTOOL64
9291 fi
9292 else
9293 OTOOL64="$ac_cv_prog_OTOOL64"
9294 fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9323 $as_echo_n "checking for -single_module linker flag... " >&6; }
9324 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 lt_cv_apple_cc_single_mod=no
9328 if test -z "${LT_MULTI_MODULE}"; then
9329 # By default we will add the -single_module flag. You can override
9330 # by either setting the environment variable LT_MULTI_MODULE
9331 # non-empty at configure time, or by adding -multi_module to the
9332 # link flags.
9333 rm -rf libconftest.dylib*
9334 echo "int foo(void){return 1;}" > conftest.c
9335 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9336 -dynamiclib -Wl,-single_module conftest.c" >&5
9337 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9338 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9339 _lt_result=$?
9340 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9341 lt_cv_apple_cc_single_mod=yes
9342 else
9343 cat conftest.err >&5
9344 fi
9345 rm -rf libconftest.dylib*
9346 rm -f conftest.*
9347 fi
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9350 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9353 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 lt_cv_ld_exported_symbols_list=no
9357 save_LDFLAGS=$LDFLAGS
9358 echo "_main" > conftest.sym
9359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9360 if test x$gcc_no_link = xyes; then
9361 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9362 fi
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365
9366 int
9367 main ()
9368 {
9369
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 lt_cv_ld_exported_symbols_list=yes
9376 else
9377 lt_cv_ld_exported_symbols_list=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 LDFLAGS="$save_LDFLAGS"
9382
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9385 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9386 case $host_os in
9387 rhapsody* | darwin1.[012])
9388 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9389 darwin1.*)
9390 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9391 darwin*) # darwin 5.x on
9392 # if running on 10.5 or later, the deployment target defaults
9393 # to the OS version, if on x86, and 10.4, the deployment
9394 # target defaults to 10.4. Don't you love it?
9395 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9396 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9397 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9398 10.[012]*)
9399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9400 10.*)
9401 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9402 esac
9403 ;;
9404 esac
9405 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9406 _lt_dar_single_mod='$single_module'
9407 fi
9408 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9409 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9410 else
9411 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9412 fi
9413 if test "$DSYMUTIL" != ":"; then
9414 _lt_dsymutil='~$DSYMUTIL $lib || :'
9415 else
9416 _lt_dsymutil=
9417 fi
9418 ;;
9419 esac
9420
9421 ac_ext=c
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9428 # On Suns, sometimes $CPP names a directory.
9429 if test -n "$CPP" && test -d "$CPP"; then
9430 CPP=
9431 fi
9432 if test -z "$CPP"; then
9433 if test "${ac_cv_prog_CPP+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 # Double quotes because CPP needs to be expanded
9437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9438 do
9439 ac_preproc_ok=false
9440 for ac_c_preproc_warn_flag in '' yes
9441 do
9442 # Use a header file that comes with gcc, so configuring glibc
9443 # with a fresh cross-compiler works.
9444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445 # <limits.h> exists even on freestanding compilers.
9446 # On the NeXT, cc -E runs the code through the compiler's parser,
9447 # not just through cpp. "Syntax error" is here to catch this case.
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #ifdef __STDC__
9451 # include <limits.h>
9452 #else
9453 # include <assert.h>
9454 #endif
9455 Syntax error
9456 _ACEOF
9457 if ac_fn_c_try_cpp "$LINENO"; then :
9458
9459 else
9460 # Broken: fails on valid input.
9461 continue
9462 fi
9463 rm -f conftest.err conftest.$ac_ext
9464
9465 # OK, works on sane cases. Now check whether nonexistent headers
9466 # can be detected and how.
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 #include <ac_nonexistent.h>
9470 _ACEOF
9471 if ac_fn_c_try_cpp "$LINENO"; then :
9472 # Broken: success on invalid input.
9473 continue
9474 else
9475 # Passes both tests.
9476 ac_preproc_ok=:
9477 break
9478 fi
9479 rm -f conftest.err conftest.$ac_ext
9480
9481 done
9482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9483 rm -f conftest.err conftest.$ac_ext
9484 if $ac_preproc_ok; then :
9485 break
9486 fi
9487
9488 done
9489 ac_cv_prog_CPP=$CPP
9490
9491 fi
9492 CPP=$ac_cv_prog_CPP
9493 else
9494 ac_cv_prog_CPP=$CPP
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9497 $as_echo "$CPP" >&6; }
9498 ac_preproc_ok=false
9499 for ac_c_preproc_warn_flag in '' yes
9500 do
9501 # Use a header file that comes with gcc, so configuring glibc
9502 # with a fresh cross-compiler works.
9503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 # <limits.h> exists even on freestanding compilers.
9505 # On the NeXT, cc -E runs the code through the compiler's parser,
9506 # not just through cpp. "Syntax error" is here to catch this case.
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 #ifdef __STDC__
9510 # include <limits.h>
9511 #else
9512 # include <assert.h>
9513 #endif
9514 Syntax error
9515 _ACEOF
9516 if ac_fn_c_try_cpp "$LINENO"; then :
9517
9518 else
9519 # Broken: fails on valid input.
9520 continue
9521 fi
9522 rm -f conftest.err conftest.$ac_ext
9523
9524 # OK, works on sane cases. Now check whether nonexistent headers
9525 # can be detected and how.
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 #include <ac_nonexistent.h>
9529 _ACEOF
9530 if ac_fn_c_try_cpp "$LINENO"; then :
9531 # Broken: success on invalid input.
9532 continue
9533 else
9534 # Passes both tests.
9535 ac_preproc_ok=:
9536 break
9537 fi
9538 rm -f conftest.err conftest.$ac_ext
9539
9540 done
9541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9542 rm -f conftest.err conftest.$ac_ext
9543 if $ac_preproc_ok; then :
9544
9545 else
9546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9549 See \`config.log' for more details." "$LINENO" 5; }
9550 fi
9551
9552 ac_ext=c
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9560 $as_echo_n "checking for ANSI C header files... " >&6; }
9561 if test "${ac_cv_header_stdc+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566 #include <stdlib.h>
9567 #include <stdarg.h>
9568 #include <string.h>
9569 #include <float.h>
9570
9571 int
9572 main ()
9573 {
9574
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"; then :
9580 ac_cv_header_stdc=yes
9581 else
9582 ac_cv_header_stdc=no
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585
9586 if test $ac_cv_header_stdc = yes; then
9587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <string.h>
9591
9592 _ACEOF
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 $EGREP "memchr" >/dev/null 2>&1; then :
9595
9596 else
9597 ac_cv_header_stdc=no
9598 fi
9599 rm -f conftest*
9600
9601 fi
9602
9603 if test $ac_cv_header_stdc = yes; then
9604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 #include <stdlib.h>
9608
9609 _ACEOF
9610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9611 $EGREP "free" >/dev/null 2>&1; then :
9612
9613 else
9614 ac_cv_header_stdc=no
9615 fi
9616 rm -f conftest*
9617
9618 fi
9619
9620 if test $ac_cv_header_stdc = yes; then
9621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9622 if test "$cross_compiling" = yes; then :
9623 :
9624 else
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 #include <ctype.h>
9628 #include <stdlib.h>
9629 #if ((' ' & 0x0FF) == 0x020)
9630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9632 #else
9633 # define ISLOWER(c) \
9634 (('a' <= (c) && (c) <= 'i') \
9635 || ('j' <= (c) && (c) <= 'r') \
9636 || ('s' <= (c) && (c) <= 'z'))
9637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9638 #endif
9639
9640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9641 int
9642 main ()
9643 {
9644 int i;
9645 for (i = 0; i < 256; i++)
9646 if (XOR (islower (i), ISLOWER (i))
9647 || toupper (i) != TOUPPER (i))
9648 return 2;
9649 return 0;
9650 }
9651 _ACEOF
9652 if ac_fn_c_try_run "$LINENO"; then :
9653
9654 else
9655 ac_cv_header_stdc=no
9656 fi
9657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9658 conftest.$ac_objext conftest.beam conftest.$ac_ext
9659 fi
9660
9661 fi
9662 fi
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9664 $as_echo "$ac_cv_header_stdc" >&6; }
9665 if test $ac_cv_header_stdc = yes; then
9666
9667 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9668
9669 fi
9670
9671 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9672 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9673 inttypes.h stdint.h unistd.h
9674 do :
9675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9676 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9677 "
9678 eval as_val=\$$as_ac_Header
9679 if test "x$as_val" = x""yes; then :
9680 cat >>confdefs.h <<_ACEOF
9681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682 _ACEOF
9683
9684 fi
9685
9686 done
9687
9688
9689 for ac_header in dlfcn.h
9690 do :
9691 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9692 "
9693 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_DLFCN_H 1
9696 _ACEOF
9697
9698 fi
9699
9700 done
9701
9702
9703
9704 ac_ext=cpp
9705 ac_cpp='$CXXCPP $CPPFLAGS'
9706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9709 if test -z "$CXX"; then
9710 if test -n "$CCC"; then
9711 CXX=$CCC
9712 else
9713 if test -n "$ac_tool_prefix"; then
9714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9715 do
9716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if test "${ac_cv_prog_CXX+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 if test -n "$CXX"; then
9724 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9725 else
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9728 do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737 done
9738 done
9739 IFS=$as_save_IFS
9740
9741 fi
9742 fi
9743 CXX=$ac_cv_prog_CXX
9744 if test -n "$CXX"; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9746 $as_echo "$CXX" >&6; }
9747 else
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9750 fi
9751
9752
9753 test -n "$CXX" && break
9754 done
9755 fi
9756 if test -z "$CXX"; then
9757 ac_ct_CXX=$CXX
9758 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9759 do
9760 # Extract the first word of "$ac_prog", so it can be a program name with args.
9761 set dummy $ac_prog; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 if test -n "$ac_ct_CXX"; then
9768 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9769 else
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in $PATH
9772 do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9777 ac_cv_prog_ac_ct_CXX="$ac_prog"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781 done
9782 done
9783 IFS=$as_save_IFS
9784
9785 fi
9786 fi
9787 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9788 if test -n "$ac_ct_CXX"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9790 $as_echo "$ac_ct_CXX" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9794 fi
9795
9796
9797 test -n "$ac_ct_CXX" && break
9798 done
9799
9800 if test "x$ac_ct_CXX" = x; then
9801 CXX="g++"
9802 else
9803 case $cross_compiling:$ac_tool_warned in
9804 yes:)
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9807 ac_tool_warned=yes ;;
9808 esac
9809 CXX=$ac_ct_CXX
9810 fi
9811 fi
9812
9813 fi
9814 fi
9815 # Provide some information about the compiler.
9816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9817 set X $ac_compile
9818 ac_compiler=$2
9819 for ac_option in --version -v -V -qversion; do
9820 { { ac_try="$ac_compiler $ac_option >&5"
9821 case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9824 esac
9825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9826 $as_echo "$ac_try_echo"; } >&5
9827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9828 ac_status=$?
9829 if test -s conftest.err; then
9830 sed '10a\
9831 ... rest of stderr output deleted ...
9832 10q' conftest.err >conftest.er1
9833 cat conftest.er1 >&5
9834 rm -f conftest.er1 conftest.err
9835 fi
9836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9837 test $ac_status = 0; }
9838 done
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9841 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9842 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847
9848 int
9849 main ()
9850 {
9851 #ifndef __GNUC__
9852 choke me
9853 #endif
9854
9855 ;
9856 return 0;
9857 }
9858 _ACEOF
9859 if ac_fn_cxx_try_compile "$LINENO"; then :
9860 ac_compiler_gnu=yes
9861 else
9862 ac_compiler_gnu=no
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9866
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9869 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9870 if test $ac_compiler_gnu = yes; then
9871 GXX=yes
9872 else
9873 GXX=
9874 fi
9875 ac_test_CXXFLAGS=${CXXFLAGS+set}
9876 ac_save_CXXFLAGS=$CXXFLAGS
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9878 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9879 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9883 ac_cxx_werror_flag=yes
9884 ac_cv_prog_cxx_g=no
9885 CXXFLAGS="-g"
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888
9889 int
9890 main ()
9891 {
9892
9893 ;
9894 return 0;
9895 }
9896 _ACEOF
9897 if ac_fn_cxx_try_compile "$LINENO"; then :
9898 ac_cv_prog_cxx_g=yes
9899 else
9900 CXXFLAGS=""
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903
9904 int
9905 main ()
9906 {
9907
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_cxx_try_compile "$LINENO"; then :
9913
9914 else
9915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9916 CXXFLAGS="-g"
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919
9920 int
9921 main ()
9922 {
9923
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 if ac_fn_cxx_try_compile "$LINENO"; then :
9929 ac_cv_prog_cxx_g=yes
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9939 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9940 if test "$ac_test_CXXFLAGS" = set; then
9941 CXXFLAGS=$ac_save_CXXFLAGS
9942 elif test $ac_cv_prog_cxx_g = yes; then
9943 if test "$GXX" = yes; then
9944 CXXFLAGS="-g -O2"
9945 else
9946 CXXFLAGS="-g"
9947 fi
9948 else
9949 if test "$GXX" = yes; then
9950 CXXFLAGS="-O2"
9951 else
9952 CXXFLAGS=
9953 fi
9954 fi
9955 ac_ext=c
9956 ac_cpp='$CPP $CPPFLAGS'
9957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9960
9961 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9962 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9963 (test "X$CXX" != "Xg++"))) ; then
9964 ac_ext=cpp
9965 ac_cpp='$CXXCPP $CPPFLAGS'
9966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9970 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9971 if test -z "$CXXCPP"; then
9972 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 # Double quotes because CXXCPP needs to be expanded
9976 for CXXCPP in "$CXX -E" "/lib/cpp"
9977 do
9978 ac_preproc_ok=false
9979 for ac_cxx_preproc_warn_flag in '' yes
9980 do
9981 # Use a header file that comes with gcc, so configuring glibc
9982 # with a fresh cross-compiler works.
9983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9984 # <limits.h> exists even on freestanding compilers.
9985 # On the NeXT, cc -E runs the code through the compiler's parser,
9986 # not just through cpp. "Syntax error" is here to catch this case.
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 #ifdef __STDC__
9990 # include <limits.h>
9991 #else
9992 # include <assert.h>
9993 #endif
9994 Syntax error
9995 _ACEOF
9996 if ac_fn_cxx_try_cpp "$LINENO"; then :
9997
9998 else
9999 # Broken: fails on valid input.
10000 continue
10001 fi
10002 rm -f conftest.err conftest.$ac_ext
10003
10004 # OK, works on sane cases. Now check whether nonexistent headers
10005 # can be detected and how.
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10008 #include <ac_nonexistent.h>
10009 _ACEOF
10010 if ac_fn_cxx_try_cpp "$LINENO"; then :
10011 # Broken: success on invalid input.
10012 continue
10013 else
10014 # Passes both tests.
10015 ac_preproc_ok=:
10016 break
10017 fi
10018 rm -f conftest.err conftest.$ac_ext
10019
10020 done
10021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10022 rm -f conftest.err conftest.$ac_ext
10023 if $ac_preproc_ok; then :
10024 break
10025 fi
10026
10027 done
10028 ac_cv_prog_CXXCPP=$CXXCPP
10029
10030 fi
10031 CXXCPP=$ac_cv_prog_CXXCPP
10032 else
10033 ac_cv_prog_CXXCPP=$CXXCPP
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10036 $as_echo "$CXXCPP" >&6; }
10037 ac_preproc_ok=false
10038 for ac_cxx_preproc_warn_flag in '' yes
10039 do
10040 # Use a header file that comes with gcc, so configuring glibc
10041 # with a fresh cross-compiler works.
10042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10043 # <limits.h> exists even on freestanding compilers.
10044 # On the NeXT, cc -E runs the code through the compiler's parser,
10045 # not just through cpp. "Syntax error" is here to catch this case.
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 #ifdef __STDC__
10049 # include <limits.h>
10050 #else
10051 # include <assert.h>
10052 #endif
10053 Syntax error
10054 _ACEOF
10055 if ac_fn_cxx_try_cpp "$LINENO"; then :
10056
10057 else
10058 # Broken: fails on valid input.
10059 continue
10060 fi
10061 rm -f conftest.err conftest.$ac_ext
10062
10063 # OK, works on sane cases. Now check whether nonexistent headers
10064 # can be detected and how.
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067 #include <ac_nonexistent.h>
10068 _ACEOF
10069 if ac_fn_cxx_try_cpp "$LINENO"; then :
10070 # Broken: success on invalid input.
10071 continue
10072 else
10073 # Passes both tests.
10074 ac_preproc_ok=:
10075 break
10076 fi
10077 rm -f conftest.err conftest.$ac_ext
10078
10079 done
10080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10081 rm -f conftest.err conftest.$ac_ext
10082 if $ac_preproc_ok; then :
10083
10084 else
10085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10087 _lt_caught_CXX_error=yes; }
10088 fi
10089
10090 ac_ext=c
10091 ac_cpp='$CPP $CPPFLAGS'
10092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10095
10096 else
10097 _lt_caught_CXX_error=yes
10098 fi
10099
10100
10101
10102
10103
10104 # Set options
10105
10106
10107
10108
10109 enable_win32_dll=no
10110
10111
10112 # Check whether --enable-shared was given.
10113 if test "${enable_shared+set}" = set; then :
10114 enableval=$enable_shared; p=${PACKAGE-default}
10115 case $enableval in
10116 yes) enable_shared=yes ;;
10117 no) enable_shared=no ;;
10118 *)
10119 enable_shared=no
10120 # Look at the argument we got. We use all the common list separators.
10121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122 for pkg in $enableval; do
10123 IFS="$lt_save_ifs"
10124 if test "X$pkg" = "X$p"; then
10125 enable_shared=yes
10126 fi
10127 done
10128 IFS="$lt_save_ifs"
10129 ;;
10130 esac
10131 else
10132 enable_shared=yes
10133 fi
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143 # Check whether --enable-static was given.
10144 if test "${enable_static+set}" = set; then :
10145 enableval=$enable_static; p=${PACKAGE-default}
10146 case $enableval in
10147 yes) enable_static=yes ;;
10148 no) enable_static=no ;;
10149 *)
10150 enable_static=no
10151 # Look at the argument we got. We use all the common list separators.
10152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10153 for pkg in $enableval; do
10154 IFS="$lt_save_ifs"
10155 if test "X$pkg" = "X$p"; then
10156 enable_static=yes
10157 fi
10158 done
10159 IFS="$lt_save_ifs"
10160 ;;
10161 esac
10162 else
10163 enable_static=yes
10164 fi
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175 # Check whether --with-pic was given.
10176 if test "${with_pic+set}" = set; then :
10177 withval=$with_pic; pic_mode="$withval"
10178 else
10179 pic_mode=default
10180 fi
10181
10182
10183 test -z "$pic_mode" && pic_mode=default
10184
10185
10186
10187
10188
10189
10190
10191 # Check whether --enable-fast-install was given.
10192 if test "${enable_fast_install+set}" = set; then :
10193 enableval=$enable_fast_install; p=${PACKAGE-default}
10194 case $enableval in
10195 yes) enable_fast_install=yes ;;
10196 no) enable_fast_install=no ;;
10197 *)
10198 enable_fast_install=no
10199 # Look at the argument we got. We use all the common list separators.
10200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10201 for pkg in $enableval; do
10202 IFS="$lt_save_ifs"
10203 if test "X$pkg" = "X$p"; then
10204 enable_fast_install=yes
10205 fi
10206 done
10207 IFS="$lt_save_ifs"
10208 ;;
10209 esac
10210 else
10211 enable_fast_install=yes
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224 # This can be used to rebuild libtool when needed
10225 LIBTOOL_DEPS="$ltmain"
10226
10227 # Always use our own libtool.
10228 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254 test -z "$LN_S" && LN_S="ln -s"
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269 if test -n "${ZSH_VERSION+set}" ; then
10270 setopt NO_GLOB_SUBST
10271 fi
10272
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10274 $as_echo_n "checking for objdir... " >&6; }
10275 if test "${lt_cv_objdir+set}" = set; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 rm -f .libs 2>/dev/null
10279 mkdir .libs 2>/dev/null
10280 if test -d .libs; then
10281 lt_cv_objdir=.libs
10282 else
10283 # MS-DOS does not allow filenames that begin with a dot.
10284 lt_cv_objdir=_libs
10285 fi
10286 rmdir .libs 2>/dev/null
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10289 $as_echo "$lt_cv_objdir" >&6; }
10290 objdir=$lt_cv_objdir
10291
10292
10293
10294
10295
10296 cat >>confdefs.h <<_ACEOF
10297 #define LT_OBJDIR "$lt_cv_objdir/"
10298 _ACEOF
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316 case $host_os in
10317 aix3*)
10318 # AIX sometimes has problems with the GCC collect2 program. For some
10319 # reason, if we set the COLLECT_NAMES environment variable, the problems
10320 # vanish in a puff of smoke.
10321 if test "X${COLLECT_NAMES+set}" != Xset; then
10322 COLLECT_NAMES=
10323 export COLLECT_NAMES
10324 fi
10325 ;;
10326 esac
10327
10328 # Sed substitution that helps us do robust quoting. It backslashifies
10329 # metacharacters that are still active within double-quoted strings.
10330 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10331
10332 # Same as above, but do not quote variable references.
10333 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10334
10335 # Sed substitution to delay expansion of an escaped shell variable in a
10336 # double_quote_subst'ed string.
10337 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10338
10339 # Sed substitution to delay expansion of an escaped single quote.
10340 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10341
10342 # Sed substitution to avoid accidental globbing in evaled expressions
10343 no_glob_subst='s/\*/\\\*/g'
10344
10345 # Global variables:
10346 ofile=libtool
10347 can_build_shared=yes
10348
10349 # All known linkers require a `.a' archive for static linking (except MSVC,
10350 # which needs '.lib').
10351 libext=a
10352
10353 with_gnu_ld="$lt_cv_prog_gnu_ld"
10354
10355 old_CC="$CC"
10356 old_CFLAGS="$CFLAGS"
10357
10358 # Set sane defaults for various variables
10359 test -z "$CC" && CC=cc
10360 test -z "$LTCC" && LTCC=$CC
10361 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10362 test -z "$LD" && LD=ld
10363 test -z "$ac_objext" && ac_objext=o
10364
10365 for cc_temp in $compiler""; do
10366 case $cc_temp in
10367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10369 \-*) ;;
10370 *) break;;
10371 esac
10372 done
10373 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10374
10375
10376 # Only perform the check for file, if the check method requires it
10377 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10378 case $deplibs_check_method in
10379 file_magic*)
10380 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10382 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10383 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 case $MAGIC_CMD in
10387 [\\/*] | ?:[\\/]*)
10388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10389 ;;
10390 *)
10391 lt_save_MAGIC_CMD="$MAGIC_CMD"
10392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10394 for ac_dir in $ac_dummy; do
10395 IFS="$lt_save_ifs"
10396 test -z "$ac_dir" && ac_dir=.
10397 if test -f $ac_dir/${ac_tool_prefix}file; then
10398 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10399 if test -n "$file_magic_test_file"; then
10400 case $deplibs_check_method in
10401 "file_magic "*)
10402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10405 $EGREP "$file_magic_regex" > /dev/null; then
10406 :
10407 else
10408 cat <<_LT_EOF 1>&2
10409
10410 *** Warning: the command libtool uses to detect shared libraries,
10411 *** $file_magic_cmd, produces output that libtool cannot recognize.
10412 *** The result is that libtool may fail to recognize shared libraries
10413 *** as such. This will affect the creation of libtool libraries that
10414 *** depend on shared libraries, but programs linked with such libtool
10415 *** libraries will work regardless of this problem. Nevertheless, you
10416 *** may want to report the problem to your system manager and/or to
10417 *** bug-libtool@gnu.org
10418
10419 _LT_EOF
10420 fi ;;
10421 esac
10422 fi
10423 break
10424 fi
10425 done
10426 IFS="$lt_save_ifs"
10427 MAGIC_CMD="$lt_save_MAGIC_CMD"
10428 ;;
10429 esac
10430 fi
10431
10432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10433 if test -n "$MAGIC_CMD"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10435 $as_echo "$MAGIC_CMD" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10439 fi
10440
10441
10442
10443
10444
10445 if test -z "$lt_cv_path_MAGIC_CMD"; then
10446 if test -n "$ac_tool_prefix"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10448 $as_echo_n "checking for file... " >&6; }
10449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 case $MAGIC_CMD in
10453 [\\/*] | ?:[\\/]*)
10454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10455 ;;
10456 *)
10457 lt_save_MAGIC_CMD="$MAGIC_CMD"
10458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10460 for ac_dir in $ac_dummy; do
10461 IFS="$lt_save_ifs"
10462 test -z "$ac_dir" && ac_dir=.
10463 if test -f $ac_dir/file; then
10464 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10465 if test -n "$file_magic_test_file"; then
10466 case $deplibs_check_method in
10467 "file_magic "*)
10468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10471 $EGREP "$file_magic_regex" > /dev/null; then
10472 :
10473 else
10474 cat <<_LT_EOF 1>&2
10475
10476 *** Warning: the command libtool uses to detect shared libraries,
10477 *** $file_magic_cmd, produces output that libtool cannot recognize.
10478 *** The result is that libtool may fail to recognize shared libraries
10479 *** as such. This will affect the creation of libtool libraries that
10480 *** depend on shared libraries, but programs linked with such libtool
10481 *** libraries will work regardless of this problem. Nevertheless, you
10482 *** may want to report the problem to your system manager and/or to
10483 *** bug-libtool@gnu.org
10484
10485 _LT_EOF
10486 fi ;;
10487 esac
10488 fi
10489 break
10490 fi
10491 done
10492 IFS="$lt_save_ifs"
10493 MAGIC_CMD="$lt_save_MAGIC_CMD"
10494 ;;
10495 esac
10496 fi
10497
10498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10499 if test -n "$MAGIC_CMD"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10501 $as_echo "$MAGIC_CMD" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506
10507
10508 else
10509 MAGIC_CMD=:
10510 fi
10511 fi
10512
10513 fi
10514 ;;
10515 esac
10516
10517 # Use C for the default configuration in the libtool script
10518
10519 lt_save_CC="$CC"
10520 ac_ext=c
10521 ac_cpp='$CPP $CPPFLAGS'
10522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10525
10526
10527 # Source file extension for C test sources.
10528 ac_ext=c
10529
10530 # Object file extension for compiled C test sources.
10531 objext=o
10532 objext=$objext
10533
10534 # Code to be used in simple compile tests
10535 lt_simple_compile_test_code="int some_variable = 0;"
10536
10537 # Code to be used in simple link tests
10538 lt_simple_link_test_code='int main(){return(0);}'
10539
10540
10541
10542
10543
10544
10545
10546 # If no C compiler was specified, use CC.
10547 LTCC=${LTCC-"$CC"}
10548
10549 # If no C compiler flags were specified, use CFLAGS.
10550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10551
10552 # Allow CC to be a program name with arguments.
10553 compiler=$CC
10554
10555 # Save the default compiler, since it gets overwritten when the other
10556 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10557 compiler_DEFAULT=$CC
10558
10559 # save warnings/boilerplate of simple test code
10560 ac_outfile=conftest.$ac_objext
10561 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10563 _lt_compiler_boilerplate=`cat conftest.err`
10564 $RM conftest*
10565
10566 ac_outfile=conftest.$ac_objext
10567 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10569 _lt_linker_boilerplate=`cat conftest.err`
10570 $RM -r conftest*
10571
10572
10573 ## CAVEAT EMPTOR:
10574 ## There is no encapsulation within the following macros, do not change
10575 ## the running order or otherwise move them around unless you know exactly
10576 ## what you are doing...
10577 if test -n "$compiler"; then
10578
10579 lt_prog_compiler_no_builtin_flag=
10580
10581 if test "$GCC" = yes; then
10582 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10583
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10585 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10586 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 lt_cv_prog_compiler_rtti_exceptions=no
10590 ac_outfile=conftest.$ac_objext
10591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10592 lt_compiler_flag="-fno-rtti -fno-exceptions"
10593 # Insert the option either (1) after the last *FLAGS variable, or
10594 # (2) before a word containing "conftest.", or (3) at the end.
10595 # Note that $ac_compile itself does not contain backslashes and begins
10596 # with a dollar sign (not a hyphen), so the echo should work correctly.
10597 # The option is referenced via a variable to avoid confusing sed.
10598 lt_compile=`echo "$ac_compile" | $SED \
10599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10601 -e 's:$: $lt_compiler_flag:'`
10602 (eval echo "\"\$as_me:10602: $lt_compile\"" >&5)
10603 (eval "$lt_compile" 2>conftest.err)
10604 ac_status=$?
10605 cat conftest.err >&5
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 if (exit $ac_status) && test -s "$ac_outfile"; then
10608 # The compiler can only warn and ignore the option if not recognized
10609 # So say no if there are warnings other than the usual output.
10610 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10613 lt_cv_prog_compiler_rtti_exceptions=yes
10614 fi
10615 fi
10616 $RM conftest*
10617
10618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10620 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10621
10622 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10623 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10624 else
10625 :
10626 fi
10627
10628 fi
10629
10630
10631
10632
10633
10634
10635 lt_prog_compiler_wl=
10636 lt_prog_compiler_pic=
10637 lt_prog_compiler_static=
10638
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10641
10642 if test "$GCC" = yes; then
10643 lt_prog_compiler_wl='-Wl,'
10644 lt_prog_compiler_static='-static'
10645
10646 case $host_os in
10647 aix*)
10648 # All AIX code is PIC.
10649 if test "$host_cpu" = ia64; then
10650 # AIX 5 now supports IA64 processor
10651 lt_prog_compiler_static='-Bstatic'
10652 fi
10653 ;;
10654
10655 amigaos*)
10656 case $host_cpu in
10657 powerpc)
10658 # see comment about AmigaOS4 .so support
10659 lt_prog_compiler_pic='-fPIC'
10660 ;;
10661 m68k)
10662 # FIXME: we need at least 68020 code to build shared libraries, but
10663 # adding the `-m68020' flag to GCC prevents building anything better,
10664 # like `-m68040'.
10665 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10666 ;;
10667 esac
10668 ;;
10669
10670 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10671 # PIC is the default for these OSes.
10672 ;;
10673
10674 mingw* | cygwin* | pw32* | os2* | cegcc*)
10675 # This hack is so that the source file can tell whether it is being
10676 # built for inclusion in a dll (and should export symbols for example).
10677 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10678 # (--disable-auto-import) libraries
10679 lt_prog_compiler_pic='-DDLL_EXPORT'
10680 ;;
10681
10682 darwin* | rhapsody*)
10683 # PIC is the default on this platform
10684 # Common symbols not allowed in MH_DYLIB files
10685 lt_prog_compiler_pic='-fno-common'
10686 ;;
10687
10688 hpux*)
10689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10691 # sets the default TLS model and affects inlining.
10692 case $host_cpu in
10693 hppa*64*)
10694 # +Z the default
10695 ;;
10696 *)
10697 lt_prog_compiler_pic='-fPIC'
10698 ;;
10699 esac
10700 ;;
10701
10702 interix[3-9]*)
10703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10704 # Instead, we relocate shared libraries at runtime.
10705 ;;
10706
10707 msdosdjgpp*)
10708 # Just because we use GCC doesn't mean we suddenly get shared libraries
10709 # on systems that don't support them.
10710 lt_prog_compiler_can_build_shared=no
10711 enable_shared=no
10712 ;;
10713
10714 *nto* | *qnx*)
10715 # QNX uses GNU C++, but need to define -shared option too, otherwise
10716 # it will coredump.
10717 lt_prog_compiler_pic='-fPIC -shared'
10718 ;;
10719
10720 sysv4*MP*)
10721 if test -d /usr/nec; then
10722 lt_prog_compiler_pic=-Kconform_pic
10723 fi
10724 ;;
10725
10726 *)
10727 lt_prog_compiler_pic='-fPIC'
10728 ;;
10729 esac
10730 else
10731 # PORTME Check for flag to pass linker flags through the system compiler.
10732 case $host_os in
10733 aix*)
10734 lt_prog_compiler_wl='-Wl,'
10735 if test "$host_cpu" = ia64; then
10736 # AIX 5 now supports IA64 processor
10737 lt_prog_compiler_static='-Bstatic'
10738 else
10739 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10740 fi
10741 ;;
10742
10743 mingw* | cygwin* | pw32* | os2* | cegcc*)
10744 # This hack is so that the source file can tell whether it is being
10745 # built for inclusion in a dll (and should export symbols for example).
10746 lt_prog_compiler_pic='-DDLL_EXPORT'
10747 ;;
10748
10749 hpux9* | hpux10* | hpux11*)
10750 lt_prog_compiler_wl='-Wl,'
10751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10752 # not for PA HP-UX.
10753 case $host_cpu in
10754 hppa*64*|ia64*)
10755 # +Z the default
10756 ;;
10757 *)
10758 lt_prog_compiler_pic='+Z'
10759 ;;
10760 esac
10761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10762 lt_prog_compiler_static='${wl}-a ${wl}archive'
10763 ;;
10764
10765 irix5* | irix6* | nonstopux*)
10766 lt_prog_compiler_wl='-Wl,'
10767 # PIC (with -KPIC) is the default.
10768 lt_prog_compiler_static='-non_shared'
10769 ;;
10770
10771 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10772 case $cc_basename in
10773 # old Intel for x86_64 which still supported -KPIC.
10774 ecc*)
10775 lt_prog_compiler_wl='-Wl,'
10776 lt_prog_compiler_pic='-KPIC'
10777 lt_prog_compiler_static='-static'
10778 ;;
10779 # icc used to be incompatible with GCC.
10780 # ICC 10 doesn't accept -KPIC any more.
10781 icc* | ifort*)
10782 lt_prog_compiler_wl='-Wl,'
10783 lt_prog_compiler_pic='-fPIC'
10784 lt_prog_compiler_static='-static'
10785 ;;
10786 # Lahey Fortran 8.1.
10787 lf95*)
10788 lt_prog_compiler_wl='-Wl,'
10789 lt_prog_compiler_pic='--shared'
10790 lt_prog_compiler_static='--static'
10791 ;;
10792 pgcc* | pgf77* | pgf90* | pgf95*)
10793 # Portland Group compilers (*not* the Pentium gcc compiler,
10794 # which looks to be a dead project)
10795 lt_prog_compiler_wl='-Wl,'
10796 lt_prog_compiler_pic='-fpic'
10797 lt_prog_compiler_static='-Bstatic'
10798 ;;
10799 ccc*)
10800 lt_prog_compiler_wl='-Wl,'
10801 # All Alpha code is PIC.
10802 lt_prog_compiler_static='-non_shared'
10803 ;;
10804 xl*)
10805 # IBM XL C 8.0/Fortran 10.1 on PPC
10806 lt_prog_compiler_wl='-Wl,'
10807 lt_prog_compiler_pic='-qpic'
10808 lt_prog_compiler_static='-qstaticlink'
10809 ;;
10810 *)
10811 case `$CC -V 2>&1 | sed 5q` in
10812 *Sun\ C*)
10813 # Sun C 5.9
10814 lt_prog_compiler_pic='-KPIC'
10815 lt_prog_compiler_static='-Bstatic'
10816 lt_prog_compiler_wl='-Wl,'
10817 ;;
10818 *Sun\ F*)
10819 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10820 lt_prog_compiler_pic='-KPIC'
10821 lt_prog_compiler_static='-Bstatic'
10822 lt_prog_compiler_wl=''
10823 ;;
10824 esac
10825 ;;
10826 esac
10827 ;;
10828
10829 newsos6)
10830 lt_prog_compiler_pic='-KPIC'
10831 lt_prog_compiler_static='-Bstatic'
10832 ;;
10833
10834 *nto* | *qnx*)
10835 # QNX uses GNU C++, but need to define -shared option too, otherwise
10836 # it will coredump.
10837 lt_prog_compiler_pic='-fPIC -shared'
10838 ;;
10839
10840 osf3* | osf4* | osf5*)
10841 lt_prog_compiler_wl='-Wl,'
10842 # All OSF/1 code is PIC.
10843 lt_prog_compiler_static='-non_shared'
10844 ;;
10845
10846 rdos*)
10847 lt_prog_compiler_static='-non_shared'
10848 ;;
10849
10850 solaris*)
10851 lt_prog_compiler_pic='-KPIC'
10852 lt_prog_compiler_static='-Bstatic'
10853 case $cc_basename in
10854 f77* | f90* | f95*)
10855 lt_prog_compiler_wl='-Qoption ld ';;
10856 *)
10857 lt_prog_compiler_wl='-Wl,';;
10858 esac
10859 ;;
10860
10861 sunos4*)
10862 lt_prog_compiler_wl='-Qoption ld '
10863 lt_prog_compiler_pic='-PIC'
10864 lt_prog_compiler_static='-Bstatic'
10865 ;;
10866
10867 sysv4 | sysv4.2uw2* | sysv4.3*)
10868 lt_prog_compiler_wl='-Wl,'
10869 lt_prog_compiler_pic='-KPIC'
10870 lt_prog_compiler_static='-Bstatic'
10871 ;;
10872
10873 sysv4*MP*)
10874 if test -d /usr/nec ;then
10875 lt_prog_compiler_pic='-Kconform_pic'
10876 lt_prog_compiler_static='-Bstatic'
10877 fi
10878 ;;
10879
10880 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10881 lt_prog_compiler_wl='-Wl,'
10882 lt_prog_compiler_pic='-KPIC'
10883 lt_prog_compiler_static='-Bstatic'
10884 ;;
10885
10886 unicos*)
10887 lt_prog_compiler_wl='-Wl,'
10888 lt_prog_compiler_can_build_shared=no
10889 ;;
10890
10891 uts4*)
10892 lt_prog_compiler_pic='-pic'
10893 lt_prog_compiler_static='-Bstatic'
10894 ;;
10895
10896 *)
10897 lt_prog_compiler_can_build_shared=no
10898 ;;
10899 esac
10900 fi
10901
10902 case $host_os in
10903 # For platforms which do not support PIC, -DPIC is meaningless:
10904 *djgpp*)
10905 lt_prog_compiler_pic=
10906 ;;
10907 *)
10908 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10909 ;;
10910 esac
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10912 $as_echo "$lt_prog_compiler_pic" >&6; }
10913
10914
10915
10916
10917
10918
10919 #
10920 # Check to make sure the PIC flag actually works.
10921 #
10922 if test -n "$lt_prog_compiler_pic"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10925 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 lt_cv_prog_compiler_pic_works=no
10929 ac_outfile=conftest.$ac_objext
10930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10932 # Insert the option either (1) after the last *FLAGS variable, or
10933 # (2) before a word containing "conftest.", or (3) at the end.
10934 # Note that $ac_compile itself does not contain backslashes and begins
10935 # with a dollar sign (not a hyphen), so the echo should work correctly.
10936 # The option is referenced via a variable to avoid confusing sed.
10937 lt_compile=`echo "$ac_compile" | $SED \
10938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10940 -e 's:$: $lt_compiler_flag:'`
10941 (eval echo "\"\$as_me:10941: $lt_compile\"" >&5)
10942 (eval "$lt_compile" 2>conftest.err)
10943 ac_status=$?
10944 cat conftest.err >&5
10945 echo "$as_me:10945: \$? = $ac_status" >&5
10946 if (exit $ac_status) && test -s "$ac_outfile"; then
10947 # The compiler can only warn and ignore the option if not recognized
10948 # So say no if there are warnings other than the usual output.
10949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10952 lt_cv_prog_compiler_pic_works=yes
10953 fi
10954 fi
10955 $RM conftest*
10956
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10960
10961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10962 case $lt_prog_compiler_pic in
10963 "" | " "*) ;;
10964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10965 esac
10966 else
10967 lt_prog_compiler_pic=
10968 lt_prog_compiler_can_build_shared=no
10969 fi
10970
10971 fi
10972
10973
10974
10975
10976
10977
10978 #
10979 # Check to make sure the static flag actually works.
10980 #
10981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10983 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10984 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 lt_cv_prog_compiler_static_works=no
10988 save_LDFLAGS="$LDFLAGS"
10989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10992 # The linker can only warn and ignore the option if not recognized
10993 # So say no if there are warnings
10994 if test -s conftest.err; then
10995 # Append any errors to the config.log.
10996 cat conftest.err 1>&5
10997 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10999 if diff conftest.exp conftest.er2 >/dev/null; then
11000 lt_cv_prog_compiler_static_works=yes
11001 fi
11002 else
11003 lt_cv_prog_compiler_static_works=yes
11004 fi
11005 fi
11006 $RM -r conftest*
11007 LDFLAGS="$save_LDFLAGS"
11008
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11011 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11012
11013 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11014 :
11015 else
11016 lt_prog_compiler_static=
11017 fi
11018
11019
11020
11021
11022
11023
11024
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11027 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 lt_cv_prog_compiler_c_o=no
11031 $RM -r conftest 2>/dev/null
11032 mkdir conftest
11033 cd conftest
11034 mkdir out
11035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11036
11037 lt_compiler_flag="-o out/conftest2.$ac_objext"
11038 # Insert the option either (1) after the last *FLAGS variable, or
11039 # (2) before a word containing "conftest.", or (3) at the end.
11040 # Note that $ac_compile itself does not contain backslashes and begins
11041 # with a dollar sign (not a hyphen), so the echo should work correctly.
11042 lt_compile=`echo "$ac_compile" | $SED \
11043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11045 -e 's:$: $lt_compiler_flag:'`
11046 (eval echo "\"\$as_me:11046: $lt_compile\"" >&5)
11047 (eval "$lt_compile" 2>out/conftest.err)
11048 ac_status=$?
11049 cat out/conftest.err >&5
11050 echo "$as_me:11050: \$? = $ac_status" >&5
11051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11052 then
11053 # The compiler can only warn and ignore the option if not recognized
11054 # So say no if there are warnings
11055 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11058 lt_cv_prog_compiler_c_o=yes
11059 fi
11060 fi
11061 chmod u+w . 2>&5
11062 $RM conftest*
11063 # SGI C++ compiler will create directory out/ii_files/ for
11064 # template instantiation
11065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11066 $RM out/* && rmdir out
11067 cd ..
11068 $RM -r conftest
11069 $RM conftest*
11070
11071 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11074
11075
11076
11077
11078
11079
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11082 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 lt_cv_prog_compiler_c_o=no
11086 $RM -r conftest 2>/dev/null
11087 mkdir conftest
11088 cd conftest
11089 mkdir out
11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091
11092 lt_compiler_flag="-o out/conftest2.$ac_objext"
11093 # Insert the option either (1) after the last *FLAGS variable, or
11094 # (2) before a word containing "conftest.", or (3) at the end.
11095 # Note that $ac_compile itself does not contain backslashes and begins
11096 # with a dollar sign (not a hyphen), so the echo should work correctly.
11097 lt_compile=`echo "$ac_compile" | $SED \
11098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11100 -e 's:$: $lt_compiler_flag:'`
11101 (eval echo "\"\$as_me:11101: $lt_compile\"" >&5)
11102 (eval "$lt_compile" 2>out/conftest.err)
11103 ac_status=$?
11104 cat out/conftest.err >&5
11105 echo "$as_me:11105: \$? = $ac_status" >&5
11106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11107 then
11108 # The compiler can only warn and ignore the option if not recognized
11109 # So say no if there are warnings
11110 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11113 lt_cv_prog_compiler_c_o=yes
11114 fi
11115 fi
11116 chmod u+w . 2>&5
11117 $RM conftest*
11118 # SGI C++ compiler will create directory out/ii_files/ for
11119 # template instantiation
11120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11121 $RM out/* && rmdir out
11122 cd ..
11123 $RM -r conftest
11124 $RM conftest*
11125
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11128 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11129
11130
11131
11132
11133 hard_links="nottested"
11134 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11135 # do not overwrite the value of need_locks provided by the user
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11137 $as_echo_n "checking if we can lock with hard links... " >&6; }
11138 hard_links=yes
11139 $RM conftest*
11140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11141 touch conftest.a
11142 ln conftest.a conftest.b 2>&5 || hard_links=no
11143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11145 $as_echo "$hard_links" >&6; }
11146 if test "$hard_links" = no; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11149 need_locks=warn
11150 fi
11151 else
11152 need_locks=no
11153 fi
11154
11155
11156
11157
11158
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11162
11163 runpath_var=
11164 allow_undefined_flag=
11165 always_export_symbols=no
11166 archive_cmds=
11167 archive_expsym_cmds=
11168 compiler_needs_object=no
11169 enable_shared_with_static_runtimes=no
11170 export_dynamic_flag_spec=
11171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11172 hardcode_automatic=no
11173 hardcode_direct=no
11174 hardcode_direct_absolute=no
11175 hardcode_libdir_flag_spec=
11176 hardcode_libdir_flag_spec_ld=
11177 hardcode_libdir_separator=
11178 hardcode_minus_L=no
11179 hardcode_shlibpath_var=unsupported
11180 inherit_rpath=no
11181 link_all_deplibs=unknown
11182 module_cmds=
11183 module_expsym_cmds=
11184 old_archive_from_new_cmds=
11185 old_archive_from_expsyms_cmds=
11186 thread_safe_flag_spec=
11187 whole_archive_flag_spec=
11188 # include_expsyms should be a list of space-separated symbols to be *always*
11189 # included in the symbol list
11190 include_expsyms=
11191 # exclude_expsyms can be an extended regexp of symbols to exclude
11192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11194 # as well as any symbol that contains `d'.
11195 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11197 # platforms (ab)use it in PIC code, but their linkers get confused if
11198 # the symbol is explicitly referenced. Since portable code cannot
11199 # rely on this symbol name, it's probably fine to never include it in
11200 # preloaded symbol tables.
11201 # Exclude shared library initialization/finalization symbols.
11202 extract_expsyms_cmds=
11203
11204 case $host_os in
11205 cygwin* | mingw* | pw32* | cegcc*)
11206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11207 # When not using gcc, we currently assume that we are using
11208 # Microsoft Visual C++.
11209 if test "$GCC" != yes; then
11210 with_gnu_ld=no
11211 fi
11212 ;;
11213 interix*)
11214 # we just hope/assume this is gcc and not c89 (= MSVC++)
11215 with_gnu_ld=yes
11216 ;;
11217 openbsd*)
11218 with_gnu_ld=no
11219 ;;
11220 esac
11221
11222 ld_shlibs=yes
11223 if test "$with_gnu_ld" = yes; then
11224 # If archive_cmds runs LD, not CC, wlarc should be empty
11225 wlarc='${wl}'
11226
11227 # Set some defaults for GNU ld with shared library support. These
11228 # are reset later if shared libraries are not supported. Putting them
11229 # here allows them to be overridden if necessary.
11230 runpath_var=LD_RUN_PATH
11231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11232 export_dynamic_flag_spec='${wl}--export-dynamic'
11233 # ancient GNU ld didn't support --whole-archive et. al.
11234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11235 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11236 else
11237 whole_archive_flag_spec=
11238 fi
11239 supports_anon_versioning=no
11240 case `$LD -v 2>&1` in
11241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11244 *\ 2.11.*) ;; # other 2.11 versions
11245 *) supports_anon_versioning=yes ;;
11246 esac
11247
11248 # See if GNU ld supports shared libraries.
11249 case $host_os in
11250 aix[3-9]*)
11251 # On AIX/PPC, the GNU linker is very broken
11252 if test "$host_cpu" != ia64; then
11253 ld_shlibs=no
11254 cat <<_LT_EOF 1>&2
11255
11256 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11257 *** to be unable to reliably create shared libraries on AIX.
11258 *** Therefore, libtool is disabling shared libraries support. If you
11259 *** really care for shared libraries, you may want to modify your PATH
11260 *** so that a non-GNU linker is found, and then restart.
11261
11262 _LT_EOF
11263 fi
11264 ;;
11265
11266 amigaos*)
11267 case $host_cpu in
11268 powerpc)
11269 # see comment about AmigaOS4 .so support
11270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11271 archive_expsym_cmds=''
11272 ;;
11273 m68k)
11274 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)'
11275 hardcode_libdir_flag_spec='-L$libdir'
11276 hardcode_minus_L=yes
11277 ;;
11278 esac
11279 ;;
11280
11281 beos*)
11282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11283 allow_undefined_flag=unsupported
11284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11285 # support --undefined. This deserves some investigation. FIXME
11286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11287 else
11288 ld_shlibs=no
11289 fi
11290 ;;
11291
11292 cygwin* | mingw* | pw32* | cegcc*)
11293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11294 # as there is no search path for DLLs.
11295 hardcode_libdir_flag_spec='-L$libdir'
11296 allow_undefined_flag=unsupported
11297 always_export_symbols=no
11298 enable_shared_with_static_runtimes=yes
11299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11300
11301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11303 # If the export-symbols file already is a .def file (1st line
11304 # is EXPORTS), use it as is; otherwise, prepend...
11305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11306 cp $export_symbols $output_objdir/$soname.def;
11307 else
11308 echo EXPORTS > $output_objdir/$soname.def;
11309 cat $export_symbols >> $output_objdir/$soname.def;
11310 fi~
11311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11312 else
11313 ld_shlibs=no
11314 fi
11315 ;;
11316
11317 interix[3-9]*)
11318 hardcode_direct=no
11319 hardcode_shlibpath_var=no
11320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11321 export_dynamic_flag_spec='${wl}-E'
11322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11323 # Instead, shared libraries are loaded at an image base (0x10000000 by
11324 # default) and relocated if they conflict, which is a slow very memory
11325 # consuming and fragmenting process. To avoid this, we pick a random,
11326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11329 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'
11330 ;;
11331
11332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11333 tmp_diet=no
11334 if test "$host_os" = linux-dietlibc; then
11335 case $cc_basename in
11336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11337 esac
11338 fi
11339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11340 && test "$tmp_diet" = no
11341 then
11342 tmp_addflag=
11343 tmp_sharedflag='-shared'
11344 case $cc_basename,$host_cpu in
11345 pgcc*) # Portland Group C compiler
11346 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'
11347 tmp_addflag=' $pic_flag'
11348 ;;
11349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11350 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'
11351 tmp_addflag=' $pic_flag -Mnomain' ;;
11352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11353 tmp_addflag=' -i_dynamic' ;;
11354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11355 tmp_addflag=' -i_dynamic -nofor_main' ;;
11356 ifc* | ifort*) # Intel Fortran compiler
11357 tmp_addflag=' -nofor_main' ;;
11358 lf95*) # Lahey Fortran 8.1
11359 whole_archive_flag_spec=
11360 tmp_sharedflag='--shared' ;;
11361 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11362 tmp_sharedflag='-qmkshrobj'
11363 tmp_addflag= ;;
11364 esac
11365 case `$CC -V 2>&1 | sed 5q` in
11366 *Sun\ C*) # Sun C 5.9
11367 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'
11368 compiler_needs_object=yes
11369 tmp_sharedflag='-G' ;;
11370 *Sun\ F*) # Sun Fortran 8.3
11371 tmp_sharedflag='-G' ;;
11372 esac
11373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11374
11375 if test "x$supports_anon_versioning" = xyes; then
11376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11378 echo "local: *; };" >> $output_objdir/$libname.ver~
11379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11380 fi
11381
11382 case $cc_basename in
11383 xlf*)
11384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11386 hardcode_libdir_flag_spec=
11387 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11388 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11389 if test "x$supports_anon_versioning" = xyes; then
11390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11392 echo "local: *; };" >> $output_objdir/$libname.ver~
11393 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11394 fi
11395 ;;
11396 esac
11397 else
11398 ld_shlibs=no
11399 fi
11400 ;;
11401
11402 netbsd*)
11403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11405 wlarc=
11406 else
11407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11409 fi
11410 ;;
11411
11412 solaris*)
11413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11414 ld_shlibs=no
11415 cat <<_LT_EOF 1>&2
11416
11417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11418 *** create shared libraries on Solaris systems. Therefore, libtool
11419 *** is disabling shared libraries support. We urge you to upgrade GNU
11420 *** binutils to release 2.9.1 or newer. Another option is to modify
11421 *** your PATH or compiler configuration so that the native linker is
11422 *** used, and then restart.
11423
11424 _LT_EOF
11425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11428 else
11429 ld_shlibs=no
11430 fi
11431 ;;
11432
11433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11434 case `$LD -v 2>&1` in
11435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11436 ld_shlibs=no
11437 cat <<_LT_EOF 1>&2
11438
11439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11440 *** reliably create shared libraries on SCO systems. Therefore, libtool
11441 *** is disabling shared libraries support. We urge you to upgrade GNU
11442 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11443 *** your PATH or compiler configuration so that the native linker is
11444 *** used, and then restart.
11445
11446 _LT_EOF
11447 ;;
11448 *)
11449 # For security reasons, it is highly recommended that you always
11450 # use absolute paths for naming shared libraries, and exclude the
11451 # DT_RUNPATH tag from executables and libraries. But doing so
11452 # requires that you compile everything twice, which is a pain.
11453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11457 else
11458 ld_shlibs=no
11459 fi
11460 ;;
11461 esac
11462 ;;
11463
11464 sunos4*)
11465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11466 wlarc=
11467 hardcode_direct=yes
11468 hardcode_shlibpath_var=no
11469 ;;
11470
11471 *)
11472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11475 else
11476 ld_shlibs=no
11477 fi
11478 ;;
11479 esac
11480
11481 if test "$ld_shlibs" = no; then
11482 runpath_var=
11483 hardcode_libdir_flag_spec=
11484 export_dynamic_flag_spec=
11485 whole_archive_flag_spec=
11486 fi
11487 else
11488 # PORTME fill in a description of your system's linker (not GNU ld)
11489 case $host_os in
11490 aix3*)
11491 allow_undefined_flag=unsupported
11492 always_export_symbols=yes
11493 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'
11494 # Note: this linker hardcodes the directories in LIBPATH if there
11495 # are no directories specified by -L.
11496 hardcode_minus_L=yes
11497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11498 # Neither direct hardcoding nor static linking is supported with a
11499 # broken collect2.
11500 hardcode_direct=unsupported
11501 fi
11502 ;;
11503
11504 aix[4-9]*)
11505 if test "$host_cpu" = ia64; then
11506 # On IA64, the linker does run time linking by default, so we don't
11507 # have to do anything special.
11508 aix_use_runtimelinking=no
11509 exp_sym_flag='-Bexport'
11510 no_entry_flag=""
11511 else
11512 # If we're using GNU nm, then we don't want the "-C" option.
11513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11514 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11515 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'
11516 else
11517 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'
11518 fi
11519 aix_use_runtimelinking=no
11520
11521 # Test if we are trying to use run time linking or normal
11522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11523 # need to do runtime linking.
11524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11525 for ld_flag in $LDFLAGS; do
11526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11527 aix_use_runtimelinking=yes
11528 break
11529 fi
11530 done
11531 ;;
11532 esac
11533
11534 exp_sym_flag='-bexport'
11535 no_entry_flag='-bnoentry'
11536 fi
11537
11538 # When large executables or shared objects are built, AIX ld can
11539 # have problems creating the table of contents. If linking a library
11540 # or program results in "error TOC overflow" add -mminimal-toc to
11541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11543
11544 archive_cmds=''
11545 hardcode_direct=yes
11546 hardcode_direct_absolute=yes
11547 hardcode_libdir_separator=':'
11548 link_all_deplibs=yes
11549 file_list_spec='${wl}-f,'
11550
11551 if test "$GCC" = yes; then
11552 case $host_os in aix4.[012]|aix4.[012].*)
11553 # We only want to do this on AIX 4.2 and lower, the check
11554 # below for broken collect2 doesn't work under 4.3+
11555 collect2name=`${CC} -print-prog-name=collect2`
11556 if test -f "$collect2name" &&
11557 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11558 then
11559 # We have reworked collect2
11560 :
11561 else
11562 # We have old collect2
11563 hardcode_direct=unsupported
11564 # It fails to find uninstalled libraries when the uninstalled
11565 # path is not listed in the libpath. Setting hardcode_minus_L
11566 # to unsupported forces relinking
11567 hardcode_minus_L=yes
11568 hardcode_libdir_flag_spec='-L$libdir'
11569 hardcode_libdir_separator=
11570 fi
11571 ;;
11572 esac
11573 shared_flag='-shared'
11574 if test "$aix_use_runtimelinking" = yes; then
11575 shared_flag="$shared_flag "'${wl}-G'
11576 fi
11577 else
11578 # not using gcc
11579 if test "$host_cpu" = ia64; then
11580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11581 # chokes on -Wl,-G. The following line is correct:
11582 shared_flag='-G'
11583 else
11584 if test "$aix_use_runtimelinking" = yes; then
11585 shared_flag='${wl}-G'
11586 else
11587 shared_flag='${wl}-bM:SRE'
11588 fi
11589 fi
11590 fi
11591
11592 export_dynamic_flag_spec='${wl}-bexpall'
11593 # It seems that -bexpall does not export symbols beginning with
11594 # underscore (_), so it is better to generate a list of symbols to export.
11595 always_export_symbols=yes
11596 if test "$aix_use_runtimelinking" = yes; then
11597 # Warning - without using the other runtime loading flags (-brtl),
11598 # -berok will link without error, but may produce a broken library.
11599 allow_undefined_flag='-berok'
11600 # Determine the default libpath from the value encoded in an
11601 # empty executable.
11602 if test x$gcc_no_link = xyes; then
11603 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11604 fi
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607
11608 int
11609 main ()
11610 {
11611
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_link "$LINENO"; then :
11617
11618 lt_aix_libpath_sed='
11619 /Import File Strings/,/^$/ {
11620 /^0/ {
11621 s/^0 *\(.*\)$/\1/
11622 p
11623 }
11624 }'
11625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11626 # Check for a 64-bit object if we didn't find anything.
11627 if test -z "$aix_libpath"; then
11628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11629 fi
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11634
11635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11636 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"
11637 else
11638 if test "$host_cpu" = ia64; then
11639 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11640 allow_undefined_flag="-z nodefs"
11641 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"
11642 else
11643 # Determine the default libpath from the value encoded in an
11644 # empty executable.
11645 if test x$gcc_no_link = xyes; then
11646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11647 fi
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650
11651 int
11652 main ()
11653 {
11654
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660
11661 lt_aix_libpath_sed='
11662 /Import File Strings/,/^$/ {
11663 /^0/ {
11664 s/^0 *\(.*\)$/\1/
11665 p
11666 }
11667 }'
11668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11669 # Check for a 64-bit object if we didn't find anything.
11670 if test -z "$aix_libpath"; then
11671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11672 fi
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11677
11678 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11679 # Warning - without using the other run time loading flags,
11680 # -berok will link without error, but may produce a broken library.
11681 no_undefined_flag=' ${wl}-bernotok'
11682 allow_undefined_flag=' ${wl}-berok'
11683 # Exported symbols can be pulled into shared objects from archives
11684 whole_archive_flag_spec='$convenience'
11685 archive_cmds_need_lc=yes
11686 # This is similar to how AIX traditionally builds its shared libraries.
11687 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'
11688 fi
11689 fi
11690 ;;
11691
11692 amigaos*)
11693 case $host_cpu in
11694 powerpc)
11695 # see comment about AmigaOS4 .so support
11696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697 archive_expsym_cmds=''
11698 ;;
11699 m68k)
11700 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)'
11701 hardcode_libdir_flag_spec='-L$libdir'
11702 hardcode_minus_L=yes
11703 ;;
11704 esac
11705 ;;
11706
11707 bsdi[45]*)
11708 export_dynamic_flag_spec=-rdynamic
11709 ;;
11710
11711 cygwin* | mingw* | pw32* | cegcc*)
11712 # When not using gcc, we currently assume that we are using
11713 # Microsoft Visual C++.
11714 # hardcode_libdir_flag_spec is actually meaningless, as there is
11715 # no search path for DLLs.
11716 hardcode_libdir_flag_spec=' '
11717 allow_undefined_flag=unsupported
11718 # Tell ltmain to make .lib files, not .a files.
11719 libext=lib
11720 # Tell ltmain to make .dll files, not .so files.
11721 shrext_cmds=".dll"
11722 # FIXME: Setting linknames here is a bad hack.
11723 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11724 # The linker will automatically build a .lib file if we build a DLL.
11725 old_archive_from_new_cmds='true'
11726 # FIXME: Should let the user specify the lib program.
11727 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11728 fix_srcfile_path='`cygpath -w "$srcfile"`'
11729 enable_shared_with_static_runtimes=yes
11730 ;;
11731
11732 darwin* | rhapsody*)
11733
11734
11735 archive_cmds_need_lc=no
11736 hardcode_direct=no
11737 hardcode_automatic=yes
11738 hardcode_shlibpath_var=unsupported
11739 whole_archive_flag_spec=''
11740 link_all_deplibs=yes
11741 allow_undefined_flag="$_lt_dar_allow_undefined"
11742 case $cc_basename in
11743 ifort*) _lt_dar_can_shared=yes ;;
11744 *) _lt_dar_can_shared=$GCC ;;
11745 esac
11746 if test "$_lt_dar_can_shared" = "yes"; then
11747 output_verbose_link_cmd=echo
11748 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11749 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11750 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}"
11751 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}"
11752
11753 else
11754 ld_shlibs=no
11755 fi
11756
11757 ;;
11758
11759 dgux*)
11760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_libdir_flag_spec='-L$libdir'
11762 hardcode_shlibpath_var=no
11763 ;;
11764
11765 freebsd1*)
11766 ld_shlibs=no
11767 ;;
11768
11769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11770 # support. Future versions do this automatically, but an explicit c++rt0.o
11771 # does not break anything, and helps significantly (at the cost of a little
11772 # extra space).
11773 freebsd2.2*)
11774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11775 hardcode_libdir_flag_spec='-R$libdir'
11776 hardcode_direct=yes
11777 hardcode_shlibpath_var=no
11778 ;;
11779
11780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11781 freebsd2*)
11782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11783 hardcode_direct=yes
11784 hardcode_minus_L=yes
11785 hardcode_shlibpath_var=no
11786 ;;
11787
11788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11789 freebsd* | dragonfly*)
11790 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11791 hardcode_libdir_flag_spec='-R$libdir'
11792 hardcode_direct=yes
11793 hardcode_shlibpath_var=no
11794 ;;
11795
11796 hpux9*)
11797 if test "$GCC" = yes; then
11798 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'
11799 else
11800 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'
11801 fi
11802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11803 hardcode_libdir_separator=:
11804 hardcode_direct=yes
11805
11806 # hardcode_minus_L: Not really in the search PATH,
11807 # but as the default location of the library.
11808 hardcode_minus_L=yes
11809 export_dynamic_flag_spec='${wl}-E'
11810 ;;
11811
11812 hpux10*)
11813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11815 else
11816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11817 fi
11818 if test "$with_gnu_ld" = no; then
11819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11820 hardcode_libdir_flag_spec_ld='+b $libdir'
11821 hardcode_libdir_separator=:
11822 hardcode_direct=yes
11823 hardcode_direct_absolute=yes
11824 export_dynamic_flag_spec='${wl}-E'
11825 # hardcode_minus_L: Not really in the search PATH,
11826 # but as the default location of the library.
11827 hardcode_minus_L=yes
11828 fi
11829 ;;
11830
11831 hpux11*)
11832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11833 case $host_cpu in
11834 hppa*64*)
11835 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11836 ;;
11837 ia64*)
11838 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11839 ;;
11840 *)
11841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11842 ;;
11843 esac
11844 else
11845 case $host_cpu in
11846 hppa*64*)
11847 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 ;;
11849 ia64*)
11850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11851 ;;
11852 *)
11853 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11854 ;;
11855 esac
11856 fi
11857 if test "$with_gnu_ld" = no; then
11858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11859 hardcode_libdir_separator=:
11860
11861 case $host_cpu in
11862 hppa*64*|ia64*)
11863 hardcode_direct=no
11864 hardcode_shlibpath_var=no
11865 ;;
11866 *)
11867 hardcode_direct=yes
11868 hardcode_direct_absolute=yes
11869 export_dynamic_flag_spec='${wl}-E'
11870
11871 # hardcode_minus_L: Not really in the search PATH,
11872 # but as the default location of the library.
11873 hardcode_minus_L=yes
11874 ;;
11875 esac
11876 fi
11877 ;;
11878
11879 irix5* | irix6* | nonstopux*)
11880 if test "$GCC" = yes; then
11881 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'
11882 # Try to use the -exported_symbol ld option, if it does not
11883 # work, assume that -exports_file does not work either and
11884 # implicitly export all symbols.
11885 save_LDFLAGS="$LDFLAGS"
11886 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11887 if test x$gcc_no_link = xyes; then
11888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11889 fi
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892 int foo(void) {}
11893 _ACEOF
11894 if ac_fn_c_try_link "$LINENO"; then :
11895 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'
11896
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LDFLAGS="$save_LDFLAGS"
11901 else
11902 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'
11903 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'
11904 fi
11905 archive_cmds_need_lc='no'
11906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11907 hardcode_libdir_separator=:
11908 inherit_rpath=yes
11909 link_all_deplibs=yes
11910 ;;
11911
11912 netbsd*)
11913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11915 else
11916 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11917 fi
11918 hardcode_libdir_flag_spec='-R$libdir'
11919 hardcode_direct=yes
11920 hardcode_shlibpath_var=no
11921 ;;
11922
11923 newsos6)
11924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11925 hardcode_direct=yes
11926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11927 hardcode_libdir_separator=:
11928 hardcode_shlibpath_var=no
11929 ;;
11930
11931 *nto* | *qnx*)
11932 ;;
11933
11934 openbsd*)
11935 if test -f /usr/libexec/ld.so; then
11936 hardcode_direct=yes
11937 hardcode_shlibpath_var=no
11938 hardcode_direct_absolute=yes
11939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11943 export_dynamic_flag_spec='${wl}-E'
11944 else
11945 case $host_os in
11946 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_libdir_flag_spec='-R$libdir'
11949 ;;
11950 *)
11951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11952 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11953 ;;
11954 esac
11955 fi
11956 else
11957 ld_shlibs=no
11958 fi
11959 ;;
11960
11961 os2*)
11962 hardcode_libdir_flag_spec='-L$libdir'
11963 hardcode_minus_L=yes
11964 allow_undefined_flag=unsupported
11965 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'
11966 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11967 ;;
11968
11969 osf3*)
11970 if test "$GCC" = yes; then
11971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11972 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'
11973 else
11974 allow_undefined_flag=' -expect_unresolved \*'
11975 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'
11976 fi
11977 archive_cmds_need_lc='no'
11978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11979 hardcode_libdir_separator=:
11980 ;;
11981
11982 osf4* | osf5*) # as osf3* with the addition of -msym flag
11983 if test "$GCC" = yes; then
11984 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11985 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'
11986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11987 else
11988 allow_undefined_flag=' -expect_unresolved \*'
11989 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'
11990 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~
11991 $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'
11992
11993 # Both c and cxx compiler support -rpath directly
11994 hardcode_libdir_flag_spec='-rpath $libdir'
11995 fi
11996 archive_cmds_need_lc='no'
11997 hardcode_libdir_separator=:
11998 ;;
11999
12000 solaris*)
12001 no_undefined_flag=' -z defs'
12002 if test "$GCC" = yes; then
12003 wlarc='${wl}'
12004 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12006 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12007 else
12008 case `$CC -V 2>&1` in
12009 *"Compilers 5.0"*)
12010 wlarc=''
12011 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12013 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12014 ;;
12015 *)
12016 wlarc='${wl}'
12017 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12018 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12019 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12020 ;;
12021 esac
12022 fi
12023 hardcode_libdir_flag_spec='-R$libdir'
12024 hardcode_shlibpath_var=no
12025 case $host_os in
12026 solaris2.[0-5] | solaris2.[0-5].*) ;;
12027 *)
12028 # The compiler driver will combine and reorder linker options,
12029 # but understands `-z linker_flag'. GCC discards it without `$wl',
12030 # but is careful enough not to reorder.
12031 # Supported since Solaris 2.6 (maybe 2.5.1?)
12032 if test "$GCC" = yes; then
12033 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12034 else
12035 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12036 fi
12037 ;;
12038 esac
12039 link_all_deplibs=yes
12040 ;;
12041
12042 sunos4*)
12043 if test "x$host_vendor" = xsequent; then
12044 # Use $CC to link under sequent, because it throws in some extra .o
12045 # files that make .init and .fini sections work.
12046 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12047 else
12048 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12049 fi
12050 hardcode_libdir_flag_spec='-L$libdir'
12051 hardcode_direct=yes
12052 hardcode_minus_L=yes
12053 hardcode_shlibpath_var=no
12054 ;;
12055
12056 sysv4)
12057 case $host_vendor in
12058 sni)
12059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12060 hardcode_direct=yes # is this really true???
12061 ;;
12062 siemens)
12063 ## LD is ld it makes a PLAMLIB
12064 ## CC just makes a GrossModule.
12065 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12066 reload_cmds='$CC -r -o $output$reload_objs'
12067 hardcode_direct=no
12068 ;;
12069 motorola)
12070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12071 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12072 ;;
12073 esac
12074 runpath_var='LD_RUN_PATH'
12075 hardcode_shlibpath_var=no
12076 ;;
12077
12078 sysv4.3*)
12079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12080 hardcode_shlibpath_var=no
12081 export_dynamic_flag_spec='-Bexport'
12082 ;;
12083
12084 sysv4*MP*)
12085 if test -d /usr/nec; then
12086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12087 hardcode_shlibpath_var=no
12088 runpath_var=LD_RUN_PATH
12089 hardcode_runpath_var=yes
12090 ld_shlibs=yes
12091 fi
12092 ;;
12093
12094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12095 no_undefined_flag='${wl}-z,text'
12096 archive_cmds_need_lc=no
12097 hardcode_shlibpath_var=no
12098 runpath_var='LD_RUN_PATH'
12099
12100 if test "$GCC" = yes; then
12101 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12102 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 else
12104 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12105 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12106 fi
12107 ;;
12108
12109 sysv5* | sco3.2v5* | sco5v6*)
12110 # Note: We can NOT use -z defs as we might desire, because we do not
12111 # link with -lc, and that would cause any symbols used from libc to
12112 # always be unresolved, which means just about no library would
12113 # ever link correctly. If we're not using GNU ld we use -z text
12114 # though, which does catch some bad symbols but isn't as heavy-handed
12115 # as -z defs.
12116 no_undefined_flag='${wl}-z,text'
12117 allow_undefined_flag='${wl}-z,nodefs'
12118 archive_cmds_need_lc=no
12119 hardcode_shlibpath_var=no
12120 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12121 hardcode_libdir_separator=':'
12122 link_all_deplibs=yes
12123 export_dynamic_flag_spec='${wl}-Bexport'
12124 runpath_var='LD_RUN_PATH'
12125
12126 if test "$GCC" = yes; then
12127 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12128 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12129 else
12130 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12131 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12132 fi
12133 ;;
12134
12135 uts4*)
12136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12137 hardcode_libdir_flag_spec='-L$libdir'
12138 hardcode_shlibpath_var=no
12139 ;;
12140
12141 *)
12142 ld_shlibs=no
12143 ;;
12144 esac
12145
12146 if test x$host_vendor = xsni; then
12147 case $host in
12148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12149 export_dynamic_flag_spec='${wl}-Blargedynsym'
12150 ;;
12151 esac
12152 fi
12153 fi
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12156 $as_echo "$ld_shlibs" >&6; }
12157 test "$ld_shlibs" = no && can_build_shared=no
12158
12159 with_gnu_ld=$with_gnu_ld
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175 #
12176 # Do we need to explicitly link libc?
12177 #
12178 case "x$archive_cmds_need_lc" in
12179 x|xyes)
12180 # Assume -lc should be added
12181 archive_cmds_need_lc=yes
12182
12183 if test "$enable_shared" = yes && test "$GCC" = yes; then
12184 case $archive_cmds in
12185 *'~'*)
12186 # FIXME: we may have to deal with multi-command sequences.
12187 ;;
12188 '$CC '*)
12189 # Test whether the compiler implicitly links with -lc since on some
12190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12191 # to ld, don't add -lc before -lgcc.
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12193 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12194 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 $RM conftest*
12198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12199
12200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12201 (eval $ac_compile) 2>&5
12202 ac_status=$?
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; } 2>conftest.err; then
12205 soname=conftest
12206 lib=conftest
12207 libobjs=conftest.$ac_objext
12208 deplibs=
12209 wl=$lt_prog_compiler_wl
12210 pic_flag=$lt_prog_compiler_pic
12211 compiler_flags=-v
12212 linker_flags=-v
12213 verstring=
12214 output_objdir=.
12215 libname=conftest
12216 lt_save_allow_undefined_flag=$allow_undefined_flag
12217 allow_undefined_flag=
12218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12219 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12220 ac_status=$?
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; }
12223 then
12224 lt_cv_archive_cmds_need_lc=no
12225 else
12226 lt_cv_archive_cmds_need_lc=yes
12227 fi
12228 allow_undefined_flag=$lt_save_allow_undefined_flag
12229 else
12230 cat conftest.err 1>&5
12231 fi
12232 $RM conftest*
12233
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12236 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12237 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12238 ;;
12239 esac
12240 fi
12241 ;;
12242 esac
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12402
12403 if test "$GCC" = yes; then
12404 case $host_os in
12405 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12406 *) lt_awk_arg="/^libraries:/" ;;
12407 esac
12408 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12409 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12410 # if the path contains ";" then we assume it to be the separator
12411 # otherwise default to the standard path separator (i.e. ":") - it is
12412 # assumed that no part of a normal pathname contains ";" but that should
12413 # okay in the real world where ";" in dirpaths is itself problematic.
12414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12415 else
12416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12417 fi
12418 # Ok, now we have the path, separated by spaces, we can step through it
12419 # and add multilib dir if necessary.
12420 lt_tmp_lt_search_path_spec=
12421 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12422 for lt_sys_path in $lt_search_path_spec; do
12423 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12425 else
12426 test -d "$lt_sys_path" && \
12427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12428 fi
12429 done
12430 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12431 BEGIN {RS=" "; FS="/|\n";} {
12432 lt_foo="";
12433 lt_count=0;
12434 for (lt_i = NF; lt_i > 0; lt_i--) {
12435 if ($lt_i != "" && $lt_i != ".") {
12436 if ($lt_i == "..") {
12437 lt_count++;
12438 } else {
12439 if (lt_count == 0) {
12440 lt_foo="/" $lt_i lt_foo;
12441 } else {
12442 lt_count--;
12443 }
12444 }
12445 }
12446 }
12447 if (lt_foo != "") { lt_freq[lt_foo]++; }
12448 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12449 }'`
12450 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12451 else
12452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12453 fi
12454 library_names_spec=
12455 libname_spec='lib$name'
12456 soname_spec=
12457 shrext_cmds=".so"
12458 postinstall_cmds=
12459 postuninstall_cmds=
12460 finish_cmds=
12461 finish_eval=
12462 shlibpath_var=
12463 shlibpath_overrides_runpath=unknown
12464 version_type=none
12465 dynamic_linker="$host_os ld.so"
12466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12467 need_lib_prefix=unknown
12468 hardcode_into_libs=no
12469
12470 # when you set need_version to no, make sure it does not cause -set_version
12471 # flags to be left without arguments
12472 need_version=unknown
12473
12474 case $host_os in
12475 aix3*)
12476 version_type=linux
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12478 shlibpath_var=LIBPATH
12479
12480 # AIX 3 has no versioning support, so we append a major version to the name.
12481 soname_spec='${libname}${release}${shared_ext}$major'
12482 ;;
12483
12484 aix[4-9]*)
12485 version_type=linux
12486 need_lib_prefix=no
12487 need_version=no
12488 hardcode_into_libs=yes
12489 if test "$host_cpu" = ia64; then
12490 # AIX 5 supports IA64
12491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12492 shlibpath_var=LD_LIBRARY_PATH
12493 else
12494 # With GCC up to 2.95.x, collect2 would create an import file
12495 # for dependence libraries. The import file would start with
12496 # the line `#! .'. This would cause the generated library to
12497 # depend on `.', always an invalid library. This was fixed in
12498 # development snapshots of GCC prior to 3.0.
12499 case $host_os in
12500 aix4 | aix4.[01] | aix4.[01].*)
12501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12502 echo ' yes '
12503 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12504 :
12505 else
12506 can_build_shared=no
12507 fi
12508 ;;
12509 esac
12510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12511 # soname into executable. Probably we can add versioning support to
12512 # collect2, so additional links can be useful in future.
12513 if test "$aix_use_runtimelinking" = yes; then
12514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12515 # instead of lib<name>.a to let people know that these are not
12516 # typical AIX shared libraries.
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12518 else
12519 # We preserve .a as extension for shared libraries through AIX4.2
12520 # and later when we are not doing run time linking.
12521 library_names_spec='${libname}${release}.a $libname.a'
12522 soname_spec='${libname}${release}${shared_ext}$major'
12523 fi
12524 shlibpath_var=LIBPATH
12525 fi
12526 ;;
12527
12528 amigaos*)
12529 case $host_cpu in
12530 powerpc)
12531 # Since July 2007 AmigaOS4 officially supports .so libraries.
12532 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12534 ;;
12535 m68k)
12536 library_names_spec='$libname.ixlibrary $libname.a'
12537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12538 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'
12539 ;;
12540 esac
12541 ;;
12542
12543 beos*)
12544 library_names_spec='${libname}${shared_ext}'
12545 dynamic_linker="$host_os ld.so"
12546 shlibpath_var=LIBRARY_PATH
12547 ;;
12548
12549 bsdi[45]*)
12550 version_type=linux
12551 need_version=no
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12558 # the default ld.so.conf also contains /usr/contrib/lib and
12559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12560 # libtool to hard-code these into programs
12561 ;;
12562
12563 cygwin* | mingw* | pw32* | cegcc*)
12564 version_type=windows
12565 shrext_cmds=".dll"
12566 need_version=no
12567 need_lib_prefix=no
12568
12569 case $GCC,$host_os in
12570 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12571 library_names_spec='$libname.dll.a'
12572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12573 postinstall_cmds='base_file=`basename \${file}`~
12574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12575 dldir=$destdir/`dirname \$dlpath`~
12576 test -d \$dldir || mkdir -p \$dldir~
12577 $install_prog $dir/$dlname \$dldir/$dlname~
12578 chmod a+x \$dldir/$dlname~
12579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12581 fi'
12582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12583 dlpath=$dir/\$dldll~
12584 $RM \$dlpath'
12585 shlibpath_overrides_runpath=yes
12586
12587 case $host_os in
12588 cygwin*)
12589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12591 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12592 ;;
12593 mingw* | cegcc*)
12594 # MinGW DLLs use traditional 'lib' prefix
12595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12596 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12597 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12598 # It is most probably a Windows format PATH printed by
12599 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12600 # path with ; separators, and with drive letters. We can handle the
12601 # drive letters (cygwin fileutils understands them), so leave them,
12602 # especially as we might pass files found there to a mingw objdump,
12603 # which wouldn't understand a cygwinified path. Ahh.
12604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12605 else
12606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12607 fi
12608 ;;
12609 pw32*)
12610 # pw32 DLLs use 'pw' prefix rather than 'lib'
12611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12612 ;;
12613 esac
12614 ;;
12615
12616 *)
12617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12618 ;;
12619 esac
12620 dynamic_linker='Win32 ld.exe'
12621 # FIXME: first we should search . and the directory the executable is in
12622 shlibpath_var=PATH
12623 ;;
12624
12625 darwin* | rhapsody*)
12626 dynamic_linker="$host_os dyld"
12627 version_type=darwin
12628 need_lib_prefix=no
12629 need_version=no
12630 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12631 soname_spec='${libname}${release}${major}$shared_ext'
12632 shlibpath_overrides_runpath=yes
12633 shlibpath_var=DYLD_LIBRARY_PATH
12634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12635
12636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12638 ;;
12639
12640 dgux*)
12641 version_type=linux
12642 need_lib_prefix=no
12643 need_version=no
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 shlibpath_var=LD_LIBRARY_PATH
12647 ;;
12648
12649 freebsd1*)
12650 dynamic_linker=no
12651 ;;
12652
12653 freebsd* | dragonfly*)
12654 # DragonFly does not have aout. When/if they implement a new
12655 # versioning mechanism, adjust this.
12656 if test -x /usr/bin/objformat; then
12657 objformat=`/usr/bin/objformat`
12658 else
12659 case $host_os in
12660 freebsd[123]*) objformat=aout ;;
12661 *) objformat=elf ;;
12662 esac
12663 fi
12664 version_type=freebsd-$objformat
12665 case $version_type in
12666 freebsd-elf*)
12667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12668 need_version=no
12669 need_lib_prefix=no
12670 ;;
12671 freebsd-*)
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12673 need_version=yes
12674 ;;
12675 esac
12676 shlibpath_var=LD_LIBRARY_PATH
12677 case $host_os in
12678 freebsd2*)
12679 shlibpath_overrides_runpath=yes
12680 ;;
12681 freebsd3.[01]* | freebsdelf3.[01]*)
12682 shlibpath_overrides_runpath=yes
12683 hardcode_into_libs=yes
12684 ;;
12685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12687 shlibpath_overrides_runpath=no
12688 hardcode_into_libs=yes
12689 ;;
12690 *) # from 4.6 on, and DragonFly
12691 shlibpath_overrides_runpath=yes
12692 hardcode_into_libs=yes
12693 ;;
12694 esac
12695 ;;
12696
12697 gnu*)
12698 version_type=linux
12699 need_lib_prefix=no
12700 need_version=no
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12702 soname_spec='${libname}${release}${shared_ext}$major'
12703 shlibpath_var=LD_LIBRARY_PATH
12704 hardcode_into_libs=yes
12705 ;;
12706
12707 hpux9* | hpux10* | hpux11*)
12708 # Give a soname corresponding to the major version so that dld.sl refuses to
12709 # link against other versions.
12710 version_type=sunos
12711 need_lib_prefix=no
12712 need_version=no
12713 case $host_cpu in
12714 ia64*)
12715 shrext_cmds='.so'
12716 hardcode_into_libs=yes
12717 dynamic_linker="$host_os dld.so"
12718 shlibpath_var=LD_LIBRARY_PATH
12719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 if test "X$HPUX_IA64_MODE" = X32; then
12723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12724 else
12725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12726 fi
12727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12728 ;;
12729 hppa*64*)
12730 shrext_cmds='.sl'
12731 hardcode_into_libs=yes
12732 dynamic_linker="$host_os dld.sl"
12733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12739 ;;
12740 *)
12741 shrext_cmds='.sl'
12742 dynamic_linker="$host_os dld.sl"
12743 shlibpath_var=SHLIB_PATH
12744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746 soname_spec='${libname}${release}${shared_ext}$major'
12747 ;;
12748 esac
12749 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12750 postinstall_cmds='chmod 555 $lib'
12751 ;;
12752
12753 interix[3-9]*)
12754 version_type=linux
12755 need_lib_prefix=no
12756 need_version=no
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12760 shlibpath_var=LD_LIBRARY_PATH
12761 shlibpath_overrides_runpath=no
12762 hardcode_into_libs=yes
12763 ;;
12764
12765 irix5* | irix6* | nonstopux*)
12766 case $host_os in
12767 nonstopux*) version_type=nonstopux ;;
12768 *)
12769 if test "$lt_cv_prog_gnu_ld" = yes; then
12770 version_type=linux
12771 else
12772 version_type=irix
12773 fi ;;
12774 esac
12775 need_lib_prefix=no
12776 need_version=no
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12779 case $host_os in
12780 irix5* | nonstopux*)
12781 libsuff= shlibsuff=
12782 ;;
12783 *)
12784 case $LD in # libtool.m4 will add one of these switches to LD
12785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12786 libsuff= shlibsuff= libmagic=32-bit;;
12787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12788 libsuff=32 shlibsuff=N32 libmagic=N32;;
12789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12791 *) libsuff= shlibsuff= libmagic=never-match;;
12792 esac
12793 ;;
12794 esac
12795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12796 shlibpath_overrides_runpath=no
12797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12799 hardcode_into_libs=yes
12800 ;;
12801
12802 # No shared lib support for Linux oldld, aout, or coff.
12803 linux*oldld* | linux*aout* | linux*coff*)
12804 dynamic_linker=no
12805 ;;
12806
12807 # This must be Linux ELF.
12808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12809 version_type=linux
12810 need_lib_prefix=no
12811 need_version=no
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=no
12817
12818 # Some binutils ld are patched to set DT_RUNPATH
12819 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 lt_cv_shlibpath_overrides_runpath=no
12823 save_LDFLAGS=$LDFLAGS
12824 save_libdir=$libdir
12825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12827 if test x$gcc_no_link = xyes; then
12828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12829 fi
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832
12833 int
12834 main ()
12835 {
12836
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_link "$LINENO"; then :
12842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12843 lt_cv_shlibpath_overrides_runpath=yes
12844 fi
12845 fi
12846 rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848 LDFLAGS=$save_LDFLAGS
12849 libdir=$save_libdir
12850
12851 fi
12852
12853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12854
12855 # This implies no fast_install, which is unacceptable.
12856 # Some rework will be needed to allow for fast_install
12857 # before this can be enabled.
12858 hardcode_into_libs=yes
12859
12860 # Append ld.so.conf contents to the search path
12861 if test -f /etc/ld.so.conf; then
12862 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' ' '`
12863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12864 fi
12865
12866 # We used to test for /lib/ld.so.1 and disable shared libraries on
12867 # powerpc, because MkLinux only supported shared libraries with the
12868 # GNU dynamic linker. Since this was broken with cross compilers,
12869 # most powerpc-linux boxes support dynamic linking these days and
12870 # people can always --disable-shared, the test was removed, and we
12871 # assume the GNU/Linux dynamic linker is in use.
12872 dynamic_linker='GNU/Linux ld.so'
12873 ;;
12874
12875 netbsd*)
12876 version_type=sunos
12877 need_lib_prefix=no
12878 need_version=no
12879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12882 dynamic_linker='NetBSD (a.out) ld.so'
12883 else
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 dynamic_linker='NetBSD ld.elf_so'
12887 fi
12888 shlibpath_var=LD_LIBRARY_PATH
12889 shlibpath_overrides_runpath=yes
12890 hardcode_into_libs=yes
12891 ;;
12892
12893 newsos6)
12894 version_type=linux
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 shlibpath_overrides_runpath=yes
12898 ;;
12899
12900 *nto* | *qnx*)
12901 version_type=qnx
12902 need_lib_prefix=no
12903 need_version=no
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=no
12908 hardcode_into_libs=yes
12909 dynamic_linker='ldqnx.so'
12910 ;;
12911
12912 openbsd*)
12913 version_type=sunos
12914 sys_lib_dlsearch_path_spec="/usr/lib"
12915 need_lib_prefix=no
12916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12917 case $host_os in
12918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12919 *) need_version=no ;;
12920 esac
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12923 shlibpath_var=LD_LIBRARY_PATH
12924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12925 case $host_os in
12926 openbsd2.[89] | openbsd2.[89].*)
12927 shlibpath_overrides_runpath=no
12928 ;;
12929 *)
12930 shlibpath_overrides_runpath=yes
12931 ;;
12932 esac
12933 else
12934 shlibpath_overrides_runpath=yes
12935 fi
12936 ;;
12937
12938 os2*)
12939 libname_spec='$name'
12940 shrext_cmds=".dll"
12941 need_lib_prefix=no
12942 library_names_spec='$libname${shared_ext} $libname.a'
12943 dynamic_linker='OS/2 ld.exe'
12944 shlibpath_var=LIBPATH
12945 ;;
12946
12947 osf3* | osf4* | osf5*)
12948 version_type=osf
12949 need_lib_prefix=no
12950 need_version=no
12951 soname_spec='${libname}${release}${shared_ext}$major'
12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12953 shlibpath_var=LD_LIBRARY_PATH
12954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12956 ;;
12957
12958 rdos*)
12959 dynamic_linker=no
12960 ;;
12961
12962 solaris*)
12963 version_type=linux
12964 need_lib_prefix=no
12965 need_version=no
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 shlibpath_overrides_runpath=yes
12970 hardcode_into_libs=yes
12971 # ldd complains unless libraries are executable
12972 postinstall_cmds='chmod +x $lib'
12973 ;;
12974
12975 sunos4*)
12976 version_type=sunos
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 shlibpath_overrides_runpath=yes
12981 if test "$with_gnu_ld" = yes; then
12982 need_lib_prefix=no
12983 fi
12984 need_version=yes
12985 ;;
12986
12987 sysv4 | sysv4.3*)
12988 version_type=linux
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990 soname_spec='${libname}${release}${shared_ext}$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 case $host_vendor in
12993 sni)
12994 shlibpath_overrides_runpath=no
12995 need_lib_prefix=no
12996 runpath_var=LD_RUN_PATH
12997 ;;
12998 siemens)
12999 need_lib_prefix=no
13000 ;;
13001 motorola)
13002 need_lib_prefix=no
13003 need_version=no
13004 shlibpath_overrides_runpath=no
13005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13006 ;;
13007 esac
13008 ;;
13009
13010 sysv4*MP*)
13011 if test -d /usr/nec ;then
13012 version_type=linux
13013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13014 soname_spec='$libname${shared_ext}.$major'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 fi
13017 ;;
13018
13019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13020 version_type=freebsd-elf
13021 need_lib_prefix=no
13022 need_version=no
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13028 if test "$with_gnu_ld" = yes; then
13029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13030 else
13031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13032 case $host_os in
13033 sco3.2v5*)
13034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13035 ;;
13036 esac
13037 fi
13038 sys_lib_dlsearch_path_spec='/usr/lib'
13039 ;;
13040
13041 tpf*)
13042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13043 version_type=linux
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 shlibpath_var=LD_LIBRARY_PATH
13048 shlibpath_overrides_runpath=no
13049 hardcode_into_libs=yes
13050 ;;
13051
13052 uts4*)
13053 version_type=linux
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 soname_spec='${libname}${release}${shared_ext}$major'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 ;;
13058
13059 *)
13060 dynamic_linker=no
13061 ;;
13062 esac
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13064 $as_echo "$dynamic_linker" >&6; }
13065 test "$dynamic_linker" = no && can_build_shared=no
13066
13067 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13068 if test "$GCC" = yes; then
13069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13070 fi
13071
13072 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13074 fi
13075 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13077 fi
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13167 hardcode_action=
13168 if test -n "$hardcode_libdir_flag_spec" ||
13169 test -n "$runpath_var" ||
13170 test "X$hardcode_automatic" = "Xyes" ; then
13171
13172 # We can hardcode non-existent directories.
13173 if test "$hardcode_direct" != no &&
13174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13175 # have to relink, otherwise we might link with an installed library
13176 # when we should be linking with a yet-to-be-installed one
13177 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13178 test "$hardcode_minus_L" != no; then
13179 # Linking always hardcodes the temporary library directory.
13180 hardcode_action=relink
13181 else
13182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13183 hardcode_action=immediate
13184 fi
13185 else
13186 # We cannot hardcode anything, or else we can only hardcode existing
13187 # directories.
13188 hardcode_action=unsupported
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13191 $as_echo "$hardcode_action" >&6; }
13192
13193 if test "$hardcode_action" = relink ||
13194 test "$inherit_rpath" = yes; then
13195 # Fast installation is not supported
13196 enable_fast_install=no
13197 elif test "$shlibpath_overrides_runpath" = yes ||
13198 test "$enable_shared" = no; then
13199 # Fast installation is not necessary
13200 enable_fast_install=needless
13201 fi
13202
13203
13204
13205
13206
13207
13208 if test "x$enable_dlopen" != xyes; then
13209 enable_dlopen=unknown
13210 enable_dlopen_self=unknown
13211 enable_dlopen_self_static=unknown
13212 else
13213 lt_cv_dlopen=no
13214 lt_cv_dlopen_libs=
13215
13216 case $host_os in
13217 beos*)
13218 lt_cv_dlopen="load_add_on"
13219 lt_cv_dlopen_libs=
13220 lt_cv_dlopen_self=yes
13221 ;;
13222
13223 mingw* | pw32* | cegcc*)
13224 lt_cv_dlopen="LoadLibrary"
13225 lt_cv_dlopen_libs=
13226 ;;
13227
13228 cygwin*)
13229 lt_cv_dlopen="dlopen"
13230 lt_cv_dlopen_libs=
13231 ;;
13232
13233 darwin*)
13234 # if libdl is installed we need to link against it
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-ldl $LIBS"
13242 if test x$gcc_no_link = xyes; then
13243 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13244 fi
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13247
13248 /* Override any GCC internal prototype to avoid an error.
13249 Use char because int might match the return type of a GCC
13250 builtin and then its argument prototype would still apply. */
13251 #ifdef __cplusplus
13252 extern "C"
13253 #endif
13254 char dlopen ();
13255 int
13256 main ()
13257 {
13258 return dlopen ();
13259 ;
13260 return 0;
13261 }
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"; then :
13264 ac_cv_lib_dl_dlopen=yes
13265 else
13266 ac_cv_lib_dl_dlopen=no
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13274 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13276 else
13277
13278 lt_cv_dlopen="dyld"
13279 lt_cv_dlopen_libs=
13280 lt_cv_dlopen_self=yes
13281
13282 fi
13283
13284 ;;
13285
13286 *)
13287 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13288 if test "x$ac_cv_func_shl_load" = x""yes; then :
13289 lt_cv_dlopen="shl_load"
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13293 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-ldld $LIBS"
13298 if test x$gcc_no_link = xyes; then
13299 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13300 fi
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303
13304 /* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
13307 #ifdef __cplusplus
13308 extern "C"
13309 #endif
13310 char shl_load ();
13311 int
13312 main ()
13313 {
13314 return shl_load ();
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_c_try_link "$LINENO"; then :
13320 ac_cv_lib_dld_shl_load=yes
13321 else
13322 ac_cv_lib_dld_shl_load=no
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13329 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13330 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13332 else
13333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13334 if test "x$ac_cv_func_dlopen" = x""yes; then :
13335 lt_cv_dlopen="dlopen"
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-ldl $LIBS"
13344 if test x$gcc_no_link = xyes; then
13345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13346 fi
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char dlopen ();
13357 int
13358 main ()
13359 {
13360 return dlopen ();
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 ac_cv_lib_dl_dlopen=yes
13367 else
13368 ac_cv_lib_dl_dlopen=no
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13373 fi
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13375 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13376 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13380 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13381 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-lsvld $LIBS"
13386 if test x$gcc_no_link = xyes; then
13387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13388 fi
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 char dlopen ();
13399 int
13400 main ()
13401 {
13402 return dlopen ();
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408 ac_cv_lib_svld_dlopen=yes
13409 else
13410 ac_cv_lib_svld_dlopen=no
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13417 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13418 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13422 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13423 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-ldld $LIBS"
13428 if test x$gcc_no_link = xyes; then
13429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13430 fi
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433
13434 /* Override any GCC internal prototype to avoid an error.
13435 Use char because int might match the return type of a GCC
13436 builtin and then its argument prototype would still apply. */
13437 #ifdef __cplusplus
13438 extern "C"
13439 #endif
13440 char dld_link ();
13441 int
13442 main ()
13443 {
13444 return dld_link ();
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 ac_cv_lib_dld_dld_link=yes
13451 else
13452 ac_cv_lib_dld_dld_link=no
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13459 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13460 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13461 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13462 fi
13463
13464
13465 fi
13466
13467
13468 fi
13469
13470
13471 fi
13472
13473
13474 fi
13475
13476
13477 fi
13478
13479 ;;
13480 esac
13481
13482 if test "x$lt_cv_dlopen" != xno; then
13483 enable_dlopen=yes
13484 else
13485 enable_dlopen=no
13486 fi
13487
13488 case $lt_cv_dlopen in
13489 dlopen)
13490 save_CPPFLAGS="$CPPFLAGS"
13491 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13492
13493 save_LDFLAGS="$LDFLAGS"
13494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13495
13496 save_LIBS="$LIBS"
13497 LIBS="$lt_cv_dlopen_libs $LIBS"
13498
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13500 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13501 if test "${lt_cv_dlopen_self+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 if test "$cross_compiling" = yes; then :
13505 lt_cv_dlopen_self=cross
13506 else
13507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13508 lt_status=$lt_dlunknown
13509 cat > conftest.$ac_ext <<_LT_EOF
13510 #line 13510 "configure"
13511 #include "confdefs.h"
13512
13513 #if HAVE_DLFCN_H
13514 #include <dlfcn.h>
13515 #endif
13516
13517 #include <stdio.h>
13518
13519 #ifdef RTLD_GLOBAL
13520 # define LT_DLGLOBAL RTLD_GLOBAL
13521 #else
13522 # ifdef DL_GLOBAL
13523 # define LT_DLGLOBAL DL_GLOBAL
13524 # else
13525 # define LT_DLGLOBAL 0
13526 # endif
13527 #endif
13528
13529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13530 find out it does not work in some platform. */
13531 #ifndef LT_DLLAZY_OR_NOW
13532 # ifdef RTLD_LAZY
13533 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13534 # else
13535 # ifdef DL_LAZY
13536 # define LT_DLLAZY_OR_NOW DL_LAZY
13537 # else
13538 # ifdef RTLD_NOW
13539 # define LT_DLLAZY_OR_NOW RTLD_NOW
13540 # else
13541 # ifdef DL_NOW
13542 # define LT_DLLAZY_OR_NOW DL_NOW
13543 # else
13544 # define LT_DLLAZY_OR_NOW 0
13545 # endif
13546 # endif
13547 # endif
13548 # endif
13549 #endif
13550
13551 void fnord() { int i=42;}
13552 int main ()
13553 {
13554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13555 int status = $lt_dlunknown;
13556
13557 if (self)
13558 {
13559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13561 /* dlclose (self); */
13562 }
13563 else
13564 puts (dlerror ());
13565
13566 return status;
13567 }
13568 _LT_EOF
13569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13570 (eval $ac_link) 2>&5
13571 ac_status=$?
13572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13574 (./conftest; exit; ) >&5 2>/dev/null
13575 lt_status=$?
13576 case x$lt_status in
13577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13580 esac
13581 else :
13582 # compilation failed
13583 lt_cv_dlopen_self=no
13584 fi
13585 fi
13586 rm -fr conftest*
13587
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13591 $as_echo "$lt_cv_dlopen_self" >&6; }
13592
13593 if test "x$lt_cv_dlopen_self" = xyes; then
13594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13596 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13597 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 if test "$cross_compiling" = yes; then :
13601 lt_cv_dlopen_self_static=cross
13602 else
13603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13604 lt_status=$lt_dlunknown
13605 cat > conftest.$ac_ext <<_LT_EOF
13606 #line 13606 "configure"
13607 #include "confdefs.h"
13608
13609 #if HAVE_DLFCN_H
13610 #include <dlfcn.h>
13611 #endif
13612
13613 #include <stdio.h>
13614
13615 #ifdef RTLD_GLOBAL
13616 # define LT_DLGLOBAL RTLD_GLOBAL
13617 #else
13618 # ifdef DL_GLOBAL
13619 # define LT_DLGLOBAL DL_GLOBAL
13620 # else
13621 # define LT_DLGLOBAL 0
13622 # endif
13623 #endif
13624
13625 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13626 find out it does not work in some platform. */
13627 #ifndef LT_DLLAZY_OR_NOW
13628 # ifdef RTLD_LAZY
13629 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13630 # else
13631 # ifdef DL_LAZY
13632 # define LT_DLLAZY_OR_NOW DL_LAZY
13633 # else
13634 # ifdef RTLD_NOW
13635 # define LT_DLLAZY_OR_NOW RTLD_NOW
13636 # else
13637 # ifdef DL_NOW
13638 # define LT_DLLAZY_OR_NOW DL_NOW
13639 # else
13640 # define LT_DLLAZY_OR_NOW 0
13641 # endif
13642 # endif
13643 # endif
13644 # endif
13645 #endif
13646
13647 void fnord() { int i=42;}
13648 int main ()
13649 {
13650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13651 int status = $lt_dlunknown;
13652
13653 if (self)
13654 {
13655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13657 /* dlclose (self); */
13658 }
13659 else
13660 puts (dlerror ());
13661
13662 return status;
13663 }
13664 _LT_EOF
13665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13666 (eval $ac_link) 2>&5
13667 ac_status=$?
13668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13669 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13670 (./conftest; exit; ) >&5 2>/dev/null
13671 lt_status=$?
13672 case x$lt_status in
13673 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13674 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13675 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13676 esac
13677 else :
13678 # compilation failed
13679 lt_cv_dlopen_self_static=no
13680 fi
13681 fi
13682 rm -fr conftest*
13683
13684
13685 fi
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13687 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13688 fi
13689
13690 CPPFLAGS="$save_CPPFLAGS"
13691 LDFLAGS="$save_LDFLAGS"
13692 LIBS="$save_LIBS"
13693 ;;
13694 esac
13695
13696 case $lt_cv_dlopen_self in
13697 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13698 *) enable_dlopen_self=unknown ;;
13699 esac
13700
13701 case $lt_cv_dlopen_self_static in
13702 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13703 *) enable_dlopen_self_static=unknown ;;
13704 esac
13705 fi
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723 striplib=
13724 old_striplib=
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13726 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13727 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13729 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13731 $as_echo "yes" >&6; }
13732 else
13733 # FIXME - insert some real tests, host_os isn't really good enough
13734 case $host_os in
13735 darwin*)
13736 if test -n "$STRIP" ; then
13737 striplib="$STRIP -x"
13738 old_striplib="$STRIP -S"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 $as_echo "yes" >&6; }
13741 else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13744 fi
13745 ;;
13746 *)
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 ;;
13750 esac
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764 # Report which library types will actually be built
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13766 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13768 $as_echo "$can_build_shared" >&6; }
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13771 $as_echo_n "checking whether to build shared libraries... " >&6; }
13772 test "$can_build_shared" = "no" && enable_shared=no
13773
13774 # On AIX, shared libraries and static libraries use the same namespace, and
13775 # are all built from PIC.
13776 case $host_os in
13777 aix3*)
13778 test "$enable_shared" = yes && enable_static=no
13779 if test -n "$RANLIB"; then
13780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13781 postinstall_cmds='$RANLIB $lib'
13782 fi
13783 ;;
13784
13785 aix[4-9]*)
13786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13787 test "$enable_shared" = yes && enable_static=no
13788 fi
13789 ;;
13790 esac
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13792 $as_echo "$enable_shared" >&6; }
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13795 $as_echo_n "checking whether to build static libraries... " >&6; }
13796 # Make sure either enable_shared or enable_static is yes.
13797 test "$enable_shared" = yes || enable_static=yes
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13799 $as_echo "$enable_static" >&6; }
13800
13801
13802
13803
13804 fi
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811 CC="$lt_save_CC"
13812
13813
13814 ac_ext=cpp
13815 ac_cpp='$CXXCPP $CPPFLAGS'
13816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13819
13820 archive_cmds_need_lc_CXX=no
13821 allow_undefined_flag_CXX=
13822 always_export_symbols_CXX=no
13823 archive_expsym_cmds_CXX=
13824 compiler_needs_object_CXX=no
13825 export_dynamic_flag_spec_CXX=
13826 hardcode_direct_CXX=no
13827 hardcode_direct_absolute_CXX=no
13828 hardcode_libdir_flag_spec_CXX=
13829 hardcode_libdir_flag_spec_ld_CXX=
13830 hardcode_libdir_separator_CXX=
13831 hardcode_minus_L_CXX=no
13832 hardcode_shlibpath_var_CXX=unsupported
13833 hardcode_automatic_CXX=no
13834 inherit_rpath_CXX=no
13835 module_cmds_CXX=
13836 module_expsym_cmds_CXX=
13837 link_all_deplibs_CXX=unknown
13838 old_archive_cmds_CXX=$old_archive_cmds
13839 no_undefined_flag_CXX=
13840 whole_archive_flag_spec_CXX=
13841 enable_shared_with_static_runtimes_CXX=no
13842
13843 # Source file extension for C++ test sources.
13844 ac_ext=cpp
13845
13846 # Object file extension for compiled C++ test sources.
13847 objext=o
13848 objext_CXX=$objext
13849
13850 # No sense in running all these tests if we already determined that
13851 # the CXX compiler isn't working. Some variables (like enable_shared)
13852 # are currently assumed to apply to all compilers on this platform,
13853 # and will be corrupted by setting them based on a non-working compiler.
13854 if test "$_lt_caught_CXX_error" != yes; then
13855 # Code to be used in simple compile tests
13856 lt_simple_compile_test_code="int some_variable = 0;"
13857
13858 # Code to be used in simple link tests
13859 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13860
13861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13862
13863
13864
13865
13866
13867
13868 # If no C compiler was specified, use CC.
13869 LTCC=${LTCC-"$CC"}
13870
13871 # If no C compiler flags were specified, use CFLAGS.
13872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13873
13874 # Allow CC to be a program name with arguments.
13875 compiler=$CC
13876
13877
13878 # save warnings/boilerplate of simple test code
13879 ac_outfile=conftest.$ac_objext
13880 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13882 _lt_compiler_boilerplate=`cat conftest.err`
13883 $RM conftest*
13884
13885 ac_outfile=conftest.$ac_objext
13886 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13888 _lt_linker_boilerplate=`cat conftest.err`
13889 $RM -r conftest*
13890
13891
13892 # Allow CC to be a program name with arguments.
13893 lt_save_CC=$CC
13894 lt_save_LD=$LD
13895 lt_save_GCC=$GCC
13896 GCC=$GXX
13897 lt_save_with_gnu_ld=$with_gnu_ld
13898 lt_save_path_LD=$lt_cv_path_LD
13899 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13900 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13901 else
13902 $as_unset lt_cv_prog_gnu_ld
13903 fi
13904 if test -n "${lt_cv_path_LDCXX+set}"; then
13905 lt_cv_path_LD=$lt_cv_path_LDCXX
13906 else
13907 $as_unset lt_cv_path_LD
13908 fi
13909 test -z "${LDCXX+set}" || LD=$LDCXX
13910 CC=${CXX-"c++"}
13911 compiler=$CC
13912 compiler_CXX=$CC
13913 for cc_temp in $compiler""; do
13914 case $cc_temp in
13915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13917 \-*) ;;
13918 *) break;;
13919 esac
13920 done
13921 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13922
13923
13924 if test -n "$compiler"; then
13925 # We don't want -fno-exception when compiling C++ code, so set the
13926 # no_builtin_flag separately
13927 if test "$GXX" = yes; then
13928 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13929 else
13930 lt_prog_compiler_no_builtin_flag_CXX=
13931 fi
13932
13933 if test "$GXX" = yes; then
13934 # Set up default GNU C++ configuration
13935
13936
13937
13938 # Check whether --with-gnu-ld was given.
13939 if test "${with_gnu_ld+set}" = set; then :
13940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13941 else
13942 with_gnu_ld=no
13943 fi
13944
13945 ac_prog=ld
13946 if test "$GCC" = yes; then
13947 # Check if gcc -print-prog-name=ld gives a path.
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13949 $as_echo_n "checking for ld used by $CC... " >&6; }
13950 case $host in
13951 *-*-mingw*)
13952 # gcc leaves a trailing carriage return which upsets mingw
13953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13954 *)
13955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13956 esac
13957 case $ac_prog in
13958 # Accept absolute paths.
13959 [\\/]* | ?:[\\/]*)
13960 re_direlt='/[^/][^/]*/\.\./'
13961 # Canonicalize the pathname of ld
13962 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13963 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13964 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13965 done
13966 test -z "$LD" && LD="$ac_prog"
13967 ;;
13968 "")
13969 # If it fails, then pretend we aren't using GCC.
13970 ac_prog=ld
13971 ;;
13972 *)
13973 # If it is relative, then search for the first ld in PATH.
13974 with_gnu_ld=unknown
13975 ;;
13976 esac
13977 elif test "$with_gnu_ld" = yes; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13979 $as_echo_n "checking for GNU ld... " >&6; }
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13982 $as_echo_n "checking for non-GNU ld... " >&6; }
13983 fi
13984 if test "${lt_cv_path_LD+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 if test -z "$LD"; then
13988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13989 for ac_dir in $PATH; do
13990 IFS="$lt_save_ifs"
13991 test -z "$ac_dir" && ac_dir=.
13992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13993 lt_cv_path_LD="$ac_dir/$ac_prog"
13994 # Check to see if the program is GNU ld. I'd rather use --version,
13995 # but apparently some variants of GNU ld only accept -v.
13996 # Break only if it was the GNU/non-GNU ld that we prefer.
13997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13998 *GNU* | *'with BFD'*)
13999 test "$with_gnu_ld" != no && break
14000 ;;
14001 *)
14002 test "$with_gnu_ld" != yes && break
14003 ;;
14004 esac
14005 fi
14006 done
14007 IFS="$lt_save_ifs"
14008 else
14009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14010 fi
14011 fi
14012
14013 LD="$lt_cv_path_LD"
14014 if test -n "$LD"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14016 $as_echo "$LD" >&6; }
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14020 fi
14021 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14024 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14028 case `$LD -v 2>&1 </dev/null` in
14029 *GNU* | *'with BFD'*)
14030 lt_cv_prog_gnu_ld=yes
14031 ;;
14032 *)
14033 lt_cv_prog_gnu_ld=no
14034 ;;
14035 esac
14036 fi
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14038 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14039 with_gnu_ld=$lt_cv_prog_gnu_ld
14040
14041
14042
14043
14044
14045
14046
14047 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14048 # archiving commands below assume that GNU ld is being used.
14049 if test "$with_gnu_ld" = yes; then
14050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14051 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'
14052
14053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14055
14056 # If archive_cmds runs LD, not CC, wlarc should be empty
14057 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14058 # investigate it a little bit more. (MM)
14059 wlarc='${wl}'
14060
14061 # ancient GNU ld didn't support --whole-archive et. al.
14062 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14063 $GREP 'no-whole-archive' > /dev/null; then
14064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14065 else
14066 whole_archive_flag_spec_CXX=
14067 fi
14068 else
14069 with_gnu_ld=no
14070 wlarc=
14071
14072 # A generic and very simple default shared library creation
14073 # command for GNU C++ for the case where it uses the native
14074 # linker, instead of GNU ld. If possible, this setting should
14075 # overridden to take advantage of the native linker features on
14076 # the platform it is being used on.
14077 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14078 fi
14079
14080 # Commands to make compiler produce verbose output that lists
14081 # what "hidden" libraries, object files and flags are used when
14082 # linking a shared library.
14083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14084
14085 else
14086 GXX=no
14087 with_gnu_ld=no
14088 wlarc=
14089 fi
14090
14091 # PORTME: fill in a description of your system's C++ link characteristics
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14094 ld_shlibs_CXX=yes
14095 case $host_os in
14096 aix3*)
14097 # FIXME: insert proper C++ library support
14098 ld_shlibs_CXX=no
14099 ;;
14100 aix[4-9]*)
14101 if test "$host_cpu" = ia64; then
14102 # On IA64, the linker does run time linking by default, so we don't
14103 # have to do anything special.
14104 aix_use_runtimelinking=no
14105 exp_sym_flag='-Bexport'
14106 no_entry_flag=""
14107 else
14108 aix_use_runtimelinking=no
14109
14110 # Test if we are trying to use run time linking or normal
14111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14112 # need to do runtime linking.
14113 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14114 for ld_flag in $LDFLAGS; do
14115 case $ld_flag in
14116 *-brtl*)
14117 aix_use_runtimelinking=yes
14118 break
14119 ;;
14120 esac
14121 done
14122 ;;
14123 esac
14124
14125 exp_sym_flag='-bexport'
14126 no_entry_flag='-bnoentry'
14127 fi
14128
14129 # When large executables or shared objects are built, AIX ld can
14130 # have problems creating the table of contents. If linking a library
14131 # or program results in "error TOC overflow" add -mminimal-toc to
14132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14134
14135 archive_cmds_CXX=''
14136 hardcode_direct_CXX=yes
14137 hardcode_direct_absolute_CXX=yes
14138 hardcode_libdir_separator_CXX=':'
14139 link_all_deplibs_CXX=yes
14140 file_list_spec_CXX='${wl}-f,'
14141
14142 if test "$GXX" = yes; then
14143 case $host_os in aix4.[012]|aix4.[012].*)
14144 # We only want to do this on AIX 4.2 and lower, the check
14145 # below for broken collect2 doesn't work under 4.3+
14146 collect2name=`${CC} -print-prog-name=collect2`
14147 if test -f "$collect2name" &&
14148 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14149 then
14150 # We have reworked collect2
14151 :
14152 else
14153 # We have old collect2
14154 hardcode_direct_CXX=unsupported
14155 # It fails to find uninstalled libraries when the uninstalled
14156 # path is not listed in the libpath. Setting hardcode_minus_L
14157 # to unsupported forces relinking
14158 hardcode_minus_L_CXX=yes
14159 hardcode_libdir_flag_spec_CXX='-L$libdir'
14160 hardcode_libdir_separator_CXX=
14161 fi
14162 esac
14163 shared_flag='-shared'
14164 if test "$aix_use_runtimelinking" = yes; then
14165 shared_flag="$shared_flag "'${wl}-G'
14166 fi
14167 else
14168 # not using gcc
14169 if test "$host_cpu" = ia64; then
14170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14171 # chokes on -Wl,-G. The following line is correct:
14172 shared_flag='-G'
14173 else
14174 if test "$aix_use_runtimelinking" = yes; then
14175 shared_flag='${wl}-G'
14176 else
14177 shared_flag='${wl}-bM:SRE'
14178 fi
14179 fi
14180 fi
14181
14182 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14183 # It seems that -bexpall does not export symbols beginning with
14184 # underscore (_), so it is better to generate a list of symbols to
14185 # export.
14186 always_export_symbols_CXX=yes
14187 if test "$aix_use_runtimelinking" = yes; then
14188 # Warning - without using the other runtime loading flags (-brtl),
14189 # -berok will link without error, but may produce a broken library.
14190 allow_undefined_flag_CXX='-berok'
14191 # Determine the default libpath from the value encoded in an empty
14192 # executable.
14193 if test x$gcc_no_link = xyes; then
14194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14195 fi
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198
14199 int
14200 main ()
14201 {
14202
14203 ;
14204 return 0;
14205 }
14206 _ACEOF
14207 if ac_fn_cxx_try_link "$LINENO"; then :
14208
14209 lt_aix_libpath_sed='
14210 /Import File Strings/,/^$/ {
14211 /^0/ {
14212 s/^0 *\(.*\)$/\1/
14213 p
14214 }
14215 }'
14216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14217 # Check for a 64-bit object if we didn't find anything.
14218 if test -z "$aix_libpath"; then
14219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14220 fi
14221 fi
14222 rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
14224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14225
14226 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14227
14228 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"
14229 else
14230 if test "$host_cpu" = ia64; then
14231 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14232 allow_undefined_flag_CXX="-z nodefs"
14233 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"
14234 else
14235 # Determine the default libpath from the value encoded in an
14236 # empty executable.
14237 if test x$gcc_no_link = xyes; then
14238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14239 fi
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14242
14243 int
14244 main ()
14245 {
14246
14247 ;
14248 return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_cxx_try_link "$LINENO"; then :
14252
14253 lt_aix_libpath_sed='
14254 /Import File Strings/,/^$/ {
14255 /^0/ {
14256 s/^0 *\(.*\)$/\1/
14257 p
14258 }
14259 }'
14260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14261 # Check for a 64-bit object if we didn't find anything.
14262 if test -z "$aix_libpath"; then
14263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264 fi
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14269
14270 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14271 # Warning - without using the other run time loading flags,
14272 # -berok will link without error, but may produce a broken library.
14273 no_undefined_flag_CXX=' ${wl}-bernotok'
14274 allow_undefined_flag_CXX=' ${wl}-berok'
14275 # Exported symbols can be pulled into shared objects from archives
14276 whole_archive_flag_spec_CXX='$convenience'
14277 archive_cmds_need_lc_CXX=yes
14278 # This is similar to how AIX traditionally builds its shared
14279 # libraries.
14280 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'
14281 fi
14282 fi
14283 ;;
14284
14285 beos*)
14286 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14287 allow_undefined_flag_CXX=unsupported
14288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14289 # support --undefined. This deserves some investigation. FIXME
14290 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14291 else
14292 ld_shlibs_CXX=no
14293 fi
14294 ;;
14295
14296 chorus*)
14297 case $cc_basename in
14298 *)
14299 # FIXME: insert proper C++ library support
14300 ld_shlibs_CXX=no
14301 ;;
14302 esac
14303 ;;
14304
14305 cygwin* | mingw* | pw32* | cegcc*)
14306 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14307 # as there is no search path for DLLs.
14308 hardcode_libdir_flag_spec_CXX='-L$libdir'
14309 allow_undefined_flag_CXX=unsupported
14310 always_export_symbols_CXX=no
14311 enable_shared_with_static_runtimes_CXX=yes
14312
14313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14314 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'
14315 # If the export-symbols file already is a .def file (1st line
14316 # is EXPORTS), use it as is; otherwise, prepend...
14317 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14318 cp $export_symbols $output_objdir/$soname.def;
14319 else
14320 echo EXPORTS > $output_objdir/$soname.def;
14321 cat $export_symbols >> $output_objdir/$soname.def;
14322 fi~
14323 $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'
14324 else
14325 ld_shlibs_CXX=no
14326 fi
14327 ;;
14328 darwin* | rhapsody*)
14329
14330
14331 archive_cmds_need_lc_CXX=no
14332 hardcode_direct_CXX=no
14333 hardcode_automatic_CXX=yes
14334 hardcode_shlibpath_var_CXX=unsupported
14335 whole_archive_flag_spec_CXX=''
14336 link_all_deplibs_CXX=yes
14337 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14338 case $cc_basename in
14339 ifort*) _lt_dar_can_shared=yes ;;
14340 *) _lt_dar_can_shared=$GCC ;;
14341 esac
14342 if test "$_lt_dar_can_shared" = "yes"; then
14343 output_verbose_link_cmd=echo
14344 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}"
14345 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14346 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}"
14347 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}"
14348 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14349 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}"
14350 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}"
14351 fi
14352
14353 else
14354 ld_shlibs_CXX=no
14355 fi
14356
14357 ;;
14358
14359 dgux*)
14360 case $cc_basename in
14361 ec++*)
14362 # FIXME: insert proper C++ library support
14363 ld_shlibs_CXX=no
14364 ;;
14365 ghcx*)
14366 # Green Hills C++ Compiler
14367 # FIXME: insert proper C++ library support
14368 ld_shlibs_CXX=no
14369 ;;
14370 *)
14371 # FIXME: insert proper C++ library support
14372 ld_shlibs_CXX=no
14373 ;;
14374 esac
14375 ;;
14376
14377 freebsd[12]*)
14378 # C++ shared libraries reported to be fairly broken before
14379 # switch to ELF
14380 ld_shlibs_CXX=no
14381 ;;
14382
14383 freebsd-elf*)
14384 archive_cmds_need_lc_CXX=no
14385 ;;
14386
14387 freebsd* | dragonfly*)
14388 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14389 # conventions
14390 ld_shlibs_CXX=yes
14391 ;;
14392
14393 gnu*)
14394 ;;
14395
14396 hpux9*)
14397 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14398 hardcode_libdir_separator_CXX=:
14399 export_dynamic_flag_spec_CXX='${wl}-E'
14400 hardcode_direct_CXX=yes
14401 hardcode_minus_L_CXX=yes # Not in the search PATH,
14402 # but as the default
14403 # location of the library.
14404
14405 case $cc_basename in
14406 CC*)
14407 # FIXME: insert proper C++ library support
14408 ld_shlibs_CXX=no
14409 ;;
14410 aCC*)
14411 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'
14412 # Commands to make compiler produce verbose output that lists
14413 # what "hidden" libraries, object files and flags are used when
14414 # linking a shared library.
14415 #
14416 # There doesn't appear to be a way to prevent this compiler from
14417 # explicitly linking system object files so we need to strip them
14418 # from the output so that they don't get included in the library
14419 # dependencies.
14420 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'
14421 ;;
14422 *)
14423 if test "$GXX" = yes; then
14424 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'
14425 else
14426 # FIXME: insert proper C++ library support
14427 ld_shlibs_CXX=no
14428 fi
14429 ;;
14430 esac
14431 ;;
14432
14433 hpux10*|hpux11*)
14434 if test $with_gnu_ld = no; then
14435 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14436 hardcode_libdir_separator_CXX=:
14437
14438 case $host_cpu in
14439 hppa*64*|ia64*)
14440 ;;
14441 *)
14442 export_dynamic_flag_spec_CXX='${wl}-E'
14443 ;;
14444 esac
14445 fi
14446 case $host_cpu in
14447 hppa*64*|ia64*)
14448 hardcode_direct_CXX=no
14449 hardcode_shlibpath_var_CXX=no
14450 ;;
14451 *)
14452 hardcode_direct_CXX=yes
14453 hardcode_direct_absolute_CXX=yes
14454 hardcode_minus_L_CXX=yes # Not in the search PATH,
14455 # but as the default
14456 # location of the library.
14457 ;;
14458 esac
14459
14460 case $cc_basename in
14461 CC*)
14462 # FIXME: insert proper C++ library support
14463 ld_shlibs_CXX=no
14464 ;;
14465 aCC*)
14466 case $host_cpu in
14467 hppa*64*)
14468 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14469 ;;
14470 ia64*)
14471 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14472 ;;
14473 *)
14474 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14475 ;;
14476 esac
14477 # Commands to make compiler produce verbose output that lists
14478 # what "hidden" libraries, object files and flags are used when
14479 # linking a shared library.
14480 #
14481 # There doesn't appear to be a way to prevent this compiler from
14482 # explicitly linking system object files so we need to strip them
14483 # from the output so that they don't get included in the library
14484 # dependencies.
14485 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'
14486 ;;
14487 *)
14488 if test "$GXX" = yes; then
14489 if test $with_gnu_ld = no; then
14490 case $host_cpu in
14491 hppa*64*)
14492 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14493 ;;
14494 ia64*)
14495 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14496 ;;
14497 *)
14498 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'
14499 ;;
14500 esac
14501 fi
14502 else
14503 # FIXME: insert proper C++ library support
14504 ld_shlibs_CXX=no
14505 fi
14506 ;;
14507 esac
14508 ;;
14509
14510 interix[3-9]*)
14511 hardcode_direct_CXX=no
14512 hardcode_shlibpath_var_CXX=no
14513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14514 export_dynamic_flag_spec_CXX='${wl}-E'
14515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14516 # Instead, shared libraries are loaded at an image base (0x10000000 by
14517 # default) and relocated if they conflict, which is a slow very memory
14518 # consuming and fragmenting process. To avoid this, we pick a random,
14519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14521 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'
14522 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'
14523 ;;
14524 irix5* | irix6*)
14525 case $cc_basename in
14526 CC*)
14527 # SGI C++
14528 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'
14529
14530 # Archives containing C++ object files must be created using
14531 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14532 # necessary to make sure instantiated templates are included
14533 # in the archive.
14534 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14535 ;;
14536 *)
14537 if test "$GXX" = yes; then
14538 if test "$with_gnu_ld" = no; then
14539 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'
14540 else
14541 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'
14542 fi
14543 fi
14544 link_all_deplibs_CXX=yes
14545 ;;
14546 esac
14547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14548 hardcode_libdir_separator_CXX=:
14549 inherit_rpath_CXX=yes
14550 ;;
14551
14552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14553 case $cc_basename in
14554 KCC*)
14555 # Kuck and Associates, Inc. (KAI) C++ Compiler
14556
14557 # KCC will only create a shared library if the output file
14558 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14559 # to its proper name (with version) after linking.
14560 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'
14561 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'
14562 # Commands to make compiler produce verbose output that lists
14563 # what "hidden" libraries, object files and flags are used when
14564 # linking a shared library.
14565 #
14566 # There doesn't appear to be a way to prevent this compiler from
14567 # explicitly linking system object files so we need to strip them
14568 # from the output so that they don't get included in the library
14569 # dependencies.
14570 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'
14571
14572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14574
14575 # Archives containing C++ object files must be created using
14576 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14577 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14578 ;;
14579 icpc* | ecpc* )
14580 # Intel C++
14581 with_gnu_ld=yes
14582 # version 8.0 and above of icpc choke on multiply defined symbols
14583 # if we add $predep_objects and $postdep_objects, however 7.1 and
14584 # earlier do not add the objects themselves.
14585 case `$CC -V 2>&1` in
14586 *"Version 7."*)
14587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14588 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'
14589 ;;
14590 *) # Version 8.0 or newer
14591 tmp_idyn=
14592 case $host_cpu in
14593 ia64*) tmp_idyn=' -i_dynamic';;
14594 esac
14595 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14596 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'
14597 ;;
14598 esac
14599 archive_cmds_need_lc_CXX=no
14600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14602 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14603 ;;
14604 pgCC* | pgcpp*)
14605 # Portland Group C++ compiler
14606 case `$CC -V` in
14607 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14608 prelink_cmds_CXX='tpldir=Template.dir~
14609 rm -rf $tpldir~
14610 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14611 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14612 old_archive_cmds_CXX='tpldir=Template.dir~
14613 rm -rf $tpldir~
14614 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14615 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14616 $RANLIB $oldlib'
14617 archive_cmds_CXX='tpldir=Template.dir~
14618 rm -rf $tpldir~
14619 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14620 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14621 archive_expsym_cmds_CXX='tpldir=Template.dir~
14622 rm -rf $tpldir~
14623 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14624 $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'
14625 ;;
14626 *) # Version 6 will use weak symbols
14627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14628 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'
14629 ;;
14630 esac
14631
14632 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14634 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'
14635 ;;
14636 cxx*)
14637 # Compaq C++
14638 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14639 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'
14640
14641 runpath_var=LD_RUN_PATH
14642 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14643 hardcode_libdir_separator_CXX=:
14644
14645 # Commands to make compiler produce verbose output that lists
14646 # what "hidden" libraries, object files and flags are used when
14647 # linking a shared library.
14648 #
14649 # There doesn't appear to be a way to prevent this compiler from
14650 # explicitly linking system object files so we need to strip them
14651 # from the output so that they don't get included in the library
14652 # dependencies.
14653 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'
14654 ;;
14655 xl*)
14656 # IBM XL 8.0 on PPC, with GNU ld
14657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14659 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660 if test "x$supports_anon_versioning" = xyes; then
14661 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14663 echo "local: *; };" >> $output_objdir/$libname.ver~
14664 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14665 fi
14666 ;;
14667 *)
14668 case `$CC -V 2>&1 | sed 5q` in
14669 *Sun\ C*)
14670 # Sun C++ 5.9
14671 no_undefined_flag_CXX=' -zdefs'
14672 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14673 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'
14674 hardcode_libdir_flag_spec_CXX='-R$libdir'
14675 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'
14676 compiler_needs_object_CXX=yes
14677
14678 # Not sure whether something based on
14679 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14680 # would be better.
14681 output_verbose_link_cmd='echo'
14682
14683 # Archives containing C++ object files must be created using
14684 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14685 # necessary to make sure instantiated templates are included
14686 # in the archive.
14687 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14688 ;;
14689 esac
14690 ;;
14691 esac
14692 ;;
14693
14694 lynxos*)
14695 # FIXME: insert proper C++ library support
14696 ld_shlibs_CXX=no
14697 ;;
14698
14699 m88k*)
14700 # FIXME: insert proper C++ library support
14701 ld_shlibs_CXX=no
14702 ;;
14703
14704 mvs*)
14705 case $cc_basename in
14706 cxx*)
14707 # FIXME: insert proper C++ library support
14708 ld_shlibs_CXX=no
14709 ;;
14710 *)
14711 # FIXME: insert proper C++ library support
14712 ld_shlibs_CXX=no
14713 ;;
14714 esac
14715 ;;
14716
14717 netbsd*)
14718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14719 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14720 wlarc=
14721 hardcode_libdir_flag_spec_CXX='-R$libdir'
14722 hardcode_direct_CXX=yes
14723 hardcode_shlibpath_var_CXX=no
14724 fi
14725 # Workaround some broken pre-1.5 toolchains
14726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14727 ;;
14728
14729 *nto* | *qnx*)
14730 ld_shlibs_CXX=yes
14731 ;;
14732
14733 openbsd2*)
14734 # C++ shared libraries are fairly broken
14735 ld_shlibs_CXX=no
14736 ;;
14737
14738 openbsd*)
14739 if test -f /usr/libexec/ld.so; then
14740 hardcode_direct_CXX=yes
14741 hardcode_shlibpath_var_CXX=no
14742 hardcode_direct_absolute_CXX=yes
14743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14746 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14747 export_dynamic_flag_spec_CXX='${wl}-E'
14748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14749 fi
14750 output_verbose_link_cmd=echo
14751 else
14752 ld_shlibs_CXX=no
14753 fi
14754 ;;
14755
14756 osf3* | osf4* | osf5*)
14757 case $cc_basename in
14758 KCC*)
14759 # Kuck and Associates, Inc. (KAI) C++ Compiler
14760
14761 # KCC will only create a shared library if the output file
14762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14763 # to its proper name (with version) after linking.
14764 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'
14765
14766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14767 hardcode_libdir_separator_CXX=:
14768
14769 # Archives containing C++ object files must be created using
14770 # the KAI C++ compiler.
14771 case $host in
14772 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14773 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14774 esac
14775 ;;
14776 RCC*)
14777 # Rational C++ 2.4.1
14778 # FIXME: insert proper C++ library support
14779 ld_shlibs_CXX=no
14780 ;;
14781 cxx*)
14782 case $host in
14783 osf3*)
14784 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14785 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'
14786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14787 ;;
14788 *)
14789 allow_undefined_flag_CXX=' -expect_unresolved \*'
14790 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'
14791 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14792 echo "-hidden">> $lib.exp~
14793 $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~
14794 $RM $lib.exp'
14795 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14796 ;;
14797 esac
14798
14799 hardcode_libdir_separator_CXX=:
14800
14801 # Commands to make compiler produce verbose output that lists
14802 # what "hidden" libraries, object files and flags are used when
14803 # linking a shared library.
14804 #
14805 # There doesn't appear to be a way to prevent this compiler from
14806 # explicitly linking system object files so we need to strip them
14807 # from the output so that they don't get included in the library
14808 # dependencies.
14809 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'
14810 ;;
14811 *)
14812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14813 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14814 case $host in
14815 osf3*)
14816 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'
14817 ;;
14818 *)
14819 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'
14820 ;;
14821 esac
14822
14823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14824 hardcode_libdir_separator_CXX=:
14825
14826 # Commands to make compiler produce verbose output that lists
14827 # what "hidden" libraries, object files and flags are used when
14828 # linking a shared library.
14829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14830
14831 else
14832 # FIXME: insert proper C++ library support
14833 ld_shlibs_CXX=no
14834 fi
14835 ;;
14836 esac
14837 ;;
14838
14839 psos*)
14840 # FIXME: insert proper C++ library support
14841 ld_shlibs_CXX=no
14842 ;;
14843
14844 sunos4*)
14845 case $cc_basename in
14846 CC*)
14847 # Sun C++ 4.x
14848 # FIXME: insert proper C++ library support
14849 ld_shlibs_CXX=no
14850 ;;
14851 lcc*)
14852 # Lucid
14853 # FIXME: insert proper C++ library support
14854 ld_shlibs_CXX=no
14855 ;;
14856 *)
14857 # FIXME: insert proper C++ library support
14858 ld_shlibs_CXX=no
14859 ;;
14860 esac
14861 ;;
14862
14863 solaris*)
14864 case $cc_basename in
14865 CC*)
14866 # Sun C++ 4.2, 5.x and Centerline C++
14867 archive_cmds_need_lc_CXX=yes
14868 no_undefined_flag_CXX=' -zdefs'
14869 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14870 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14871 $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'
14872
14873 hardcode_libdir_flag_spec_CXX='-R$libdir'
14874 hardcode_shlibpath_var_CXX=no
14875 case $host_os in
14876 solaris2.[0-5] | solaris2.[0-5].*) ;;
14877 *)
14878 # The compiler driver will combine and reorder linker options,
14879 # but understands `-z linker_flag'.
14880 # Supported since Solaris 2.6 (maybe 2.5.1?)
14881 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14882 ;;
14883 esac
14884 link_all_deplibs_CXX=yes
14885
14886 output_verbose_link_cmd='echo'
14887
14888 # Archives containing C++ object files must be created using
14889 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14890 # necessary to make sure instantiated templates are included
14891 # in the archive.
14892 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14893 ;;
14894 gcx*)
14895 # Green Hills C++ Compiler
14896 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14897
14898 # The C++ compiler must be used to create the archive.
14899 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14900 ;;
14901 *)
14902 # GNU C++ compiler with Solaris linker
14903 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14904 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14905 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14906 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14907 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14908 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14909
14910 # Commands to make compiler produce verbose output that lists
14911 # what "hidden" libraries, object files and flags are used when
14912 # linking a shared library.
14913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14914 else
14915 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14916 # platform.
14917 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14918 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14919 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14920
14921 # Commands to make compiler produce verbose output that lists
14922 # what "hidden" libraries, object files and flags are used when
14923 # linking a shared library.
14924 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14925 fi
14926
14927 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14928 case $host_os in
14929 solaris2.[0-5] | solaris2.[0-5].*) ;;
14930 *)
14931 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14932 ;;
14933 esac
14934 fi
14935 ;;
14936 esac
14937 ;;
14938
14939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14940 no_undefined_flag_CXX='${wl}-z,text'
14941 archive_cmds_need_lc_CXX=no
14942 hardcode_shlibpath_var_CXX=no
14943 runpath_var='LD_RUN_PATH'
14944
14945 case $cc_basename in
14946 CC*)
14947 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14949 ;;
14950 *)
14951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 ;;
14954 esac
14955 ;;
14956
14957 sysv5* | sco3.2v5* | sco5v6*)
14958 # Note: We can NOT use -z defs as we might desire, because we do not
14959 # link with -lc, and that would cause any symbols used from libc to
14960 # always be unresolved, which means just about no library would
14961 # ever link correctly. If we're not using GNU ld we use -z text
14962 # though, which does catch some bad symbols but isn't as heavy-handed
14963 # as -z defs.
14964 no_undefined_flag_CXX='${wl}-z,text'
14965 allow_undefined_flag_CXX='${wl}-z,nodefs'
14966 archive_cmds_need_lc_CXX=no
14967 hardcode_shlibpath_var_CXX=no
14968 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14969 hardcode_libdir_separator_CXX=':'
14970 link_all_deplibs_CXX=yes
14971 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14972 runpath_var='LD_RUN_PATH'
14973
14974 case $cc_basename in
14975 CC*)
14976 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14977 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 ;;
14979 *)
14980 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 ;;
14983 esac
14984 ;;
14985
14986 tandem*)
14987 case $cc_basename in
14988 NCC*)
14989 # NonStop-UX NCC 3.20
14990 # FIXME: insert proper C++ library support
14991 ld_shlibs_CXX=no
14992 ;;
14993 *)
14994 # FIXME: insert proper C++ library support
14995 ld_shlibs_CXX=no
14996 ;;
14997 esac
14998 ;;
14999
15000 vxworks*)
15001 # FIXME: insert proper C++ library support
15002 ld_shlibs_CXX=no
15003 ;;
15004
15005 *)
15006 # FIXME: insert proper C++ library support
15007 ld_shlibs_CXX=no
15008 ;;
15009 esac
15010
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15012 $as_echo "$ld_shlibs_CXX" >&6; }
15013 test "$ld_shlibs_CXX" = no && can_build_shared=no
15014
15015 GCC_CXX="$GXX"
15016 LD_CXX="$LD"
15017
15018 ## CAVEAT EMPTOR:
15019 ## There is no encapsulation within the following macros, do not change
15020 ## the running order or otherwise move them around unless you know exactly
15021 ## what you are doing...
15022 # Dependencies to place before and after the object being linked:
15023 predep_objects_CXX=
15024 postdep_objects_CXX=
15025 predeps_CXX=
15026 postdeps_CXX=
15027 compiler_lib_search_path_CXX=
15028
15029 cat > conftest.$ac_ext <<_LT_EOF
15030 class Foo
15031 {
15032 public:
15033 Foo (void) { a = 0; }
15034 private:
15035 int a;
15036 };
15037 _LT_EOF
15038
15039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15040 (eval $ac_compile) 2>&5
15041 ac_status=$?
15042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15043 test $ac_status = 0; }; then
15044 # Parse the compiler output and extract the necessary
15045 # objects, libraries and library flags.
15046
15047 # Sentinel used to keep track of whether or not we are before
15048 # the conftest object file.
15049 pre_test_object_deps_done=no
15050
15051 for p in `eval "$output_verbose_link_cmd"`; do
15052 case $p in
15053
15054 -L* | -R* | -l*)
15055 # Some compilers place space between "-{L,R}" and the path.
15056 # Remove the space.
15057 if test $p = "-L" ||
15058 test $p = "-R"; then
15059 prev=$p
15060 continue
15061 else
15062 prev=
15063 fi
15064
15065 if test "$pre_test_object_deps_done" = no; then
15066 case $p in
15067 -L* | -R*)
15068 # Internal compiler library paths should come after those
15069 # provided the user. The postdeps already come after the
15070 # user supplied libs so there is no need to process them.
15071 if test -z "$compiler_lib_search_path_CXX"; then
15072 compiler_lib_search_path_CXX="${prev}${p}"
15073 else
15074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15075 fi
15076 ;;
15077 # The "-l" case would never come before the object being
15078 # linked, so don't bother handling this case.
15079 esac
15080 else
15081 if test -z "$postdeps_CXX"; then
15082 postdeps_CXX="${prev}${p}"
15083 else
15084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15085 fi
15086 fi
15087 ;;
15088
15089 *.$objext)
15090 # This assumes that the test object file only shows up
15091 # once in the compiler output.
15092 if test "$p" = "conftest.$objext"; then
15093 pre_test_object_deps_done=yes
15094 continue
15095 fi
15096
15097 if test "$pre_test_object_deps_done" = no; then
15098 if test -z "$predep_objects_CXX"; then
15099 predep_objects_CXX="$p"
15100 else
15101 predep_objects_CXX="$predep_objects_CXX $p"
15102 fi
15103 else
15104 if test -z "$postdep_objects_CXX"; then
15105 postdep_objects_CXX="$p"
15106 else
15107 postdep_objects_CXX="$postdep_objects_CXX $p"
15108 fi
15109 fi
15110 ;;
15111
15112 *) ;; # Ignore the rest.
15113
15114 esac
15115 done
15116
15117 # Clean up.
15118 rm -f a.out a.exe
15119 else
15120 echo "libtool.m4: error: problem compiling CXX test program"
15121 fi
15122
15123 $RM -f confest.$objext
15124
15125 # PORTME: override above test on systems where it is broken
15126 case $host_os in
15127 interix[3-9]*)
15128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15129 # hack all around it, let's just trust "g++" to DTRT.
15130 predep_objects_CXX=
15131 postdep_objects_CXX=
15132 postdeps_CXX=
15133 ;;
15134
15135 linux*)
15136 case `$CC -V 2>&1 | sed 5q` in
15137 *Sun\ C*)
15138 # Sun C++ 5.9
15139
15140 # The more standards-conforming stlport4 library is
15141 # incompatible with the Cstd library. Avoid specifying
15142 # it if it's in CXXFLAGS. Ignore libCrun as
15143 # -library=stlport4 depends on it.
15144 case " $CXX $CXXFLAGS " in
15145 *" -library=stlport4 "*)
15146 solaris_use_stlport4=yes
15147 ;;
15148 esac
15149
15150 if test "$solaris_use_stlport4" != yes; then
15151 postdeps_CXX='-library=Cstd -library=Crun'
15152 fi
15153 ;;
15154 esac
15155 ;;
15156
15157 solaris*)
15158 case $cc_basename in
15159 CC*)
15160 # The more standards-conforming stlport4 library is
15161 # incompatible with the Cstd library. Avoid specifying
15162 # it if it's in CXXFLAGS. Ignore libCrun as
15163 # -library=stlport4 depends on it.
15164 case " $CXX $CXXFLAGS " in
15165 *" -library=stlport4 "*)
15166 solaris_use_stlport4=yes
15167 ;;
15168 esac
15169
15170 # Adding this requires a known-good setup of shared libraries for
15171 # Sun compiler versions before 5.6, else PIC objects from an old
15172 # archive will be linked into the output, leading to subtle bugs.
15173 if test "$solaris_use_stlport4" != yes; then
15174 postdeps_CXX='-library=Cstd -library=Crun'
15175 fi
15176 ;;
15177 esac
15178 ;;
15179 esac
15180
15181
15182 case " $postdeps_CXX " in
15183 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15184 esac
15185 compiler_lib_search_dirs_CXX=
15186 if test -n "${compiler_lib_search_path_CXX}"; then
15187 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15188 fi
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220 lt_prog_compiler_wl_CXX=
15221 lt_prog_compiler_pic_CXX=
15222 lt_prog_compiler_static_CXX=
15223
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15225 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15226
15227 # C++ specific cases for pic, static, wl, etc.
15228 if test "$GXX" = yes; then
15229 lt_prog_compiler_wl_CXX='-Wl,'
15230 lt_prog_compiler_static_CXX='-static'
15231
15232 case $host_os in
15233 aix*)
15234 # All AIX code is PIC.
15235 if test "$host_cpu" = ia64; then
15236 # AIX 5 now supports IA64 processor
15237 lt_prog_compiler_static_CXX='-Bstatic'
15238 fi
15239 ;;
15240
15241 amigaos*)
15242 case $host_cpu in
15243 powerpc)
15244 # see comment about AmigaOS4 .so support
15245 lt_prog_compiler_pic_CXX='-fPIC'
15246 ;;
15247 m68k)
15248 # FIXME: we need at least 68020 code to build shared libraries, but
15249 # adding the `-m68020' flag to GCC prevents building anything better,
15250 # like `-m68040'.
15251 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15252 ;;
15253 esac
15254 ;;
15255
15256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15257 # PIC is the default for these OSes.
15258 ;;
15259 mingw* | cygwin* | os2* | pw32* | cegcc*)
15260 # This hack is so that the source file can tell whether it is being
15261 # built for inclusion in a dll (and should export symbols for example).
15262 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15263 # (--disable-auto-import) libraries
15264 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15265 ;;
15266 darwin* | rhapsody*)
15267 # PIC is the default on this platform
15268 # Common symbols not allowed in MH_DYLIB files
15269 lt_prog_compiler_pic_CXX='-fno-common'
15270 ;;
15271 *djgpp*)
15272 # DJGPP does not support shared libraries at all
15273 lt_prog_compiler_pic_CXX=
15274 ;;
15275 interix[3-9]*)
15276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15277 # Instead, we relocate shared libraries at runtime.
15278 ;;
15279 sysv4*MP*)
15280 if test -d /usr/nec; then
15281 lt_prog_compiler_pic_CXX=-Kconform_pic
15282 fi
15283 ;;
15284 hpux*)
15285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15287 # sets the default TLS model and affects inlining.
15288 case $host_cpu in
15289 hppa*64*)
15290 ;;
15291 *)
15292 lt_prog_compiler_pic_CXX='-fPIC'
15293 ;;
15294 esac
15295 ;;
15296 *qnx* | *nto*)
15297 # QNX uses GNU C++, but need to define -shared option too, otherwise
15298 # it will coredump.
15299 lt_prog_compiler_pic_CXX='-fPIC -shared'
15300 ;;
15301 *)
15302 lt_prog_compiler_pic_CXX='-fPIC'
15303 ;;
15304 esac
15305 else
15306 case $host_os in
15307 aix[4-9]*)
15308 # All AIX code is PIC.
15309 if test "$host_cpu" = ia64; then
15310 # AIX 5 now supports IA64 processor
15311 lt_prog_compiler_static_CXX='-Bstatic'
15312 else
15313 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15314 fi
15315 ;;
15316 chorus*)
15317 case $cc_basename in
15318 cxch68*)
15319 # Green Hills C++ Compiler
15320 # _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"
15321 ;;
15322 esac
15323 ;;
15324 dgux*)
15325 case $cc_basename in
15326 ec++*)
15327 lt_prog_compiler_pic_CXX='-KPIC'
15328 ;;
15329 ghcx*)
15330 # Green Hills C++ Compiler
15331 lt_prog_compiler_pic_CXX='-pic'
15332 ;;
15333 *)
15334 ;;
15335 esac
15336 ;;
15337 freebsd* | dragonfly*)
15338 # FreeBSD uses GNU C++
15339 ;;
15340 hpux9* | hpux10* | hpux11*)
15341 case $cc_basename in
15342 CC*)
15343 lt_prog_compiler_wl_CXX='-Wl,'
15344 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15345 if test "$host_cpu" != ia64; then
15346 lt_prog_compiler_pic_CXX='+Z'
15347 fi
15348 ;;
15349 aCC*)
15350 lt_prog_compiler_wl_CXX='-Wl,'
15351 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15352 case $host_cpu in
15353 hppa*64*|ia64*)
15354 # +Z the default
15355 ;;
15356 *)
15357 lt_prog_compiler_pic_CXX='+Z'
15358 ;;
15359 esac
15360 ;;
15361 *)
15362 ;;
15363 esac
15364 ;;
15365 interix*)
15366 # This is c89, which is MS Visual C++ (no shared libs)
15367 # Anyone wants to do a port?
15368 ;;
15369 irix5* | irix6* | nonstopux*)
15370 case $cc_basename in
15371 CC*)
15372 lt_prog_compiler_wl_CXX='-Wl,'
15373 lt_prog_compiler_static_CXX='-non_shared'
15374 # CC pic flag -KPIC is the default.
15375 ;;
15376 *)
15377 ;;
15378 esac
15379 ;;
15380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15381 case $cc_basename in
15382 KCC*)
15383 # KAI C++ Compiler
15384 lt_prog_compiler_wl_CXX='--backend -Wl,'
15385 lt_prog_compiler_pic_CXX='-fPIC'
15386 ;;
15387 ecpc* )
15388 # old Intel C++ for x86_64 which still supported -KPIC.
15389 lt_prog_compiler_wl_CXX='-Wl,'
15390 lt_prog_compiler_pic_CXX='-KPIC'
15391 lt_prog_compiler_static_CXX='-static'
15392 ;;
15393 icpc* )
15394 # Intel C++, used to be incompatible with GCC.
15395 # ICC 10 doesn't accept -KPIC any more.
15396 lt_prog_compiler_wl_CXX='-Wl,'
15397 lt_prog_compiler_pic_CXX='-fPIC'
15398 lt_prog_compiler_static_CXX='-static'
15399 ;;
15400 pgCC* | pgcpp*)
15401 # Portland Group C++ compiler
15402 lt_prog_compiler_wl_CXX='-Wl,'
15403 lt_prog_compiler_pic_CXX='-fpic'
15404 lt_prog_compiler_static_CXX='-Bstatic'
15405 ;;
15406 cxx*)
15407 # Compaq C++
15408 # Make sure the PIC flag is empty. It appears that all Alpha
15409 # Linux and Compaq Tru64 Unix objects are PIC.
15410 lt_prog_compiler_pic_CXX=
15411 lt_prog_compiler_static_CXX='-non_shared'
15412 ;;
15413 xlc* | xlC*)
15414 # IBM XL 8.0 on PPC
15415 lt_prog_compiler_wl_CXX='-Wl,'
15416 lt_prog_compiler_pic_CXX='-qpic'
15417 lt_prog_compiler_static_CXX='-qstaticlink'
15418 ;;
15419 *)
15420 case `$CC -V 2>&1 | sed 5q` in
15421 *Sun\ C*)
15422 # Sun C++ 5.9
15423 lt_prog_compiler_pic_CXX='-KPIC'
15424 lt_prog_compiler_static_CXX='-Bstatic'
15425 lt_prog_compiler_wl_CXX='-Qoption ld '
15426 ;;
15427 esac
15428 ;;
15429 esac
15430 ;;
15431 lynxos*)
15432 ;;
15433 m88k*)
15434 ;;
15435 mvs*)
15436 case $cc_basename in
15437 cxx*)
15438 lt_prog_compiler_pic_CXX='-W c,exportall'
15439 ;;
15440 *)
15441 ;;
15442 esac
15443 ;;
15444 netbsd*)
15445 ;;
15446 *qnx* | *nto*)
15447 # QNX uses GNU C++, but need to define -shared option too, otherwise
15448 # it will coredump.
15449 lt_prog_compiler_pic_CXX='-fPIC -shared'
15450 ;;
15451 osf3* | osf4* | osf5*)
15452 case $cc_basename in
15453 KCC*)
15454 lt_prog_compiler_wl_CXX='--backend -Wl,'
15455 ;;
15456 RCC*)
15457 # Rational C++ 2.4.1
15458 lt_prog_compiler_pic_CXX='-pic'
15459 ;;
15460 cxx*)
15461 # Digital/Compaq C++
15462 lt_prog_compiler_wl_CXX='-Wl,'
15463 # Make sure the PIC flag is empty. It appears that all Alpha
15464 # Linux and Compaq Tru64 Unix objects are PIC.
15465 lt_prog_compiler_pic_CXX=
15466 lt_prog_compiler_static_CXX='-non_shared'
15467 ;;
15468 *)
15469 ;;
15470 esac
15471 ;;
15472 psos*)
15473 ;;
15474 solaris*)
15475 case $cc_basename in
15476 CC*)
15477 # Sun C++ 4.2, 5.x and Centerline C++
15478 lt_prog_compiler_pic_CXX='-KPIC'
15479 lt_prog_compiler_static_CXX='-Bstatic'
15480 lt_prog_compiler_wl_CXX='-Qoption ld '
15481 ;;
15482 gcx*)
15483 # Green Hills C++ Compiler
15484 lt_prog_compiler_pic_CXX='-PIC'
15485 ;;
15486 *)
15487 ;;
15488 esac
15489 ;;
15490 sunos4*)
15491 case $cc_basename in
15492 CC*)
15493 # Sun C++ 4.x
15494 lt_prog_compiler_pic_CXX='-pic'
15495 lt_prog_compiler_static_CXX='-Bstatic'
15496 ;;
15497 lcc*)
15498 # Lucid
15499 lt_prog_compiler_pic_CXX='-pic'
15500 ;;
15501 *)
15502 ;;
15503 esac
15504 ;;
15505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15506 case $cc_basename in
15507 CC*)
15508 lt_prog_compiler_wl_CXX='-Wl,'
15509 lt_prog_compiler_pic_CXX='-KPIC'
15510 lt_prog_compiler_static_CXX='-Bstatic'
15511 ;;
15512 esac
15513 ;;
15514 tandem*)
15515 case $cc_basename in
15516 NCC*)
15517 # NonStop-UX NCC 3.20
15518 lt_prog_compiler_pic_CXX='-KPIC'
15519 ;;
15520 *)
15521 ;;
15522 esac
15523 ;;
15524 vxworks*)
15525 ;;
15526 *)
15527 lt_prog_compiler_can_build_shared_CXX=no
15528 ;;
15529 esac
15530 fi
15531
15532 case $host_os in
15533 # For platforms which do not support PIC, -DPIC is meaningless:
15534 *djgpp*)
15535 lt_prog_compiler_pic_CXX=
15536 ;;
15537 *)
15538 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15539 ;;
15540 esac
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15542 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15543
15544
15545
15546 #
15547 # Check to make sure the PIC flag actually works.
15548 #
15549 if test -n "$lt_prog_compiler_pic_CXX"; then
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15551 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15552 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15553 $as_echo_n "(cached) " >&6
15554 else
15555 lt_cv_prog_compiler_pic_works_CXX=no
15556 ac_outfile=conftest.$ac_objext
15557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15558 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15559 # Insert the option either (1) after the last *FLAGS variable, or
15560 # (2) before a word containing "conftest.", or (3) at the end.
15561 # Note that $ac_compile itself does not contain backslashes and begins
15562 # with a dollar sign (not a hyphen), so the echo should work correctly.
15563 # The option is referenced via a variable to avoid confusing sed.
15564 lt_compile=`echo "$ac_compile" | $SED \
15565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15567 -e 's:$: $lt_compiler_flag:'`
15568 (eval echo "\"\$as_me:15568: $lt_compile\"" >&5)
15569 (eval "$lt_compile" 2>conftest.err)
15570 ac_status=$?
15571 cat conftest.err >&5
15572 echo "$as_me:15572: \$? = $ac_status" >&5
15573 if (exit $ac_status) && test -s "$ac_outfile"; then
15574 # The compiler can only warn and ignore the option if not recognized
15575 # So say no if there are warnings other than the usual output.
15576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler_pic_works_CXX=yes
15580 fi
15581 fi
15582 $RM conftest*
15583
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15586 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15587
15588 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15589 case $lt_prog_compiler_pic_CXX in
15590 "" | " "*) ;;
15591 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15592 esac
15593 else
15594 lt_prog_compiler_pic_CXX=
15595 lt_prog_compiler_can_build_shared_CXX=no
15596 fi
15597
15598 fi
15599
15600
15601
15602 #
15603 # Check to make sure the static flag actually works.
15604 #
15605 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15607 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15608 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15611 lt_cv_prog_compiler_static_works_CXX=no
15612 save_LDFLAGS="$LDFLAGS"
15613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15616 # The linker can only warn and ignore the option if not recognized
15617 # So say no if there are warnings
15618 if test -s conftest.err; then
15619 # Append any errors to the config.log.
15620 cat conftest.err 1>&5
15621 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15623 if diff conftest.exp conftest.er2 >/dev/null; then
15624 lt_cv_prog_compiler_static_works_CXX=yes
15625 fi
15626 else
15627 lt_cv_prog_compiler_static_works_CXX=yes
15628 fi
15629 fi
15630 $RM -r conftest*
15631 LDFLAGS="$save_LDFLAGS"
15632
15633 fi
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15635 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15636
15637 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15638 :
15639 else
15640 lt_prog_compiler_static_CXX=
15641 fi
15642
15643
15644
15645
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15647 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15648 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 lt_cv_prog_compiler_c_o_CXX=no
15652 $RM -r conftest 2>/dev/null
15653 mkdir conftest
15654 cd conftest
15655 mkdir out
15656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15657
15658 lt_compiler_flag="-o out/conftest2.$ac_objext"
15659 # Insert the option either (1) after the last *FLAGS variable, or
15660 # (2) before a word containing "conftest.", or (3) at the end.
15661 # Note that $ac_compile itself does not contain backslashes and begins
15662 # with a dollar sign (not a hyphen), so the echo should work correctly.
15663 lt_compile=`echo "$ac_compile" | $SED \
15664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15666 -e 's:$: $lt_compiler_flag:'`
15667 (eval echo "\"\$as_me:15667: $lt_compile\"" >&5)
15668 (eval "$lt_compile" 2>out/conftest.err)
15669 ac_status=$?
15670 cat out/conftest.err >&5
15671 echo "$as_me:15671: \$? = $ac_status" >&5
15672 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15673 then
15674 # The compiler can only warn and ignore the option if not recognized
15675 # So say no if there are warnings
15676 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15679 lt_cv_prog_compiler_c_o_CXX=yes
15680 fi
15681 fi
15682 chmod u+w . 2>&5
15683 $RM conftest*
15684 # SGI C++ compiler will create directory out/ii_files/ for
15685 # template instantiation
15686 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15687 $RM out/* && rmdir out
15688 cd ..
15689 $RM -r conftest
15690 $RM conftest*
15691
15692 fi
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15694 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15695
15696
15697
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15699 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15700 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 lt_cv_prog_compiler_c_o_CXX=no
15704 $RM -r conftest 2>/dev/null
15705 mkdir conftest
15706 cd conftest
15707 mkdir out
15708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15709
15710 lt_compiler_flag="-o out/conftest2.$ac_objext"
15711 # Insert the option either (1) after the last *FLAGS variable, or
15712 # (2) before a word containing "conftest.", or (3) at the end.
15713 # Note that $ac_compile itself does not contain backslashes and begins
15714 # with a dollar sign (not a hyphen), so the echo should work correctly.
15715 lt_compile=`echo "$ac_compile" | $SED \
15716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15718 -e 's:$: $lt_compiler_flag:'`
15719 (eval echo "\"\$as_me:15719: $lt_compile\"" >&5)
15720 (eval "$lt_compile" 2>out/conftest.err)
15721 ac_status=$?
15722 cat out/conftest.err >&5
15723 echo "$as_me:15723: \$? = $ac_status" >&5
15724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15725 then
15726 # The compiler can only warn and ignore the option if not recognized
15727 # So say no if there are warnings
15728 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15731 lt_cv_prog_compiler_c_o_CXX=yes
15732 fi
15733 fi
15734 chmod u+w . 2>&5
15735 $RM conftest*
15736 # SGI C++ compiler will create directory out/ii_files/ for
15737 # template instantiation
15738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15739 $RM out/* && rmdir out
15740 cd ..
15741 $RM -r conftest
15742 $RM conftest*
15743
15744 fi
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15746 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15747
15748
15749
15750
15751 hard_links="nottested"
15752 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15753 # do not overwrite the value of need_locks provided by the user
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15755 $as_echo_n "checking if we can lock with hard links... " >&6; }
15756 hard_links=yes
15757 $RM conftest*
15758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15759 touch conftest.a
15760 ln conftest.a conftest.b 2>&5 || hard_links=no
15761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15763 $as_echo "$hard_links" >&6; }
15764 if test "$hard_links" = no; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15766 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15767 need_locks=warn
15768 fi
15769 else
15770 need_locks=no
15771 fi
15772
15773
15774
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15776 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15777
15778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15779 case $host_os in
15780 aix[4-9]*)
15781 # If we're using GNU nm, then we don't want the "-C" option.
15782 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15783 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15784 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'
15785 else
15786 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'
15787 fi
15788 ;;
15789 pw32*)
15790 export_symbols_cmds_CXX="$ltdll_cmds"
15791 ;;
15792 cygwin* | mingw* | cegcc*)
15793 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'
15794 ;;
15795 *)
15796 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15797 ;;
15798 esac
15799 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15800
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15802 $as_echo "$ld_shlibs_CXX" >&6; }
15803 test "$ld_shlibs_CXX" = no && can_build_shared=no
15804
15805 with_gnu_ld_CXX=$with_gnu_ld
15806
15807
15808
15809
15810
15811
15812 #
15813 # Do we need to explicitly link libc?
15814 #
15815 case "x$archive_cmds_need_lc_CXX" in
15816 x|xyes)
15817 # Assume -lc should be added
15818 archive_cmds_need_lc_CXX=yes
15819
15820 if test "$enable_shared" = yes && test "$GCC" = yes; then
15821 case $archive_cmds_CXX in
15822 *'~'*)
15823 # FIXME: we may have to deal with multi-command sequences.
15824 ;;
15825 '$CC '*)
15826 # Test whether the compiler implicitly links with -lc since on some
15827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15828 # to ld, don't add -lc before -lgcc.
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15830 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15831 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 $RM conftest*
15835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15836
15837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15838 (eval $ac_compile) 2>&5
15839 ac_status=$?
15840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 test $ac_status = 0; } 2>conftest.err; then
15842 soname=conftest
15843 lib=conftest
15844 libobjs=conftest.$ac_objext
15845 deplibs=
15846 wl=$lt_prog_compiler_wl_CXX
15847 pic_flag=$lt_prog_compiler_pic_CXX
15848 compiler_flags=-v
15849 linker_flags=-v
15850 verstring=
15851 output_objdir=.
15852 libname=conftest
15853 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15854 allow_undefined_flag_CXX=
15855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15856 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15857 ac_status=$?
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; }
15860 then
15861 lt_cv_archive_cmds_need_lc_CXX=no
15862 else
15863 lt_cv_archive_cmds_need_lc_CXX=yes
15864 fi
15865 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15866 else
15867 cat conftest.err 1>&5
15868 fi
15869 $RM conftest*
15870
15871 fi
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15873 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15874 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15875 ;;
15876 esac
15877 fi
15878 ;;
15879 esac
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15945 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15946
15947 library_names_spec=
15948 libname_spec='lib$name'
15949 soname_spec=
15950 shrext_cmds=".so"
15951 postinstall_cmds=
15952 postuninstall_cmds=
15953 finish_cmds=
15954 finish_eval=
15955 shlibpath_var=
15956 shlibpath_overrides_runpath=unknown
15957 version_type=none
15958 dynamic_linker="$host_os ld.so"
15959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15960 need_lib_prefix=unknown
15961 hardcode_into_libs=no
15962
15963 # when you set need_version to no, make sure it does not cause -set_version
15964 # flags to be left without arguments
15965 need_version=unknown
15966
15967 case $host_os in
15968 aix3*)
15969 version_type=linux
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15971 shlibpath_var=LIBPATH
15972
15973 # AIX 3 has no versioning support, so we append a major version to the name.
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 ;;
15976
15977 aix[4-9]*)
15978 version_type=linux
15979 need_lib_prefix=no
15980 need_version=no
15981 hardcode_into_libs=yes
15982 if test "$host_cpu" = ia64; then
15983 # AIX 5 supports IA64
15984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 else
15987 # With GCC up to 2.95.x, collect2 would create an import file
15988 # for dependence libraries. The import file would start with
15989 # the line `#! .'. This would cause the generated library to
15990 # depend on `.', always an invalid library. This was fixed in
15991 # development snapshots of GCC prior to 3.0.
15992 case $host_os in
15993 aix4 | aix4.[01] | aix4.[01].*)
15994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15995 echo ' yes '
15996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15997 :
15998 else
15999 can_build_shared=no
16000 fi
16001 ;;
16002 esac
16003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16004 # soname into executable. Probably we can add versioning support to
16005 # collect2, so additional links can be useful in future.
16006 if test "$aix_use_runtimelinking" = yes; then
16007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16008 # instead of lib<name>.a to let people know that these are not
16009 # typical AIX shared libraries.
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 else
16012 # We preserve .a as extension for shared libraries through AIX4.2
16013 # and later when we are not doing run time linking.
16014 library_names_spec='${libname}${release}.a $libname.a'
16015 soname_spec='${libname}${release}${shared_ext}$major'
16016 fi
16017 shlibpath_var=LIBPATH
16018 fi
16019 ;;
16020
16021 amigaos*)
16022 case $host_cpu in
16023 powerpc)
16024 # Since July 2007 AmigaOS4 officially supports .so libraries.
16025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 ;;
16028 m68k)
16029 library_names_spec='$libname.ixlibrary $libname.a'
16030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16031 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'
16032 ;;
16033 esac
16034 ;;
16035
16036 beos*)
16037 library_names_spec='${libname}${shared_ext}'
16038 dynamic_linker="$host_os ld.so"
16039 shlibpath_var=LIBRARY_PATH
16040 ;;
16041
16042 bsdi[45]*)
16043 version_type=linux
16044 need_version=no
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16051 # the default ld.so.conf also contains /usr/contrib/lib and
16052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16053 # libtool to hard-code these into programs
16054 ;;
16055
16056 cygwin* | mingw* | pw32* | cegcc*)
16057 version_type=windows
16058 shrext_cmds=".dll"
16059 need_version=no
16060 need_lib_prefix=no
16061
16062 case $GCC,$host_os in
16063 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16064 library_names_spec='$libname.dll.a'
16065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16066 postinstall_cmds='base_file=`basename \${file}`~
16067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16068 dldir=$destdir/`dirname \$dlpath`~
16069 test -d \$dldir || mkdir -p \$dldir~
16070 $install_prog $dir/$dlname \$dldir/$dlname~
16071 chmod a+x \$dldir/$dlname~
16072 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16073 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16074 fi'
16075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076 dlpath=$dir/\$dldll~
16077 $RM \$dlpath'
16078 shlibpath_overrides_runpath=yes
16079
16080 case $host_os in
16081 cygwin*)
16082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16085 ;;
16086 mingw* | cegcc*)
16087 # MinGW DLLs use traditional 'lib' prefix
16088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16091 # It is most probably a Windows format PATH printed by
16092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093 # path with ; separators, and with drive letters. We can handle the
16094 # drive letters (cygwin fileutils understands them), so leave them,
16095 # especially as we might pass files found there to a mingw objdump,
16096 # which wouldn't understand a cygwinified path. Ahh.
16097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16098 else
16099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16100 fi
16101 ;;
16102 pw32*)
16103 # pw32 DLLs use 'pw' prefix rather than 'lib'
16104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105 ;;
16106 esac
16107 ;;
16108
16109 *)
16110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16111 ;;
16112 esac
16113 dynamic_linker='Win32 ld.exe'
16114 # FIXME: first we should search . and the directory the executable is in
16115 shlibpath_var=PATH
16116 ;;
16117
16118 darwin* | rhapsody*)
16119 dynamic_linker="$host_os dyld"
16120 version_type=darwin
16121 need_lib_prefix=no
16122 need_version=no
16123 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16124 soname_spec='${libname}${release}${major}$shared_ext'
16125 shlibpath_overrides_runpath=yes
16126 shlibpath_var=DYLD_LIBRARY_PATH
16127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16128
16129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16130 ;;
16131
16132 dgux*)
16133 version_type=linux
16134 need_lib_prefix=no
16135 need_version=no
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 shlibpath_var=LD_LIBRARY_PATH
16139 ;;
16140
16141 freebsd1*)
16142 dynamic_linker=no
16143 ;;
16144
16145 freebsd* | dragonfly*)
16146 # DragonFly does not have aout. When/if they implement a new
16147 # versioning mechanism, adjust this.
16148 if test -x /usr/bin/objformat; then
16149 objformat=`/usr/bin/objformat`
16150 else
16151 case $host_os in
16152 freebsd[123]*) objformat=aout ;;
16153 *) objformat=elf ;;
16154 esac
16155 fi
16156 version_type=freebsd-$objformat
16157 case $version_type in
16158 freebsd-elf*)
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16160 need_version=no
16161 need_lib_prefix=no
16162 ;;
16163 freebsd-*)
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16165 need_version=yes
16166 ;;
16167 esac
16168 shlibpath_var=LD_LIBRARY_PATH
16169 case $host_os in
16170 freebsd2*)
16171 shlibpath_overrides_runpath=yes
16172 ;;
16173 freebsd3.[01]* | freebsdelf3.[01]*)
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 ;;
16177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16179 shlibpath_overrides_runpath=no
16180 hardcode_into_libs=yes
16181 ;;
16182 *) # from 4.6 on, and DragonFly
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16185 ;;
16186 esac
16187 ;;
16188
16189 gnu*)
16190 version_type=linux
16191 need_lib_prefix=no
16192 need_version=no
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 hardcode_into_libs=yes
16197 ;;
16198
16199 hpux9* | hpux10* | hpux11*)
16200 # Give a soname corresponding to the major version so that dld.sl refuses to
16201 # link against other versions.
16202 version_type=sunos
16203 need_lib_prefix=no
16204 need_version=no
16205 case $host_cpu in
16206 ia64*)
16207 shrext_cmds='.so'
16208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.so"
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 if test "X$HPUX_IA64_MODE" = X32; then
16215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16216 else
16217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16218 fi
16219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220 ;;
16221 hppa*64*)
16222 shrext_cmds='.sl'
16223 hardcode_into_libs=yes
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231 ;;
16232 *)
16233 shrext_cmds='.sl'
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=SHLIB_PATH
16236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 ;;
16240 esac
16241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242 postinstall_cmds='chmod 555 $lib'
16243 ;;
16244
16245 interix[3-9]*)
16246 version_type=linux
16247 need_lib_prefix=no
16248 need_version=no
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 shlibpath_overrides_runpath=no
16254 hardcode_into_libs=yes
16255 ;;
16256
16257 irix5* | irix6* | nonstopux*)
16258 case $host_os in
16259 nonstopux*) version_type=nonstopux ;;
16260 *)
16261 if test "$lt_cv_prog_gnu_ld" = yes; then
16262 version_type=linux
16263 else
16264 version_type=irix
16265 fi ;;
16266 esac
16267 need_lib_prefix=no
16268 need_version=no
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16271 case $host_os in
16272 irix5* | nonstopux*)
16273 libsuff= shlibsuff=
16274 ;;
16275 *)
16276 case $LD in # libtool.m4 will add one of these switches to LD
16277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16278 libsuff= shlibsuff= libmagic=32-bit;;
16279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16280 libsuff=32 shlibsuff=N32 libmagic=N32;;
16281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16283 *) libsuff= shlibsuff= libmagic=never-match;;
16284 esac
16285 ;;
16286 esac
16287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16288 shlibpath_overrides_runpath=no
16289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16291 hardcode_into_libs=yes
16292 ;;
16293
16294 # No shared lib support for Linux oldld, aout, or coff.
16295 linux*oldld* | linux*aout* | linux*coff*)
16296 dynamic_linker=no
16297 ;;
16298
16299 # This must be Linux ELF.
16300 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16301 version_type=linux
16302 need_lib_prefix=no
16303 need_version=no
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=no
16309
16310 # Some binutils ld are patched to set DT_RUNPATH
16311 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 lt_cv_shlibpath_overrides_runpath=no
16315 save_LDFLAGS=$LDFLAGS
16316 save_libdir=$libdir
16317 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16318 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16319 if test x$gcc_no_link = xyes; then
16320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16321 fi
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324
16325 int
16326 main ()
16327 {
16328
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 if ac_fn_cxx_try_link "$LINENO"; then :
16334 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16335 lt_cv_shlibpath_overrides_runpath=yes
16336 fi
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext \
16339 conftest$ac_exeext conftest.$ac_ext
16340 LDFLAGS=$save_LDFLAGS
16341 libdir=$save_libdir
16342
16343 fi
16344
16345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16346
16347 # This implies no fast_install, which is unacceptable.
16348 # Some rework will be needed to allow for fast_install
16349 # before this can be enabled.
16350 hardcode_into_libs=yes
16351
16352 # Append ld.so.conf contents to the search path
16353 if test -f /etc/ld.so.conf; then
16354 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' ' '`
16355 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16356 fi
16357
16358 # We used to test for /lib/ld.so.1 and disable shared libraries on
16359 # powerpc, because MkLinux only supported shared libraries with the
16360 # GNU dynamic linker. Since this was broken with cross compilers,
16361 # most powerpc-linux boxes support dynamic linking these days and
16362 # people can always --disable-shared, the test was removed, and we
16363 # assume the GNU/Linux dynamic linker is in use.
16364 dynamic_linker='GNU/Linux ld.so'
16365 ;;
16366
16367 netbsd*)
16368 version_type=sunos
16369 need_lib_prefix=no
16370 need_version=no
16371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16374 dynamic_linker='NetBSD (a.out) ld.so'
16375 else
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 dynamic_linker='NetBSD ld.elf_so'
16379 fi
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 hardcode_into_libs=yes
16383 ;;
16384
16385 newsos6)
16386 version_type=linux
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 ;;
16391
16392 *nto* | *qnx*)
16393 version_type=qnx
16394 need_lib_prefix=no
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=no
16400 hardcode_into_libs=yes
16401 dynamic_linker='ldqnx.so'
16402 ;;
16403
16404 openbsd*)
16405 version_type=sunos
16406 sys_lib_dlsearch_path_spec="/usr/lib"
16407 need_lib_prefix=no
16408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16409 case $host_os in
16410 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16411 *) need_version=no ;;
16412 esac
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16417 case $host_os in
16418 openbsd2.[89] | openbsd2.[89].*)
16419 shlibpath_overrides_runpath=no
16420 ;;
16421 *)
16422 shlibpath_overrides_runpath=yes
16423 ;;
16424 esac
16425 else
16426 shlibpath_overrides_runpath=yes
16427 fi
16428 ;;
16429
16430 os2*)
16431 libname_spec='$name'
16432 shrext_cmds=".dll"
16433 need_lib_prefix=no
16434 library_names_spec='$libname${shared_ext} $libname.a'
16435 dynamic_linker='OS/2 ld.exe'
16436 shlibpath_var=LIBPATH
16437 ;;
16438
16439 osf3* | osf4* | osf5*)
16440 version_type=osf
16441 need_lib_prefix=no
16442 need_version=no
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16448 ;;
16449
16450 rdos*)
16451 dynamic_linker=no
16452 ;;
16453
16454 solaris*)
16455 version_type=linux
16456 need_lib_prefix=no
16457 need_version=no
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath=yes
16462 hardcode_into_libs=yes
16463 # ldd complains unless libraries are executable
16464 postinstall_cmds='chmod +x $lib'
16465 ;;
16466
16467 sunos4*)
16468 version_type=sunos
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 shlibpath_overrides_runpath=yes
16473 if test "$with_gnu_ld" = yes; then
16474 need_lib_prefix=no
16475 fi
16476 need_version=yes
16477 ;;
16478
16479 sysv4 | sysv4.3*)
16480 version_type=linux
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 case $host_vendor in
16485 sni)
16486 shlibpath_overrides_runpath=no
16487 need_lib_prefix=no
16488 runpath_var=LD_RUN_PATH
16489 ;;
16490 siemens)
16491 need_lib_prefix=no
16492 ;;
16493 motorola)
16494 need_lib_prefix=no
16495 need_version=no
16496 shlibpath_overrides_runpath=no
16497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16498 ;;
16499 esac
16500 ;;
16501
16502 sysv4*MP*)
16503 if test -d /usr/nec ;then
16504 version_type=linux
16505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16506 soname_spec='$libname${shared_ext}.$major'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 fi
16509 ;;
16510
16511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16512 version_type=freebsd-elf
16513 need_lib_prefix=no
16514 need_version=no
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 shlibpath_overrides_runpath=yes
16519 hardcode_into_libs=yes
16520 if test "$with_gnu_ld" = yes; then
16521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16522 else
16523 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16524 case $host_os in
16525 sco3.2v5*)
16526 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16527 ;;
16528 esac
16529 fi
16530 sys_lib_dlsearch_path_spec='/usr/lib'
16531 ;;
16532
16533 tpf*)
16534 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16535 version_type=linux
16536 need_lib_prefix=no
16537 need_version=no
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=no
16541 hardcode_into_libs=yes
16542 ;;
16543
16544 uts4*)
16545 version_type=linux
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 ;;
16550
16551 *)
16552 dynamic_linker=no
16553 ;;
16554 esac
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16556 $as_echo "$dynamic_linker" >&6; }
16557 test "$dynamic_linker" = no && can_build_shared=no
16558
16559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16560 if test "$GCC" = yes; then
16561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16562 fi
16563
16564 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16565 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16566 fi
16567 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16568 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16569 fi
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16607 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16608 hardcode_action_CXX=
16609 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16610 test -n "$runpath_var_CXX" ||
16611 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16612
16613 # We can hardcode non-existent directories.
16614 if test "$hardcode_direct_CXX" != no &&
16615 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16616 # have to relink, otherwise we might link with an installed library
16617 # when we should be linking with a yet-to-be-installed one
16618 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16619 test "$hardcode_minus_L_CXX" != no; then
16620 # Linking always hardcodes the temporary library directory.
16621 hardcode_action_CXX=relink
16622 else
16623 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16624 hardcode_action_CXX=immediate
16625 fi
16626 else
16627 # We cannot hardcode anything, or else we can only hardcode existing
16628 # directories.
16629 hardcode_action_CXX=unsupported
16630 fi
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16632 $as_echo "$hardcode_action_CXX" >&6; }
16633
16634 if test "$hardcode_action_CXX" = relink ||
16635 test "$inherit_rpath_CXX" = yes; then
16636 # Fast installation is not supported
16637 enable_fast_install=no
16638 elif test "$shlibpath_overrides_runpath" = yes ||
16639 test "$enable_shared" = no; then
16640 # Fast installation is not necessary
16641 enable_fast_install=needless
16642 fi
16643
16644
16645
16646
16647
16648
16649
16650 fi # test -n "$compiler"
16651
16652 CC=$lt_save_CC
16653 LDCXX=$LD
16654 LD=$lt_save_LD
16655 GCC=$lt_save_GCC
16656 with_gnu_ld=$lt_save_with_gnu_ld
16657 lt_cv_path_LDCXX=$lt_cv_path_LD
16658 lt_cv_path_LD=$lt_save_path_LD
16659 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16660 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16661 fi # test "$_lt_caught_CXX_error" != yes
16662
16663 ac_ext=c
16664 ac_cpp='$CPP $CPPFLAGS'
16665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681 ac_config_commands="$ac_config_commands libtool"
16682
16683
16684
16685
16686 # Only expand once:
16687
16688
16689
16690 for ac_prog in gcj
16691 do
16692 # Extract the first word of "$ac_prog", so it can be a program name with args.
16693 set dummy $ac_prog; ac_word=$2
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16695 $as_echo_n "checking for $ac_word... " >&6; }
16696 if test "${ac_cv_prog_GCJ+set}" = set; then :
16697 $as_echo_n "(cached) " >&6
16698 else
16699 if test -n "$GCJ"; then
16700 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16701 else
16702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH
16704 do
16705 IFS=$as_save_IFS
16706 test -z "$as_dir" && as_dir=.
16707 for ac_exec_ext in '' $ac_executable_extensions; do
16708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16709 ac_cv_prog_GCJ="$ac_prog"
16710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16711 break 2
16712 fi
16713 done
16714 done
16715 IFS=$as_save_IFS
16716
16717 fi
16718 fi
16719 GCJ=$ac_cv_prog_GCJ
16720 if test -n "$GCJ"; then
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16722 $as_echo "$GCJ" >&6; }
16723 else
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16725 $as_echo "no" >&6; }
16726 fi
16727
16728
16729 test -n "$GCJ" && break
16730 done
16731 test -n "$GCJ" || GCJ="gcj"
16732
16733 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16734 if test "x${GCJFLAGS-unset}" = xunset; then
16735 GCJFLAGS="-g -O2"
16736 fi
16737
16738
16739 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16740
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16742 $as_echo_n "checking dependency style of $depcc... " >&6; }
16743 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16747 # We make a subdir and do the tests there. Otherwise we can end up
16748 # making bogus files that we don't know about and never remove. For
16749 # instance it was reported that on HP-UX the gcc test will end up
16750 # making a dummy file named `D' -- because `-MD' means `put the output
16751 # in D'.
16752 mkdir conftest.dir
16753 # Copy depcomp to subdir because otherwise we won't find it if we're
16754 # using a relative directory.
16755 cp "$am_depcomp" conftest.dir
16756 cd conftest.dir
16757 # We will build objects and dependencies in a subdirectory because
16758 # it helps to detect inapplicable dependency modes. For instance
16759 # both Tru64's cc and ICC support -MD to output dependencies as a
16760 # side effect of compilation, but ICC will put the dependencies in
16761 # the current directory while Tru64 will put them in the object
16762 # directory.
16763 mkdir sub
16764
16765 am_cv_GCJ_dependencies_compiler_type=none
16766 if test "$am_compiler_list" = ""; then
16767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16768 fi
16769 am__universal=false
16770
16771
16772 for depmode in $am_compiler_list; do
16773 # Setup a source with many dependencies, because some compilers
16774 # like to wrap large dependency lists on column 80 (with \), and
16775 # we should not choose a depcomp mode which is confused by this.
16776 #
16777 # We need to recreate these files for each test, as the compiler may
16778 # overwrite some of them when testing with obscure command lines.
16779 # This happens at least with the AIX C compiler.
16780 : > sub/conftest.c
16781 for i in 1 2 3 4 5 6; do
16782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16783 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16784 # Solaris 8's {/usr,}/bin/sh.
16785 touch sub/conftst$i.h
16786 done
16787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16788
16789 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16790 # mode. It turns out that the SunPro C++ compiler does not properly
16791 # handle `-M -o', and we need to detect this. Also, some Intel
16792 # versions had trouble with output in subdirs
16793 am__obj=sub/conftest.${OBJEXT-o}
16794 am__minus_obj="-o $am__obj"
16795 case $depmode in
16796 gcc)
16797 # This depmode causes a compiler race in universal mode.
16798 test "$am__universal" = false || continue
16799 ;;
16800 nosideeffect)
16801 # after this tag, mechanisms are not by side-effect, so they'll
16802 # only be used when explicitly requested
16803 if test "x$enable_dependency_tracking" = xyes; then
16804 continue
16805 else
16806 break
16807 fi
16808 ;;
16809 msvisualcpp | msvcmsys)
16810 # This compiler won't grok `-c -o', but also, the minuso test has
16811 # not run yet. These depmodes are late enough in the game, and
16812 # so weak that their functioning should not be impacted.
16813 am__obj=conftest.${OBJEXT-o}
16814 am__minus_obj=
16815 ;;
16816 none) break ;;
16817 esac
16818 if depmode=$depmode \
16819 source=sub/conftest.c object=$am__obj \
16820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16822 >/dev/null 2>conftest.err &&
16823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16827 # icc doesn't choke on unknown options, it will just issue warnings
16828 # or remarks (even with -Werror). So we grep stderr for any message
16829 # that says an option was ignored or not supported.
16830 # When given -MP, icc 7.0 and 7.1 complain thusly:
16831 # icc: Command line warning: ignoring option '-M'; no argument required
16832 # The diagnosis changed in icc 8.0:
16833 # icc: Command line remark: option '-MP' not supported
16834 if (grep 'ignoring option' conftest.err ||
16835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16836 am_cv_GCJ_dependencies_compiler_type=$depmode
16837 break
16838 fi
16839 fi
16840 done
16841
16842 cd ..
16843 rm -rf conftest.dir
16844 else
16845 am_cv_GCJ_dependencies_compiler_type=none
16846 fi
16847
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16850 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16851 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16852
16853 if
16854 test "x$enable_dependency_tracking" != xno \
16855 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16856 am__fastdepGCJ_TRUE=
16857 am__fastdepGCJ_FALSE='#'
16858 else
16859 am__fastdepGCJ_TRUE='#'
16860 am__fastdepGCJ_FALSE=
16861 fi
16862
16863
16864
16865 for ac_prog in gcj
16866 do
16867 # Extract the first word of "$ac_prog", so it can be a program name with args.
16868 set dummy $ac_prog; ac_word=$2
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16870 $as_echo_n "checking for $ac_word... " >&6; }
16871 if test "${ac_cv_prog_GCJ+set}" = set; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16874 if test -n "$GCJ"; then
16875 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16876 else
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16879 do
16880 IFS=$as_save_IFS
16881 test -z "$as_dir" && as_dir=.
16882 for ac_exec_ext in '' $ac_executable_extensions; do
16883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16884 ac_cv_prog_GCJ="$ac_prog"
16885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16886 break 2
16887 fi
16888 done
16889 done
16890 IFS=$as_save_IFS
16891
16892 fi
16893 fi
16894 GCJ=$ac_cv_prog_GCJ
16895 if test -n "$GCJ"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16897 $as_echo "$GCJ" >&6; }
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900 $as_echo "no" >&6; }
16901 fi
16902
16903
16904 test -n "$GCJ" && break
16905 done
16906 test -n "$GCJ" || GCJ="gcj"
16907
16908 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16909 if test "x${GCJFLAGS-unset}" = xunset; then
16910 GCJFLAGS="-g -O2"
16911 fi
16912
16913
16914 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16915
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16917 $as_echo_n "checking dependency style of $depcc... " >&6; }
16918 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16919 $as_echo_n "(cached) " >&6
16920 else
16921 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16922 # We make a subdir and do the tests there. Otherwise we can end up
16923 # making bogus files that we don't know about and never remove. For
16924 # instance it was reported that on HP-UX the gcc test will end up
16925 # making a dummy file named `D' -- because `-MD' means `put the output
16926 # in D'.
16927 mkdir conftest.dir
16928 # Copy depcomp to subdir because otherwise we won't find it if we're
16929 # using a relative directory.
16930 cp "$am_depcomp" conftest.dir
16931 cd conftest.dir
16932 # We will build objects and dependencies in a subdirectory because
16933 # it helps to detect inapplicable dependency modes. For instance
16934 # both Tru64's cc and ICC support -MD to output dependencies as a
16935 # side effect of compilation, but ICC will put the dependencies in
16936 # the current directory while Tru64 will put them in the object
16937 # directory.
16938 mkdir sub
16939
16940 am_cv_GCJ_dependencies_compiler_type=none
16941 if test "$am_compiler_list" = ""; then
16942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16943 fi
16944 am__universal=false
16945
16946
16947 for depmode in $am_compiler_list; do
16948 # Setup a source with many dependencies, because some compilers
16949 # like to wrap large dependency lists on column 80 (with \), and
16950 # we should not choose a depcomp mode which is confused by this.
16951 #
16952 # We need to recreate these files for each test, as the compiler may
16953 # overwrite some of them when testing with obscure command lines.
16954 # This happens at least with the AIX C compiler.
16955 : > sub/conftest.c
16956 for i in 1 2 3 4 5 6; do
16957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16959 # Solaris 8's {/usr,}/bin/sh.
16960 touch sub/conftst$i.h
16961 done
16962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16963
16964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16965 # mode. It turns out that the SunPro C++ compiler does not properly
16966 # handle `-M -o', and we need to detect this. Also, some Intel
16967 # versions had trouble with output in subdirs
16968 am__obj=sub/conftest.${OBJEXT-o}
16969 am__minus_obj="-o $am__obj"
16970 case $depmode in
16971 gcc)
16972 # This depmode causes a compiler race in universal mode.
16973 test "$am__universal" = false || continue
16974 ;;
16975 nosideeffect)
16976 # after this tag, mechanisms are not by side-effect, so they'll
16977 # only be used when explicitly requested
16978 if test "x$enable_dependency_tracking" = xyes; then
16979 continue
16980 else
16981 break
16982 fi
16983 ;;
16984 msvisualcpp | msvcmsys)
16985 # This compiler won't grok `-c -o', but also, the minuso test has
16986 # not run yet. These depmodes are late enough in the game, and
16987 # so weak that their functioning should not be impacted.
16988 am__obj=conftest.${OBJEXT-o}
16989 am__minus_obj=
16990 ;;
16991 none) break ;;
16992 esac
16993 if depmode=$depmode \
16994 source=sub/conftest.c object=$am__obj \
16995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16997 >/dev/null 2>conftest.err &&
16998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17002 # icc doesn't choke on unknown options, it will just issue warnings
17003 # or remarks (even with -Werror). So we grep stderr for any message
17004 # that says an option was ignored or not supported.
17005 # When given -MP, icc 7.0 and 7.1 complain thusly:
17006 # icc: Command line warning: ignoring option '-M'; no argument required
17007 # The diagnosis changed in icc 8.0:
17008 # icc: Command line remark: option '-MP' not supported
17009 if (grep 'ignoring option' conftest.err ||
17010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17011 am_cv_GCJ_dependencies_compiler_type=$depmode
17012 break
17013 fi
17014 fi
17015 done
17016
17017 cd ..
17018 rm -rf conftest.dir
17019 else
17020 am_cv_GCJ_dependencies_compiler_type=none
17021 fi
17022
17023 fi
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17025 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17026 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17027
17028 if
17029 test "x$enable_dependency_tracking" != xno \
17030 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17031 am__fastdepGCJ_TRUE=
17032 am__fastdepGCJ_FALSE='#'
17033 else
17034 am__fastdepGCJ_TRUE='#'
17035 am__fastdepGCJ_FALSE=
17036 fi
17037
17038
17039
17040
17041
17042 # Source file extension for Java test sources.
17043 ac_ext=c
17044
17045 # Object file extension for compiled Java test sources.
17046 objext=o
17047 objext_GCJ=$objext
17048
17049 # Code to be used in simple compile tests
17050 lt_simple_compile_test_code="int some_variable = 0;"
17051
17052 # Code to be used in simple link tests
17053 lt_simple_link_test_code='int main(){return(0);}'
17054
17055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17056
17057
17058
17059
17060
17061
17062 # If no C compiler was specified, use CC.
17063 LTCC=${LTCC-"$CC"}
17064
17065 # If no C compiler flags were specified, use CFLAGS.
17066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17067
17068 # Allow CC to be a program name with arguments.
17069 compiler=$CC
17070
17071
17072 # save warnings/boilerplate of simple test code
17073 ac_outfile=conftest.$ac_objext
17074 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17076 _lt_compiler_boilerplate=`cat conftest.err`
17077 $RM conftest*
17078
17079 ac_outfile=conftest.$ac_objext
17080 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17082 _lt_linker_boilerplate=`cat conftest.err`
17083 $RM -r conftest*
17084
17085
17086 # Allow CC to be a program name with arguments.
17087 GCC=yes
17088 compiler=$CC
17089 compiler_GCJ=$CC
17090 for cc_temp in $compiler""; do
17091 case $cc_temp in
17092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17094 \-*) ;;
17095 *) break;;
17096 esac
17097 done
17098 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17099
17100
17101 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17102 archive_cmds_need_lc_GCJ=no
17103
17104 old_archive_cmds_GCJ=$old_archive_cmds
17105
17106 ## CAVEAT EMPTOR:
17107 ## There is no encapsulation within the following macros, do not change
17108 ## the running order or otherwise move them around unless you know exactly
17109 ## what you are doing...
17110 if test -n "$compiler"; then
17111
17112 lt_prog_compiler_no_builtin_flag_GCJ=
17113
17114 if test "$GCC" = yes; then
17115 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17116
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17120 $as_echo_n "(cached) " >&6
17121 else
17122 lt_cv_prog_compiler_rtti_exceptions=no
17123 ac_outfile=conftest.$ac_objext
17124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17125 lt_compiler_flag="-fno-rtti -fno-exceptions"
17126 # Insert the option either (1) after the last *FLAGS variable, or
17127 # (2) before a word containing "conftest.", or (3) at the end.
17128 # Note that $ac_compile itself does not contain backslashes and begins
17129 # with a dollar sign (not a hyphen), so the echo should work correctly.
17130 # The option is referenced via a variable to avoid confusing sed.
17131 lt_compile=`echo "$ac_compile" | $SED \
17132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17134 -e 's:$: $lt_compiler_flag:'`
17135 (eval echo "\"\$as_me:17135: $lt_compile\"" >&5)
17136 (eval "$lt_compile" 2>conftest.err)
17137 ac_status=$?
17138 cat conftest.err >&5
17139 echo "$as_me:17139: \$? = $ac_status" >&5
17140 if (exit $ac_status) && test -s "$ac_outfile"; then
17141 # The compiler can only warn and ignore the option if not recognized
17142 # So say no if there are warnings other than the usual output.
17143 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17146 lt_cv_prog_compiler_rtti_exceptions=yes
17147 fi
17148 fi
17149 $RM conftest*
17150
17151 fi
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17154
17155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17156 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17157 else
17158 :
17159 fi
17160
17161 fi
17162
17163
17164
17165 lt_prog_compiler_wl_GCJ=
17166 lt_prog_compiler_pic_GCJ=
17167 lt_prog_compiler_static_GCJ=
17168
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17171
17172 if test "$GCC" = yes; then
17173 lt_prog_compiler_wl_GCJ='-Wl,'
17174 lt_prog_compiler_static_GCJ='-static'
17175
17176 case $host_os in
17177 aix*)
17178 # All AIX code is PIC.
17179 if test "$host_cpu" = ia64; then
17180 # AIX 5 now supports IA64 processor
17181 lt_prog_compiler_static_GCJ='-Bstatic'
17182 fi
17183 ;;
17184
17185 amigaos*)
17186 case $host_cpu in
17187 powerpc)
17188 # see comment about AmigaOS4 .so support
17189 lt_prog_compiler_pic_GCJ='-fPIC'
17190 ;;
17191 m68k)
17192 # FIXME: we need at least 68020 code to build shared libraries, but
17193 # adding the `-m68020' flag to GCC prevents building anything better,
17194 # like `-m68040'.
17195 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17196 ;;
17197 esac
17198 ;;
17199
17200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17201 # PIC is the default for these OSes.
17202 ;;
17203
17204 mingw* | cygwin* | pw32* | os2* | cegcc*)
17205 # This hack is so that the source file can tell whether it is being
17206 # built for inclusion in a dll (and should export symbols for example).
17207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17208 # (--disable-auto-import) libraries
17209
17210 ;;
17211
17212 darwin* | rhapsody*)
17213 # PIC is the default on this platform
17214 # Common symbols not allowed in MH_DYLIB files
17215 lt_prog_compiler_pic_GCJ='-fno-common'
17216 ;;
17217
17218 hpux*)
17219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17221 # sets the default TLS model and affects inlining.
17222 case $host_cpu in
17223 hppa*64*)
17224 # +Z the default
17225 ;;
17226 *)
17227 lt_prog_compiler_pic_GCJ='-fPIC'
17228 ;;
17229 esac
17230 ;;
17231
17232 interix[3-9]*)
17233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17234 # Instead, we relocate shared libraries at runtime.
17235 ;;
17236
17237 msdosdjgpp*)
17238 # Just because we use GCC doesn't mean we suddenly get shared libraries
17239 # on systems that don't support them.
17240 lt_prog_compiler_can_build_shared_GCJ=no
17241 enable_shared=no
17242 ;;
17243
17244 *nto* | *qnx*)
17245 # QNX uses GNU C++, but need to define -shared option too, otherwise
17246 # it will coredump.
17247 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17248 ;;
17249
17250 sysv4*MP*)
17251 if test -d /usr/nec; then
17252 lt_prog_compiler_pic_GCJ=-Kconform_pic
17253 fi
17254 ;;
17255
17256 *)
17257 lt_prog_compiler_pic_GCJ='-fPIC'
17258 ;;
17259 esac
17260 else
17261 # PORTME Check for flag to pass linker flags through the system compiler.
17262 case $host_os in
17263 aix*)
17264 lt_prog_compiler_wl_GCJ='-Wl,'
17265 if test "$host_cpu" = ia64; then
17266 # AIX 5 now supports IA64 processor
17267 lt_prog_compiler_static_GCJ='-Bstatic'
17268 else
17269 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17270 fi
17271 ;;
17272
17273 mingw* | cygwin* | pw32* | os2* | cegcc*)
17274 # This hack is so that the source file can tell whether it is being
17275 # built for inclusion in a dll (and should export symbols for example).
17276
17277 ;;
17278
17279 hpux9* | hpux10* | hpux11*)
17280 lt_prog_compiler_wl_GCJ='-Wl,'
17281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17282 # not for PA HP-UX.
17283 case $host_cpu in
17284 hppa*64*|ia64*)
17285 # +Z the default
17286 ;;
17287 *)
17288 lt_prog_compiler_pic_GCJ='+Z'
17289 ;;
17290 esac
17291 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17292 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17293 ;;
17294
17295 irix5* | irix6* | nonstopux*)
17296 lt_prog_compiler_wl_GCJ='-Wl,'
17297 # PIC (with -KPIC) is the default.
17298 lt_prog_compiler_static_GCJ='-non_shared'
17299 ;;
17300
17301 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17302 case $cc_basename in
17303 # old Intel for x86_64 which still supported -KPIC.
17304 ecc*)
17305 lt_prog_compiler_wl_GCJ='-Wl,'
17306 lt_prog_compiler_pic_GCJ='-KPIC'
17307 lt_prog_compiler_static_GCJ='-static'
17308 ;;
17309 # icc used to be incompatible with GCC.
17310 # ICC 10 doesn't accept -KPIC any more.
17311 icc* | ifort*)
17312 lt_prog_compiler_wl_GCJ='-Wl,'
17313 lt_prog_compiler_pic_GCJ='-fPIC'
17314 lt_prog_compiler_static_GCJ='-static'
17315 ;;
17316 # Lahey Fortran 8.1.
17317 lf95*)
17318 lt_prog_compiler_wl_GCJ='-Wl,'
17319 lt_prog_compiler_pic_GCJ='--shared'
17320 lt_prog_compiler_static_GCJ='--static'
17321 ;;
17322 pgcc* | pgf77* | pgf90* | pgf95*)
17323 # Portland Group compilers (*not* the Pentium gcc compiler,
17324 # which looks to be a dead project)
17325 lt_prog_compiler_wl_GCJ='-Wl,'
17326 lt_prog_compiler_pic_GCJ='-fpic'
17327 lt_prog_compiler_static_GCJ='-Bstatic'
17328 ;;
17329 ccc*)
17330 lt_prog_compiler_wl_GCJ='-Wl,'
17331 # All Alpha code is PIC.
17332 lt_prog_compiler_static_GCJ='-non_shared'
17333 ;;
17334 xl*)
17335 # IBM XL C 8.0/Fortran 10.1 on PPC
17336 lt_prog_compiler_wl_GCJ='-Wl,'
17337 lt_prog_compiler_pic_GCJ='-qpic'
17338 lt_prog_compiler_static_GCJ='-qstaticlink'
17339 ;;
17340 *)
17341 case `$CC -V 2>&1 | sed 5q` in
17342 *Sun\ C*)
17343 # Sun C 5.9
17344 lt_prog_compiler_pic_GCJ='-KPIC'
17345 lt_prog_compiler_static_GCJ='-Bstatic'
17346 lt_prog_compiler_wl_GCJ='-Wl,'
17347 ;;
17348 *Sun\ F*)
17349 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17350 lt_prog_compiler_pic_GCJ='-KPIC'
17351 lt_prog_compiler_static_GCJ='-Bstatic'
17352 lt_prog_compiler_wl_GCJ=''
17353 ;;
17354 esac
17355 ;;
17356 esac
17357 ;;
17358
17359 newsos6)
17360 lt_prog_compiler_pic_GCJ='-KPIC'
17361 lt_prog_compiler_static_GCJ='-Bstatic'
17362 ;;
17363
17364 *nto* | *qnx*)
17365 # QNX uses GNU C++, but need to define -shared option too, otherwise
17366 # it will coredump.
17367 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17368 ;;
17369
17370 osf3* | osf4* | osf5*)
17371 lt_prog_compiler_wl_GCJ='-Wl,'
17372 # All OSF/1 code is PIC.
17373 lt_prog_compiler_static_GCJ='-non_shared'
17374 ;;
17375
17376 rdos*)
17377 lt_prog_compiler_static_GCJ='-non_shared'
17378 ;;
17379
17380 solaris*)
17381 lt_prog_compiler_pic_GCJ='-KPIC'
17382 lt_prog_compiler_static_GCJ='-Bstatic'
17383 case $cc_basename in
17384 f77* | f90* | f95*)
17385 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17386 *)
17387 lt_prog_compiler_wl_GCJ='-Wl,';;
17388 esac
17389 ;;
17390
17391 sunos4*)
17392 lt_prog_compiler_wl_GCJ='-Qoption ld '
17393 lt_prog_compiler_pic_GCJ='-PIC'
17394 lt_prog_compiler_static_GCJ='-Bstatic'
17395 ;;
17396
17397 sysv4 | sysv4.2uw2* | sysv4.3*)
17398 lt_prog_compiler_wl_GCJ='-Wl,'
17399 lt_prog_compiler_pic_GCJ='-KPIC'
17400 lt_prog_compiler_static_GCJ='-Bstatic'
17401 ;;
17402
17403 sysv4*MP*)
17404 if test -d /usr/nec ;then
17405 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17406 lt_prog_compiler_static_GCJ='-Bstatic'
17407 fi
17408 ;;
17409
17410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17411 lt_prog_compiler_wl_GCJ='-Wl,'
17412 lt_prog_compiler_pic_GCJ='-KPIC'
17413 lt_prog_compiler_static_GCJ='-Bstatic'
17414 ;;
17415
17416 unicos*)
17417 lt_prog_compiler_wl_GCJ='-Wl,'
17418 lt_prog_compiler_can_build_shared_GCJ=no
17419 ;;
17420
17421 uts4*)
17422 lt_prog_compiler_pic_GCJ='-pic'
17423 lt_prog_compiler_static_GCJ='-Bstatic'
17424 ;;
17425
17426 *)
17427 lt_prog_compiler_can_build_shared_GCJ=no
17428 ;;
17429 esac
17430 fi
17431
17432 case $host_os in
17433 # For platforms which do not support PIC, -DPIC is meaningless:
17434 *djgpp*)
17435 lt_prog_compiler_pic_GCJ=
17436 ;;
17437 *)
17438 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17439 ;;
17440 esac
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17442 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17443
17444
17445
17446 #
17447 # Check to make sure the PIC flag actually works.
17448 #
17449 if test -n "$lt_prog_compiler_pic_GCJ"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17451 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17452 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 lt_cv_prog_compiler_pic_works_GCJ=no
17456 ac_outfile=conftest.$ac_objext
17457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17458 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17459 # Insert the option either (1) after the last *FLAGS variable, or
17460 # (2) before a word containing "conftest.", or (3) at the end.
17461 # Note that $ac_compile itself does not contain backslashes and begins
17462 # with a dollar sign (not a hyphen), so the echo should work correctly.
17463 # The option is referenced via a variable to avoid confusing sed.
17464 lt_compile=`echo "$ac_compile" | $SED \
17465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17467 -e 's:$: $lt_compiler_flag:'`
17468 (eval echo "\"\$as_me:17468: $lt_compile\"" >&5)
17469 (eval "$lt_compile" 2>conftest.err)
17470 ac_status=$?
17471 cat conftest.err >&5
17472 echo "$as_me:17472: \$? = $ac_status" >&5
17473 if (exit $ac_status) && test -s "$ac_outfile"; then
17474 # The compiler can only warn and ignore the option if not recognized
17475 # So say no if there are warnings other than the usual output.
17476 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17479 lt_cv_prog_compiler_pic_works_GCJ=yes
17480 fi
17481 fi
17482 $RM conftest*
17483
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17486 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17487
17488 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17489 case $lt_prog_compiler_pic_GCJ in
17490 "" | " "*) ;;
17491 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17492 esac
17493 else
17494 lt_prog_compiler_pic_GCJ=
17495 lt_prog_compiler_can_build_shared_GCJ=no
17496 fi
17497
17498 fi
17499
17500
17501
17502 #
17503 # Check to make sure the static flag actually works.
17504 #
17505 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17507 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17508 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17509 $as_echo_n "(cached) " >&6
17510 else
17511 lt_cv_prog_compiler_static_works_GCJ=no
17512 save_LDFLAGS="$LDFLAGS"
17513 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17514 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17516 # The linker can only warn and ignore the option if not recognized
17517 # So say no if there are warnings
17518 if test -s conftest.err; then
17519 # Append any errors to the config.log.
17520 cat conftest.err 1>&5
17521 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17523 if diff conftest.exp conftest.er2 >/dev/null; then
17524 lt_cv_prog_compiler_static_works_GCJ=yes
17525 fi
17526 else
17527 lt_cv_prog_compiler_static_works_GCJ=yes
17528 fi
17529 fi
17530 $RM -r conftest*
17531 LDFLAGS="$save_LDFLAGS"
17532
17533 fi
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17535 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17536
17537 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17538 :
17539 else
17540 lt_prog_compiler_static_GCJ=
17541 fi
17542
17543
17544
17545
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17548 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17549 $as_echo_n "(cached) " >&6
17550 else
17551 lt_cv_prog_compiler_c_o_GCJ=no
17552 $RM -r conftest 2>/dev/null
17553 mkdir conftest
17554 cd conftest
17555 mkdir out
17556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17557
17558 lt_compiler_flag="-o out/conftest2.$ac_objext"
17559 # Insert the option either (1) after the last *FLAGS variable, or
17560 # (2) before a word containing "conftest.", or (3) at the end.
17561 # Note that $ac_compile itself does not contain backslashes and begins
17562 # with a dollar sign (not a hyphen), so the echo should work correctly.
17563 lt_compile=`echo "$ac_compile" | $SED \
17564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17566 -e 's:$: $lt_compiler_flag:'`
17567 (eval echo "\"\$as_me:17567: $lt_compile\"" >&5)
17568 (eval "$lt_compile" 2>out/conftest.err)
17569 ac_status=$?
17570 cat out/conftest.err >&5
17571 echo "$as_me:17571: \$? = $ac_status" >&5
17572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17573 then
17574 # The compiler can only warn and ignore the option if not recognized
17575 # So say no if there are warnings
17576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17579 lt_cv_prog_compiler_c_o_GCJ=yes
17580 fi
17581 fi
17582 chmod u+w . 2>&5
17583 $RM conftest*
17584 # SGI C++ compiler will create directory out/ii_files/ for
17585 # template instantiation
17586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17587 $RM out/* && rmdir out
17588 cd ..
17589 $RM -r conftest
17590 $RM conftest*
17591
17592 fi
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17594 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17595
17596
17597
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17600 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 lt_cv_prog_compiler_c_o_GCJ=no
17604 $RM -r conftest 2>/dev/null
17605 mkdir conftest
17606 cd conftest
17607 mkdir out
17608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17609
17610 lt_compiler_flag="-o out/conftest2.$ac_objext"
17611 # Insert the option either (1) after the last *FLAGS variable, or
17612 # (2) before a word containing "conftest.", or (3) at the end.
17613 # Note that $ac_compile itself does not contain backslashes and begins
17614 # with a dollar sign (not a hyphen), so the echo should work correctly.
17615 lt_compile=`echo "$ac_compile" | $SED \
17616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17618 -e 's:$: $lt_compiler_flag:'`
17619 (eval echo "\"\$as_me:17619: $lt_compile\"" >&5)
17620 (eval "$lt_compile" 2>out/conftest.err)
17621 ac_status=$?
17622 cat out/conftest.err >&5
17623 echo "$as_me:17623: \$? = $ac_status" >&5
17624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17625 then
17626 # The compiler can only warn and ignore the option if not recognized
17627 # So say no if there are warnings
17628 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17631 lt_cv_prog_compiler_c_o_GCJ=yes
17632 fi
17633 fi
17634 chmod u+w . 2>&5
17635 $RM conftest*
17636 # SGI C++ compiler will create directory out/ii_files/ for
17637 # template instantiation
17638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17639 $RM out/* && rmdir out
17640 cd ..
17641 $RM -r conftest
17642 $RM conftest*
17643
17644 fi
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17646 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17647
17648
17649
17650
17651 hard_links="nottested"
17652 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17653 # do not overwrite the value of need_locks provided by the user
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17655 $as_echo_n "checking if we can lock with hard links... " >&6; }
17656 hard_links=yes
17657 $RM conftest*
17658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17659 touch conftest.a
17660 ln conftest.a conftest.b 2>&5 || hard_links=no
17661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17663 $as_echo "$hard_links" >&6; }
17664 if test "$hard_links" = no; then
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17667 need_locks=warn
17668 fi
17669 else
17670 need_locks=no
17671 fi
17672
17673
17674
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17677
17678 runpath_var=
17679 allow_undefined_flag_GCJ=
17680 always_export_symbols_GCJ=no
17681 archive_cmds_GCJ=
17682 archive_expsym_cmds_GCJ=
17683 compiler_needs_object_GCJ=no
17684 enable_shared_with_static_runtimes_GCJ=no
17685 export_dynamic_flag_spec_GCJ=
17686 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17687 hardcode_automatic_GCJ=no
17688 hardcode_direct_GCJ=no
17689 hardcode_direct_absolute_GCJ=no
17690 hardcode_libdir_flag_spec_GCJ=
17691 hardcode_libdir_flag_spec_ld_GCJ=
17692 hardcode_libdir_separator_GCJ=
17693 hardcode_minus_L_GCJ=no
17694 hardcode_shlibpath_var_GCJ=unsupported
17695 inherit_rpath_GCJ=no
17696 link_all_deplibs_GCJ=unknown
17697 module_cmds_GCJ=
17698 module_expsym_cmds_GCJ=
17699 old_archive_from_new_cmds_GCJ=
17700 old_archive_from_expsyms_cmds_GCJ=
17701 thread_safe_flag_spec_GCJ=
17702 whole_archive_flag_spec_GCJ=
17703 # include_expsyms should be a list of space-separated symbols to be *always*
17704 # included in the symbol list
17705 include_expsyms_GCJ=
17706 # exclude_expsyms can be an extended regexp of symbols to exclude
17707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17709 # as well as any symbol that contains `d'.
17710 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17712 # platforms (ab)use it in PIC code, but their linkers get confused if
17713 # the symbol is explicitly referenced. Since portable code cannot
17714 # rely on this symbol name, it's probably fine to never include it in
17715 # preloaded symbol tables.
17716 # Exclude shared library initialization/finalization symbols.
17717 extract_expsyms_cmds=
17718
17719 case $host_os in
17720 cygwin* | mingw* | pw32* | cegcc*)
17721 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17722 # When not using gcc, we currently assume that we are using
17723 # Microsoft Visual C++.
17724 if test "$GCC" != yes; then
17725 with_gnu_ld=no
17726 fi
17727 ;;
17728 interix*)
17729 # we just hope/assume this is gcc and not c89 (= MSVC++)
17730 with_gnu_ld=yes
17731 ;;
17732 openbsd*)
17733 with_gnu_ld=no
17734 ;;
17735 esac
17736
17737 ld_shlibs_GCJ=yes
17738 if test "$with_gnu_ld" = yes; then
17739 # If archive_cmds runs LD, not CC, wlarc should be empty
17740 wlarc='${wl}'
17741
17742 # Set some defaults for GNU ld with shared library support. These
17743 # are reset later if shared libraries are not supported. Putting them
17744 # here allows them to be overridden if necessary.
17745 runpath_var=LD_RUN_PATH
17746 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17747 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17748 # ancient GNU ld didn't support --whole-archive et. al.
17749 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17750 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17751 else
17752 whole_archive_flag_spec_GCJ=
17753 fi
17754 supports_anon_versioning=no
17755 case `$LD -v 2>&1` in
17756 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17759 *\ 2.11.*) ;; # other 2.11 versions
17760 *) supports_anon_versioning=yes ;;
17761 esac
17762
17763 # See if GNU ld supports shared libraries.
17764 case $host_os in
17765 aix[3-9]*)
17766 # On AIX/PPC, the GNU linker is very broken
17767 if test "$host_cpu" != ia64; then
17768 ld_shlibs_GCJ=no
17769 cat <<_LT_EOF 1>&2
17770
17771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17772 *** to be unable to reliably create shared libraries on AIX.
17773 *** Therefore, libtool is disabling shared libraries support. If you
17774 *** really care for shared libraries, you may want to modify your PATH
17775 *** so that a non-GNU linker is found, and then restart.
17776
17777 _LT_EOF
17778 fi
17779 ;;
17780
17781 amigaos*)
17782 case $host_cpu in
17783 powerpc)
17784 # see comment about AmigaOS4 .so support
17785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17786 archive_expsym_cmds_GCJ=''
17787 ;;
17788 m68k)
17789 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)'
17790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17791 hardcode_minus_L_GCJ=yes
17792 ;;
17793 esac
17794 ;;
17795
17796 beos*)
17797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17798 allow_undefined_flag_GCJ=unsupported
17799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17800 # support --undefined. This deserves some investigation. FIXME
17801 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 else
17803 ld_shlibs_GCJ=no
17804 fi
17805 ;;
17806
17807 cygwin* | mingw* | pw32* | cegcc*)
17808 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17809 # as there is no search path for DLLs.
17810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17811 allow_undefined_flag_GCJ=unsupported
17812 always_export_symbols_GCJ=no
17813 enable_shared_with_static_runtimes_GCJ=yes
17814 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17815
17816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17817 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17818 # If the export-symbols file already is a .def file (1st line
17819 # is EXPORTS), use it as is; otherwise, prepend...
17820 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17821 cp $export_symbols $output_objdir/$soname.def;
17822 else
17823 echo EXPORTS > $output_objdir/$soname.def;
17824 cat $export_symbols >> $output_objdir/$soname.def;
17825 fi~
17826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17827 else
17828 ld_shlibs_GCJ=no
17829 fi
17830 ;;
17831
17832 interix[3-9]*)
17833 hardcode_direct_GCJ=no
17834 hardcode_shlibpath_var_GCJ=no
17835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17836 export_dynamic_flag_spec_GCJ='${wl}-E'
17837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17838 # Instead, shared libraries are loaded at an image base (0x10000000 by
17839 # default) and relocated if they conflict, which is a slow very memory
17840 # consuming and fragmenting process. To avoid this, we pick a random,
17841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17843 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'
17844 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'
17845 ;;
17846
17847 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17848 tmp_diet=no
17849 if test "$host_os" = linux-dietlibc; then
17850 case $cc_basename in
17851 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17852 esac
17853 fi
17854 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17855 && test "$tmp_diet" = no
17856 then
17857 tmp_addflag=
17858 tmp_sharedflag='-shared'
17859 case $cc_basename,$host_cpu in
17860 pgcc*) # Portland Group C compiler
17861 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'
17862 tmp_addflag=' $pic_flag'
17863 ;;
17864 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17865 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'
17866 tmp_addflag=' $pic_flag -Mnomain' ;;
17867 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17868 tmp_addflag=' -i_dynamic' ;;
17869 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17870 tmp_addflag=' -i_dynamic -nofor_main' ;;
17871 ifc* | ifort*) # Intel Fortran compiler
17872 tmp_addflag=' -nofor_main' ;;
17873 lf95*) # Lahey Fortran 8.1
17874 whole_archive_flag_spec_GCJ=
17875 tmp_sharedflag='--shared' ;;
17876 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17877 tmp_sharedflag='-qmkshrobj'
17878 tmp_addflag= ;;
17879 esac
17880 case `$CC -V 2>&1 | sed 5q` in
17881 *Sun\ C*) # Sun C 5.9
17882 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'
17883 compiler_needs_object_GCJ=yes
17884 tmp_sharedflag='-G' ;;
17885 *Sun\ F*) # Sun Fortran 8.3
17886 tmp_sharedflag='-G' ;;
17887 esac
17888 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17889
17890 if test "x$supports_anon_versioning" = xyes; then
17891 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17893 echo "local: *; };" >> $output_objdir/$libname.ver~
17894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17895 fi
17896
17897 case $cc_basename in
17898 xlf*)
17899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17900 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17901 hardcode_libdir_flag_spec_GCJ=
17902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17903 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17904 if test "x$supports_anon_versioning" = xyes; then
17905 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17907 echo "local: *; };" >> $output_objdir/$libname.ver~
17908 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17909 fi
17910 ;;
17911 esac
17912 else
17913 ld_shlibs_GCJ=no
17914 fi
17915 ;;
17916
17917 netbsd*)
17918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17919 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17920 wlarc=
17921 else
17922 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17923 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17924 fi
17925 ;;
17926
17927 solaris*)
17928 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17929 ld_shlibs_GCJ=no
17930 cat <<_LT_EOF 1>&2
17931
17932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17933 *** create shared libraries on Solaris systems. Therefore, libtool
17934 *** is disabling shared libraries support. We urge you to upgrade GNU
17935 *** binutils to release 2.9.1 or newer. Another option is to modify
17936 *** your PATH or compiler configuration so that the native linker is
17937 *** used, and then restart.
17938
17939 _LT_EOF
17940 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17941 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17942 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17943 else
17944 ld_shlibs_GCJ=no
17945 fi
17946 ;;
17947
17948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17949 case `$LD -v 2>&1` in
17950 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17951 ld_shlibs_GCJ=no
17952 cat <<_LT_EOF 1>&2
17953
17954 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17955 *** reliably create shared libraries on SCO systems. Therefore, libtool
17956 *** is disabling shared libraries support. We urge you to upgrade GNU
17957 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17958 *** your PATH or compiler configuration so that the native linker is
17959 *** used, and then restart.
17960
17961 _LT_EOF
17962 ;;
17963 *)
17964 # For security reasons, it is highly recommended that you always
17965 # use absolute paths for naming shared libraries, and exclude the
17966 # DT_RUNPATH tag from executables and libraries. But doing so
17967 # requires that you compile everything twice, which is a pain.
17968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17970 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17971 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17972 else
17973 ld_shlibs_GCJ=no
17974 fi
17975 ;;
17976 esac
17977 ;;
17978
17979 sunos4*)
17980 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17981 wlarc=
17982 hardcode_direct_GCJ=yes
17983 hardcode_shlibpath_var_GCJ=no
17984 ;;
17985
17986 *)
17987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17990 else
17991 ld_shlibs_GCJ=no
17992 fi
17993 ;;
17994 esac
17995
17996 if test "$ld_shlibs_GCJ" = no; then
17997 runpath_var=
17998 hardcode_libdir_flag_spec_GCJ=
17999 export_dynamic_flag_spec_GCJ=
18000 whole_archive_flag_spec_GCJ=
18001 fi
18002 else
18003 # PORTME fill in a description of your system's linker (not GNU ld)
18004 case $host_os in
18005 aix3*)
18006 allow_undefined_flag_GCJ=unsupported
18007 always_export_symbols_GCJ=yes
18008 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'
18009 # Note: this linker hardcodes the directories in LIBPATH if there
18010 # are no directories specified by -L.
18011 hardcode_minus_L_GCJ=yes
18012 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18013 # Neither direct hardcoding nor static linking is supported with a
18014 # broken collect2.
18015 hardcode_direct_GCJ=unsupported
18016 fi
18017 ;;
18018
18019 aix[4-9]*)
18020 if test "$host_cpu" = ia64; then
18021 # On IA64, the linker does run time linking by default, so we don't
18022 # have to do anything special.
18023 aix_use_runtimelinking=no
18024 exp_sym_flag='-Bexport'
18025 no_entry_flag=""
18026 else
18027 # If we're using GNU nm, then we don't want the "-C" option.
18028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18030 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'
18031 else
18032 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'
18033 fi
18034 aix_use_runtimelinking=no
18035
18036 # Test if we are trying to use run time linking or normal
18037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18038 # need to do runtime linking.
18039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18040 for ld_flag in $LDFLAGS; do
18041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18042 aix_use_runtimelinking=yes
18043 break
18044 fi
18045 done
18046 ;;
18047 esac
18048
18049 exp_sym_flag='-bexport'
18050 no_entry_flag='-bnoentry'
18051 fi
18052
18053 # When large executables or shared objects are built, AIX ld can
18054 # have problems creating the table of contents. If linking a library
18055 # or program results in "error TOC overflow" add -mminimal-toc to
18056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18058
18059 archive_cmds_GCJ=''
18060 hardcode_direct_GCJ=yes
18061 hardcode_direct_absolute_GCJ=yes
18062 hardcode_libdir_separator_GCJ=':'
18063 link_all_deplibs_GCJ=yes
18064 file_list_spec_GCJ='${wl}-f,'
18065
18066 if test "$GCC" = yes; then
18067 case $host_os in aix4.[012]|aix4.[012].*)
18068 # We only want to do this on AIX 4.2 and lower, the check
18069 # below for broken collect2 doesn't work under 4.3+
18070 collect2name=`${CC} -print-prog-name=collect2`
18071 if test -f "$collect2name" &&
18072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18073 then
18074 # We have reworked collect2
18075 :
18076 else
18077 # We have old collect2
18078 hardcode_direct_GCJ=unsupported
18079 # It fails to find uninstalled libraries when the uninstalled
18080 # path is not listed in the libpath. Setting hardcode_minus_L
18081 # to unsupported forces relinking
18082 hardcode_minus_L_GCJ=yes
18083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18084 hardcode_libdir_separator_GCJ=
18085 fi
18086 ;;
18087 esac
18088 shared_flag='-shared'
18089 if test "$aix_use_runtimelinking" = yes; then
18090 shared_flag="$shared_flag "'${wl}-G'
18091 fi
18092 else
18093 # not using gcc
18094 if test "$host_cpu" = ia64; then
18095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18096 # chokes on -Wl,-G. The following line is correct:
18097 shared_flag='-G'
18098 else
18099 if test "$aix_use_runtimelinking" = yes; then
18100 shared_flag='${wl}-G'
18101 else
18102 shared_flag='${wl}-bM:SRE'
18103 fi
18104 fi
18105 fi
18106
18107 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18108 # It seems that -bexpall does not export symbols beginning with
18109 # underscore (_), so it is better to generate a list of symbols to export.
18110 always_export_symbols_GCJ=yes
18111 if test "$aix_use_runtimelinking" = yes; then
18112 # Warning - without using the other runtime loading flags (-brtl),
18113 # -berok will link without error, but may produce a broken library.
18114 allow_undefined_flag_GCJ='-berok'
18115 # Determine the default libpath from the value encoded in an
18116 # empty executable.
18117 if test x$gcc_no_link = xyes; then
18118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18119 fi
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122
18123 int
18124 main ()
18125 {
18126
18127 ;
18128 return 0;
18129 }
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"; then :
18132
18133 lt_aix_libpath_sed='
18134 /Import File Strings/,/^$/ {
18135 /^0/ {
18136 s/^0 *\(.*\)$/\1/
18137 p
18138 }
18139 }'
18140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18141 # Check for a 64-bit object if we didn't find anything.
18142 if test -z "$aix_libpath"; then
18143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18144 fi
18145 fi
18146 rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext conftest.$ac_ext
18148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18149
18150 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18151 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"
18152 else
18153 if test "$host_cpu" = ia64; then
18154 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18155 allow_undefined_flag_GCJ="-z nodefs"
18156 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"
18157 else
18158 # Determine the default libpath from the value encoded in an
18159 # empty executable.
18160 if test x$gcc_no_link = xyes; then
18161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18162 fi
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18165
18166 int
18167 main ()
18168 {
18169
18170 ;
18171 return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"; then :
18175
18176 lt_aix_libpath_sed='
18177 /Import File Strings/,/^$/ {
18178 /^0/ {
18179 s/^0 *\(.*\)$/\1/
18180 p
18181 }
18182 }'
18183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18184 # Check for a 64-bit object if we didn't find anything.
18185 if test -z "$aix_libpath"; then
18186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18187 fi
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18192
18193 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18194 # Warning - without using the other run time loading flags,
18195 # -berok will link without error, but may produce a broken library.
18196 no_undefined_flag_GCJ=' ${wl}-bernotok'
18197 allow_undefined_flag_GCJ=' ${wl}-berok'
18198 # Exported symbols can be pulled into shared objects from archives
18199 whole_archive_flag_spec_GCJ='$convenience'
18200 archive_cmds_need_lc_GCJ=yes
18201 # This is similar to how AIX traditionally builds its shared libraries.
18202 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'
18203 fi
18204 fi
18205 ;;
18206
18207 amigaos*)
18208 case $host_cpu in
18209 powerpc)
18210 # see comment about AmigaOS4 .so support
18211 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18212 archive_expsym_cmds_GCJ=''
18213 ;;
18214 m68k)
18215 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)'
18216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18217 hardcode_minus_L_GCJ=yes
18218 ;;
18219 esac
18220 ;;
18221
18222 bsdi[45]*)
18223 export_dynamic_flag_spec_GCJ=-rdynamic
18224 ;;
18225
18226 cygwin* | mingw* | pw32* | cegcc*)
18227 # When not using gcc, we currently assume that we are using
18228 # Microsoft Visual C++.
18229 # hardcode_libdir_flag_spec is actually meaningless, as there is
18230 # no search path for DLLs.
18231 hardcode_libdir_flag_spec_GCJ=' '
18232 allow_undefined_flag_GCJ=unsupported
18233 # Tell ltmain to make .lib files, not .a files.
18234 libext=lib
18235 # Tell ltmain to make .dll files, not .so files.
18236 shrext_cmds=".dll"
18237 # FIXME: Setting linknames here is a bad hack.
18238 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18239 # The linker will automatically build a .lib file if we build a DLL.
18240 old_archive_from_new_cmds_GCJ='true'
18241 # FIXME: Should let the user specify the lib program.
18242 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18243 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18244 enable_shared_with_static_runtimes_GCJ=yes
18245 ;;
18246
18247 darwin* | rhapsody*)
18248
18249
18250 archive_cmds_need_lc_GCJ=no
18251 hardcode_direct_GCJ=no
18252 hardcode_automatic_GCJ=yes
18253 hardcode_shlibpath_var_GCJ=unsupported
18254 whole_archive_flag_spec_GCJ=''
18255 link_all_deplibs_GCJ=yes
18256 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18257 case $cc_basename in
18258 ifort*) _lt_dar_can_shared=yes ;;
18259 *) _lt_dar_can_shared=$GCC ;;
18260 esac
18261 if test "$_lt_dar_can_shared" = "yes"; then
18262 output_verbose_link_cmd=echo
18263 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}"
18264 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18265 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}"
18266 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}"
18267
18268 else
18269 ld_shlibs_GCJ=no
18270 fi
18271
18272 ;;
18273
18274 dgux*)
18275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18276 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18277 hardcode_shlibpath_var_GCJ=no
18278 ;;
18279
18280 freebsd1*)
18281 ld_shlibs_GCJ=no
18282 ;;
18283
18284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18285 # support. Future versions do this automatically, but an explicit c++rt0.o
18286 # does not break anything, and helps significantly (at the cost of a little
18287 # extra space).
18288 freebsd2.2*)
18289 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18290 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18291 hardcode_direct_GCJ=yes
18292 hardcode_shlibpath_var_GCJ=no
18293 ;;
18294
18295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18296 freebsd2*)
18297 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18298 hardcode_direct_GCJ=yes
18299 hardcode_minus_L_GCJ=yes
18300 hardcode_shlibpath_var_GCJ=no
18301 ;;
18302
18303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18304 freebsd* | dragonfly*)
18305 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18306 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18307 hardcode_direct_GCJ=yes
18308 hardcode_shlibpath_var_GCJ=no
18309 ;;
18310
18311 hpux9*)
18312 if test "$GCC" = yes; then
18313 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'
18314 else
18315 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'
18316 fi
18317 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18318 hardcode_libdir_separator_GCJ=:
18319 hardcode_direct_GCJ=yes
18320
18321 # hardcode_minus_L: Not really in the search PATH,
18322 # but as the default location of the library.
18323 hardcode_minus_L_GCJ=yes
18324 export_dynamic_flag_spec_GCJ='${wl}-E'
18325 ;;
18326
18327 hpux10*)
18328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18329 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18330 else
18331 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18332 fi
18333 if test "$with_gnu_ld" = no; then
18334 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18335 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18336 hardcode_libdir_separator_GCJ=:
18337 hardcode_direct_GCJ=yes
18338 hardcode_direct_absolute_GCJ=yes
18339 export_dynamic_flag_spec_GCJ='${wl}-E'
18340 # hardcode_minus_L: Not really in the search PATH,
18341 # but as the default location of the library.
18342 hardcode_minus_L_GCJ=yes
18343 fi
18344 ;;
18345
18346 hpux11*)
18347 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18348 case $host_cpu in
18349 hppa*64*)
18350 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18351 ;;
18352 ia64*)
18353 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18354 ;;
18355 *)
18356 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18357 ;;
18358 esac
18359 else
18360 case $host_cpu in
18361 hppa*64*)
18362 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 ;;
18364 ia64*)
18365 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18366 ;;
18367 *)
18368 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18369 ;;
18370 esac
18371 fi
18372 if test "$with_gnu_ld" = no; then
18373 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18374 hardcode_libdir_separator_GCJ=:
18375
18376 case $host_cpu in
18377 hppa*64*|ia64*)
18378 hardcode_direct_GCJ=no
18379 hardcode_shlibpath_var_GCJ=no
18380 ;;
18381 *)
18382 hardcode_direct_GCJ=yes
18383 hardcode_direct_absolute_GCJ=yes
18384 export_dynamic_flag_spec_GCJ='${wl}-E'
18385
18386 # hardcode_minus_L: Not really in the search PATH,
18387 # but as the default location of the library.
18388 hardcode_minus_L_GCJ=yes
18389 ;;
18390 esac
18391 fi
18392 ;;
18393
18394 irix5* | irix6* | nonstopux*)
18395 if test "$GCC" = yes; then
18396 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'
18397 # Try to use the -exported_symbol ld option, if it does not
18398 # work, assume that -exports_file does not work either and
18399 # implicitly export all symbols.
18400 save_LDFLAGS="$LDFLAGS"
18401 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18402 if test x$gcc_no_link = xyes; then
18403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18404 fi
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 int foo(void) {}
18408 _ACEOF
18409 if ac_fn_c_try_link "$LINENO"; then :
18410 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'
18411
18412 fi
18413 rm -f core conftest.err conftest.$ac_objext \
18414 conftest$ac_exeext conftest.$ac_ext
18415 LDFLAGS="$save_LDFLAGS"
18416 else
18417 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'
18418 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'
18419 fi
18420 archive_cmds_need_lc_GCJ='no'
18421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18422 hardcode_libdir_separator_GCJ=:
18423 inherit_rpath_GCJ=yes
18424 link_all_deplibs_GCJ=yes
18425 ;;
18426
18427 netbsd*)
18428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18429 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18430 else
18431 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18432 fi
18433 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18434 hardcode_direct_GCJ=yes
18435 hardcode_shlibpath_var_GCJ=no
18436 ;;
18437
18438 newsos6)
18439 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18440 hardcode_direct_GCJ=yes
18441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18442 hardcode_libdir_separator_GCJ=:
18443 hardcode_shlibpath_var_GCJ=no
18444 ;;
18445
18446 *nto* | *qnx*)
18447 ;;
18448
18449 openbsd*)
18450 if test -f /usr/libexec/ld.so; then
18451 hardcode_direct_GCJ=yes
18452 hardcode_shlibpath_var_GCJ=no
18453 hardcode_direct_absolute_GCJ=yes
18454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18455 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18456 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18458 export_dynamic_flag_spec_GCJ='${wl}-E'
18459 else
18460 case $host_os in
18461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18464 ;;
18465 *)
18466 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18468 ;;
18469 esac
18470 fi
18471 else
18472 ld_shlibs_GCJ=no
18473 fi
18474 ;;
18475
18476 os2*)
18477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18478 hardcode_minus_L_GCJ=yes
18479 allow_undefined_flag_GCJ=unsupported
18480 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'
18481 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18482 ;;
18483
18484 osf3*)
18485 if test "$GCC" = yes; then
18486 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18487 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'
18488 else
18489 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18490 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'
18491 fi
18492 archive_cmds_need_lc_GCJ='no'
18493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18494 hardcode_libdir_separator_GCJ=:
18495 ;;
18496
18497 osf4* | osf5*) # as osf3* with the addition of -msym flag
18498 if test "$GCC" = yes; then
18499 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18500 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'
18501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18502 else
18503 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18504 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'
18505 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~
18506 $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'
18507
18508 # Both c and cxx compiler support -rpath directly
18509 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18510 fi
18511 archive_cmds_need_lc_GCJ='no'
18512 hardcode_libdir_separator_GCJ=:
18513 ;;
18514
18515 solaris*)
18516 no_undefined_flag_GCJ=' -z defs'
18517 if test "$GCC" = yes; then
18518 wlarc='${wl}'
18519 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18520 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18521 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18522 else
18523 case `$CC -V 2>&1` in
18524 *"Compilers 5.0"*)
18525 wlarc=''
18526 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18527 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18529 ;;
18530 *)
18531 wlarc='${wl}'
18532 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18533 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18534 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18535 ;;
18536 esac
18537 fi
18538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18539 hardcode_shlibpath_var_GCJ=no
18540 case $host_os in
18541 solaris2.[0-5] | solaris2.[0-5].*) ;;
18542 *)
18543 # The compiler driver will combine and reorder linker options,
18544 # but understands `-z linker_flag'. GCC discards it without `$wl',
18545 # but is careful enough not to reorder.
18546 # Supported since Solaris 2.6 (maybe 2.5.1?)
18547 if test "$GCC" = yes; then
18548 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18549 else
18550 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18551 fi
18552 ;;
18553 esac
18554 link_all_deplibs_GCJ=yes
18555 ;;
18556
18557 sunos4*)
18558 if test "x$host_vendor" = xsequent; then
18559 # Use $CC to link under sequent, because it throws in some extra .o
18560 # files that make .init and .fini sections work.
18561 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18562 else
18563 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18564 fi
18565 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18566 hardcode_direct_GCJ=yes
18567 hardcode_minus_L_GCJ=yes
18568 hardcode_shlibpath_var_GCJ=no
18569 ;;
18570
18571 sysv4)
18572 case $host_vendor in
18573 sni)
18574 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18575 hardcode_direct_GCJ=yes # is this really true???
18576 ;;
18577 siemens)
18578 ## LD is ld it makes a PLAMLIB
18579 ## CC just makes a GrossModule.
18580 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18581 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18582 hardcode_direct_GCJ=no
18583 ;;
18584 motorola)
18585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18587 ;;
18588 esac
18589 runpath_var='LD_RUN_PATH'
18590 hardcode_shlibpath_var_GCJ=no
18591 ;;
18592
18593 sysv4.3*)
18594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18595 hardcode_shlibpath_var_GCJ=no
18596 export_dynamic_flag_spec_GCJ='-Bexport'
18597 ;;
18598
18599 sysv4*MP*)
18600 if test -d /usr/nec; then
18601 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18602 hardcode_shlibpath_var_GCJ=no
18603 runpath_var=LD_RUN_PATH
18604 hardcode_runpath_var=yes
18605 ld_shlibs_GCJ=yes
18606 fi
18607 ;;
18608
18609 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18610 no_undefined_flag_GCJ='${wl}-z,text'
18611 archive_cmds_need_lc_GCJ=no
18612 hardcode_shlibpath_var_GCJ=no
18613 runpath_var='LD_RUN_PATH'
18614
18615 if test "$GCC" = yes; then
18616 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18617 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18618 else
18619 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18620 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18621 fi
18622 ;;
18623
18624 sysv5* | sco3.2v5* | sco5v6*)
18625 # Note: We can NOT use -z defs as we might desire, because we do not
18626 # link with -lc, and that would cause any symbols used from libc to
18627 # always be unresolved, which means just about no library would
18628 # ever link correctly. If we're not using GNU ld we use -z text
18629 # though, which does catch some bad symbols but isn't as heavy-handed
18630 # as -z defs.
18631 no_undefined_flag_GCJ='${wl}-z,text'
18632 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18633 archive_cmds_need_lc_GCJ=no
18634 hardcode_shlibpath_var_GCJ=no
18635 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18636 hardcode_libdir_separator_GCJ=':'
18637 link_all_deplibs_GCJ=yes
18638 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18639 runpath_var='LD_RUN_PATH'
18640
18641 if test "$GCC" = yes; then
18642 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18643 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18644 else
18645 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18646 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18647 fi
18648 ;;
18649
18650 uts4*)
18651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18652 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18653 hardcode_shlibpath_var_GCJ=no
18654 ;;
18655
18656 *)
18657 ld_shlibs_GCJ=no
18658 ;;
18659 esac
18660
18661 if test x$host_vendor = xsni; then
18662 case $host in
18663 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18664 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18665 ;;
18666 esac
18667 fi
18668 fi
18669
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18671 $as_echo "$ld_shlibs_GCJ" >&6; }
18672 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18673
18674 with_gnu_ld_GCJ=$with_gnu_ld
18675
18676
18677
18678
18679
18680
18681 #
18682 # Do we need to explicitly link libc?
18683 #
18684 case "x$archive_cmds_need_lc_GCJ" in
18685 x|xyes)
18686 # Assume -lc should be added
18687 archive_cmds_need_lc_GCJ=yes
18688
18689 if test "$enable_shared" = yes && test "$GCC" = yes; then
18690 case $archive_cmds_GCJ in
18691 *'~'*)
18692 # FIXME: we may have to deal with multi-command sequences.
18693 ;;
18694 '$CC '*)
18695 # Test whether the compiler implicitly links with -lc since on some
18696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18697 # to ld, don't add -lc before -lgcc.
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18700 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18701 $as_echo_n "(cached) " >&6
18702 else
18703 $RM conftest*
18704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18705
18706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18707 (eval $ac_compile) 2>&5
18708 ac_status=$?
18709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18710 test $ac_status = 0; } 2>conftest.err; then
18711 soname=conftest
18712 lib=conftest
18713 libobjs=conftest.$ac_objext
18714 deplibs=
18715 wl=$lt_prog_compiler_wl_GCJ
18716 pic_flag=$lt_prog_compiler_pic_GCJ
18717 compiler_flags=-v
18718 linker_flags=-v
18719 verstring=
18720 output_objdir=.
18721 libname=conftest
18722 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18723 allow_undefined_flag_GCJ=
18724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18725 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18726 ac_status=$?
18727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18728 test $ac_status = 0; }
18729 then
18730 lt_cv_archive_cmds_need_lc_GCJ=no
18731 else
18732 lt_cv_archive_cmds_need_lc_GCJ=yes
18733 fi
18734 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18735 else
18736 cat conftest.err 1>&5
18737 fi
18738 $RM conftest*
18739
18740 fi
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18742 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18743 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18744 ;;
18745 esac
18746 fi
18747 ;;
18748 esac
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18814 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18815 hardcode_action_GCJ=
18816 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18817 test -n "$runpath_var_GCJ" ||
18818 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18819
18820 # We can hardcode non-existent directories.
18821 if test "$hardcode_direct_GCJ" != no &&
18822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18823 # have to relink, otherwise we might link with an installed library
18824 # when we should be linking with a yet-to-be-installed one
18825 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18826 test "$hardcode_minus_L_GCJ" != no; then
18827 # Linking always hardcodes the temporary library directory.
18828 hardcode_action_GCJ=relink
18829 else
18830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18831 hardcode_action_GCJ=immediate
18832 fi
18833 else
18834 # We cannot hardcode anything, or else we can only hardcode existing
18835 # directories.
18836 hardcode_action_GCJ=unsupported
18837 fi
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18839 $as_echo "$hardcode_action_GCJ" >&6; }
18840
18841 if test "$hardcode_action_GCJ" = relink ||
18842 test "$inherit_rpath_GCJ" = yes; then
18843 # Fast installation is not supported
18844 enable_fast_install=no
18845 elif test "$shlibpath_overrides_runpath" = yes ||
18846 test "$enable_shared" = no; then
18847 # Fast installation is not necessary
18848 enable_fast_install=needless
18849 fi
18850
18851
18852
18853
18854
18855
18856
18857 fi
18858
18859 compiler_GCJ=${GCJ-gcj}
18860 ac_ext=c
18861 ac_cpp='$CPP $CPPFLAGS'
18862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18865
18866
18867 if test "x$CC" != xcc; then
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18869 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18870 else
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18872 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18873 fi
18874 set dummy $CC; ac_cc=`$as_echo "$2" |
18875 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18876 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18877 $as_echo_n "(cached) " >&6
18878 else
18879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18881
18882 int
18883 main ()
18884 {
18885
18886 ;
18887 return 0;
18888 }
18889 _ACEOF
18890 # Make sure it works both with $CC and with simple cc.
18891 # We do the test twice because some compilers refuse to overwrite an
18892 # existing .o file with -o, though they will create one.
18893 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18894 rm -f conftest2.*
18895 if { { case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898 esac
18899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18900 $as_echo "$ac_try_echo"; } >&5
18901 (eval "$ac_try") 2>&5
18902 ac_status=$?
18903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18904 test $ac_status = 0; } &&
18905 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908 esac
18909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18910 $as_echo "$ac_try_echo"; } >&5
18911 (eval "$ac_try") 2>&5
18912 ac_status=$?
18913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18914 test $ac_status = 0; };
18915 then
18916 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18917 if test "x$CC" != xcc; then
18918 # Test first that cc exists at all.
18919 if { ac_try='cc -c conftest.$ac_ext >&5'
18920 { { case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923 esac
18924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18925 $as_echo "$ac_try_echo"; } >&5
18926 (eval "$ac_try") 2>&5
18927 ac_status=$?
18928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929 test $ac_status = 0; }; }; then
18930 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18931 rm -f conftest2.*
18932 if { { case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935 esac
18936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18937 $as_echo "$ac_try_echo"; } >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18941 test $ac_status = 0; } &&
18942 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945 esac
18946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18947 $as_echo "$ac_try_echo"; } >&5
18948 (eval "$ac_try") 2>&5
18949 ac_status=$?
18950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18951 test $ac_status = 0; };
18952 then
18953 # cc works too.
18954 :
18955 else
18956 # cc exists but doesn't like -o.
18957 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18958 fi
18959 fi
18960 fi
18961 else
18962 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18963 fi
18964 rm -f core conftest*
18965
18966 fi
18967 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18969 $as_echo "yes" >&6; }
18970 else
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18973
18974 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
18975
18976 fi
18977
18978 # FIXME: we rely on the cache variable name because
18979 # there is no other way.
18980 set dummy $CC
18981 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18982 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18983 if test "$am_t" != yes; then
18984 # Losing compiler, so override with the script.
18985 # FIXME: It is wrong to rewrite CC.
18986 # But if we don't then we get into trouble of one sort or another.
18987 # A longer-term fix would be to have automake use am__CC in this case,
18988 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18989 CC="$am_aux_dir/compile $CC"
18990 fi
18991
18992
18993
18994
18995
18996 subdirs="$subdirs classpath libltdl"
18997
18998
18999 # The -no-testsuite modules omit the test subdir.
19000 if test -d $srcdir/testsuite; then
19001 TESTSUBDIR_TRUE=
19002 TESTSUBDIR_FALSE='#'
19003 else
19004 TESTSUBDIR_TRUE='#'
19005 TESTSUBDIR_FALSE=
19006 fi
19007
19008
19009 # Should the runtime set system properties by examining the
19010 # environment variable GCJ_PROPERTIES?
19011 # Check whether --enable-getenv-properties was given.
19012 if test "${enable_getenv_properties+set}" = set; then :
19013 enableval=$enable_getenv_properties;
19014 fi
19015
19016
19017 # Whether GCJ_PROPERTIES is used depends on the target.
19018 if test -z "$enable_getenv_properties"; then
19019 enable_getenv_properties=${enable_getenv_properties_default-yes}
19020 fi
19021 if test "$enable_getenv_properties" = no; then
19022
19023 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19024
19025 fi
19026
19027 # Whether we should use arguments to main()
19028 if test -z "$enable_main_args"; then
19029 enable_main_args=${enable_main_args_default-yes}
19030 fi
19031 if test "$enable_main_args" = no; then
19032
19033 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19034
19035 fi
19036
19037
19038 # Should we use hashtable-based synchronization?
19039 # Currently works only for Linux X86/ia64
19040 # Typically faster and more space-efficient
19041 # Check whether --enable-hash-synchronization was given.
19042 if test "${enable_hash_synchronization+set}" = set; then :
19043 enableval=$enable_hash_synchronization;
19044 fi
19045
19046
19047 if test -z "$enable_hash_synchronization"; then
19048 enable_hash_synchronization=$enable_hash_synchronization_default
19049 fi
19050
19051
19052 install_ecj_jar=no
19053 ECJ_BUILD_JAR=
19054 ECJ_JAR=
19055
19056 # Check whether --with-ecj-jar was given.
19057 if test "${with_ecj_jar+set}" = set; then :
19058 withval=$with_ecj_jar; ECJ_JAR=$withval
19059 else
19060 if test -f $multi_basedir/ecj.jar; then
19061 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19062 ECJ_JAR='$(jardir)/ecj.jar'
19063 install_ecj_jar=yes
19064 fi
19065 fi
19066
19067
19068
19069 if test "$ECJ_JAR" != ""; then
19070 BUILD_ECJ1_TRUE=
19071 BUILD_ECJ1_FALSE='#'
19072 else
19073 BUILD_ECJ1_TRUE='#'
19074 BUILD_ECJ1_FALSE=
19075 fi
19076
19077 if test $install_ecj_jar = yes; then
19078 INSTALL_ECJ_JAR_TRUE=
19079 INSTALL_ECJ_JAR_FALSE='#'
19080 else
19081 INSTALL_ECJ_JAR_TRUE='#'
19082 INSTALL_ECJ_JAR_FALSE=
19083 fi
19084
19085
19086
19087 # Check whether --with-java-home was given.
19088 if test "${with_java_home+set}" = set; then :
19089 withval=$with_java_home; JAVA_HOME="${withval}"
19090 else
19091 JAVA_HOME=""
19092 fi
19093
19094 if test ! -z "$JAVA_HOME"; then
19095 JAVA_HOME_SET_TRUE=
19096 JAVA_HOME_SET_FALSE='#'
19097 else
19098 JAVA_HOME_SET_TRUE='#'
19099 JAVA_HOME_SET_FALSE=
19100 fi
19101
19102
19103
19104 suppress_libgcj_bc=no
19105 # Check whether --enable-libgcj-bc was given.
19106 if test "${enable_libgcj_bc+set}" = set; then :
19107 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19108 suppress_libgcj_bc=yes
19109 fi
19110 fi
19111
19112 if test "$suppress_libgcj_bc" = "yes"; then
19113 SUPPRESS_LIBGCJ_BC_TRUE=
19114 SUPPRESS_LIBGCJ_BC_FALSE='#'
19115 else
19116 SUPPRESS_LIBGCJ_BC_TRUE='#'
19117 SUPPRESS_LIBGCJ_BC_FALSE=
19118 fi
19119
19120
19121 build_libgcj_reduced_reflection=no
19122 # Check whether --enable-reduced-reflection was given.
19123 if test "${enable_reduced_reflection+set}" = set; then :
19124 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19125 build_libgcj_reduced_reflection=yes
19126 fi
19127 fi
19128
19129 if test "$build_libgcj_reduced_reflection" = "yes"; then
19130 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19131 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19132 else
19133 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19134 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19135 fi
19136
19137
19138 # What is the native OS API for MinGW?
19139
19140 # Check whether --with-win32-nlsapi was given.
19141 if test "${with_win32_nlsapi+set}" = set; then :
19142 withval=$with_win32_nlsapi; case "${withval}" in
19143 ansi) with_win32_nlsapi=ansi ;;
19144 unicows) with_win32_nlsapi=unicows ;;
19145 unicode) with_win32_nlsapi=unicode ;;
19146 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19147 esac
19148 else
19149 with_win32_nlsapi=ansi
19150 fi
19151
19152
19153 case "${with_win32_nlsapi}" in
19154 unicows | unicode)
19155
19156 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19157
19158 ;;
19159 esac
19160
19161 # configure.host sets slow_pthread_self if the synchronization code should
19162 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19163 if test "${slow_pthread_self}" = "yes"; then
19164
19165 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19166
19167 fi
19168
19169 # Check for gc debugging. This option is handled both here and in the GC.
19170 # Check whether --enable-gc-debug was given.
19171 if test "${enable_gc_debug+set}" = set; then :
19172 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19173
19174 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19175
19176 fi
19177 fi
19178
19179
19180 # See if the user has the interpreter included.
19181 # Check whether --enable-interpreter was given.
19182 if test "${enable_interpreter+set}" = set; then :
19183 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19184 # This can also be set in configure.host.
19185 libgcj_interpreter=yes
19186 elif test "$enable_interpreter" = no; then
19187 libgcj_interpreter=no
19188 fi
19189 fi
19190
19191
19192 if test "$libgcj_interpreter" = yes; then
19193
19194 $as_echo "#define INTERPRETER 1" >>confdefs.h
19195
19196 fi
19197 INTERPRETER="$libgcj_interpreter"
19198
19199 if test "$libgcj_interpreter" = yes; then
19200 INTERPRETER_TRUE=
19201 INTERPRETER_FALSE='#'
19202 else
19203 INTERPRETER_TRUE='#'
19204 INTERPRETER_FALSE=
19205 fi
19206
19207
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19209 $as_echo_n "checking for exception model to use... " >&6; }
19210 ac_ext=cpp
19211 ac_cpp='$CXXCPP $CPPFLAGS'
19212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19215
19216 # Check whether --enable-sjlj-exceptions was given.
19217 if test "${enable_sjlj_exceptions+set}" = set; then :
19218 enableval=$enable_sjlj_exceptions; :
19219 else
19220 cat > conftest.$ac_ext << EOF
19221 #line 19221 "configure"
19222 struct S { ~S(); };
19223 void bar();
19224 void foo()
19225 {
19226 S s;
19227 bar();
19228 }
19229 EOF
19230 old_CXXFLAGS="$CXXFLAGS"
19231 CXXFLAGS=-S
19232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19233 (eval $ac_compile) 2>&5
19234 ac_status=$?
19235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; }; then
19237 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19238 enable_sjlj_exceptions=yes
19239 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19240 enable_sjlj_exceptions=no
19241 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19242 # ARM EH ABI.
19243 enable_sjlj_exceptions=no
19244 fi
19245 fi
19246 CXXFLAGS="$old_CXXFLAGS"
19247 rm -f conftest*
19248 fi
19249
19250 if test x$enable_sjlj_exceptions = xyes; then
19251
19252 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19253
19254 ac_exception_model_name=sjlj
19255 elif test x$enable_sjlj_exceptions = xno; then
19256 ac_exception_model_name="call frame"
19257 else
19258 as_fn_error "unable to detect exception model" "$LINENO" 5
19259 fi
19260 ac_ext=c
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19265
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19267 $as_echo "$ac_exception_model_name" >&6; }
19268
19269 # If we are non using SJLJ exceptions, and this host does not have support
19270 # for unwinding from a signal handler, enable checked dereferences and divides.
19271 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19272 CHECKREFSPEC=-fcheck-references
19273 DIVIDESPEC=-fuse-divide-subroutine
19274 EXCEPTIONSPEC=
19275 fi
19276
19277 # See if the user wants to disable java.net. This is the mildly
19278 # ugly way that we admit that target-side configuration sucks.
19279 # Check whether --enable-java-net was given.
19280 if test "${enable_java_net+set}" = set; then :
19281 enableval=$enable_java_net;
19282 fi
19283
19284
19285 # Whether java.net is built by default can depend on the target.
19286 if test -z "$enable_java_net"; then
19287 enable_java_net=${enable_java_net_default-yes}
19288 fi
19289 if test "$enable_java_net" = no; then
19290
19291 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19292
19293 fi
19294
19295 # See if the user wants to configure without libffi. Some
19296 # architectures don't support it, and default values are set in
19297 # configure.host.
19298
19299 # Check whether --with-libffi was given.
19300 if test "${with_libffi+set}" = set; then :
19301 withval=$with_libffi; :
19302 else
19303 with_libffi=${with_libffi_default-yes}
19304 fi
19305
19306
19307 LIBFFI=
19308 LIBFFIINCS=
19309 if test "$with_libffi" != no; then
19310
19311 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19312
19313 LIBFFI=../libffi/libffi_convenience.la
19314 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19315 fi
19316
19317
19318
19319 # See if the user wants to disable JVMPI support.
19320 # Check whether --enable-jvmpi was given.
19321 if test "${enable_jvmpi+set}" = set; then :
19322 enableval=$enable_jvmpi;
19323 fi
19324
19325
19326 if test "$enable_jvmpi" != no; then
19327
19328 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19329
19330 fi
19331
19332 # If the target is an eCos system, use the appropriate eCos
19333 # I/O routines.
19334 # FIXME: this should not be a local option but a global target
19335 # system; at present there is no eCos target.
19336 TARGET_ECOS=${PROCESS-"no"}
19337
19338 # Check whether --with-ecos was given.
19339 if test "${with_ecos+set}" = set; then :
19340 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19341
19342 fi
19343
19344
19345 case "$TARGET_ECOS" in
19346 no) case "$host" in
19347 *mingw*)
19348 PLATFORM=Win32
19349 PLATFORMNET=Win32
19350 PLATFORMH=win32.h
19351
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19353 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19354 LD_PROG=`$CC --print-prog-name=ld`
19355 LD_VERSION=`$LD_PROG --version`
19356 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19357 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19358 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19359 LD_OK="ok"
19360 else
19361 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19362 LD_OK="ok"
19363 fi
19364 fi
19365 if test "x$LD_OK" != x; then
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19367 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19368 else
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19370 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19372 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19373
19374 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19375
19376 fi
19377 ;;
19378 *)
19379 PLATFORM=Posix
19380 PLATFORMNET=Posix
19381 PLATFORMH=posix.h
19382 ;;
19383 esac
19384 ;;
19385 *)
19386 PLATFORM=Ecos
19387 PLATFORMNET=NoNet
19388
19389 $as_echo "#define ECOS 1" >>confdefs.h
19390
19391 PLATFORMH=posix.h
19392 ;;
19393 esac
19394
19395 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19396
19397
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19400 #include <stdint.h>
19401
19402 _ACEOF
19403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19404 $EGREP "uint32_t" >/dev/null 2>&1; then :
19405
19406 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19407
19408 fi
19409 rm -f conftest*
19410
19411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h. */
19413 #include <inttypes.h>
19414
19415 _ACEOF
19416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19417 $EGREP "uint32_t" >/dev/null 2>&1; then :
19418
19419 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19420
19421 fi
19422 rm -f conftest*
19423
19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19426 #include <sys/types.h>
19427
19428 _ACEOF
19429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19430 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19431
19432 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19433
19434 fi
19435 rm -f conftest*
19436
19437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19439 #include <sys/config.h>
19440
19441 _ACEOF
19442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19443 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19444
19445 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19446
19447 fi
19448 rm -f conftest*
19449
19450
19451 if test "$PLATFORM" = Win32; then
19452 USING_WIN32_PLATFORM_TRUE=
19453 USING_WIN32_PLATFORM_FALSE='#'
19454 else
19455 USING_WIN32_PLATFORM_TRUE='#'
19456 USING_WIN32_PLATFORM_FALSE=
19457 fi
19458
19459 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19460 USING_POSIX_PLATFORM_TRUE=
19461 USING_POSIX_PLATFORM_FALSE='#'
19462 else
19463 USING_POSIX_PLATFORM_TRUE='#'
19464 USING_POSIX_PLATFORM_FALSE=
19465 fi
19466
19467
19468 case "$host" in
19469 *-darwin*) DARWIN_CRT=true ;;
19470 *) DARWIN_CRT=false ;;
19471 esac
19472 if $DARWIN_CRT; then
19473 USING_DARWIN_CRT_TRUE=
19474 USING_DARWIN_CRT_FALSE='#'
19475 else
19476 USING_DARWIN_CRT_TRUE='#'
19477 USING_DARWIN_CRT_FALSE=
19478 fi
19479
19480
19481 # This may not be defined in a non-ANS conformant embedded system.
19482 # FIXME: Should these case a runtime exception in that case?
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485 #include <time.h>
19486
19487 _ACEOF
19488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19489 $EGREP "localtime" >/dev/null 2>&1; then :
19490
19491 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19492
19493 fi
19494 rm -f conftest*
19495
19496
19497 # Create the subdirectory for natFile.cc, or the attempt
19498 # to create the link will fail.
19499 test -d java || mkdir java
19500 test -d java/io || mkdir java/io
19501 test -d gnu || mkdir gnu
19502 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19503
19504
19505 # Likewise for natConcreteProcess.cc.
19506 test -d java/lang || mkdir java/lang
19507 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19508
19509
19510 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19511 test -d java/net || mkdir java/net
19512 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19513
19514 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19515
19516
19517 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19518 test -d gnu/java || mkdir gnu/java
19519 test -d gnu/java/net || mkdir gnu/java/net
19520 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19521
19522 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19523
19524
19525 # Likewise for natVMPipe.cc and natVMSelector.cc.
19526 test -d gnu/java/nio || mkdir gnu/java/nio
19527 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19528
19529 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19530
19531
19532 # Likewise for natFileChannelImpl.cc
19533 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19534 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19535
19536
19537 # Likewise for natVMSecureRandom.cc
19538 test -d gnu/java/security || mkdir gnu/java/security
19539 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19540 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19541 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19542
19543
19544 case "${host}" in
19545 *mingw*)
19546 SYSTEMSPEC="-lgdi32 -lws2_32"
19547 if test "${with_win32_nlsapi}" = "unicows"; then
19548 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19549 fi
19550 ;;
19551 *)
19552 SYSTEMSPEC=
19553 ;;
19554 esac
19555
19556
19557
19558 # Check whether --with-system-zlib was given.
19559 if test "${with_system_zlib+set}" = set; then :
19560 withval=$with_system_zlib;
19561 fi
19562
19563 ZLIBSPEC=
19564
19565 ZLIBTESTSPEC=
19566
19567
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19569 $as_echo_n "checking for X... " >&6; }
19570
19571
19572 # Check whether --with-x was given.
19573 if test "${with_x+set}" = set; then :
19574 withval=$with_x;
19575 fi
19576
19577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19578 if test "x$with_x" = xno; then
19579 # The user explicitly disabled X.
19580 have_x=disabled
19581 else
19582 case $x_includes,$x_libraries in #(
19583 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19584 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19585 $as_echo_n "(cached) " >&6
19586 else
19587 # One or both of the vars are not set, and there is no cached value.
19588 ac_x_includes=no ac_x_libraries=no
19589 rm -f -r conftest.dir
19590 if mkdir conftest.dir; then
19591 cd conftest.dir
19592 cat >Imakefile <<'_ACEOF'
19593 incroot:
19594 @echo incroot='${INCROOT}'
19595 usrlibdir:
19596 @echo usrlibdir='${USRLIBDIR}'
19597 libdir:
19598 @echo libdir='${LIBDIR}'
19599 _ACEOF
19600 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19601 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19602 for ac_var in incroot usrlibdir libdir; do
19603 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19604 done
19605 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19606 for ac_extension in a so sl dylib la dll; do
19607 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19608 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19609 ac_im_usrlibdir=$ac_im_libdir; break
19610 fi
19611 done
19612 # Screen out bogus values from the imake configuration. They are
19613 # bogus both because they are the default anyway, and because
19614 # using them would break gcc on systems where it needs fixed includes.
19615 case $ac_im_incroot in
19616 /usr/include) ac_x_includes= ;;
19617 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19618 esac
19619 case $ac_im_usrlibdir in
19620 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19621 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19622 esac
19623 fi
19624 cd ..
19625 rm -f -r conftest.dir
19626 fi
19627
19628 # Standard set of common directories for X headers.
19629 # Check X11 before X11Rn because it is often a symlink to the current release.
19630 ac_x_header_dirs='
19631 /usr/X11/include
19632 /usr/X11R7/include
19633 /usr/X11R6/include
19634 /usr/X11R5/include
19635 /usr/X11R4/include
19636
19637 /usr/include/X11
19638 /usr/include/X11R7
19639 /usr/include/X11R6
19640 /usr/include/X11R5
19641 /usr/include/X11R4
19642
19643 /usr/local/X11/include
19644 /usr/local/X11R7/include
19645 /usr/local/X11R6/include
19646 /usr/local/X11R5/include
19647 /usr/local/X11R4/include
19648
19649 /usr/local/include/X11
19650 /usr/local/include/X11R7
19651 /usr/local/include/X11R6
19652 /usr/local/include/X11R5
19653 /usr/local/include/X11R4
19654
19655 /usr/X386/include
19656 /usr/x386/include
19657 /usr/XFree86/include/X11
19658
19659 /usr/include
19660 /usr/local/include
19661 /usr/unsupported/include
19662 /usr/athena/include
19663 /usr/local/x11r5/include
19664 /usr/lpp/Xamples/include
19665
19666 /usr/openwin/include
19667 /usr/openwin/share/include'
19668
19669 if test "$ac_x_includes" = no; then
19670 # Guess where to find include files, by looking for Xlib.h.
19671 # First, try using that file with no special directory specified.
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19674 #include <X11/Xlib.h>
19675 _ACEOF
19676 if ac_fn_c_try_cpp "$LINENO"; then :
19677 # We can compile using X headers with no special include directory.
19678 ac_x_includes=
19679 else
19680 for ac_dir in $ac_x_header_dirs; do
19681 if test -r "$ac_dir/X11/Xlib.h"; then
19682 ac_x_includes=$ac_dir
19683 break
19684 fi
19685 done
19686 fi
19687 rm -f conftest.err conftest.$ac_ext
19688 fi # $ac_x_includes = no
19689
19690 if test "$ac_x_libraries" = no; then
19691 # Check for the libraries.
19692 # See if we find them without any special options.
19693 # Don't add to $LIBS permanently.
19694 ac_save_LIBS=$LIBS
19695 LIBS="-lX11 $LIBS"
19696 if test x$gcc_no_link = xyes; then
19697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19698 fi
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #include <X11/Xlib.h>
19702 int
19703 main ()
19704 {
19705 XrmInitialize ()
19706 ;
19707 return 0;
19708 }
19709 _ACEOF
19710 if ac_fn_c_try_link "$LINENO"; then :
19711 LIBS=$ac_save_LIBS
19712 # We can link X programs with no special library path.
19713 ac_x_libraries=
19714 else
19715 LIBS=$ac_save_LIBS
19716 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19717 do
19718 # Don't even attempt the hair of trying to link an X program!
19719 for ac_extension in a so sl dylib la dll; do
19720 if test -r "$ac_dir/libX11.$ac_extension"; then
19721 ac_x_libraries=$ac_dir
19722 break 2
19723 fi
19724 done
19725 done
19726 fi
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729 fi # $ac_x_libraries = no
19730
19731 case $ac_x_includes,$ac_x_libraries in #(
19732 no,* | *,no | *\'*)
19733 # Didn't find X, or a directory has "'" in its name.
19734 ac_cv_have_x="have_x=no";; #(
19735 *)
19736 # Record where we found X for the cache.
19737 ac_cv_have_x="have_x=yes\
19738 ac_x_includes='$ac_x_includes'\
19739 ac_x_libraries='$ac_x_libraries'"
19740 esac
19741 fi
19742 ;; #(
19743 *) have_x=yes;;
19744 esac
19745 eval "$ac_cv_have_x"
19746 fi # $with_x != no
19747
19748 if test "$have_x" != yes; then
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19750 $as_echo "$have_x" >&6; }
19751 no_x=yes
19752 else
19753 # If each of the values was on the command line, it overrides each guess.
19754 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19755 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19756 # Update the cache value to reflect the command line values.
19757 ac_cv_have_x="have_x=yes\
19758 ac_x_includes='$x_includes'\
19759 ac_x_libraries='$x_libraries'"
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19761 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19762 fi
19763
19764 if test "$no_x" = yes; then
19765 # Not all programs may use this symbol, but it does not hurt to define it.
19766
19767 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19768
19769 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19770 else
19771 if test -n "$x_includes"; then
19772 X_CFLAGS="$X_CFLAGS -I$x_includes"
19773 fi
19774
19775 # It would also be nice to do this for all -L options, not just this one.
19776 if test -n "$x_libraries"; then
19777 X_LIBS="$X_LIBS -L$x_libraries"
19778 # For Solaris; some versions of Sun CC require a space after -R and
19779 # others require no space. Words are not sufficient . . . .
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19781 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19782 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19783 ac_xsave_c_werror_flag=$ac_c_werror_flag
19784 ac_c_werror_flag=yes
19785 if test x$gcc_no_link = xyes; then
19786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19787 fi
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19790
19791 int
19792 main ()
19793 {
19794
19795 ;
19796 return 0;
19797 }
19798 _ACEOF
19799 if ac_fn_c_try_link "$LINENO"; then :
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19801 $as_echo "no" >&6; }
19802 X_LIBS="$X_LIBS -R$x_libraries"
19803 else
19804 LIBS="$ac_xsave_LIBS -R $x_libraries"
19805 if test x$gcc_no_link = xyes; then
19806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19807 fi
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19810
19811 int
19812 main ()
19813 {
19814
19815 ;
19816 return 0;
19817 }
19818 _ACEOF
19819 if ac_fn_c_try_link "$LINENO"; then :
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19821 $as_echo "yes" >&6; }
19822 X_LIBS="$X_LIBS -R $x_libraries"
19823 else
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19825 $as_echo "neither works" >&6; }
19826 fi
19827 rm -f core conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19829 fi
19830 rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 ac_c_werror_flag=$ac_xsave_c_werror_flag
19833 LIBS=$ac_xsave_LIBS
19834 fi
19835
19836 # Check for system-dependent libraries X programs must link with.
19837 # Do this before checking for the system-independent R6 libraries
19838 # (-lICE), since we may need -lsocket or whatever for X linking.
19839
19840 if test "$ISC" = yes; then
19841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19842 else
19843 # Martyn Johnson says this is needed for Ultrix, if the X
19844 # libraries were built with DECnet support. And Karl Berry says
19845 # the Alpha needs dnet_stub (dnet does not exist).
19846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19847 if test x$gcc_no_link = xyes; then
19848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19849 fi
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852
19853 /* Override any GCC internal prototype to avoid an error.
19854 Use char because int might match the return type of a GCC
19855 builtin and then its argument prototype would still apply. */
19856 #ifdef __cplusplus
19857 extern "C"
19858 #endif
19859 char XOpenDisplay ();
19860 int
19861 main ()
19862 {
19863 return XOpenDisplay ();
19864 ;
19865 return 0;
19866 }
19867 _ACEOF
19868 if ac_fn_c_try_link "$LINENO"; then :
19869
19870 else
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19872 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19874 $as_echo_n "(cached) " >&6
19875 else
19876 ac_check_lib_save_LIBS=$LIBS
19877 LIBS="-ldnet $LIBS"
19878 if test x$gcc_no_link = xyes; then
19879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19880 fi
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883
19884 /* Override any GCC internal prototype to avoid an error.
19885 Use char because int might match the return type of a GCC
19886 builtin and then its argument prototype would still apply. */
19887 #ifdef __cplusplus
19888 extern "C"
19889 #endif
19890 char dnet_ntoa ();
19891 int
19892 main ()
19893 {
19894 return dnet_ntoa ();
19895 ;
19896 return 0;
19897 }
19898 _ACEOF
19899 if ac_fn_c_try_link "$LINENO"; then :
19900 ac_cv_lib_dnet_dnet_ntoa=yes
19901 else
19902 ac_cv_lib_dnet_dnet_ntoa=no
19903 fi
19904 rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19906 LIBS=$ac_check_lib_save_LIBS
19907 fi
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19909 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19910 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19911 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19912 fi
19913
19914 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19916 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19917 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19918 $as_echo_n "(cached) " >&6
19919 else
19920 ac_check_lib_save_LIBS=$LIBS
19921 LIBS="-ldnet_stub $LIBS"
19922 if test x$gcc_no_link = xyes; then
19923 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19924 fi
19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926 /* end confdefs.h. */
19927
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19931 #ifdef __cplusplus
19932 extern "C"
19933 #endif
19934 char dnet_ntoa ();
19935 int
19936 main ()
19937 {
19938 return dnet_ntoa ();
19939 ;
19940 return 0;
19941 }
19942 _ACEOF
19943 if ac_fn_c_try_link "$LINENO"; then :
19944 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19945 else
19946 ac_cv_lib_dnet_stub_dnet_ntoa=no
19947 fi
19948 rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext conftest.$ac_ext
19950 LIBS=$ac_check_lib_save_LIBS
19951 fi
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19953 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19954 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19955 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19956 fi
19957
19958 fi
19959 fi
19960 rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS="$ac_xsave_LIBS"
19963
19964 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19965 # to get the SysV transport functions.
19966 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19967 # needs -lnsl.
19968 # The nsl library prevents programs from opening the X display
19969 # on Irix 5.2, according to T.E. Dickey.
19970 # The functions gethostbyname, getservbyname, and inet_addr are
19971 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19972 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19973 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19974
19975 fi
19976
19977 if test $ac_cv_func_gethostbyname = no; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19979 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19980 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 ac_check_lib_save_LIBS=$LIBS
19984 LIBS="-lnsl $LIBS"
19985 if test x$gcc_no_link = xyes; then
19986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19987 fi
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h. */
19990
19991 /* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 char gethostbyname ();
19998 int
19999 main ()
20000 {
20001 return gethostbyname ();
20002 ;
20003 return 0;
20004 }
20005 _ACEOF
20006 if ac_fn_c_try_link "$LINENO"; then :
20007 ac_cv_lib_nsl_gethostbyname=yes
20008 else
20009 ac_cv_lib_nsl_gethostbyname=no
20010 fi
20011 rm -f core conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
20013 LIBS=$ac_check_lib_save_LIBS
20014 fi
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20016 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20017 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20019 fi
20020
20021 if test $ac_cv_lib_nsl_gethostbyname = no; then
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20023 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20024 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20025 $as_echo_n "(cached) " >&6
20026 else
20027 ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-lbsd $LIBS"
20029 if test x$gcc_no_link = xyes; then
20030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20031 fi
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20034
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 char gethostbyname ();
20042 int
20043 main ()
20044 {
20045 return gethostbyname ();
20046 ;
20047 return 0;
20048 }
20049 _ACEOF
20050 if ac_fn_c_try_link "$LINENO"; then :
20051 ac_cv_lib_bsd_gethostbyname=yes
20052 else
20053 ac_cv_lib_bsd_gethostbyname=no
20054 fi
20055 rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20057 LIBS=$ac_check_lib_save_LIBS
20058 fi
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20060 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20061 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20063 fi
20064
20065 fi
20066 fi
20067
20068 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20069 # socket/setsockopt and other routines are undefined under SCO ODT
20070 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20071 # on later versions), says Simon Leinen: it contains gethostby*
20072 # variants that don't use the name server (or something). -lsocket
20073 # must be given before -lnsl if both are needed. We assume that
20074 # if connect needs -lnsl, so does gethostbyname.
20075 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20076 if test "x$ac_cv_func_connect" = x""yes; then :
20077
20078 fi
20079
20080 if test $ac_cv_func_connect = no; then
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20082 $as_echo_n "checking for connect in -lsocket... " >&6; }
20083 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 ac_check_lib_save_LIBS=$LIBS
20087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20088 if test x$gcc_no_link = xyes; then
20089 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20090 fi
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20093
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20097 #ifdef __cplusplus
20098 extern "C"
20099 #endif
20100 char connect ();
20101 int
20102 main ()
20103 {
20104 return connect ();
20105 ;
20106 return 0;
20107 }
20108 _ACEOF
20109 if ac_fn_c_try_link "$LINENO"; then :
20110 ac_cv_lib_socket_connect=yes
20111 else
20112 ac_cv_lib_socket_connect=no
20113 fi
20114 rm -f core conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20116 LIBS=$ac_check_lib_save_LIBS
20117 fi
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20119 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20120 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20121 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20122 fi
20123
20124 fi
20125
20126 # Guillermo Gomez says -lposix is necessary on A/UX.
20127 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20128 if test "x$ac_cv_func_remove" = x""yes; then :
20129
20130 fi
20131
20132 if test $ac_cv_func_remove = no; then
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20134 $as_echo_n "checking for remove in -lposix... " >&6; }
20135 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20136 $as_echo_n "(cached) " >&6
20137 else
20138 ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-lposix $LIBS"
20140 if test x$gcc_no_link = xyes; then
20141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20142 fi
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char remove ();
20153 int
20154 main ()
20155 {
20156 return remove ();
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 if ac_fn_c_try_link "$LINENO"; then :
20162 ac_cv_lib_posix_remove=yes
20163 else
20164 ac_cv_lib_posix_remove=no
20165 fi
20166 rm -f core conftest.err conftest.$ac_objext \
20167 conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20169 fi
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20171 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20172 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20174 fi
20175
20176 fi
20177
20178 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20179 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20180 if test "x$ac_cv_func_shmat" = x""yes; then :
20181
20182 fi
20183
20184 if test $ac_cv_func_shmat = no; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20186 $as_echo_n "checking for shmat in -lipc... " >&6; }
20187 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20188 $as_echo_n "(cached) " >&6
20189 else
20190 ac_check_lib_save_LIBS=$LIBS
20191 LIBS="-lipc $LIBS"
20192 if test x$gcc_no_link = xyes; then
20193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20194 fi
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20197
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20201 #ifdef __cplusplus
20202 extern "C"
20203 #endif
20204 char shmat ();
20205 int
20206 main ()
20207 {
20208 return shmat ();
20209 ;
20210 return 0;
20211 }
20212 _ACEOF
20213 if ac_fn_c_try_link "$LINENO"; then :
20214 ac_cv_lib_ipc_shmat=yes
20215 else
20216 ac_cv_lib_ipc_shmat=no
20217 fi
20218 rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20220 LIBS=$ac_check_lib_save_LIBS
20221 fi
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20223 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20224 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20226 fi
20227
20228 fi
20229 fi
20230
20231 # Check for libraries that X11R6 Xt/Xaw programs need.
20232 ac_save_LDFLAGS=$LDFLAGS
20233 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20234 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20235 # check for ICE first), but we must link in the order -lSM -lICE or
20236 # we get undefined symbols. So assume we have SM if we have ICE.
20237 # These have to be linked with before -lX11, unlike the other
20238 # libraries we check for below, so use a different variable.
20239 # John Interrante, Karl Berry
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20241 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20242 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20243 $as_echo_n "(cached) " >&6
20244 else
20245 ac_check_lib_save_LIBS=$LIBS
20246 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20247 if test x$gcc_no_link = xyes; then
20248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20249 fi
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20252
20253 /* Override any GCC internal prototype to avoid an error.
20254 Use char because int might match the return type of a GCC
20255 builtin and then its argument prototype would still apply. */
20256 #ifdef __cplusplus
20257 extern "C"
20258 #endif
20259 char IceConnectionNumber ();
20260 int
20261 main ()
20262 {
20263 return IceConnectionNumber ();
20264 ;
20265 return 0;
20266 }
20267 _ACEOF
20268 if ac_fn_c_try_link "$LINENO"; then :
20269 ac_cv_lib_ICE_IceConnectionNumber=yes
20270 else
20271 ac_cv_lib_ICE_IceConnectionNumber=no
20272 fi
20273 rm -f core conftest.err conftest.$ac_objext \
20274 conftest$ac_exeext conftest.$ac_ext
20275 LIBS=$ac_check_lib_save_LIBS
20276 fi
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20278 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20279 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20280 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20281 fi
20282
20283 LDFLAGS=$ac_save_LDFLAGS
20284
20285 fi
20286
20287
20288 # FIXME: this should be _libs on some hosts.
20289 libsubdir=.libs
20290
20291 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20292
20293 LIBSTDCXXSPEC=
20294 # extra LD Flags which are required for targets
20295 case "${host}" in
20296 *-*-darwin[0-7].*)
20297 # For now we have to disable it on darwin[8-9] because it slows down
20298 # the linking phase. A possible bug in ld?
20299 # on Darwin -single_module speeds up loading of the dynamic libraries.
20300 extra_ldflags_libjava=-Wl,-single_module
20301 ;;
20302 *-*-darwin[912]*)
20303 extra_gij_ldflags=-Wl,-allow_stack_execute
20304 ;;
20305 arm*linux*eabi)
20306 # Some of the ARM unwinder code is actually in libstdc++. We
20307 # could in principle replicate it in libgcj, but it's better to
20308 # have a dependency on libstdc++.
20309 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20310 LIBSTDCXXSPEC=-lstdc++
20311 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20312 ;;
20313 esac
20314
20315
20316
20317
20318
20319
20320
20321 # Allow the GC to be disabled. Can be useful when debugging.
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20323 $as_echo_n "checking for garbage collector to use... " >&6; }
20324 # Check whether --enable-java-gc was given.
20325 if test "${enable_java_gc+set}" = set; then :
20326 enableval=$enable_java_gc; GC=$enableval
20327 else
20328 GC=boehm
20329 fi
20330
20331 GCLIBS=
20332 GCINCS=
20333 GCDEPS=
20334 GCSPEC=
20335 JC1GCSPEC=
20336 GCTESTSPEC=
20337 case "$GC" in
20338 boehm)
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20340 $as_echo "boehm" >&6; }
20341 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20342 JC1GCSPEC='-fuse-boehm-gc'
20343 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20344 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20345 GCOBJS=boehm.lo
20346 GCHDR=boehm-gc.h
20347 # The POSIX thread support needs to know this.
20348
20349 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20350
20351 ;;
20352 no)
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20354 $as_echo "none" >&6; }
20355 GCHDR=no-gc.h
20356 ;;
20357 *)
20358 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20359 ;;
20360 esac
20361
20362
20363
20364
20365
20366
20367 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20368
20369 if test "$GC" = boehm; then
20370 USING_BOEHMGC_TRUE=
20371 USING_BOEHMGC_FALSE='#'
20372 else
20373 USING_BOEHMGC_TRUE='#'
20374 USING_BOEHMGC_FALSE=
20375 fi
20376
20377 if test "$GC" = no; then
20378 USING_NOGC_TRUE=
20379 USING_NOGC_FALSE='#'
20380 else
20381 USING_NOGC_TRUE='#'
20382 USING_NOGC_FALSE=
20383 fi
20384
20385
20386
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20388 $as_echo_n "checking for thread model used by GCC... " >&6; }
20389 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20391 $as_echo "$THREADS" >&6; }
20392
20393 case "$THREADS" in
20394 no | none | single)
20395 THREADS=none
20396 ;;
20397 aix | posix | posix95 | pthreads)
20398 THREADS=posix
20399 case "$host" in
20400 *-*-linux*)
20401
20402 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20403
20404 ;;
20405 esac
20406 ;;
20407 win32)
20408 ;;
20409 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20410 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20411 ;;
20412 *)
20413 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20414 ;;
20415 esac
20416
20417 THREADCXXFLAGS=
20418 THREADLDFLAGS=
20419 THREADLIBS=
20420 THREADINCS=
20421 THREADDEPS=
20422 THREADH=
20423 THREADSPEC=
20424 THREADSTARTFILESPEC=
20425 case "$THREADS" in
20426 posix)
20427 case "$host" in
20428 *-*-cygwin*)
20429 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20430 ;;
20431 *-*-freebsd[1234]*)
20432 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20433 # merely adds pthread_* functions) but it does have a -pthread switch
20434 # which is required at link-time to select -lc_r *instead* of -lc.
20435 THREADLDFLAGS=-pthread
20436 # Don't set THREADSPEC here as might be expected since -pthread is
20437 # not processed when found within a spec file, it must come from
20438 # the command line. For now, the user must provide the -pthread
20439 # switch to link code compiled with gcj. In future, consider adding
20440 # support for weak references to pthread_* functions ala gthr.h API.
20441 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20442 ;;
20443 *-*-freebsd*)
20444 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20445 # systems which support threads and -lpthread.
20446 THREADLDFLAGS=-pthread
20447 THREADSPEC=-lpthread
20448 ;;
20449 alpha*-dec-osf* | hppa*-hp-hpux*)
20450 THREADCXXFLAGS=-pthread
20451 # boehm-gc needs some functions from librt, so link that too.
20452 THREADLIBS='-lpthread -lrt'
20453 THREADSPEC='-lpthread -lrt'
20454 ;;
20455 *)
20456 THREADLIBS=-lpthread
20457 THREADSPEC=-lpthread
20458 ;;
20459 esac
20460 THREADH=posix-threads.h
20461 # MIT pthreads doesn't seem to have the mutexattr functions.
20462 # But for now we don't check for it. We just assume you aren't
20463 # using MIT pthreads.
20464
20465 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20466
20467
20468 # If we're using the Boehm GC, then we happen to know that it
20469 # defines _REENTRANT, so we don't bother. Eww.
20470 if test "$GC" != boehm; then
20471
20472 $as_echo "#define _REENTRANT 1" >>confdefs.h
20473
20474 fi
20475
20476 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20477
20478 ;;
20479
20480 win32)
20481 THREADH=win32-threads.h
20482 THREADCXXFLAGS=-mthreads
20483 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20484 # But we do not want the executables created to be dependent on
20485 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20486 # exception handling contexts. The following kludge achieves this effect
20487 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20488 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20489 # A workaround is to explicitly use -mthreads while linking Java programs.
20490 # See PR libgcj/28263.
20491 #
20492 # FIXME: In Java we are able to detect thread death at the end of
20493 # Thread.run() so we should be able to clean up the exception handling
20494 # contexts ourselves.
20495 THREADSTARTFILESPEC='crtmt%O%s'
20496 ;;
20497
20498 none)
20499 THREADH=no-threads.h
20500 ;;
20501 esac
20502 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20503
20504
20505
20506
20507
20508
20509
20510
20511 if test "$THREADS" = posix; then
20512 USING_POSIX_THREADS_TRUE=
20513 USING_POSIX_THREADS_FALSE='#'
20514 else
20515 USING_POSIX_THREADS_TRUE='#'
20516 USING_POSIX_THREADS_FALSE=
20517 fi
20518
20519 if test "$THREADS" = win32; then
20520 USING_WIN32_THREADS_TRUE=
20521 USING_WIN32_THREADS_FALSE='#'
20522 else
20523 USING_WIN32_THREADS_TRUE='#'
20524 USING_WIN32_THREADS_FALSE=
20525 fi
20526
20527 if test "$THREADS" = none; then
20528 USING_NO_THREADS_TRUE=
20529 USING_NO_THREADS_FALSE='#'
20530 else
20531 USING_NO_THREADS_TRUE='#'
20532 USING_NO_THREADS_FALSE=
20533 fi
20534
20535 if test "$enable_shared" != yes; then
20536 use_libgcj_bc=no
20537 fi
20538 if test "$use_libgcj_bc" = yes; then
20539 USE_LIBGCJ_BC_TRUE=
20540 USE_LIBGCJ_BC_FALSE='#'
20541 else
20542 USE_LIBGCJ_BC_TRUE='#'
20543 USE_LIBGCJ_BC_FALSE=
20544 fi
20545
20546
20547 if test -d sysdep; then true; else mkdir sysdep; fi
20548 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20549
20550 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20551
20552 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20553
20554
20555 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20556 if test "$use_libgcj_bc" = yes; then
20557 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:-lgcj;:-lgcj_bc}"
20558 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20559 fi
20560
20561
20562
20563 HASH_SYNC_SPEC=
20564 # Hash synchronization is only useful with posix threads right now.
20565 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20566 HASH_SYNC_SPEC=-fhash-synchronization
20567
20568 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20569
20570 fi
20571
20572
20573 if test "$GCC" = yes; then
20574 USING_GCC_TRUE=
20575 USING_GCC_FALSE='#'
20576 else
20577 USING_GCC_TRUE='#'
20578 USING_GCC_FALSE=
20579 fi
20580
20581
20582 # We're in the tree with gcc, and need to include some of its headers.
20583 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20584
20585 if test "x${with_newlib}" = "xyes"; then
20586 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20587 # may not work correctly, because the compiler may not be able to
20588 # link executables.
20589
20590 # We assume newlib. This lets us hard-code the functions we know
20591 # we'll have.
20592
20593 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20594
20595
20596 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20597
20598
20599 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20600
20601
20602 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20603
20604
20605 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20606
20607
20608 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20609
20610 # This is only for POSIX threads.
20611
20612 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20613
20614
20615 # Assume we do not have getuid and friends.
20616
20617 $as_echo "#define NO_GETUID 1" >>confdefs.h
20618
20619 PLATFORMNET=NoNet
20620 else
20621 for ac_func in strerror_r select fstat open fsync sleep opendir \
20622 localtime_r getpwuid_r getcwd \
20623 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20624 nl_langinfo setlocale \
20625 inet_pton uname inet_ntoa \
20626 getrlimit sigaction ftruncate mmap \
20627 getifaddrs
20628 do :
20629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20631 eval as_val=\$$as_ac_var
20632 if test "x$as_val" = x""yes; then :
20633 cat >>confdefs.h <<_ACEOF
20634 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20635 _ACEOF
20636
20637 fi
20638 done
20639
20640 for ac_func in inet_aton inet_addr
20641 do :
20642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20644 eval as_val=\$$as_ac_var
20645 if test "x$as_val" = x""yes; then :
20646 cat >>confdefs.h <<_ACEOF
20647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20648 _ACEOF
20649 break
20650 fi
20651 done
20652
20653 for ac_header in unistd.h dlfcn.h sys/resource.h
20654 do :
20655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20656 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20657 eval as_val=\$$as_ac_Header
20658 if test "x$as_val" = x""yes; then :
20659 cat >>confdefs.h <<_ACEOF
20660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20661 _ACEOF
20662
20663 fi
20664
20665 done
20666
20667 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20669 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20670 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20671 $as_echo_n "(cached) " >&6
20672 else
20673 ac_check_lib_save_LIBS=$LIBS
20674 LIBS="-ldl $LIBS"
20675 if test x$gcc_no_link = xyes; then
20676 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20677 fi
20678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20680
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20684 #ifdef __cplusplus
20685 extern "C"
20686 #endif
20687 char dladdr ();
20688 int
20689 main ()
20690 {
20691 return dladdr ();
20692 ;
20693 return 0;
20694 }
20695 _ACEOF
20696 if ac_fn_c_try_link "$LINENO"; then :
20697 ac_cv_lib_dl_dladdr=yes
20698 else
20699 ac_cv_lib_dl_dladdr=no
20700 fi
20701 rm -f core conftest.err conftest.$ac_objext \
20702 conftest$ac_exeext conftest.$ac_ext
20703 LIBS=$ac_check_lib_save_LIBS
20704 fi
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20706 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20707 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20708
20709
20710 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20711
20712 else
20713
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20715 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20716 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 ac_check_lib_save_LIBS=$LIBS
20720 LIBS="-ldld $LIBS"
20721 if test x$gcc_no_link = xyes; then
20722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20723 fi
20724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h. */
20726
20727 /* Override any GCC internal prototype to avoid an error.
20728 Use char because int might match the return type of a GCC
20729 builtin and then its argument prototype would still apply. */
20730 #ifdef __cplusplus
20731 extern "C"
20732 #endif
20733 char dladdr ();
20734 int
20735 main ()
20736 {
20737 return dladdr ();
20738 ;
20739 return 0;
20740 }
20741 _ACEOF
20742 if ac_fn_c_try_link "$LINENO"; then :
20743 ac_cv_lib_dld_dladdr=yes
20744 else
20745 ac_cv_lib_dld_dladdr=no
20746 fi
20747 rm -f core conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20749 LIBS=$ac_check_lib_save_LIBS
20750 fi
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20752 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20753 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20754
20755
20756 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20757
20758 fi
20759
20760 fi
20761
20762
20763 if test x"$cross_compiling" = x"no"; then
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20765 $as_echo_n "checking for /proc/self/exe... " >&6; }
20766 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20767 $as_echo_n "(cached) " >&6
20768 else
20769 test "$cross_compiling" = yes &&
20770 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20771 if test -r "/proc/self/exe"; then
20772 ac_cv_file__proc_self_exe=yes
20773 else
20774 ac_cv_file__proc_self_exe=no
20775 fi
20776 fi
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20778 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20779 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20780
20781 cat >>confdefs.h <<_ACEOF
20782 #define HAVE__PROC_SELF_EXE 1
20783 _ACEOF
20784
20785
20786 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20787
20788 fi
20789
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20791 $as_echo_n "checking for /proc/self/maps... " >&6; }
20792 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20793 $as_echo_n "(cached) " >&6
20794 else
20795 test "$cross_compiling" = yes &&
20796 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20797 if test -r "/proc/self/maps"; then
20798 ac_cv_file__proc_self_maps=yes
20799 else
20800 ac_cv_file__proc_self_maps=no
20801 fi
20802 fi
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20804 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20805 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20806
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE__PROC_SELF_MAPS 1
20809 _ACEOF
20810
20811
20812 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20813
20814 fi
20815
20816 else
20817 case $host in
20818 *-linux*)
20819
20820 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20821
20822
20823 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20824
20825 ;;
20826 esac
20827 fi
20828
20829
20830 if test "X$prefix" = "XNONE"; then
20831 acl_final_prefix="$ac_default_prefix"
20832 else
20833 acl_final_prefix="$prefix"
20834 fi
20835 if test "X$exec_prefix" = "XNONE"; then
20836 acl_final_exec_prefix='${prefix}'
20837 else
20838 acl_final_exec_prefix="$exec_prefix"
20839 fi
20840 acl_save_prefix="$prefix"
20841 prefix="$acl_final_prefix"
20842 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20843 prefix="$acl_save_prefix"
20844
20845
20846 # Check whether --with-gnu-ld was given.
20847 if test "${with_gnu_ld+set}" = set; then :
20848 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20849 else
20850 with_gnu_ld=no
20851 fi
20852
20853 # Prepare PATH_SEPARATOR.
20854 # The user is always right.
20855 if test "${PATH_SEPARATOR+set}" != set; then
20856 echo "#! /bin/sh" >conf$$.sh
20857 echo "exit 0" >>conf$$.sh
20858 chmod +x conf$$.sh
20859 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20860 PATH_SEPARATOR=';'
20861 else
20862 PATH_SEPARATOR=:
20863 fi
20864 rm -f conf$$.sh
20865 fi
20866 ac_prog=ld
20867 if test "$GCC" = yes; then
20868 # Check if gcc -print-prog-name=ld gives a path.
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20870 $as_echo_n "checking for ld used by GCC... " >&6; }
20871 case $host in
20872 *-*-mingw*)
20873 # gcc leaves a trailing carriage return which upsets mingw
20874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20875 *)
20876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20877 esac
20878 case $ac_prog in
20879 # Accept absolute paths.
20880 [\\/]* | [A-Za-z]:[\\/]*)
20881 re_direlt='/[^/][^/]*/\.\./'
20882 # Canonicalize the path of ld
20883 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20884 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20885 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20886 done
20887 test -z "$LD" && LD="$ac_prog"
20888 ;;
20889 "")
20890 # If it fails, then pretend we aren't using GCC.
20891 ac_prog=ld
20892 ;;
20893 *)
20894 # If it is relative, then search for the first ld in PATH.
20895 with_gnu_ld=unknown
20896 ;;
20897 esac
20898 elif test "$with_gnu_ld" = yes; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20900 $as_echo_n "checking for GNU ld... " >&6; }
20901 else
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20903 $as_echo_n "checking for non-GNU ld... " >&6; }
20904 fi
20905 if test "${acl_cv_path_LD+set}" = set; then :
20906 $as_echo_n "(cached) " >&6
20907 else
20908 if test -z "$LD"; then
20909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20910 for ac_dir in $PATH; do
20911 test -z "$ac_dir" && ac_dir=.
20912 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20913 acl_cv_path_LD="$ac_dir/$ac_prog"
20914 # Check to see if the program is GNU ld. I'd rather use --version,
20915 # but apparently some GNU ld's only accept -v.
20916 # Break only if it was the GNU/non-GNU ld that we prefer.
20917 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20918 test "$with_gnu_ld" != no && break
20919 else
20920 test "$with_gnu_ld" != yes && break
20921 fi
20922 fi
20923 done
20924 IFS="$ac_save_ifs"
20925 else
20926 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20927 fi
20928 fi
20929
20930 LD="$acl_cv_path_LD"
20931 if test -n "$LD"; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20933 $as_echo "$LD" >&6; }
20934 else
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936 $as_echo "no" >&6; }
20937 fi
20938 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20940 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20941 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20942 $as_echo_n "(cached) " >&6
20943 else
20944 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20945 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20946 acl_cv_prog_gnu_ld=yes
20947 else
20948 acl_cv_prog_gnu_ld=no
20949 fi
20950 fi
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20952 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20953 with_gnu_ld=$acl_cv_prog_gnu_ld
20954
20955
20956
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20958 $as_echo_n "checking for shared library run path origin... " >&6; }
20959 if test "${acl_cv_rpath+set}" = set; then :
20960 $as_echo_n "(cached) " >&6
20961 else
20962
20963 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20964 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20965 . ./conftest.sh
20966 rm -f ./conftest.sh
20967 acl_cv_rpath=done
20968
20969 fi
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20971 $as_echo "$acl_cv_rpath" >&6; }
20972 wl="$acl_cv_wl"
20973 libext="$acl_cv_libext"
20974 shlibext="$acl_cv_shlibext"
20975 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20976 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20977 hardcode_direct="$acl_cv_hardcode_direct"
20978 hardcode_minus_L="$acl_cv_hardcode_minus_L"
20979 # Check whether --enable-rpath was given.
20980 if test "${enable_rpath+set}" = set; then :
20981 enableval=$enable_rpath; :
20982 else
20983 enable_rpath=yes
20984 fi
20985
20986
20987
20988
20989
20990
20991
20992
20993 use_additional=yes
20994
20995 acl_save_prefix="$prefix"
20996 prefix="$acl_final_prefix"
20997 acl_save_exec_prefix="$exec_prefix"
20998 exec_prefix="$acl_final_exec_prefix"
20999
21000 eval additional_includedir=\"$includedir\"
21001 eval additional_libdir=\"$libdir\"
21002
21003 exec_prefix="$acl_save_exec_prefix"
21004 prefix="$acl_save_prefix"
21005
21006
21007 # Check whether --with-libiconv-prefix was given.
21008 if test "${with_libiconv_prefix+set}" = set; then :
21009 withval=$with_libiconv_prefix;
21010 if test "X$withval" = "Xno"; then
21011 use_additional=no
21012 else
21013 if test "X$withval" = "X"; then
21014
21015 acl_save_prefix="$prefix"
21016 prefix="$acl_final_prefix"
21017 acl_save_exec_prefix="$exec_prefix"
21018 exec_prefix="$acl_final_exec_prefix"
21019
21020 eval additional_includedir=\"$includedir\"
21021 eval additional_libdir=\"$libdir\"
21022
21023 exec_prefix="$acl_save_exec_prefix"
21024 prefix="$acl_save_prefix"
21025
21026 else
21027 additional_includedir="$withval/include"
21028 additional_libdir="$withval/lib"
21029 fi
21030 fi
21031
21032 fi
21033
21034 LIBICONV=
21035 LTLIBICONV=
21036 INCICONV=
21037 rpathdirs=
21038 ltrpathdirs=
21039 names_already_handled=
21040 names_next_round='iconv '
21041 while test -n "$names_next_round"; do
21042 names_this_round="$names_next_round"
21043 names_next_round=
21044 for name in $names_this_round; do
21045 already_handled=
21046 for n in $names_already_handled; do
21047 if test "$n" = "$name"; then
21048 already_handled=yes
21049 break
21050 fi
21051 done
21052 if test -z "$already_handled"; then
21053 names_already_handled="$names_already_handled $name"
21054 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21055 eval value=\"\$HAVE_LIB$uppername\"
21056 if test -n "$value"; then
21057 if test "$value" = yes; then
21058 eval value=\"\$LIB$uppername\"
21059 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21060 eval value=\"\$LTLIB$uppername\"
21061 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21062 else
21063 :
21064 fi
21065 else
21066 found_dir=
21067 found_la=
21068 found_so=
21069 found_a=
21070 if test $use_additional = yes; then
21071 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21072 found_dir="$additional_libdir"
21073 found_so="$additional_libdir/lib$name.$shlibext"
21074 if test -f "$additional_libdir/lib$name.la"; then
21075 found_la="$additional_libdir/lib$name.la"
21076 fi
21077 else
21078 if test -f "$additional_libdir/lib$name.$libext"; then
21079 found_dir="$additional_libdir"
21080 found_a="$additional_libdir/lib$name.$libext"
21081 if test -f "$additional_libdir/lib$name.la"; then
21082 found_la="$additional_libdir/lib$name.la"
21083 fi
21084 fi
21085 fi
21086 fi
21087 if test "X$found_dir" = "X"; then
21088 for x in $LDFLAGS $LTLIBICONV; do
21089
21090 acl_save_prefix="$prefix"
21091 prefix="$acl_final_prefix"
21092 acl_save_exec_prefix="$exec_prefix"
21093 exec_prefix="$acl_final_exec_prefix"
21094 eval x=\"$x\"
21095 exec_prefix="$acl_save_exec_prefix"
21096 prefix="$acl_save_prefix"
21097
21098 case "$x" in
21099 -L*)
21100 dir=`echo "X$x" | sed -e 's/^X-L//'`
21101 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21102 found_dir="$dir"
21103 found_so="$dir/lib$name.$shlibext"
21104 if test -f "$dir/lib$name.la"; then
21105 found_la="$dir/lib$name.la"
21106 fi
21107 else
21108 if test -f "$dir/lib$name.$libext"; then
21109 found_dir="$dir"
21110 found_a="$dir/lib$name.$libext"
21111 if test -f "$dir/lib$name.la"; then
21112 found_la="$dir/lib$name.la"
21113 fi
21114 fi
21115 fi
21116 ;;
21117 esac
21118 if test "X$found_dir" != "X"; then
21119 break
21120 fi
21121 done
21122 fi
21123 if test "X$found_dir" != "X"; then
21124 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21125 if test "X$found_so" != "X"; then
21126 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21127 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21128 else
21129 haveit=
21130 for x in $ltrpathdirs; do
21131 if test "X$x" = "X$found_dir"; then
21132 haveit=yes
21133 break
21134 fi
21135 done
21136 if test -z "$haveit"; then
21137 ltrpathdirs="$ltrpathdirs $found_dir"
21138 fi
21139 if test "$hardcode_direct" = yes; then
21140 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21141 else
21142 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21143 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21144 haveit=
21145 for x in $rpathdirs; do
21146 if test "X$x" = "X$found_dir"; then
21147 haveit=yes
21148 break
21149 fi
21150 done
21151 if test -z "$haveit"; then
21152 rpathdirs="$rpathdirs $found_dir"
21153 fi
21154 else
21155 haveit=
21156 for x in $LDFLAGS $LIBICONV; do
21157
21158 acl_save_prefix="$prefix"
21159 prefix="$acl_final_prefix"
21160 acl_save_exec_prefix="$exec_prefix"
21161 exec_prefix="$acl_final_exec_prefix"
21162 eval x=\"$x\"
21163 exec_prefix="$acl_save_exec_prefix"
21164 prefix="$acl_save_prefix"
21165
21166 if test "X$x" = "X-L$found_dir"; then
21167 haveit=yes
21168 break
21169 fi
21170 done
21171 if test -z "$haveit"; then
21172 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21173 fi
21174 if test "$hardcode_minus_L" != no; then
21175 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21176 else
21177 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21178 fi
21179 fi
21180 fi
21181 fi
21182 else
21183 if test "X$found_a" != "X"; then
21184 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21185 else
21186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21187 fi
21188 fi
21189 additional_includedir=
21190 case "$found_dir" in
21191 */lib | */lib/)
21192 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21193 additional_includedir="$basedir/include"
21194 ;;
21195 esac
21196 if test "X$additional_includedir" != "X"; then
21197 if test "X$additional_includedir" != "X/usr/include"; then
21198 haveit=
21199 if test "X$additional_includedir" = "X/usr/local/include"; then
21200 if test -n "$GCC"; then
21201 case $host_os in
21202 linux*) haveit=yes;;
21203 esac
21204 fi
21205 fi
21206 if test -z "$haveit"; then
21207 for x in $CPPFLAGS $INCICONV; do
21208
21209 acl_save_prefix="$prefix"
21210 prefix="$acl_final_prefix"
21211 acl_save_exec_prefix="$exec_prefix"
21212 exec_prefix="$acl_final_exec_prefix"
21213 eval x=\"$x\"
21214 exec_prefix="$acl_save_exec_prefix"
21215 prefix="$acl_save_prefix"
21216
21217 if test "X$x" = "X-I$additional_includedir"; then
21218 haveit=yes
21219 break
21220 fi
21221 done
21222 if test -z "$haveit"; then
21223 if test -d "$additional_includedir"; then
21224 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21225 fi
21226 fi
21227 fi
21228 fi
21229 fi
21230 if test -n "$found_la"; then
21231 save_libdir="$libdir"
21232 case "$found_la" in
21233 */* | *\\*) . "$found_la" ;;
21234 *) . "./$found_la" ;;
21235 esac
21236 libdir="$save_libdir"
21237 for dep in $dependency_libs; do
21238 case "$dep" in
21239 -L*)
21240 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21241 if test "X$additional_libdir" != "X/usr/lib"; then
21242 haveit=
21243 if test "X$additional_libdir" = "X/usr/local/lib"; then
21244 if test -n "$GCC"; then
21245 case $host_os in
21246 linux*) haveit=yes;;
21247 esac
21248 fi
21249 fi
21250 if test -z "$haveit"; then
21251 haveit=
21252 for x in $LDFLAGS $LIBICONV; 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-L$additional_libdir"; then
21263 haveit=yes
21264 break
21265 fi
21266 done
21267 if test -z "$haveit"; then
21268 if test -d "$additional_libdir"; then
21269 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21270 fi
21271 fi
21272 haveit=
21273 for x in $LDFLAGS $LTLIBICONV; do
21274
21275 acl_save_prefix="$prefix"
21276 prefix="$acl_final_prefix"
21277 acl_save_exec_prefix="$exec_prefix"
21278 exec_prefix="$acl_final_exec_prefix"
21279 eval x=\"$x\"
21280 exec_prefix="$acl_save_exec_prefix"
21281 prefix="$acl_save_prefix"
21282
21283 if test "X$x" = "X-L$additional_libdir"; then
21284 haveit=yes
21285 break
21286 fi
21287 done
21288 if test -z "$haveit"; then
21289 if test -d "$additional_libdir"; then
21290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21291 fi
21292 fi
21293 fi
21294 fi
21295 ;;
21296 -R*)
21297 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21298 if test "$enable_rpath" != no; then
21299 haveit=
21300 for x in $rpathdirs; do
21301 if test "X$x" = "X$dir"; then
21302 haveit=yes
21303 break
21304 fi
21305 done
21306 if test -z "$haveit"; then
21307 rpathdirs="$rpathdirs $dir"
21308 fi
21309 haveit=
21310 for x in $ltrpathdirs; do
21311 if test "X$x" = "X$dir"; then
21312 haveit=yes
21313 break
21314 fi
21315 done
21316 if test -z "$haveit"; then
21317 ltrpathdirs="$ltrpathdirs $dir"
21318 fi
21319 fi
21320 ;;
21321 -l*)
21322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21323 ;;
21324 *.la)
21325 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21326 ;;
21327 *)
21328 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21329 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21330 ;;
21331 esac
21332 done
21333 fi
21334 else
21335 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21337 fi
21338 fi
21339 fi
21340 done
21341 done
21342 if test "X$rpathdirs" != "X"; then
21343 if test -n "$hardcode_libdir_separator"; then
21344 alldirs=
21345 for found_dir in $rpathdirs; do
21346 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21347 done
21348 acl_save_libdir="$libdir"
21349 libdir="$alldirs"
21350 eval flag=\"$hardcode_libdir_flag_spec\"
21351 libdir="$acl_save_libdir"
21352 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21353 else
21354 for found_dir in $rpathdirs; do
21355 acl_save_libdir="$libdir"
21356 libdir="$found_dir"
21357 eval flag=\"$hardcode_libdir_flag_spec\"
21358 libdir="$acl_save_libdir"
21359 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21360 done
21361 fi
21362 fi
21363 if test "X$ltrpathdirs" != "X"; then
21364 for found_dir in $ltrpathdirs; do
21365 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21366 done
21367 fi
21368
21369
21370
21371
21372
21373
21374
21375 am_save_CPPFLAGS="$CPPFLAGS"
21376
21377 for element in $INCICONV; do
21378 haveit=
21379 for x in $CPPFLAGS; do
21380
21381 acl_save_prefix="$prefix"
21382 prefix="$acl_final_prefix"
21383 acl_save_exec_prefix="$exec_prefix"
21384 exec_prefix="$acl_final_exec_prefix"
21385 eval x=\"$x\"
21386 exec_prefix="$acl_save_exec_prefix"
21387 prefix="$acl_save_prefix"
21388
21389 if test "X$x" = "X$element"; then
21390 haveit=yes
21391 break
21392 fi
21393 done
21394 if test -z "$haveit"; then
21395 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21396 fi
21397 done
21398
21399
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21401 $as_echo_n "checking for iconv... " >&6; }
21402 if test "${am_cv_func_iconv+set}" = set; then :
21403 $as_echo_n "(cached) " >&6
21404 else
21405
21406 am_cv_func_iconv="no, consider installing GNU libiconv"
21407 am_cv_lib_iconv=no
21408 if test x$gcc_no_link = xyes; then
21409 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21410 fi
21411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412 /* end confdefs.h. */
21413 #include <stdlib.h>
21414 #include <iconv.h>
21415 int
21416 main ()
21417 {
21418 iconv_t cd = iconv_open("","");
21419 iconv(cd,NULL,NULL,NULL,NULL);
21420 iconv_close(cd);
21421 ;
21422 return 0;
21423 }
21424 _ACEOF
21425 if ac_fn_c_try_link "$LINENO"; then :
21426 am_cv_func_iconv=yes
21427 fi
21428 rm -f core conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21430 if test "$am_cv_func_iconv" != yes; then
21431 am_save_LIBS="$LIBS"
21432 LIBS="$LIBS $LIBICONV"
21433 if test x$gcc_no_link = xyes; then
21434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21435 fi
21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21438 #include <stdlib.h>
21439 #include <iconv.h>
21440 int
21441 main ()
21442 {
21443 iconv_t cd = iconv_open("","");
21444 iconv(cd,NULL,NULL,NULL,NULL);
21445 iconv_close(cd);
21446 ;
21447 return 0;
21448 }
21449 _ACEOF
21450 if ac_fn_c_try_link "$LINENO"; then :
21451 am_cv_lib_iconv=yes
21452 am_cv_func_iconv=yes
21453 fi
21454 rm -f core conftest.err conftest.$ac_objext \
21455 conftest$ac_exeext conftest.$ac_ext
21456 LIBS="$am_save_LIBS"
21457 fi
21458
21459 fi
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21461 $as_echo "$am_cv_func_iconv" >&6; }
21462 if test "$am_cv_func_iconv" = yes; then
21463
21464 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21465
21466 fi
21467 if test "$am_cv_lib_iconv" = yes; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21469 $as_echo_n "checking how to link with libiconv... " >&6; }
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21471 $as_echo "$LIBICONV" >&6; }
21472 else
21473 CPPFLAGS="$am_save_CPPFLAGS"
21474 LIBICONV=
21475 LTLIBICONV=
21476 fi
21477
21478
21479
21480 if test "$am_cv_func_iconv" = yes; then
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21482 $as_echo_n "checking for iconv declaration... " >&6; }
21483 if test "${am_cv_proto_iconv+set}" = set; then :
21484 $as_echo_n "(cached) " >&6
21485 else
21486
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21489
21490 #include <stdlib.h>
21491 #include <iconv.h>
21492 extern
21493 #ifdef __cplusplus
21494 "C"
21495 #endif
21496 #if defined(__STDC__) || defined(__cplusplus)
21497 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21498 #else
21499 size_t iconv();
21500 #endif
21501
21502 int
21503 main ()
21504 {
21505
21506 ;
21507 return 0;
21508 }
21509 _ACEOF
21510 if ac_fn_c_try_compile "$LINENO"; then :
21511 am_cv_proto_iconv_arg1=""
21512 else
21513 am_cv_proto_iconv_arg1="const"
21514 fi
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 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);"
21517 fi
21518
21519 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21521 }$am_cv_proto_iconv" >&5
21522 $as_echo "${ac_t:-
21523 }$am_cv_proto_iconv" >&6; }
21524
21525 cat >>confdefs.h <<_ACEOF
21526 #define ICONV_CONST $am_cv_proto_iconv_arg1
21527 _ACEOF
21528
21529 fi
21530
21531
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21533 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21534 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21535 $as_echo_n "(cached) " >&6
21536 else
21537 if test x$gcc_no_link = xyes; then
21538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21539 fi
21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h. */
21542 #include <locale.h>
21543 int
21544 main ()
21545 {
21546 return LC_MESSAGES
21547 ;
21548 return 0;
21549 }
21550 _ACEOF
21551 if ac_fn_c_try_link "$LINENO"; then :
21552 am_cv_val_LC_MESSAGES=yes
21553 else
21554 am_cv_val_LC_MESSAGES=no
21555 fi
21556 rm -f core conftest.err conftest.$ac_objext \
21557 conftest$ac_exeext conftest.$ac_ext
21558 fi
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21560 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21561 if test $am_cv_val_LC_MESSAGES = yes; then
21562
21563 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21564
21565 fi
21566
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21568 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21569 if test "${ac_cv_struct_tm+set}" = set; then :
21570 $as_echo_n "(cached) " >&6
21571 else
21572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h. */
21574 #include <sys/types.h>
21575 #include <time.h>
21576
21577 int
21578 main ()
21579 {
21580 struct tm tm;
21581 int *p = &tm.tm_sec;
21582 return !p;
21583 ;
21584 return 0;
21585 }
21586 _ACEOF
21587 if ac_fn_c_try_compile "$LINENO"; then :
21588 ac_cv_struct_tm=time.h
21589 else
21590 ac_cv_struct_tm=sys/time.h
21591 fi
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 fi
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21595 $as_echo "$ac_cv_struct_tm" >&6; }
21596 if test $ac_cv_struct_tm = sys/time.h; then
21597
21598 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21599
21600 fi
21601
21602 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21603 #include <$ac_cv_struct_tm>
21604
21605 "
21606 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21607
21608 cat >>confdefs.h <<_ACEOF
21609 #define HAVE_STRUCT_TM_TM_ZONE 1
21610 _ACEOF
21611
21612
21613 fi
21614
21615 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21616
21617 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21618
21619 else
21620 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21621 "
21622 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21623 ac_have_decl=1
21624 else
21625 ac_have_decl=0
21626 fi
21627
21628 cat >>confdefs.h <<_ACEOF
21629 #define HAVE_DECL_TZNAME $ac_have_decl
21630 _ACEOF
21631
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21633 $as_echo_n "checking for tzname... " >&6; }
21634 if test "${ac_cv_var_tzname+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21636 else
21637 if test x$gcc_no_link = xyes; then
21638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21639 fi
21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h. */
21642 #include <time.h>
21643 #if !HAVE_DECL_TZNAME
21644 extern char *tzname[];
21645 #endif
21646
21647 int
21648 main ()
21649 {
21650 return tzname[0][0];
21651 ;
21652 return 0;
21653 }
21654 _ACEOF
21655 if ac_fn_c_try_link "$LINENO"; then :
21656 ac_cv_var_tzname=yes
21657 else
21658 ac_cv_var_tzname=no
21659 fi
21660 rm -f core conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21662 fi
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21664 $as_echo "$ac_cv_var_tzname" >&6; }
21665 if test $ac_cv_var_tzname = yes; then
21666
21667 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21668
21669 fi
21670 fi
21671
21672
21673 for ac_func in gethostbyname_r
21674 do :
21675 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21676 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21677 cat >>confdefs.h <<_ACEOF
21678 #define HAVE_GETHOSTBYNAME_R 1
21679 _ACEOF
21680
21681
21682 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21683
21684 # There are two different kinds of gethostbyname_r.
21685 # We look for the one that returns `int'.
21686 # Hopefully this check is robust enough.
21687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21688 /* end confdefs.h. */
21689 #include <netdb.h>
21690
21691 _ACEOF
21692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21693 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21694
21695
21696 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21697
21698 fi
21699 rm -f conftest*
21700
21701
21702 case " $GCINCS " in
21703 *" -D_REENTRANT "*) ;;
21704 *)
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21706 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21707 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21710 ac_ext=cpp
21711 ac_cpp='$CXXCPP $CPPFLAGS'
21712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21715
21716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717 /* end confdefs.h. */
21718 #include <netdb.h>
21719 int
21720 main ()
21721 {
21722 gethostbyname_r("", 0, 0);
21723 ;
21724 return 0;
21725 }
21726 _ACEOF
21727 if ac_fn_cxx_try_compile "$LINENO"; then :
21728 libjava_cv_gethostbyname_r_needs_reentrant=no
21729 else
21730 CPPFLAGS_SAVE="$CPPFLAGS"
21731 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21734 #include <netdb.h>
21735 int
21736 main ()
21737 {
21738 gethostbyname_r("", 0, 0);
21739 ;
21740 return 0;
21741 }
21742 _ACEOF
21743 if ac_fn_cxx_try_compile "$LINENO"; then :
21744 libjava_cv_gethostbyname_r_needs_reentrant=yes
21745 else
21746 libjava_cv_gethostbyname_r_needs_reentrant=fail
21747 fi
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 CPPFLAGS="$CPPFLAGS_SAVE"
21750
21751 fi
21752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21753 ac_ext=c
21754 ac_cpp='$CPP $CPPFLAGS'
21755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21758
21759
21760 fi
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21762 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21763 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21764
21765 $as_echo "#define _REENTRANT 1" >>confdefs.h
21766
21767 fi
21768 ;;
21769 esac
21770
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21772 $as_echo_n "checking for struct hostent_data... " >&6; }
21773 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21774 $as_echo_n "(cached) " >&6
21775 else
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21778
21779 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21780 # define _REENTRANT 1
21781 #endif
21782 #include <netdb.h>
21783 int
21784 main ()
21785 {
21786 struct hostent_data data;
21787 ;
21788 return 0;
21789 }
21790 _ACEOF
21791 if ac_fn_c_try_compile "$LINENO"; then :
21792 libjava_cv_struct_hostent_data=yes
21793 else
21794 libjava_cv_struct_hostent_data=no
21795 fi
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 fi
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21799 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21800 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21801
21802 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21803
21804 fi
21805
21806 fi
21807 done
21808
21809
21810 # FIXME: libjava source code expects to find a prototype for
21811 # gethostbyaddr_r in netdb.h. The outer check ensures that
21812 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21813 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21814 # linkage check is enough, yet C++ code requires proper prototypes.)
21815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h. */
21817 #include <netdb.h>
21818
21819 _ACEOF
21820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21821 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21822
21823 for ac_func in gethostbyaddr_r
21824 do :
21825 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21826 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21827 cat >>confdefs.h <<_ACEOF
21828 #define HAVE_GETHOSTBYADDR_R 1
21829 _ACEOF
21830
21831
21832 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21833
21834 # There are two different kinds of gethostbyaddr_r.
21835 # We look for the one that returns `int'.
21836 # Hopefully this check is robust enough.
21837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21838 /* end confdefs.h. */
21839 #include <netdb.h>
21840
21841 _ACEOF
21842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21843 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21844
21845
21846 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21847
21848 fi
21849 rm -f conftest*
21850
21851 fi
21852 done
21853
21854 fi
21855 rm -f conftest*
21856
21857
21858 for ac_func in gethostname
21859 do :
21860 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21861 if test "x$ac_cv_func_gethostname" = x""yes; then :
21862 cat >>confdefs.h <<_ACEOF
21863 #define HAVE_GETHOSTNAME 1
21864 _ACEOF
21865
21866
21867 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21868
21869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21871 #include <unistd.h>
21872
21873 _ACEOF
21874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21875 $EGREP "gethostname" >/dev/null 2>&1; then :
21876
21877
21878 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21879
21880 fi
21881 rm -f conftest*
21882
21883 fi
21884 done
21885
21886
21887 for ac_func in usleep
21888 do :
21889 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21890 if test "x$ac_cv_func_usleep" = x""yes; then :
21891 cat >>confdefs.h <<_ACEOF
21892 #define HAVE_USLEEP 1
21893 _ACEOF
21894
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21897 #include <unistd.h>
21898
21899 _ACEOF
21900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21901 $EGREP "usleep" >/dev/null 2>&1; then :
21902
21903
21904 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21905
21906 fi
21907 rm -f conftest*
21908
21909 fi
21910 done
21911
21912
21913 # Look for these functions in the thread library, but only bother
21914 # if using POSIX threads.
21915 if test "$THREADS" = posix; then
21916 save_LIBS="$LIBS"
21917 LIBS="$LIBS $THREADLIBS"
21918
21919 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21920 # Solaris 7 the name librt is preferred.
21921 for ac_func in sched_yield
21922 do :
21923 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21924 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_SCHED_YIELD 1
21927 _ACEOF
21928
21929 else
21930
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21932 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21933 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21934 $as_echo_n "(cached) " >&6
21935 else
21936 ac_check_lib_save_LIBS=$LIBS
21937 LIBS="-lrt $LIBS"
21938 if test x$gcc_no_link = xyes; then
21939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21940 fi
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h. */
21943
21944 /* Override any GCC internal prototype to avoid an error.
21945 Use char because int might match the return type of a GCC
21946 builtin and then its argument prototype would still apply. */
21947 #ifdef __cplusplus
21948 extern "C"
21949 #endif
21950 char sched_yield ();
21951 int
21952 main ()
21953 {
21954 return sched_yield ();
21955 ;
21956 return 0;
21957 }
21958 _ACEOF
21959 if ac_fn_c_try_link "$LINENO"; then :
21960 ac_cv_lib_rt_sched_yield=yes
21961 else
21962 ac_cv_lib_rt_sched_yield=no
21963 fi
21964 rm -f core conftest.err conftest.$ac_objext \
21965 conftest$ac_exeext conftest.$ac_ext
21966 LIBS=$ac_check_lib_save_LIBS
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
21969 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
21970 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
21971
21972 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21973
21974 THREADLIBS="$THREADLIBS -lrt"
21975 THREADSPEC="$THREADSPEC -lrt"
21976 else
21977
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
21979 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
21980 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
21981 $as_echo_n "(cached) " >&6
21982 else
21983 ac_check_lib_save_LIBS=$LIBS
21984 LIBS="-lposix4 $LIBS"
21985 if test x$gcc_no_link = xyes; then
21986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21987 fi
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21990
21991 /* Override any GCC internal prototype to avoid an error.
21992 Use char because int might match the return type of a GCC
21993 builtin and then its argument prototype would still apply. */
21994 #ifdef __cplusplus
21995 extern "C"
21996 #endif
21997 char sched_yield ();
21998 int
21999 main ()
22000 {
22001 return sched_yield ();
22002 ;
22003 return 0;
22004 }
22005 _ACEOF
22006 if ac_fn_c_try_link "$LINENO"; then :
22007 ac_cv_lib_posix4_sched_yield=yes
22008 else
22009 ac_cv_lib_posix4_sched_yield=no
22010 fi
22011 rm -f core conftest.err conftest.$ac_objext \
22012 conftest$ac_exeext conftest.$ac_ext
22013 LIBS=$ac_check_lib_save_LIBS
22014 fi
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22016 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22017 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22018
22019 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22020
22021 THREADLIBS="$THREADLIBS -lposix4"
22022 THREADSPEC="$THREADSPEC -lposix4"
22023 fi
22024
22025 fi
22026
22027 fi
22028 done
22029
22030
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22032 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22033 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lrt $LIBS"
22038 if test x$gcc_no_link = xyes; then
22039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22040 fi
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22043
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 #endif
22050 char clock_gettime ();
22051 int
22052 main ()
22053 {
22054 return clock_gettime ();
22055 ;
22056 return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 ac_cv_lib_rt_clock_gettime=yes
22061 else
22062 ac_cv_lib_rt_clock_gettime=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22069 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22070 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22071
22072
22073 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22074
22075 case "$THREADSPEC" in
22076 *-lrt*) ;;
22077 *)
22078 THREADSPEC="$THREADSPEC -lrt"
22079 THREADLIBS="$THREADLIBS -lrt"
22080 ;;
22081 esac
22082 fi
22083
22084
22085 LIBS="$save_LIBS"
22086
22087 # We can save a little space at runtime if the mutex has m_count
22088 # or __m_count. This is a nice hack for Linux.
22089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22090 /* end confdefs.h. */
22091 #include <pthread.h>
22092 int
22093 main ()
22094 {
22095
22096 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22097
22098 ;
22099 return 0;
22100 }
22101 _ACEOF
22102 if ac_fn_c_try_compile "$LINENO"; then :
22103
22104 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22105
22106 else
22107
22108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22109 /* end confdefs.h. */
22110 #include <pthread.h>
22111 int
22112 main ()
22113 {
22114
22115 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22116
22117 ;
22118 return 0;
22119 }
22120 _ACEOF
22121 if ac_fn_c_try_compile "$LINENO"; then :
22122
22123 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22124
22125 fi
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 fi
22128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129 fi
22130
22131 # We require a way to get the time.
22132 time_found=no
22133 for ac_func in gettimeofday time ftime
22134 do :
22135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22137 eval as_val=\$$as_ac_var
22138 if test "x$as_val" = x""yes; then :
22139 cat >>confdefs.h <<_ACEOF
22140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22141 _ACEOF
22142 time_found=yes
22143 fi
22144 done
22145
22146 if test "$time_found" = no; then
22147 as_fn_error "no function found to get the time" "$LINENO" 5
22148 fi
22149
22150 for ac_func in memmove
22151 do :
22152 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22153 if test "x$ac_cv_func_memmove" = x""yes; then :
22154 cat >>confdefs.h <<_ACEOF
22155 #define HAVE_MEMMOVE 1
22156 _ACEOF
22157
22158 fi
22159 done
22160
22161
22162 # We require memcpy.
22163 memcpy_found=no
22164 for ac_func in memcpy
22165 do :
22166 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22167 if test "x$ac_cv_func_memcpy" = x""yes; then :
22168 cat >>confdefs.h <<_ACEOF
22169 #define HAVE_MEMCPY 1
22170 _ACEOF
22171 memcpy_found=yes
22172 fi
22173 done
22174
22175 if test "$memcpy_found" = no; then
22176 as_fn_error "memcpy is required" "$LINENO" 5
22177 fi
22178 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22183 else
22184 ac_check_lib_save_LIBS=$LIBS
22185 LIBS="-ldl $LIBS"
22186 if test x$gcc_no_link = xyes; then
22187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22188 fi
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22190 /* end confdefs.h. */
22191
22192 /* Override any GCC internal prototype to avoid an error.
22193 Use char because int might match the return type of a GCC
22194 builtin and then its argument prototype would still apply. */
22195 #ifdef __cplusplus
22196 extern "C"
22197 #endif
22198 char dlopen ();
22199 int
22200 main ()
22201 {
22202 return dlopen ();
22203 ;
22204 return 0;
22205 }
22206 _ACEOF
22207 if ac_fn_c_try_link "$LINENO"; then :
22208 ac_cv_lib_dl_dlopen=yes
22209 else
22210 ac_cv_lib_dl_dlopen=no
22211 fi
22212 rm -f core conftest.err conftest.$ac_objext \
22213 conftest$ac_exeext conftest.$ac_ext
22214 LIBS=$ac_check_lib_save_LIBS
22215 fi
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22217 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22218 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22219
22220
22221 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22222
22223 else
22224
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22226 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22227 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22228 $as_echo_n "(cached) " >&6
22229 else
22230 ac_check_lib_save_LIBS=$LIBS
22231 LIBS="-ldld $LIBS"
22232 if test x$gcc_no_link = xyes; then
22233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22234 fi
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22237
22238 /* Override any GCC internal prototype to avoid an error.
22239 Use char because int might match the return type of a GCC
22240 builtin and then its argument prototype would still apply. */
22241 #ifdef __cplusplus
22242 extern "C"
22243 #endif
22244 char dlopen ();
22245 int
22246 main ()
22247 {
22248 return dlopen ();
22249 ;
22250 return 0;
22251 }
22252 _ACEOF
22253 if ac_fn_c_try_link "$LINENO"; then :
22254 ac_cv_lib_dld_dlopen=yes
22255 else
22256 ac_cv_lib_dld_dlopen=no
22257 fi
22258 rm -f core conftest.err conftest.$ac_objext \
22259 conftest$ac_exeext conftest.$ac_ext
22260 LIBS=$ac_check_lib_save_LIBS
22261 fi
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22263 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22264 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22265
22266
22267 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22268
22269 fi
22270
22271 fi
22272
22273
22274 # Some library-finding code we stole from Tcl.
22275 #--------------------------------------------------------------------
22276 # Check for the existence of the -lsocket and -lnsl libraries.
22277 # The order here is important, so that they end up in the right
22278 # order in the command line generated by make. Here are some
22279 # special considerations:
22280 # 1. Use "connect" and "accept" to check for -lsocket, and
22281 # "gethostbyname" to check for -lnsl.
22282 # 2. Use each function name only once: can't redo a check because
22283 # autoconf caches the results of the last check and won't redo it.
22284 # 3. Use -lnsl and -lsocket only if they supply procedures that
22285 # aren't already present in the normal libraries. This is because
22286 # IRIX 5.2 has libraries, but they aren't needed and they're
22287 # bogus: they goof up name resolution if used.
22288 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22289 # To get around this problem, check for both libraries together
22290 # if -lsocket doesn't work by itself.
22291 #--------------------------------------------------------------------
22292
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22294 $as_echo_n "checking for socket libraries... " >&6; }
22295 if test "${gcj_cv_lib_sockets+set}" = set; then :
22296 $as_echo_n "(cached) " >&6
22297 else
22298 gcj_cv_lib_sockets=
22299 gcj_checkBoth=0
22300 unset ac_cv_func_connect
22301 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22302 if test "x$ac_cv_func_connect" = x""yes; then :
22303 gcj_checkSocket=0
22304 else
22305 gcj_checkSocket=1
22306 fi
22307
22308 if test "$gcj_checkSocket" = 1; then
22309 unset ac_cv_func_connect
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22311 $as_echo_n "checking for main in -lsocket... " >&6; }
22312 if test "${ac_cv_lib_socket_main+set}" = set; then :
22313 $as_echo_n "(cached) " >&6
22314 else
22315 ac_check_lib_save_LIBS=$LIBS
22316 LIBS="-lsocket $LIBS"
22317 if test x$gcc_no_link = xyes; then
22318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22319 fi
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22322
22323
22324 int
22325 main ()
22326 {
22327 return main ();
22328 ;
22329 return 0;
22330 }
22331 _ACEOF
22332 if ac_fn_c_try_link "$LINENO"; then :
22333 ac_cv_lib_socket_main=yes
22334 else
22335 ac_cv_lib_socket_main=no
22336 fi
22337 rm -f core conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext conftest.$ac_ext
22339 LIBS=$ac_check_lib_save_LIBS
22340 fi
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22342 $as_echo "$ac_cv_lib_socket_main" >&6; }
22343 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22344 gcj_cv_lib_sockets="-lsocket"
22345 else
22346 gcj_checkBoth=1
22347 fi
22348
22349 fi
22350 if test "$gcj_checkBoth" = 1; then
22351 gcj_oldLibs=$LIBS
22352 LIBS="$LIBS -lsocket -lnsl"
22353 unset ac_cv_func_accept
22354 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22355 if test "x$ac_cv_func_accept" = x""yes; then :
22356 gcj_checkNsl=0
22357 gcj_cv_lib_sockets="-lsocket -lnsl"
22358 fi
22359
22360 unset ac_cv_func_accept
22361 LIBS=$gcj_oldLibs
22362 fi
22363 unset ac_cv_func_gethostbyname
22364 gcj_oldLibs=$LIBS
22365 LIBS="$LIBS $gcj_cv_lib_sockets"
22366 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22367 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22368
22369 else
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22371 $as_echo_n "checking for main in -lnsl... " >&6; }
22372 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
22374 else
22375 ac_check_lib_save_LIBS=$LIBS
22376 LIBS="-lnsl $LIBS"
22377 if test x$gcc_no_link = xyes; then
22378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22379 fi
22380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22382
22383
22384 int
22385 main ()
22386 {
22387 return main ();
22388 ;
22389 return 0;
22390 }
22391 _ACEOF
22392 if ac_fn_c_try_link "$LINENO"; then :
22393 ac_cv_lib_nsl_main=yes
22394 else
22395 ac_cv_lib_nsl_main=no
22396 fi
22397 rm -f core conftest.err conftest.$ac_objext \
22398 conftest$ac_exeext conftest.$ac_ext
22399 LIBS=$ac_check_lib_save_LIBS
22400 fi
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22402 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22403 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22404 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22405 fi
22406
22407 fi
22408
22409 unset ac_cv_func_gethostbyname
22410 LIBS=$gcj_oldLIBS
22411
22412 fi
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22414 $as_echo "$gcj_cv_lib_sockets" >&6; }
22415 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22416
22417 if test "$with_system_zlib" = yes; then
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22419 $as_echo_n "checking for deflate in -lz... " >&6; }
22420 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 ac_check_lib_save_LIBS=$LIBS
22424 LIBS="-lz $LIBS"
22425 if test x$gcc_no_link = xyes; then
22426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22427 fi
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h. */
22430
22431 /* Override any GCC internal prototype to avoid an error.
22432 Use char because int might match the return type of a GCC
22433 builtin and then its argument prototype would still apply. */
22434 #ifdef __cplusplus
22435 extern "C"
22436 #endif
22437 char deflate ();
22438 int
22439 main ()
22440 {
22441 return deflate ();
22442 ;
22443 return 0;
22444 }
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"; then :
22447 ac_cv_lib_z_deflate=yes
22448 else
22449 ac_cv_lib_z_deflate=no
22450 fi
22451 rm -f core conftest.err conftest.$ac_objext \
22452 conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22454 fi
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22456 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22457 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22458 ZLIBSPEC=-lz
22459 else
22460 ZLIBSPEC=
22461 fi
22462
22463 fi
22464
22465 # Test for Gtk stuff, if asked for.
22466 if test "$use_gtk_awt" = yes; then
22467
22468 succeeded=no
22469
22470 if test -z "$PKG_CONFIG"; then
22471 # Extract the first word of "pkg-config", so it can be a program name with args.
22472 set dummy pkg-config; ac_word=$2
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22474 $as_echo_n "checking for $ac_word... " >&6; }
22475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22476 $as_echo_n "(cached) " >&6
22477 else
22478 case $PKG_CONFIG in
22479 [\\/]* | ?:[\\/]*)
22480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22481 ;;
22482 *)
22483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22484 for as_dir in $PATH
22485 do
22486 IFS=$as_save_IFS
22487 test -z "$as_dir" && as_dir=.
22488 for ac_exec_ext in '' $ac_executable_extensions; do
22489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22492 break 2
22493 fi
22494 done
22495 done
22496 IFS=$as_save_IFS
22497
22498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22499 ;;
22500 esac
22501 fi
22502 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22503 if test -n "$PKG_CONFIG"; then
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22505 $as_echo "$PKG_CONFIG" >&6; }
22506 else
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22508 $as_echo "no" >&6; }
22509 fi
22510
22511
22512 fi
22513
22514 if test "$PKG_CONFIG" = "no" ; then
22515 echo "*** The pkg-config script could not be found. Make sure it is"
22516 echo "*** in your path, or set the PKG_CONFIG environment variable"
22517 echo "*** to the full path to pkg-config."
22518 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22519 else
22520 PKG_CONFIG_MIN_VERSION=0.9.0
22521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22523 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22524
22525 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22527 $as_echo "yes" >&6; }
22528 succeeded=yes
22529
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22531 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22532 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22534 $as_echo "$GTK_CFLAGS" >&6; }
22535
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22537 $as_echo_n "checking GTK_LIBS... " >&6; }
22538 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22540 $as_echo "$GTK_LIBS" >&6; }
22541 else
22542 GTK_CFLAGS=""
22543 GTK_LIBS=""
22544 ## If we have a custom action on failure, don't print errors, but
22545 ## do set a variable so people can do so.
22546 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22547 echo $GTK_PKG_ERRORS
22548 fi
22549
22550
22551
22552 else
22553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22555 fi
22556 fi
22557
22558 if test $succeeded = yes; then
22559 :
22560 else
22561 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
22562 fi
22563
22564
22565
22566
22567
22568 succeeded=no
22569
22570 if test -z "$PKG_CONFIG"; then
22571 # Extract the first word of "pkg-config", so it can be a program name with args.
22572 set dummy pkg-config; ac_word=$2
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22574 $as_echo_n "checking for $ac_word... " >&6; }
22575 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22577 else
22578 case $PKG_CONFIG in
22579 [\\/]* | ?:[\\/]*)
22580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22581 ;;
22582 *)
22583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22584 for as_dir in $PATH
22585 do
22586 IFS=$as_save_IFS
22587 test -z "$as_dir" && as_dir=.
22588 for ac_exec_ext in '' $ac_executable_extensions; do
22589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22592 break 2
22593 fi
22594 done
22595 done
22596 IFS=$as_save_IFS
22597
22598 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22599 ;;
22600 esac
22601 fi
22602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22603 if test -n "$PKG_CONFIG"; then
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22605 $as_echo "$PKG_CONFIG" >&6; }
22606 else
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22608 $as_echo "no" >&6; }
22609 fi
22610
22611
22612 fi
22613
22614 if test "$PKG_CONFIG" = "no" ; then
22615 echo "*** The pkg-config script could not be found. Make sure it is"
22616 echo "*** in your path, or set the PKG_CONFIG environment variable"
22617 echo "*** to the full path to pkg-config."
22618 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22619 else
22620 PKG_CONFIG_MIN_VERSION=0.9.0
22621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22623 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22624
22625 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22627 $as_echo "yes" >&6; }
22628 succeeded=yes
22629
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22631 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22632 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22634 $as_echo "$GLIB_CFLAGS" >&6; }
22635
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22637 $as_echo_n "checking GLIB_LIBS... " >&6; }
22638 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22640 $as_echo "$GLIB_LIBS" >&6; }
22641 else
22642 GLIB_CFLAGS=""
22643 GLIB_LIBS=""
22644 ## If we have a custom action on failure, don't print errors, but
22645 ## do set a variable so people can do so.
22646 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22647 echo $GLIB_PKG_ERRORS
22648 fi
22649
22650
22651
22652 else
22653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22655 fi
22656 fi
22657
22658 if test $succeeded = yes; then
22659 :
22660 else
22661 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
22662 fi
22663
22664
22665
22666
22667
22668 succeeded=no
22669
22670 if test -z "$PKG_CONFIG"; then
22671 # Extract the first word of "pkg-config", so it can be a program name with args.
22672 set dummy pkg-config; ac_word=$2
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22674 $as_echo_n "checking for $ac_word... " >&6; }
22675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22676 $as_echo_n "(cached) " >&6
22677 else
22678 case $PKG_CONFIG in
22679 [\\/]* | ?:[\\/]*)
22680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22681 ;;
22682 *)
22683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22684 for as_dir in $PATH
22685 do
22686 IFS=$as_save_IFS
22687 test -z "$as_dir" && as_dir=.
22688 for ac_exec_ext in '' $ac_executable_extensions; do
22689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22690 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22692 break 2
22693 fi
22694 done
22695 done
22696 IFS=$as_save_IFS
22697
22698 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22699 ;;
22700 esac
22701 fi
22702 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22703 if test -n "$PKG_CONFIG"; then
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22705 $as_echo "$PKG_CONFIG" >&6; }
22706 else
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22708 $as_echo "no" >&6; }
22709 fi
22710
22711
22712 fi
22713
22714 if test "$PKG_CONFIG" = "no" ; then
22715 echo "*** The pkg-config script could not be found. Make sure it is"
22716 echo "*** in your path, or set the PKG_CONFIG environment variable"
22717 echo "*** to the full path to pkg-config."
22718 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22719 else
22720 PKG_CONFIG_MIN_VERSION=0.9.0
22721 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22723 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22724
22725 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22727 $as_echo "yes" >&6; }
22728 succeeded=yes
22729
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22731 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22732 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22734 $as_echo "$LIBART_CFLAGS" >&6; }
22735
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22737 $as_echo_n "checking LIBART_LIBS... " >&6; }
22738 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22740 $as_echo "$LIBART_LIBS" >&6; }
22741 else
22742 LIBART_CFLAGS=""
22743 LIBART_LIBS=""
22744 ## If we have a custom action on failure, don't print errors, but
22745 ## do set a variable so people can do so.
22746 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22747 echo $LIBART_PKG_ERRORS
22748 fi
22749
22750
22751
22752 else
22753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22755 fi
22756 fi
22757
22758 if test $succeeded = yes; then
22759 :
22760 else
22761 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
22762 fi
22763
22764
22765
22766
22767 # We require the XTest Extension to support java.awt.Robot.
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22769 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22770 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22772 else
22773 ac_check_lib_save_LIBS=$LIBS
22774 LIBS="-lXtst ${X_LIBS} $LIBS"
22775 if test x$gcc_no_link = xyes; then
22776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22777 fi
22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779 /* end confdefs.h. */
22780
22781 /* Override any GCC internal prototype to avoid an error.
22782 Use char because int might match the return type of a GCC
22783 builtin and then its argument prototype would still apply. */
22784 #ifdef __cplusplus
22785 extern "C"
22786 #endif
22787 char XTestQueryExtension ();
22788 int
22789 main ()
22790 {
22791 return XTestQueryExtension ();
22792 ;
22793 return 0;
22794 }
22795 _ACEOF
22796 if ac_fn_c_try_link "$LINENO"; then :
22797 ac_cv_lib_Xtst_XTestQueryExtension=yes
22798 else
22799 ac_cv_lib_Xtst_XTestQueryExtension=no
22800 fi
22801 rm -f core conftest.err conftest.$ac_objext \
22802 conftest$ac_exeext conftest.$ac_ext
22803 LIBS=$ac_check_lib_save_LIBS
22804 fi
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22806 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22807 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22808 true
22809 else
22810 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22811 fi
22812
22813 fi
22814
22815 # On Solaris, and maybe other architectures, the Boehm collector
22816 # requires -ldl.
22817 if test "$GC" = boehm; then
22818 case "${host}" in
22819 mips-sgi-irix6*)
22820 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22821 # libgcj.spec is used, so override here
22822 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22823 ;;
22824 *)
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22826 $as_echo_n "checking for main in -ldl... " >&6; }
22827 if test "${ac_cv_lib_dl_main+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22829 else
22830 ac_check_lib_save_LIBS=$LIBS
22831 LIBS="-ldl $LIBS"
22832 if test x$gcc_no_link = xyes; then
22833 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22834 fi
22835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836 /* end confdefs.h. */
22837
22838
22839 int
22840 main ()
22841 {
22842 return main ();
22843 ;
22844 return 0;
22845 }
22846 _ACEOF
22847 if ac_fn_c_try_link "$LINENO"; then :
22848 ac_cv_lib_dl_main=yes
22849 else
22850 ac_cv_lib_dl_main=no
22851 fi
22852 rm -f core conftest.err conftest.$ac_objext \
22853 conftest$ac_exeext conftest.$ac_ext
22854 LIBS=$ac_check_lib_save_LIBS
22855 fi
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22857 $as_echo "$ac_cv_lib_dl_main" >&6; }
22858 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22859 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22860 fi
22861
22862 ;;
22863 esac
22864 fi
22865 fi
22866
22867 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22868 case $build in
22869 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22870 *) CLASSPATH_SEPARATOR=':' ;;
22871 esac
22872
22873
22874 # We must search the source tree for java.lang, since we still don't
22875 # have libgcj.jar nor java/lang/*.class
22876 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22877 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22878
22879 # Since some classes depend on this one, we need its source available
22880 # before we can do any GCJ compilation test :-(
22881 if test ! -f gnu/classpath/Configuration.java; then
22882 test -d gnu || mkdir gnu
22883 test -d gnu/classpath || mkdir gnu/classpath
22884 # Note that it is not crucial that all the values here be correct.
22885 sed -e "s,@prefix@,$prefix," \
22886 -e "s,@VERSION@,$VERSION," \
22887 -e "s,@LIBDEBUG@,false," \
22888 -e "s,@INIT_LOAD_LIBRARY@,false," \
22889 -e "s,@@,$LIBGCJDEBUG," \
22890 -e "s,@default_toolkit@,$TOOLKIT," \
22891 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22892 -e "s,@GTK_CAIRO_ENABLED@,false," \
22893 -e "s,@ECJ_JAR@,," \
22894 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22895 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22896 > gnu/classpath/Configuration.java
22897 # We do not want to redirect the output of the grep below to /dev/null,
22898 # but we add /dev/null to the input list so that grep will print the
22899 # filename of Configuration.java in case it finds any matches.
22900 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22901 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22902 fi
22903 fi
22904
22905
22906 for ac_prog in gcj
22907 do
22908 # Extract the first word of "$ac_prog", so it can be a program name with args.
22909 set dummy $ac_prog; ac_word=$2
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22911 $as_echo_n "checking for $ac_word... " >&6; }
22912 if test "${ac_cv_prog_GCJ+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22914 else
22915 if test -n "$GCJ"; then
22916 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22917 else
22918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22919 for as_dir in $PATH
22920 do
22921 IFS=$as_save_IFS
22922 test -z "$as_dir" && as_dir=.
22923 for ac_exec_ext in '' $ac_executable_extensions; do
22924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22925 ac_cv_prog_GCJ="$ac_prog"
22926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22927 break 2
22928 fi
22929 done
22930 done
22931 IFS=$as_save_IFS
22932
22933 fi
22934 fi
22935 GCJ=$ac_cv_prog_GCJ
22936 if test -n "$GCJ"; then
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22938 $as_echo "$GCJ" >&6; }
22939 else
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22941 $as_echo "no" >&6; }
22942 fi
22943
22944
22945 test -n "$GCJ" && break
22946 done
22947 test -n "$GCJ" || GCJ="gcj"
22948
22949 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
22950 if test "x${GCJFLAGS-unset}" = xunset; then
22951 GCJFLAGS="-g -O2"
22952 fi
22953
22954
22955 depcc="$GCJ" am_compiler_list='gcc3 gcc'
22956
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22958 $as_echo_n "checking dependency style of $depcc... " >&6; }
22959 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
22960 $as_echo_n "(cached) " >&6
22961 else
22962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22963 # We make a subdir and do the tests there. Otherwise we can end up
22964 # making bogus files that we don't know about and never remove. For
22965 # instance it was reported that on HP-UX the gcc test will end up
22966 # making a dummy file named `D' -- because `-MD' means `put the output
22967 # in D'.
22968 mkdir conftest.dir
22969 # Copy depcomp to subdir because otherwise we won't find it if we're
22970 # using a relative directory.
22971 cp "$am_depcomp" conftest.dir
22972 cd conftest.dir
22973 # We will build objects and dependencies in a subdirectory because
22974 # it helps to detect inapplicable dependency modes. For instance
22975 # both Tru64's cc and ICC support -MD to output dependencies as a
22976 # side effect of compilation, but ICC will put the dependencies in
22977 # the current directory while Tru64 will put them in the object
22978 # directory.
22979 mkdir sub
22980
22981 am_cv_GCJ_dependencies_compiler_type=none
22982 if test "$am_compiler_list" = ""; then
22983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22984 fi
22985 am__universal=false
22986
22987
22988 for depmode in $am_compiler_list; do
22989 # Setup a source with many dependencies, because some compilers
22990 # like to wrap large dependency lists on column 80 (with \), and
22991 # we should not choose a depcomp mode which is confused by this.
22992 #
22993 # We need to recreate these files for each test, as the compiler may
22994 # overwrite some of them when testing with obscure command lines.
22995 # This happens at least with the AIX C compiler.
22996 : > sub/conftest.c
22997 for i in 1 2 3 4 5 6; do
22998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23000 # Solaris 8's {/usr,}/bin/sh.
23001 touch sub/conftst$i.h
23002 done
23003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23004
23005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23006 # mode. It turns out that the SunPro C++ compiler does not properly
23007 # handle `-M -o', and we need to detect this. Also, some Intel
23008 # versions had trouble with output in subdirs
23009 am__obj=sub/conftest.${OBJEXT-o}
23010 am__minus_obj="-o $am__obj"
23011 case $depmode in
23012 gcc)
23013 # This depmode causes a compiler race in universal mode.
23014 test "$am__universal" = false || continue
23015 ;;
23016 nosideeffect)
23017 # after this tag, mechanisms are not by side-effect, so they'll
23018 # only be used when explicitly requested
23019 if test "x$enable_dependency_tracking" = xyes; then
23020 continue
23021 else
23022 break
23023 fi
23024 ;;
23025 msvisualcpp | msvcmsys)
23026 # This compiler won't grok `-c -o', but also, the minuso test has
23027 # not run yet. These depmodes are late enough in the game, and
23028 # so weak that their functioning should not be impacted.
23029 am__obj=conftest.${OBJEXT-o}
23030 am__minus_obj=
23031 ;;
23032 none) break ;;
23033 esac
23034 if depmode=$depmode \
23035 source=sub/conftest.c object=$am__obj \
23036 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23037 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23038 >/dev/null 2>conftest.err &&
23039 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23040 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23041 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23042 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23043 # icc doesn't choke on unknown options, it will just issue warnings
23044 # or remarks (even with -Werror). So we grep stderr for any message
23045 # that says an option was ignored or not supported.
23046 # When given -MP, icc 7.0 and 7.1 complain thusly:
23047 # icc: Command line warning: ignoring option '-M'; no argument required
23048 # The diagnosis changed in icc 8.0:
23049 # icc: Command line remark: option '-MP' not supported
23050 if (grep 'ignoring option' conftest.err ||
23051 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23052 am_cv_GCJ_dependencies_compiler_type=$depmode
23053 break
23054 fi
23055 fi
23056 done
23057
23058 cd ..
23059 rm -rf conftest.dir
23060 else
23061 am_cv_GCJ_dependencies_compiler_type=none
23062 fi
23063
23064 fi
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23066 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23067 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23068
23069 if
23070 test "x$enable_dependency_tracking" != xno \
23071 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23072 am__fastdepGCJ_TRUE=
23073 am__fastdepGCJ_FALSE='#'
23074 else
23075 am__fastdepGCJ_TRUE='#'
23076 am__fastdepGCJ_FALSE=
23077 fi
23078
23079
23080
23081
23082 # Now remove it.
23083 rm -f gnu/classpath/Configuration.java
23084
23085 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23086
23087 # The cast to long int works around a bug in the HP C Compiler
23088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23090 # This bug is HP SR number 8606223364.
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23092 $as_echo_n "checking size of void *... " >&6; }
23093 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23097
23098 else
23099 if test "$ac_cv_type_void_p" = yes; then
23100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23102 { as_fn_set_status 77
23103 as_fn_error "cannot compute sizeof (void *)
23104 See \`config.log' for more details." "$LINENO" 5; }; }
23105 else
23106 ac_cv_sizeof_void_p=0
23107 fi
23108 fi
23109
23110 fi
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23112 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23113
23114
23115
23116 cat >>confdefs.h <<_ACEOF
23117 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23118 _ACEOF
23119
23120
23121
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23123 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23124 if test "${ac_cv_c_bigendian+set}" = set; then :
23125 $as_echo_n "(cached) " >&6
23126 else
23127 ac_cv_c_bigendian=unknown
23128 # See if we're dealing with a universal compiler.
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h. */
23131 #ifndef __APPLE_CC__
23132 not a universal capable compiler
23133 #endif
23134 typedef int dummy;
23135
23136 _ACEOF
23137 if ac_fn_c_try_compile "$LINENO"; then :
23138
23139 # Check for potential -arch flags. It is not universal unless
23140 # there are at least two -arch flags with different values.
23141 ac_arch=
23142 ac_prev=
23143 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23144 if test -n "$ac_prev"; then
23145 case $ac_word in
23146 i?86 | x86_64 | ppc | ppc64)
23147 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23148 ac_arch=$ac_word
23149 else
23150 ac_cv_c_bigendian=universal
23151 break
23152 fi
23153 ;;
23154 esac
23155 ac_prev=
23156 elif test "x$ac_word" = "x-arch"; then
23157 ac_prev=arch
23158 fi
23159 done
23160 fi
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 if test $ac_cv_c_bigendian = unknown; then
23163 # See if sys/param.h defines the BYTE_ORDER macro.
23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23166 #include <sys/types.h>
23167 #include <sys/param.h>
23168
23169 int
23170 main ()
23171 {
23172 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23173 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23174 && LITTLE_ENDIAN)
23175 bogus endian macros
23176 #endif
23177
23178 ;
23179 return 0;
23180 }
23181 _ACEOF
23182 if ac_fn_c_try_compile "$LINENO"; then :
23183 # It does; now see whether it defined to BIG_ENDIAN or not.
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23186 #include <sys/types.h>
23187 #include <sys/param.h>
23188
23189 int
23190 main ()
23191 {
23192 #if BYTE_ORDER != BIG_ENDIAN
23193 not big endian
23194 #endif
23195
23196 ;
23197 return 0;
23198 }
23199 _ACEOF
23200 if ac_fn_c_try_compile "$LINENO"; then :
23201 ac_cv_c_bigendian=yes
23202 else
23203 ac_cv_c_bigendian=no
23204 fi
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 fi
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208 fi
23209 if test $ac_cv_c_bigendian = unknown; then
23210 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23212 /* end confdefs.h. */
23213 #include <limits.h>
23214
23215 int
23216 main ()
23217 {
23218 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23219 bogus endian macros
23220 #endif
23221
23222 ;
23223 return 0;
23224 }
23225 _ACEOF
23226 if ac_fn_c_try_compile "$LINENO"; then :
23227 # It does; now see whether it defined to _BIG_ENDIAN or not.
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h. */
23230 #include <limits.h>
23231
23232 int
23233 main ()
23234 {
23235 #ifndef _BIG_ENDIAN
23236 not big endian
23237 #endif
23238
23239 ;
23240 return 0;
23241 }
23242 _ACEOF
23243 if ac_fn_c_try_compile "$LINENO"; then :
23244 ac_cv_c_bigendian=yes
23245 else
23246 ac_cv_c_bigendian=no
23247 fi
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 fi
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 fi
23252 if test $ac_cv_c_bigendian = unknown; then
23253 # Compile a test program.
23254 if test "$cross_compiling" = yes; then :
23255 # Try to guess by grepping values from an object file.
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h. */
23258 short int ascii_mm[] =
23259 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23260 short int ascii_ii[] =
23261 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23262 int use_ascii (int i) {
23263 return ascii_mm[i] + ascii_ii[i];
23264 }
23265 short int ebcdic_ii[] =
23266 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23267 short int ebcdic_mm[] =
23268 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23269 int use_ebcdic (int i) {
23270 return ebcdic_mm[i] + ebcdic_ii[i];
23271 }
23272 extern int foo;
23273
23274 int
23275 main ()
23276 {
23277 return use_ascii (foo) == use_ebcdic (foo);
23278 ;
23279 return 0;
23280 }
23281 _ACEOF
23282 if ac_fn_c_try_compile "$LINENO"; then :
23283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23284 ac_cv_c_bigendian=yes
23285 fi
23286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23287 if test "$ac_cv_c_bigendian" = unknown; then
23288 ac_cv_c_bigendian=no
23289 else
23290 # finding both strings is unlikely to happen, but who knows?
23291 ac_cv_c_bigendian=unknown
23292 fi
23293 fi
23294 fi
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23296 else
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h. */
23299 $ac_includes_default
23300 int
23301 main ()
23302 {
23303
23304 /* Are we little or big endian? From Harbison&Steele. */
23305 union
23306 {
23307 long int l;
23308 char c[sizeof (long int)];
23309 } u;
23310 u.l = 1;
23311 return u.c[sizeof (long int) - 1] == 1;
23312
23313 ;
23314 return 0;
23315 }
23316 _ACEOF
23317 if ac_fn_c_try_run "$LINENO"; then :
23318 ac_cv_c_bigendian=no
23319 else
23320 ac_cv_c_bigendian=yes
23321 fi
23322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23323 conftest.$ac_objext conftest.beam conftest.$ac_ext
23324 fi
23325
23326 fi
23327 fi
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23329 $as_echo "$ac_cv_c_bigendian" >&6; }
23330 case $ac_cv_c_bigendian in #(
23331 yes)
23332 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23333 ;; #(
23334 no)
23335 ;; #(
23336 universal)
23337
23338 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23339
23340 ;; #(
23341 *)
23342 as_fn_error "unknown endianness
23343 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23344 esac
23345
23346
23347 ZLIBS=
23348 SYS_ZLIBS=
23349 ZINCS=
23350
23351 if test -z "$ZLIBSPEC"; then
23352 # Use zlib from the GCC tree.
23353 ZINCS='-I$(top_srcdir)/../zlib'
23354 ZLIBS=../zlib/libzgcj_convenience.la
23355 else
23356 # System's zlib.
23357 SYS_ZLIBS="$ZLIBSPEC"
23358 fi
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369 if test "$NATIVE" = yes; then
23370 NATIVE_TRUE=
23371 NATIVE_FALSE='#'
23372 else
23373 NATIVE_TRUE='#'
23374 NATIVE_FALSE=
23375 fi
23376
23377 if test "$enable_shared" = yes; then
23378 ENABLE_SHARED_TRUE=
23379 ENABLE_SHARED_FALSE='#'
23380 else
23381 ENABLE_SHARED_TRUE='#'
23382 ENABLE_SHARED_FALSE=
23383 fi
23384
23385 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23386 NEEDS_DATA_START_TRUE=
23387 NEEDS_DATA_START_FALSE='#'
23388 else
23389 NEEDS_DATA_START_TRUE='#'
23390 NEEDS_DATA_START_FALSE=
23391 fi
23392
23393 if test -z "${with_multisubdir}"; then
23394 INSTALL_BINARIES_TRUE=
23395 INSTALL_BINARIES_FALSE='#'
23396 else
23397 INSTALL_BINARIES_TRUE='#'
23398 INSTALL_BINARIES_FALSE=
23399 fi
23400
23401
23402
23403 # Process the option "--enable-version-specific-runtime-libs"
23404 # Calculate toolexeclibdir
23405 case ${version_specific_libs} in
23406 yes)
23407 # Need the gcc compiler version to know where to install libraries
23408 # and header files if --enable-version-specific-runtime-libs option
23409 # is selected.
23410 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23411 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23412 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23413 toolexeclibdir=$toolexecmainlibdir
23414 ;;
23415 no)
23416 if test -n "$with_cross_host" &&
23417 test x"$with_cross_host" != x"no"; then
23418 # Install a library built with a cross compiler in tooldir, not libdir.
23419 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23420 toolexecmainlibdir='$(toolexecdir)/lib'
23421 else
23422 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23423 toolexecmainlibdir='$(libdir)'
23424 fi
23425 multi_os_directory=`$CC -print-multi-os-directory`
23426 case $multi_os_directory in
23427 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23428 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23429 esac
23430 ;;
23431 esac
23432
23433
23434
23435
23436 # Determine gcj and libgcj version number.
23437 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23438 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23439 GCJVERSION=$gcjversion
23440
23441
23442 cat >>confdefs.h <<_ACEOF
23443 #define GCJVERSION "$GCJVERSION"
23444 _ACEOF
23445
23446
23447 # Determine where the standard .db file and GNU Classpath JNI
23448 # libraries are found.
23449 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23450 multi_os_directory=`$CC -print-multi-os-directory`
23451 case $multi_os_directory in
23452 .)
23453 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23454 ;;
23455 *)
23456 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23457 ;;
23458 esac
23459
23460
23461
23462
23463 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23464
23465
23466 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23467
23468
23469
23470 case "${with_gxx_include_dir}" in
23471 yes)
23472 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23473 ;;
23474 no | "")
23475 case "${enable_version_specific_runtime_libs}" in
23476 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23477 *)
23478 libstdcxx_incdir='c++/$(gcc_version)'
23479 gxx_include_dir='include/$(libstdcxx_incdir)'
23480 if test -n "$with_cross_host" &&
23481 test x"$with_cross_host" != x"no"; then
23482 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23483 else
23484 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23485 fi;;
23486 esac ;;
23487 *) gxx_include_dir=${with_gxx_include_dir} ;;
23488 esac
23489
23490
23491
23492
23493 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23494 # On that system, sys/ioctl.h will not include sys/filio.h unless
23495 # BSD_COMP is defined; just including sys/filio.h is simpler.
23496 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23497 # for now. If you change this, you also must update natFile.cc.
23498 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23499 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23500 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23501 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23502 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23503 do :
23504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23505 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23506 eval as_val=\$$as_ac_Header
23507 if test "x$as_val" = x""yes; then :
23508 cat >>confdefs.h <<_ACEOF
23509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23510 _ACEOF
23511
23512 fi
23513
23514 done
23515
23516 for ac_header in inttypes.h
23517 do :
23518 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23519 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23520 cat >>confdefs.h <<_ACEOF
23521 #define HAVE_INTTYPES_H 1
23522 _ACEOF
23523
23524
23525 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23526
23527
23528 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23529
23530
23531 fi
23532
23533 done
23534
23535
23536 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23537 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23538
23539 else
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define ssize_t int
23543 _ACEOF
23544
23545 fi
23546
23547 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23548 #ifdef HAVE_MAGIC_H
23549 #include <magic.h>
23550 #endif
23551 "
23552 if test "x$ac_cv_type_magic_t" = x""yes; then :
23553
23554
23555 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23556
23557 fi
23558
23559
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23561 $as_echo_n "checking for in_addr_t... " >&6; }
23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563 /* end confdefs.h. */
23564 #include <sys/types.h>
23565 #if STDC_HEADERS
23566 #include <stdlib.h>
23567 #include <stddef.h>
23568 #endif
23569 #if HAVE_NETINET_IN_H
23570 #include <netinet/in.h>
23571 #endif
23572 int
23573 main ()
23574 {
23575 in_addr_t foo;
23576 ;
23577 return 0;
23578 }
23579 _ACEOF
23580 if ac_fn_c_try_compile "$LINENO"; then :
23581
23582 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23583
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23585 $as_echo "yes" >&6; }
23586 else
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23588 $as_echo "no" >&6; }
23589 fi
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23593 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596 #include <netinet/in.h>
23597 int
23598 main ()
23599 {
23600 struct ip_mreq mreq;
23601 ;
23602 return 0;
23603 }
23604 _ACEOF
23605 if ac_fn_c_try_compile "$LINENO"; then :
23606
23607 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23608
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23610 $as_echo "yes" >&6; }
23611 else
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23613 $as_echo "no" >&6; }
23614 fi
23615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23616
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23618 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23620 /* end confdefs.h. */
23621 #include <netinet/in.h>
23622 int
23623 main ()
23624 {
23625 struct ipv6_mreq mreq6;
23626 ;
23627 return 0;
23628 }
23629 _ACEOF
23630 if ac_fn_c_try_compile "$LINENO"; then :
23631
23632 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23633
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23635 $as_echo "yes" >&6; }
23636 else
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23638 $as_echo "no" >&6; }
23639 fi
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23641
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23643 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h. */
23646 #include <netinet/in.h>
23647 int
23648 main ()
23649 {
23650 struct sockaddr_in6 addr6;
23651 ;
23652 return 0;
23653 }
23654 _ACEOF
23655 if ac_fn_c_try_compile "$LINENO"; then :
23656
23657 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23658
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23660 $as_echo "yes" >&6; }
23661 else
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664 fi
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23668 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h. */
23671 #define _POSIX_PII_SOCKET
23672 #include <sys/types.h>
23673 #include <sys/socket.h>
23674 int
23675 main ()
23676 {
23677 socklen_t x = 5;
23678 ;
23679 return 0;
23680 }
23681 _ACEOF
23682 if ac_fn_c_try_compile "$LINENO"; then :
23683
23684 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23685
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23687 $as_echo "yes" >&6; }
23688 else
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23691 fi
23692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23695 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h. */
23698 #include <time.h>
23699 int
23700 main ()
23701 {
23702 struct tm tim; tim.tm_gmtoff = 0;
23703 ;
23704 return 0;
23705 }
23706 _ACEOF
23707 if ac_fn_c_try_compile "$LINENO"; then :
23708
23709 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23710
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23712 $as_echo "yes" >&6; }
23713 else
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23715 $as_echo "no" >&6; }
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23717 $as_echo_n "checking for global timezone variable... " >&6; }
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h. */
23720 #include <time.h>
23721 int
23722 main ()
23723 {
23724 void i(){long z2 = 2*timezone;}
23725 ;
23726 return 0;
23727 }
23728 _ACEOF
23729 if ac_fn_c_try_compile "$LINENO"; then :
23730
23731 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23732
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23734 $as_echo "yes" >&6; }
23735 else
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23737 $as_echo "no" >&6; }
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23739 $as_echo_n "checking for global _timezone variable... " >&6; }
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23742 #include <time.h>
23743 int
23744 main ()
23745 {
23746 long z2 = _timezone;
23747 ;
23748 return 0;
23749 }
23750 _ACEOF
23751 if ac_fn_c_try_compile "$LINENO"; then :
23752
23753 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23754
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23756 $as_echo "yes" >&6; }
23757 else
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23759 $as_echo "no" >&6; }
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 fi
23763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23764 fi
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766
23767 for ac_prog in perl
23768 do
23769 # Extract the first word of "$ac_prog", so it can be a program name with args.
23770 set dummy $ac_prog; ac_word=$2
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23772 $as_echo_n "checking for $ac_word... " >&6; }
23773 if test "${ac_cv_prog_PERL+set}" = set; then :
23774 $as_echo_n "(cached) " >&6
23775 else
23776 if test -n "$PERL"; then
23777 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23778 else
23779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23780 for as_dir in $PATH
23781 do
23782 IFS=$as_save_IFS
23783 test -z "$as_dir" && as_dir=.
23784 for ac_exec_ext in '' $ac_executable_extensions; do
23785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23786 ac_cv_prog_PERL="$ac_prog"
23787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23788 break 2
23789 fi
23790 done
23791 done
23792 IFS=$as_save_IFS
23793
23794 fi
23795 fi
23796 PERL=$ac_cv_prog_PERL
23797 if test -n "$PERL"; then
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23799 $as_echo "$PERL" >&6; }
23800 else
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23802 $as_echo "no" >&6; }
23803 fi
23804
23805
23806 test -n "$PERL" && break
23807 done
23808 test -n "$PERL" || PERL="false"
23809
23810
23811 SYSDEP_SOURCES=
23812 SIGNAL_HANDLER_AUX=
23813
23814 case "${host}" in
23815 i?86-*-linux*)
23816 SIGNAL_HANDLER=include/i386-signal.h
23817 ;;
23818 sparc*-sun-solaris*)
23819 SIGNAL_HANDLER=include/sparc-signal.h
23820 ;;
23821 # ia64-*)
23822 # SYSDEP_SOURCES=sysdep/ia64.c
23823 # test -d sysdep || mkdir sysdep
23824 # ;;
23825 hppa*-*-linux*)
23826 SIGNAL_HANDLER=include/pa-signal.h
23827 ;;
23828 hppa*-hp-hpux*)
23829 SIGNAL_HANDLER=include/hppa-signal.h
23830 ;;
23831 ia64-*-linux*)
23832 SIGNAL_HANDLER=include/dwarf2-signal.h
23833 ;;
23834 powerpc*-*-linux*)
23835 SIGNAL_HANDLER=include/powerpc-signal.h
23836 ;;
23837 alpha*-*-linux*)
23838 SIGNAL_HANDLER=include/dwarf2-signal.h
23839 ;;
23840 s390*-*-linux*)
23841 SIGNAL_HANDLER=include/s390-signal.h
23842 ;;
23843 x86_64*-*-linux*)
23844 SIGNAL_HANDLER=include/x86_64-signal.h
23845 SIGNAL_HANDLER_AUX=include/i386-signal.h
23846 ;;
23847 sparc*-*-linux*)
23848 SIGNAL_HANDLER=include/dwarf2-signal.h
23849 ;;
23850 sh*-*-linux*)
23851 SIGNAL_HANDLER=include/sh-signal.h
23852 ;;
23853 *mingw*)
23854 SIGNAL_HANDLER=include/win32-signal.h
23855 ;;
23856 mips*-*-linux*)
23857 SIGNAL_HANDLER=include/mips-signal.h
23858 ;;
23859 m68*-*-linux*)
23860 SIGNAL_HANDLER=include/dwarf2-signal.h
23861 ;;
23862 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23863 SIGNAL_HANDLER=include/darwin-signal.h
23864 ;;
23865 powerpc*-*-aix*)
23866 SIGNAL_HANDLER=include/aix-signal.h
23867 ;;
23868 *)
23869 SIGNAL_HANDLER=include/default-signal.h
23870 ;;
23871 esac
23872
23873 # If we're using sjlj exceptions, forget what we just learned.
23874 if test "$enable_sjlj_exceptions" = yes; then
23875 SIGNAL_HANDLER=include/default-signal.h
23876 SIGNAL_HANDLER_AUX=
23877 fi
23878
23879
23880
23881 if test -z "$SIGNAL_HANDLER_AUX"; then
23882 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23883 fi
23884
23885 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23886
23887
23888 if test "${multilib}" = "yes"; then
23889 multilib_arg="--enable-multilib"
23890 else
23891 multilib_arg=
23892 fi
23893
23894 # See if we support thread-local storage.
23895
23896
23897 # Check whether --enable-tls was given.
23898 if test "${enable_tls+set}" = set; then :
23899 enableval=$enable_tls;
23900 case "$enableval" in
23901 yes|no) ;;
23902 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23903 esac
23904
23905 else
23906 enable_tls=yes
23907 fi
23908
23909
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23911 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23912 if test "${gcc_cv_have_tls+set}" = set; then :
23913 $as_echo_n "(cached) " >&6
23914 else
23915
23916 if test "$cross_compiling" = yes; then :
23917 if test x$gcc_no_link = xyes; then
23918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23919 fi
23920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h. */
23922 __thread int a; int b; int main() { return a = b; }
23923 _ACEOF
23924 if ac_fn_c_try_link "$LINENO"; then :
23925 chktls_save_LDFLAGS="$LDFLAGS"
23926 case $host in
23927 *-*-linux*)
23928 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23929 ;;
23930 esac
23931 chktls_save_CFLAGS="$CFLAGS"
23932 CFLAGS="-fPIC $CFLAGS"
23933 if test x$gcc_no_link = xyes; then
23934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23935 fi
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23938 int f() { return 0; }
23939 _ACEOF
23940 if ac_fn_c_try_link "$LINENO"; then :
23941 if test x$gcc_no_link = xyes; then
23942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23943 fi
23944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23945 /* end confdefs.h. */
23946 __thread int a; int b; int f() { return a = b; }
23947 _ACEOF
23948 if ac_fn_c_try_link "$LINENO"; then :
23949 gcc_cv_have_tls=yes
23950 else
23951 gcc_cv_have_tls=no
23952 fi
23953 rm -f core conftest.err conftest.$ac_objext \
23954 conftest$ac_exeext conftest.$ac_ext
23955 else
23956 gcc_cv_have_tls=yes
23957 fi
23958 rm -f core conftest.err conftest.$ac_objext \
23959 conftest$ac_exeext conftest.$ac_ext
23960 CFLAGS="$chktls_save_CFLAGS"
23961 LDFLAGS="$chktls_save_LDFLAGS"
23962 else
23963 gcc_cv_have_tls=no
23964 fi
23965 rm -f core conftest.err conftest.$ac_objext \
23966 conftest$ac_exeext conftest.$ac_ext
23967
23968
23969 else
23970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971 /* end confdefs.h. */
23972 __thread int a; int b; int main() { return a = b; }
23973 _ACEOF
23974 if ac_fn_c_try_run "$LINENO"; then :
23975 chktls_save_LDFLAGS="$LDFLAGS"
23976 LDFLAGS="-static $LDFLAGS"
23977 if test x$gcc_no_link = xyes; then
23978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23979 fi
23980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23981 /* end confdefs.h. */
23982 int main() { return 0; }
23983 _ACEOF
23984 if ac_fn_c_try_link "$LINENO"; then :
23985 if test "$cross_compiling" = yes; then :
23986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23988 as_fn_error "cannot run test program while cross compiling
23989 See \`config.log' for more details." "$LINENO" 5; }
23990 else
23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23992 /* end confdefs.h. */
23993 __thread int a; int b; int main() { return a = b; }
23994 _ACEOF
23995 if ac_fn_c_try_run "$LINENO"; then :
23996 gcc_cv_have_tls=yes
23997 else
23998 gcc_cv_have_tls=no
23999 fi
24000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24001 conftest.$ac_objext conftest.beam conftest.$ac_ext
24002 fi
24003
24004 else
24005 gcc_cv_have_tls=yes
24006 fi
24007 rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
24009 LDFLAGS="$chktls_save_LDFLAGS"
24010 if test $gcc_cv_have_tls = yes; then
24011 chktls_save_CFLAGS="$CFLAGS"
24012 thread_CFLAGS=failed
24013 for flag in '' '-pthread' '-lpthread'; do
24014 CFLAGS="$flag $chktls_save_CFLAGS"
24015 if test x$gcc_no_link = xyes; then
24016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24017 fi
24018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24019 /* end confdefs.h. */
24020 #include <pthread.h>
24021 void *g(void *d) { return NULL; }
24022 int
24023 main ()
24024 {
24025 pthread_t t; pthread_create(&t,NULL,g,NULL);
24026 ;
24027 return 0;
24028 }
24029 _ACEOF
24030 if ac_fn_c_try_link "$LINENO"; then :
24031 thread_CFLAGS="$flag"
24032 fi
24033 rm -f core conftest.err conftest.$ac_objext \
24034 conftest$ac_exeext conftest.$ac_ext
24035 if test "X$thread_CFLAGS" != Xfailed; then
24036 break
24037 fi
24038 done
24039 CFLAGS="$chktls_save_CFLAGS"
24040 if test "X$thread_CFLAGS" != Xfailed; then
24041 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24042 if test "$cross_compiling" = yes; then :
24043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24045 as_fn_error "cannot run test program while cross compiling
24046 See \`config.log' for more details." "$LINENO" 5; }
24047 else
24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24049 /* end confdefs.h. */
24050 #include <pthread.h>
24051 __thread int a;
24052 static int *a_in_other_thread;
24053 static void *
24054 thread_func (void *arg)
24055 {
24056 a_in_other_thread = &a;
24057 return (void *)0;
24058 }
24059 int
24060 main ()
24061 {
24062 pthread_t thread;
24063 void *thread_retval;
24064 int *a_in_main_thread;
24065 if (pthread_create (&thread, (pthread_attr_t *)0,
24066 thread_func, (void *)0))
24067 return 0;
24068 a_in_main_thread = &a;
24069 if (pthread_join (thread, &thread_retval))
24070 return 0;
24071 return (a_in_other_thread == a_in_main_thread);
24072 ;
24073 return 0;
24074 }
24075 _ACEOF
24076 if ac_fn_c_try_run "$LINENO"; then :
24077 gcc_cv_have_tls=yes
24078 else
24079 gcc_cv_have_tls=no
24080 fi
24081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24082 conftest.$ac_objext conftest.beam conftest.$ac_ext
24083 fi
24084
24085 CFLAGS="$chktls_save_CFLAGS"
24086 fi
24087 fi
24088 else
24089 gcc_cv_have_tls=no
24090 fi
24091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24092 conftest.$ac_objext conftest.beam conftest.$ac_ext
24093 fi
24094
24095 fi
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24097 $as_echo "$gcc_cv_have_tls" >&6; }
24098 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24099
24100 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24101
24102 fi
24103
24104 # For _Unwind_GetIPInfo.
24105
24106
24107 # Check whether --with-system-libunwind was given.
24108 if test "${with_system_libunwind+set}" = set; then :
24109 withval=$with_system_libunwind;
24110 fi
24111
24112 # If system-libunwind was not specifically set, pick a default setting.
24113 if test x$with_system_libunwind = x; then
24114 case ${target} in
24115 ia64-*-hpux*) with_system_libunwind=yes ;;
24116 *) with_system_libunwind=no ;;
24117 esac
24118 fi
24119 # Based on system-libunwind and target, do we have ipinfo?
24120 if test x$with_system_libunwind = xyes; then
24121 case ${target} in
24122 ia64-*-*) have_unwind_getipinfo=no ;;
24123 *) have_unwind_getipinfo=yes ;;
24124 esac
24125 else
24126 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24127
24128 case ${target} in
24129 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24130 *) have_unwind_getipinfo=yes ;;
24131 esac
24132
24133 fi
24134
24135 if test x$have_unwind_getipinfo = xyes; then
24136
24137 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24138
24139 fi
24140
24141
24142 # See if linker supports anonymous version scripts.
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24144 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24145 if test "${libjava_cv_anon_version_script+set}" = set; then :
24146 $as_echo_n "(cached) " >&6
24147 else
24148 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24149 libjava_cv_anon_version_script=no
24150 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24151 echo '{ global: globalsymb*; local: *; };' > conftest.map
24152 if test x$gcc_no_link = xyes; then
24153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24154 fi
24155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156 /* end confdefs.h. */
24157 void globalsymbol (void) {} void localsymbol (void) {}
24158 int
24159 main ()
24160 {
24161
24162 ;
24163 return 0;
24164 }
24165 _ACEOF
24166 if ac_fn_c_try_link "$LINENO"; then :
24167 libjava_cv_anon_version_script=yes
24168 fi
24169 rm -f core conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
24171 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24172
24173 fi
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24175 $as_echo "$libjava_cv_anon_version_script" >&6; }
24176 if test "$libjava_cv_anon_version_script" = yes; then
24177 ANONVERSCRIPT_TRUE=
24178 ANONVERSCRIPT_FALSE='#'
24179 else
24180 ANONVERSCRIPT_TRUE='#'
24181 ANONVERSCRIPT_FALSE=
24182 fi
24183
24184
24185 # Check if linker supports static linking on a per library basis
24186 LD_START_STATIC_SPEC=
24187 LD_FINISH_STATIC_SPEC=
24188 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24189 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24190 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24191 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24192 fi
24193 fi
24194
24195
24196
24197 here=`${PWDCMD-pwd}`
24198
24199
24200 # We get this from the environment.
24201
24202
24203
24204 # Check whether --with-python-dir was given.
24205 if test "${with_python_dir+set}" = set; then :
24206 withval=$with_python_dir; with_python_dir=$withval
24207 else
24208 with_python_dir=""
24209 fi
24210
24211
24212 if test "x${with_python_dir}" = "x"
24213 then
24214 # Needed for installing Python modules during make install.
24215 python_mod_dir="\${prefix}/share/python"
24216 # Needed for substituting into aot-compile*
24217 python_mod_dir_expanded="${prefix}/share/python"
24218 else
24219 python_mod_dir="\${prefix}${with_python_dir}"
24220 python_mod_dir_expanded="${prefix}${with_python_dir}"
24221 fi
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24223 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24224
24225
24226
24227 # needed for aot-compile-rpm
24228 MAKE=`which make`
24229
24230
24231 # Check whether --enable-aot-compile-rpm was given.
24232 if test "${enable_aot_compile_rpm+set}" = set; then :
24233 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24234 yes) AOT_RPM_ENABLED=yes ;;
24235 no) AOT_RPM_ENABLED=no ;;
24236 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24237 esac
24238 else
24239 AOT_RPM_ENABLED=no
24240
24241 fi
24242
24243 if test "x${AOT_RPM_ENABLED}" = xyes; then
24244 INSTALL_AOT_RPM_TRUE=
24245 INSTALL_AOT_RPM_FALSE='#'
24246 else
24247 INSTALL_AOT_RPM_TRUE='#'
24248 INSTALL_AOT_RPM_FALSE=
24249 fi
24250
24251
24252 # Check whether --enable-java-home was given.
24253 if test "${enable_java_home+set}" = set; then :
24254 enableval=$enable_java_home; case "${enableval}" in
24255 yes) JAVA_HOME_ENABLED=yes ;;
24256 no) JAVA_HOME_ENABLED=no ;;
24257 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24258 esac
24259 else
24260 JAVA_HOME_ENABLED=no
24261
24262 fi
24263
24264 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24265 CREATE_JAVA_HOME_TRUE=
24266 CREATE_JAVA_HOME_FALSE='#'
24267 else
24268 CREATE_JAVA_HOME_TRUE='#'
24269 CREATE_JAVA_HOME_FALSE=
24270 fi
24271
24272
24273 # Only do these checks if java-home above is enabled.
24274 if test "x${JAVA_HOME_ENABLED}" = xyes
24275 then
24276
24277
24278 # Check whether --with-gcc-suffix was given.
24279 if test "${with_gcc_suffix+set}" = set; then :
24280 withval=$with_gcc_suffix; gcc_suffix=$withval
24281 else
24282 gcc_suffix=""
24283 fi
24284
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24286 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24287
24288
24289
24290 # Check whether --with-arch-directory was given.
24291 if test "${with_arch_directory+set}" = set; then :
24292 withval=$with_arch_directory; host_cpu=$withval
24293 else
24294 host_cpu=""
24295 fi
24296
24297
24298
24299 # Check whether --with-os-directory was given.
24300 if test "${with_os_directory+set}" = set; then :
24301 withval=$with_os_directory; host_os=$withval
24302 else
24303 host_os=""
24304 fi
24305
24306
24307
24308 # Check whether --with-origin-name was given.
24309 if test "${with_origin_name+set}" = set; then :
24310 withval=$with_origin_name; origin_name=$withval
24311 else
24312 origin_name=gcj${gcc_suffix}
24313 fi
24314
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24316 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24317
24318
24319 # Check whether --with-arch-suffix was given.
24320 if test "${with_arch_suffix+set}" = set; then :
24321 withval=$with_arch_suffix; arch_suffix=$withval
24322 else
24323 arch_suffix=""
24324 fi
24325
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24327 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24328
24329
24330 # Check whether --with-jvm-root-dir was given.
24331 if test "${with_jvm_root_dir+set}" = set; then :
24332 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24333 else
24334 jvm_root_dir="\${prefix}/lib/jvm"
24335 fi
24336
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24338 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24339
24340
24341 # Check whether --with-jvm-jar-dir was given.
24342 if test "${with_jvm_jar_dir+set}" = set; then :
24343 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24344 else
24345 jvm_jar_dir=\${prefix}/lib/jvm-exports
24346 fi
24347
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24349 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24350
24351 JAVA_VERSION=1.5.0
24352 BUILD_VERSION=0
24353
24354
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24356 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24357
24358 jre_dir=jre
24359 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24360 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24361
24362 JVM_ROOT_DIR=${jvm_root_dir}
24363
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24365 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24366
24367 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24368
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24370 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24371
24372 JVM_JAR_DIR=${jvm_jar_dir}
24373
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24375 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24376
24377 JRE_DIR=${jre_dir}
24378
24379
24380 JRE_LNK=${jre_lnk}
24381
24382
24383 SDK_LNK=${sdk_lnk}
24384
24385
24386 SDK_BIN_DIR=${jvm_root_dir}/bin
24387
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24389 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24390
24391 SDK_LIB_DIR=${jvm_root_dir}/lib
24392
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24394 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24395
24396 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24397
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24399 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24400
24401 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24402
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24404 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24405
24406 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24407
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24409 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24410
24411 # Find gcj prefix using gcj found in PATH.
24412 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24413
24414 # Where do the gcj binaries live?
24415 # For jhbuild based builds, they all live in a sibling of bin called
24416 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24417 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24418
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24420 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24421
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24423 $as_echo "host is ${host}" >&6; }
24424 if test "x${host_cpu}" = "x"
24425 then
24426 case ${host} in
24427 *-mingw* | *-cygwin*)
24428 host_cpu=x86;;
24429 i486-* | i586-* | i686-*)
24430 host_cpu=i386;;
24431 x86_64-*)
24432 host_cpu=amd64;;
24433 *)
24434 host_cpu=${host_cpu};;
24435 esac
24436 fi
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24438 $as_echo "arch directory: ${host_cpu}" >&6; }
24439 CPU=${host_cpu}
24440
24441
24442 if test "x${host_os}" = "x"
24443 then
24444 case ${host} in
24445 *-mingw* | *-cygwin*)
24446 host_os=win32;;
24447 *-linux*)
24448 host_os=linux;;
24449 *)
24450 host_os=${host_os};;
24451 esac
24452 fi
24453 echo os directory: ${host_os}
24454 OS=${host_os}
24455
24456
24457 # make an expanded $libdir, for substituting into
24458 # scripts (and other non-Makefile things).
24459 LIBDIR=$libdir
24460 if test "x${exec_prefix}" = "xNONE"
24461 then
24462 lib_exec_prefix=$prefix
24463 else
24464 lib_exec_prefix=$exec_prefix
24465 fi
24466 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24467
24468 fi
24469
24470 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"
24471
24472
24473 if test ${multilib} = yes; then
24474 multilib_arg="--enable-multilib"
24475 else
24476 multilib_arg=
24477 fi
24478
24479 ac_config_files="$ac_config_files scripts/jar"
24480
24481 cat >confcache <<\_ACEOF
24482 # This file is a shell script that caches the results of configure
24483 # tests run on this system so they can be shared between configure
24484 # scripts and configure runs, see configure's option --config-cache.
24485 # It is not useful on other systems. If it contains results you don't
24486 # want to keep, you may remove or edit it.
24487 #
24488 # config.status only pays attention to the cache file if you give it
24489 # the --recheck option to rerun configure.
24490 #
24491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24493 # following values.
24494
24495 _ACEOF
24496
24497 # The following way of writing the cache mishandles newlines in values,
24498 # but we know of no workaround that is simple, portable, and efficient.
24499 # So, we kill variables containing newlines.
24500 # Ultrix sh set writes to stderr and can't be redirected directly,
24501 # and sets the high bit in the cache file unless we assign to the vars.
24502 (
24503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24504 eval ac_val=\$$ac_var
24505 case $ac_val in #(
24506 *${as_nl}*)
24507 case $ac_var in #(
24508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24510 esac
24511 case $ac_var in #(
24512 _ | IFS | as_nl) ;; #(
24513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24514 *) { eval $ac_var=; unset $ac_var;} ;;
24515 esac ;;
24516 esac
24517 done
24518
24519 (set) 2>&1 |
24520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24521 *${as_nl}ac_space=\ *)
24522 # `set' does not quote correctly, so add quotes: double-quote
24523 # substitution turns \\\\ into \\, and sed turns \\ into \.
24524 sed -n \
24525 "s/'/'\\\\''/g;
24526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24527 ;; #(
24528 *)
24529 # `set' quotes correctly as required by POSIX, so do not add quotes.
24530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24531 ;;
24532 esac |
24533 sort
24534 ) |
24535 sed '
24536 /^ac_cv_env_/b end
24537 t clear
24538 :clear
24539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24540 t end
24541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24542 :end' >>confcache
24543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24544 if test -w "$cache_file"; then
24545 test "x$cache_file" != "x/dev/null" &&
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24547 $as_echo "$as_me: updating cache $cache_file" >&6;}
24548 cat confcache >$cache_file
24549 else
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24552 fi
24553 fi
24554 rm -f confcache
24555
24556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24557 # Let make expand exec_prefix.
24558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24559
24560 DEFS=-DHAVE_CONFIG_H
24561
24562 ac_libobjs=
24563 ac_ltlibobjs=
24564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24565 # 1. Remove the extension, and $U if already installed.
24566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24569 # will be set to the directory where LIBOBJS objects are built.
24570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24572 done
24573 LIBOBJS=$ac_libobjs
24574
24575 LTLIBOBJS=$ac_ltlibobjs
24576
24577
24578 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24579 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24581 fi
24582 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24583 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24585 fi
24586 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24587 as_fn_error "conditional \"AMDEP\" was never defined.
24588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24589 fi
24590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24591 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24593 fi
24594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24595 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24597 fi
24598 if test -n "$EXEEXT"; then
24599 am__EXEEXT_TRUE=
24600 am__EXEEXT_FALSE='#'
24601 else
24602 am__EXEEXT_TRUE='#'
24603 am__EXEEXT_FALSE=
24604 fi
24605
24606 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24607 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24609 fi
24610 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24611 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24613 fi
24614 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24615 as_fn_error "conditional \"X_AWT\" was never defined.
24616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24617 fi
24618 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24619 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24621 fi
24622 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24623 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24625 fi
24626 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24627 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24629 fi
24630 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24631 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24633 fi
24634 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24635 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24637 fi
24638 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24639 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24641 fi
24642 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24643 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24645 fi
24646 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24647 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24649 fi
24650 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24651 as_fn_error "conditional \"INTERPRETER\" was never defined.
24652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24653 fi
24654 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24655 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24657 fi
24658 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24659 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24661 fi
24662 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24663 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24665 fi
24666 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24667 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24669 fi
24670 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24671 as_fn_error "conditional \"USING_NOGC\" was never defined.
24672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24673 fi
24674 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24675 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24677 fi
24678 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24679 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24681 fi
24682 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24683 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24685 fi
24686 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24687 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24689 fi
24690 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24691 as_fn_error "conditional \"USING_GCC\" was never defined.
24692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24693 fi
24694 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24695 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24697 fi
24698
24699 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24700 as_fn_error "conditional \"NATIVE\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24702 fi
24703 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24704 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24706 fi
24707 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24708 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24710 fi
24711 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24712 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24714 fi
24715 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24716 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24718 fi
24719 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24720 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24722 fi
24723 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24724 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24726 fi
24727
24728 : ${CONFIG_STATUS=./config.status}
24729 ac_write_fail=0
24730 ac_clean_files_save=$ac_clean_files
24731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24734 as_write_fail=0
24735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24736 #! $SHELL
24737 # Generated by $as_me.
24738 # Run this file to recreate the current configuration.
24739 # Compiler output produced by configure, useful for debugging
24740 # configure, is in config.log if it exists.
24741
24742 debug=false
24743 ac_cs_recheck=false
24744 ac_cs_silent=false
24745
24746 SHELL=\${CONFIG_SHELL-$SHELL}
24747 export SHELL
24748 _ASEOF
24749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24750 ## -------------------- ##
24751 ## M4sh Initialization. ##
24752 ## -------------------- ##
24753
24754 # Be more Bourne compatible
24755 DUALCASE=1; export DUALCASE # for MKS sh
24756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24757 emulate sh
24758 NULLCMD=:
24759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24760 # is contrary to our usage. Disable this feature.
24761 alias -g '${1+"$@"}'='"$@"'
24762 setopt NO_GLOB_SUBST
24763 else
24764 case `(set -o) 2>/dev/null` in #(
24765 *posix*) :
24766 set -o posix ;; #(
24767 *) :
24768 ;;
24769 esac
24770 fi
24771
24772
24773 as_nl='
24774 '
24775 export as_nl
24776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24780 # Prefer a ksh shell builtin over an external printf program on Solaris,
24781 # but without wasting forks for bash or zsh.
24782 if test -z "$BASH_VERSION$ZSH_VERSION" \
24783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24784 as_echo='print -r --'
24785 as_echo_n='print -rn --'
24786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24787 as_echo='printf %s\n'
24788 as_echo_n='printf %s'
24789 else
24790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24792 as_echo_n='/usr/ucb/echo -n'
24793 else
24794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24795 as_echo_n_body='eval
24796 arg=$1;
24797 case $arg in #(
24798 *"$as_nl"*)
24799 expr "X$arg" : "X\\(.*\\)$as_nl";
24800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24801 esac;
24802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24803 '
24804 export as_echo_n_body
24805 as_echo_n='sh -c $as_echo_n_body as_echo'
24806 fi
24807 export as_echo_body
24808 as_echo='sh -c $as_echo_body as_echo'
24809 fi
24810
24811 # The user is always right.
24812 if test "${PATH_SEPARATOR+set}" != set; then
24813 PATH_SEPARATOR=:
24814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24816 PATH_SEPARATOR=';'
24817 }
24818 fi
24819
24820
24821 # IFS
24822 # We need space, tab and new line, in precisely that order. Quoting is
24823 # there to prevent editors from complaining about space-tab.
24824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24825 # splitting by setting IFS to empty value.)
24826 IFS=" "" $as_nl"
24827
24828 # Find who we are. Look in the path if we contain no directory separator.
24829 case $0 in #((
24830 *[\\/]* ) as_myself=$0 ;;
24831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24832 for as_dir in $PATH
24833 do
24834 IFS=$as_save_IFS
24835 test -z "$as_dir" && as_dir=.
24836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24837 done
24838 IFS=$as_save_IFS
24839
24840 ;;
24841 esac
24842 # We did not find ourselves, most probably we were run as `sh COMMAND'
24843 # in which case we are not to be found in the path.
24844 if test "x$as_myself" = x; then
24845 as_myself=$0
24846 fi
24847 if test ! -f "$as_myself"; then
24848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24849 exit 1
24850 fi
24851
24852 # Unset variables that we do not need and which cause bugs (e.g. in
24853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24854 # suppresses any "Segmentation fault" message there. '((' could
24855 # trigger a bug in pdksh 5.2.14.
24856 for as_var in BASH_ENV ENV MAIL MAILPATH
24857 do eval test x\${$as_var+set} = xset \
24858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24859 done
24860 PS1='$ '
24861 PS2='> '
24862 PS4='+ '
24863
24864 # NLS nuisances.
24865 LC_ALL=C
24866 export LC_ALL
24867 LANGUAGE=C
24868 export LANGUAGE
24869
24870 # CDPATH.
24871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24872
24873
24874 # as_fn_error ERROR [LINENO LOG_FD]
24875 # ---------------------------------
24876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24878 # script with status $?, using 1 if that was 0.
24879 as_fn_error ()
24880 {
24881 as_status=$?; test $as_status -eq 0 && as_status=1
24882 if test "$3"; then
24883 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24885 fi
24886 $as_echo "$as_me: error: $1" >&2
24887 as_fn_exit $as_status
24888 } # as_fn_error
24889
24890
24891 # as_fn_set_status STATUS
24892 # -----------------------
24893 # Set $? to STATUS, without forking.
24894 as_fn_set_status ()
24895 {
24896 return $1
24897 } # as_fn_set_status
24898
24899 # as_fn_exit STATUS
24900 # -----------------
24901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24902 as_fn_exit ()
24903 {
24904 set +e
24905 as_fn_set_status $1
24906 exit $1
24907 } # as_fn_exit
24908
24909 # as_fn_unset VAR
24910 # ---------------
24911 # Portably unset VAR.
24912 as_fn_unset ()
24913 {
24914 { eval $1=; unset $1;}
24915 }
24916 as_unset=as_fn_unset
24917 # as_fn_append VAR VALUE
24918 # ----------------------
24919 # Append the text in VALUE to the end of the definition contained in VAR. Take
24920 # advantage of any shell optimizations that allow amortized linear growth over
24921 # repeated appends, instead of the typical quadratic growth present in naive
24922 # implementations.
24923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24924 eval 'as_fn_append ()
24925 {
24926 eval $1+=\$2
24927 }'
24928 else
24929 as_fn_append ()
24930 {
24931 eval $1=\$$1\$2
24932 }
24933 fi # as_fn_append
24934
24935 # as_fn_arith ARG...
24936 # ------------------
24937 # Perform arithmetic evaluation on the ARGs, and store the result in the
24938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24939 # must be portable across $(()) and expr.
24940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24941 eval 'as_fn_arith ()
24942 {
24943 as_val=$(( $* ))
24944 }'
24945 else
24946 as_fn_arith ()
24947 {
24948 as_val=`expr "$@" || test $? -eq 1`
24949 }
24950 fi # as_fn_arith
24951
24952
24953 if expr a : '\(a\)' >/dev/null 2>&1 &&
24954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24955 as_expr=expr
24956 else
24957 as_expr=false
24958 fi
24959
24960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24961 as_basename=basename
24962 else
24963 as_basename=false
24964 fi
24965
24966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24967 as_dirname=dirname
24968 else
24969 as_dirname=false
24970 fi
24971
24972 as_me=`$as_basename -- "$0" ||
24973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24974 X"$0" : 'X\(//\)$' \| \
24975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24976 $as_echo X/"$0" |
24977 sed '/^.*\/\([^/][^/]*\)\/*$/{
24978 s//\1/
24979 q
24980 }
24981 /^X\/\(\/\/\)$/{
24982 s//\1/
24983 q
24984 }
24985 /^X\/\(\/\).*/{
24986 s//\1/
24987 q
24988 }
24989 s/.*/./; q'`
24990
24991 # Avoid depending upon Character Ranges.
24992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24995 as_cr_digits='0123456789'
24996 as_cr_alnum=$as_cr_Letters$as_cr_digits
24997
24998 ECHO_C= ECHO_N= ECHO_T=
24999 case `echo -n x` in #(((((
25000 -n*)
25001 case `echo 'xy\c'` in
25002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25003 xy) ECHO_C='\c';;
25004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25005 ECHO_T=' ';;
25006 esac;;
25007 *)
25008 ECHO_N='-n';;
25009 esac
25010
25011 rm -f conf$$ conf$$.exe conf$$.file
25012 if test -d conf$$.dir; then
25013 rm -f conf$$.dir/conf$$.file
25014 else
25015 rm -f conf$$.dir
25016 mkdir conf$$.dir 2>/dev/null
25017 fi
25018 if (echo >conf$$.file) 2>/dev/null; then
25019 if ln -s conf$$.file conf$$ 2>/dev/null; then
25020 as_ln_s='ln -s'
25021 # ... but there are two gotchas:
25022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25024 # In both cases, we have to default to `cp -p'.
25025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25026 as_ln_s='cp -p'
25027 elif ln conf$$.file conf$$ 2>/dev/null; then
25028 as_ln_s=ln
25029 else
25030 as_ln_s='cp -p'
25031 fi
25032 else
25033 as_ln_s='cp -p'
25034 fi
25035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25036 rmdir conf$$.dir 2>/dev/null
25037
25038
25039 # as_fn_mkdir_p
25040 # -------------
25041 # Create "$as_dir" as a directory, including parents if necessary.
25042 as_fn_mkdir_p ()
25043 {
25044
25045 case $as_dir in #(
25046 -*) as_dir=./$as_dir;;
25047 esac
25048 test -d "$as_dir" || eval $as_mkdir_p || {
25049 as_dirs=
25050 while :; do
25051 case $as_dir in #(
25052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25053 *) as_qdir=$as_dir;;
25054 esac
25055 as_dirs="'$as_qdir' $as_dirs"
25056 as_dir=`$as_dirname -- "$as_dir" ||
25057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25058 X"$as_dir" : 'X\(//\)[^/]' \| \
25059 X"$as_dir" : 'X\(//\)$' \| \
25060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25061 $as_echo X"$as_dir" |
25062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25063 s//\1/
25064 q
25065 }
25066 /^X\(\/\/\)[^/].*/{
25067 s//\1/
25068 q
25069 }
25070 /^X\(\/\/\)$/{
25071 s//\1/
25072 q
25073 }
25074 /^X\(\/\).*/{
25075 s//\1/
25076 q
25077 }
25078 s/.*/./; q'`
25079 test -d "$as_dir" && break
25080 done
25081 test -z "$as_dirs" || eval "mkdir $as_dirs"
25082 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25083
25084
25085 } # as_fn_mkdir_p
25086 if mkdir -p . 2>/dev/null; then
25087 as_mkdir_p='mkdir -p "$as_dir"'
25088 else
25089 test -d ./-p && rmdir ./-p
25090 as_mkdir_p=false
25091 fi
25092
25093 if test -x / >/dev/null 2>&1; then
25094 as_test_x='test -x'
25095 else
25096 if ls -dL / >/dev/null 2>&1; then
25097 as_ls_L_option=L
25098 else
25099 as_ls_L_option=
25100 fi
25101 as_test_x='
25102 eval sh -c '\''
25103 if test -d "$1"; then
25104 test -d "$1/.";
25105 else
25106 case $1 in #(
25107 -*)set "./$1";;
25108 esac;
25109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25110 ???[sx]*):;;*)false;;esac;fi
25111 '\'' sh
25112 '
25113 fi
25114 as_executable_p=$as_test_x
25115
25116 # Sed expression to map a string onto a valid CPP name.
25117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25118
25119 # Sed expression to map a string onto a valid variable name.
25120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25121
25122
25123 exec 6>&1
25124 ## ----------------------------------- ##
25125 ## Main body of $CONFIG_STATUS script. ##
25126 ## ----------------------------------- ##
25127 _ASEOF
25128 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25129
25130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25131 # Save the log message, to keep $0 and so on meaningful, and to
25132 # report actual input values of CONFIG_FILES etc. instead of their
25133 # values after options handling.
25134 ac_log="
25135 This file was extended by libjava $as_me version-unused, which was
25136 generated by GNU Autoconf 2.64. Invocation command line was
25137
25138 CONFIG_FILES = $CONFIG_FILES
25139 CONFIG_HEADERS = $CONFIG_HEADERS
25140 CONFIG_LINKS = $CONFIG_LINKS
25141 CONFIG_COMMANDS = $CONFIG_COMMANDS
25142 $ $0 $@
25143
25144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25145 "
25146
25147 _ACEOF
25148
25149 case $ac_config_files in *"
25150 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25151 esac
25152
25153 case $ac_config_headers in *"
25154 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25155 esac
25156
25157
25158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25159 # Files that config.status was made for.
25160 config_files="$ac_config_files"
25161 config_headers="$ac_config_headers"
25162 config_links="$ac_config_links"
25163 config_commands="$ac_config_commands"
25164
25165 _ACEOF
25166
25167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25168 ac_cs_usage="\
25169 \`$as_me' instantiates files and other configuration actions
25170 from templates according to the current configuration. Unless the files
25171 and actions are specified as TAGs, all are instantiated by default.
25172
25173 Usage: $0 [OPTION]... [TAG]...
25174
25175 -h, --help print this help, then exit
25176 -V, --version print version number and configuration settings, then exit
25177 -q, --quiet, --silent
25178 do not print progress messages
25179 -d, --debug don't remove temporary files
25180 --recheck update $as_me by reconfiguring in the same conditions
25181 --file=FILE[:TEMPLATE]
25182 instantiate the configuration file FILE
25183 --header=FILE[:TEMPLATE]
25184 instantiate the configuration header FILE
25185
25186 Configuration files:
25187 $config_files
25188
25189 Configuration headers:
25190 $config_headers
25191
25192 Configuration links:
25193 $config_links
25194
25195 Configuration commands:
25196 $config_commands
25197
25198 Report bugs to the package provider."
25199
25200 _ACEOF
25201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25202 ac_cs_version="\\
25203 libjava config.status version-unused
25204 configured by $0, generated by GNU Autoconf 2.64,
25205 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25206
25207 Copyright (C) 2009 Free Software Foundation, Inc.
25208 This config.status script is free software; the Free Software Foundation
25209 gives unlimited permission to copy, distribute and modify it."
25210
25211 ac_pwd='$ac_pwd'
25212 srcdir='$srcdir'
25213 INSTALL='$INSTALL'
25214 MKDIR_P='$MKDIR_P'
25215 AWK='$AWK'
25216 test -n "\$AWK" || AWK=awk
25217 _ACEOF
25218
25219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25220 # The default lists apply if the user does not specify any file.
25221 ac_need_defaults=:
25222 while test $# != 0
25223 do
25224 case $1 in
25225 --*=*)
25226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25228 ac_shift=:
25229 ;;
25230 *)
25231 ac_option=$1
25232 ac_optarg=$2
25233 ac_shift=shift
25234 ;;
25235 esac
25236
25237 case $ac_option in
25238 # Handling of the options.
25239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25240 ac_cs_recheck=: ;;
25241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25242 $as_echo "$ac_cs_version"; exit ;;
25243 --debug | --debu | --deb | --de | --d | -d )
25244 debug=: ;;
25245 --file | --fil | --fi | --f )
25246 $ac_shift
25247 case $ac_optarg in
25248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25249 esac
25250 as_fn_append CONFIG_FILES " '$ac_optarg'"
25251 ac_need_defaults=false;;
25252 --header | --heade | --head | --hea )
25253 $ac_shift
25254 case $ac_optarg in
25255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25256 esac
25257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25258 ac_need_defaults=false;;
25259 --he | --h)
25260 # Conflict between --help and --header
25261 as_fn_error "ambiguous option: \`$1'
25262 Try \`$0 --help' for more information.";;
25263 --help | --hel | -h )
25264 $as_echo "$ac_cs_usage"; exit ;;
25265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25267 ac_cs_silent=: ;;
25268
25269 # This is an error.
25270 -*) as_fn_error "unrecognized option: \`$1'
25271 Try \`$0 --help' for more information." ;;
25272
25273 *) as_fn_append ac_config_targets " $1"
25274 ac_need_defaults=false ;;
25275
25276 esac
25277 shift
25278 done
25279
25280 ac_configure_extra_args=
25281
25282 if $ac_cs_silent; then
25283 exec 6>/dev/null
25284 ac_configure_extra_args="$ac_configure_extra_args --silent"
25285 fi
25286
25287 _ACEOF
25288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25289 if \$ac_cs_recheck; then
25290 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25291 shift
25292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25293 CONFIG_SHELL='$SHELL'
25294 export CONFIG_SHELL
25295 exec "\$@"
25296 fi
25297
25298 _ACEOF
25299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25300 exec 5>>config.log
25301 {
25302 echo
25303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25304 ## Running $as_me. ##
25305 _ASBOX
25306 $as_echo "$ac_log"
25307 } >&5
25308
25309 _ACEOF
25310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25311 #
25312 # INIT-COMMANDS
25313 #
25314
25315 srcdir="$srcdir"
25316 host="$host"
25317 target="$target"
25318 with_multisubdir="$with_multisubdir"
25319 with_multisrctop="$with_multisrctop"
25320 with_target_subdir="$with_target_subdir"
25321 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25322 multi_basedir="$multi_basedir"
25323 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25324 CC="$CC"
25325 CXX="$CXX"
25326 GFORTRAN="$GFORTRAN"
25327 GCJ="$GCJ"
25328 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25329
25330
25331 # The HP-UX ksh and POSIX shell print the target directory to stdout
25332 # if CDPATH is set.
25333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25334
25335 sed_quote_subst='$sed_quote_subst'
25336 double_quote_subst='$double_quote_subst'
25337 delay_variable_subst='$delay_variable_subst'
25338 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25339 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25340 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25341 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25342 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25343 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25344 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25345 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25346 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25347 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25348 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25349 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25350 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25351 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25352 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25353 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25354 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25355 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25356 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25357 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25358 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25359 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25360 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25361 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25362 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25363 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25364 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25365 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25366 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25367 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25368 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25369 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25370 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25371 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25372 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25373 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25374 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25375 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25376 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25377 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25378 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25379 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25380 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25381 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25382 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"`'
25383 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"`'
25384 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25385 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25386 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25387 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25388 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25389 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25390 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25391 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25392 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25393 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25394 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25395 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25396 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25397 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25398 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25399 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25400 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25401 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25402 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25403 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25404 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25405 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25406 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25407 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25408 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25409 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25410 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25411 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25412 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25413 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25414 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25415 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25416 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25417 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25418 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25419 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25420 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25421 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25422 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25423 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25424 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25425 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25426 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25427 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25428 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25429 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25430 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25431 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25432 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25433 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25434 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25435 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25436 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25437 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25438 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25439 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25440 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25441 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25442 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25443 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25444 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25445 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25446 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25447 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25448 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25449 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25450 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25451 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25452 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25453 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25454 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25455 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25456 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25457 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25458 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25459 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25460 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25461 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25462 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25463 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25464 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25465 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25466 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25467 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25468 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25469 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25470 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25471 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25472 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25473 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25474 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25475 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25476 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25477 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25478 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25479 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25480 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25481 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25482 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25483 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25484 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25485 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25486 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25487 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25488 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25489 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25490 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25491 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25492 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25493 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25494 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25495 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25496 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25497 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25498 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25499 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25500 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25501 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25502 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25503 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25504 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25505 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25506 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25507 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25508 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25509 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25510 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25511 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25512 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25513 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25514 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25515 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25516 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25517 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25518 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25519 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25520 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25521 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25522 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25523 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25524 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25525 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25526 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25527 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25528 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25529 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25530 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25531 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25532 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25533 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25534 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25535 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25536 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25537 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25538 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25539 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25540 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25541 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25542 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25543 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25544 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25545 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25546 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25547 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25548 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25549 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25550 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25551 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25552 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25553 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25554 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25555 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25556
25557 LTCC='$LTCC'
25558 LTCFLAGS='$LTCFLAGS'
25559 compiler='$compiler_DEFAULT'
25560
25561 # Quote evaled strings.
25562 for var in SED \
25563 GREP \
25564 EGREP \
25565 FGREP \
25566 LD \
25567 NM \
25568 LN_S \
25569 lt_SP2NL \
25570 lt_NL2SP \
25571 reload_flag \
25572 OBJDUMP \
25573 deplibs_check_method \
25574 file_magic_cmd \
25575 AR \
25576 AR_FLAGS \
25577 STRIP \
25578 RANLIB \
25579 CC \
25580 CFLAGS \
25581 compiler \
25582 lt_cv_sys_global_symbol_pipe \
25583 lt_cv_sys_global_symbol_to_cdecl \
25584 lt_cv_sys_global_symbol_to_c_name_address \
25585 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25586 SHELL \
25587 ECHO \
25588 lt_prog_compiler_no_builtin_flag \
25589 lt_prog_compiler_wl \
25590 lt_prog_compiler_pic \
25591 lt_prog_compiler_static \
25592 lt_cv_prog_compiler_c_o \
25593 need_locks \
25594 DSYMUTIL \
25595 NMEDIT \
25596 LIPO \
25597 OTOOL \
25598 OTOOL64 \
25599 shrext_cmds \
25600 export_dynamic_flag_spec \
25601 whole_archive_flag_spec \
25602 compiler_needs_object \
25603 with_gnu_ld \
25604 allow_undefined_flag \
25605 no_undefined_flag \
25606 hardcode_libdir_flag_spec \
25607 hardcode_libdir_flag_spec_ld \
25608 hardcode_libdir_separator \
25609 fix_srcfile_path \
25610 exclude_expsyms \
25611 include_expsyms \
25612 file_list_spec \
25613 variables_saved_for_relink \
25614 libname_spec \
25615 library_names_spec \
25616 soname_spec \
25617 finish_eval \
25618 old_striplib \
25619 striplib \
25620 compiler_lib_search_dirs \
25621 predep_objects \
25622 postdep_objects \
25623 predeps \
25624 postdeps \
25625 compiler_lib_search_path \
25626 LD_CXX \
25627 LD_GCJ \
25628 compiler_CXX \
25629 compiler_GCJ \
25630 lt_prog_compiler_no_builtin_flag_CXX \
25631 lt_prog_compiler_no_builtin_flag_GCJ \
25632 lt_prog_compiler_wl_CXX \
25633 lt_prog_compiler_wl_GCJ \
25634 lt_prog_compiler_pic_CXX \
25635 lt_prog_compiler_pic_GCJ \
25636 lt_prog_compiler_static_CXX \
25637 lt_prog_compiler_static_GCJ \
25638 lt_cv_prog_compiler_c_o_CXX \
25639 lt_cv_prog_compiler_c_o_GCJ \
25640 export_dynamic_flag_spec_CXX \
25641 export_dynamic_flag_spec_GCJ \
25642 whole_archive_flag_spec_CXX \
25643 whole_archive_flag_spec_GCJ \
25644 compiler_needs_object_CXX \
25645 compiler_needs_object_GCJ \
25646 with_gnu_ld_CXX \
25647 with_gnu_ld_GCJ \
25648 allow_undefined_flag_CXX \
25649 allow_undefined_flag_GCJ \
25650 no_undefined_flag_CXX \
25651 no_undefined_flag_GCJ \
25652 hardcode_libdir_flag_spec_CXX \
25653 hardcode_libdir_flag_spec_GCJ \
25654 hardcode_libdir_flag_spec_ld_CXX \
25655 hardcode_libdir_flag_spec_ld_GCJ \
25656 hardcode_libdir_separator_CXX \
25657 hardcode_libdir_separator_GCJ \
25658 fix_srcfile_path_CXX \
25659 fix_srcfile_path_GCJ \
25660 exclude_expsyms_CXX \
25661 exclude_expsyms_GCJ \
25662 include_expsyms_CXX \
25663 include_expsyms_GCJ \
25664 file_list_spec_CXX \
25665 file_list_spec_GCJ \
25666 compiler_lib_search_dirs_CXX \
25667 compiler_lib_search_dirs_GCJ \
25668 predep_objects_CXX \
25669 predep_objects_GCJ \
25670 postdep_objects_CXX \
25671 postdep_objects_GCJ \
25672 predeps_CXX \
25673 predeps_GCJ \
25674 postdeps_CXX \
25675 postdeps_GCJ \
25676 compiler_lib_search_path_CXX \
25677 compiler_lib_search_path_GCJ; do
25678 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25679 *[\\\\\\\`\\"\\\$]*)
25680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25681 ;;
25682 *)
25683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25684 ;;
25685 esac
25686 done
25687
25688 # Double-quote double-evaled strings.
25689 for var in reload_cmds \
25690 old_postinstall_cmds \
25691 old_postuninstall_cmds \
25692 old_archive_cmds \
25693 extract_expsyms_cmds \
25694 old_archive_from_new_cmds \
25695 old_archive_from_expsyms_cmds \
25696 archive_cmds \
25697 archive_expsym_cmds \
25698 module_cmds \
25699 module_expsym_cmds \
25700 export_symbols_cmds \
25701 prelink_cmds \
25702 postinstall_cmds \
25703 postuninstall_cmds \
25704 finish_cmds \
25705 sys_lib_search_path_spec \
25706 sys_lib_dlsearch_path_spec \
25707 old_archive_cmds_CXX \
25708 old_archive_cmds_GCJ \
25709 old_archive_from_new_cmds_CXX \
25710 old_archive_from_new_cmds_GCJ \
25711 old_archive_from_expsyms_cmds_CXX \
25712 old_archive_from_expsyms_cmds_GCJ \
25713 archive_cmds_CXX \
25714 archive_cmds_GCJ \
25715 archive_expsym_cmds_CXX \
25716 archive_expsym_cmds_GCJ \
25717 module_cmds_CXX \
25718 module_cmds_GCJ \
25719 module_expsym_cmds_CXX \
25720 module_expsym_cmds_GCJ \
25721 export_symbols_cmds_CXX \
25722 export_symbols_cmds_GCJ \
25723 prelink_cmds_CXX \
25724 prelink_cmds_GCJ; do
25725 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25726 *[\\\\\\\`\\"\\\$]*)
25727 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25728 ;;
25729 *)
25730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25731 ;;
25732 esac
25733 done
25734
25735 # Fix-up fallback echo if it was mangled by the above quoting rules.
25736 case \$lt_ECHO in
25737 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25738 ;;
25739 esac
25740
25741 ac_aux_dir='$ac_aux_dir'
25742 xsi_shell='$xsi_shell'
25743 lt_shell_append='$lt_shell_append'
25744
25745 # See if we are running on zsh, and set the options which allow our
25746 # commands through without removal of \ escapes INIT.
25747 if test -n "\${ZSH_VERSION+set}" ; then
25748 setopt NO_GLOB_SUBST
25749 fi
25750
25751
25752 PACKAGE='$PACKAGE'
25753 VERSION='$VERSION'
25754 TIMESTAMP='$TIMESTAMP'
25755 RM='$RM'
25756 ofile='$ofile'
25757
25758
25759
25760
25761
25762
25763
25764
25765 _ACEOF
25766
25767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25768
25769 # Handling of arguments.
25770 for ac_config_target in $ac_config_targets
25771 do
25772 case $ac_config_target in
25773 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25774 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25775 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25776 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25777 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25778 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25779 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25780 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25781 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25782 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25783 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25784 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25785 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25786 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25787 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25788 "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" ;;
25789 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25790 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25791 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25792 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25793 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25794 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25795 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25796 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25797 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25798 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25799 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25800 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25801 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25802 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25803 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25804 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25805 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25806 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25807 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25808 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25809
25810 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25811 esac
25812 done
25813
25814
25815 # If the user did not use the arguments to specify the items to instantiate,
25816 # then the envvar interface is used. Set only those that are not.
25817 # We use the long form for the default assignment because of an extremely
25818 # bizarre bug on SunOS 4.1.3.
25819 if $ac_need_defaults; then
25820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25822 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25824 fi
25825
25826 # Have a temporary directory for convenience. Make it in the build tree
25827 # simply because there is no reason against having it here, and in addition,
25828 # creating and moving files from /tmp can sometimes cause problems.
25829 # Hook for its removal unless debugging.
25830 # Note that there is a small window in which the directory will not be cleaned:
25831 # after its creation but before its name has been assigned to `$tmp'.
25832 $debug ||
25833 {
25834 tmp=
25835 trap 'exit_status=$?
25836 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25837 ' 0
25838 trap 'as_fn_exit 1' 1 2 13 15
25839 }
25840 # Create a (secure) tmp directory for tmp files.
25841
25842 {
25843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25844 test -n "$tmp" && test -d "$tmp"
25845 } ||
25846 {
25847 tmp=./conf$$-$RANDOM
25848 (umask 077 && mkdir "$tmp")
25849 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25850
25851 # Set up the scripts for CONFIG_FILES section.
25852 # No need to generate them if there are no CONFIG_FILES.
25853 # This happens for instance with `./config.status config.h'.
25854 if test -n "$CONFIG_FILES"; then
25855
25856
25857 ac_cr=`echo X | tr X '\015'`
25858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25859 # But we know of no other shell where ac_cr would be empty at this
25860 # point, so we can use a bashism as a fallback.
25861 if test "x$ac_cr" = x; then
25862 eval ac_cr=\$\'\\r\'
25863 fi
25864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25866 ac_cs_awk_cr='\r'
25867 else
25868 ac_cs_awk_cr=$ac_cr
25869 fi
25870
25871 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25872 _ACEOF
25873
25874
25875 {
25876 echo "cat >conf$$subs.awk <<_ACEOF" &&
25877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25878 echo "_ACEOF"
25879 } >conf$$subs.sh ||
25880 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25882 ac_delim='%!_!# '
25883 for ac_last_try in false false false false false :; do
25884 . ./conf$$subs.sh ||
25885 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25886
25887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25888 if test $ac_delim_n = $ac_delim_num; then
25889 break
25890 elif $ac_last_try; then
25891 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25892 else
25893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25894 fi
25895 done
25896 rm -f conf$$subs.sh
25897
25898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25899 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25900 _ACEOF
25901 sed -n '
25902 h
25903 s/^/S["/; s/!.*/"]=/
25904 p
25905 g
25906 s/^[^!]*!//
25907 :repl
25908 t repl
25909 s/'"$ac_delim"'$//
25910 t delim
25911 :nl
25912 h
25913 s/\(.\{148\}\).*/\1/
25914 t more1
25915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25916 p
25917 n
25918 b repl
25919 :more1
25920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25921 p
25922 g
25923 s/.\{148\}//
25924 t nl
25925 :delim
25926 h
25927 s/\(.\{148\}\).*/\1/
25928 t more2
25929 s/["\\]/\\&/g; s/^/"/; s/$/"/
25930 p
25931 b
25932 :more2
25933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25934 p
25935 g
25936 s/.\{148\}//
25937 t delim
25938 ' <conf$$subs.awk | sed '
25939 /^[^""]/{
25940 N
25941 s/\n//
25942 }
25943 ' >>$CONFIG_STATUS || ac_write_fail=1
25944 rm -f conf$$subs.awk
25945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25946 _ACAWK
25947 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25948 for (key in S) S_is_set[key] = 1
25949 FS = "\a"
25950
25951 }
25952 {
25953 line = $ 0
25954 nfields = split(line, field, "@")
25955 substed = 0
25956 len = length(field[1])
25957 for (i = 2; i < nfields; i++) {
25958 key = field[i]
25959 keylen = length(key)
25960 if (S_is_set[key]) {
25961 value = S[key]
25962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25963 len += length(value) + length(field[++i])
25964 substed = 1
25965 } else
25966 len += 1 + keylen
25967 }
25968
25969 print line
25970 }
25971
25972 _ACAWK
25973 _ACEOF
25974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25977 else
25978 cat
25979 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25980 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25981 _ACEOF
25982
25983 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25984 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25985 # trailing colons and then remove the whole line if VPATH becomes empty
25986 # (actually we leave an empty line to preserve line numbers).
25987 if test "x$srcdir" = x.; then
25988 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25989 s/:*\$(srcdir):*/:/
25990 s/:*\${srcdir}:*/:/
25991 s/:*@srcdir@:*/:/
25992 s/^\([^=]*=[ ]*\):*/\1/
25993 s/:*$//
25994 s/^[^=]*=[ ]*$//
25995 }'
25996 fi
25997
25998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25999 fi # test -n "$CONFIG_FILES"
26000
26001 # Set up the scripts for CONFIG_HEADERS section.
26002 # No need to generate them if there are no CONFIG_HEADERS.
26003 # This happens for instance with `./config.status Makefile'.
26004 if test -n "$CONFIG_HEADERS"; then
26005 cat >"$tmp/defines.awk" <<\_ACAWK ||
26006 BEGIN {
26007 _ACEOF
26008
26009 # Transform confdefs.h into an awk script `defines.awk', embedded as
26010 # here-document in config.status, that substitutes the proper values into
26011 # config.h.in to produce config.h.
26012
26013 # Create a delimiter string that does not exist in confdefs.h, to ease
26014 # handling of long lines.
26015 ac_delim='%!_!# '
26016 for ac_last_try in false false :; do
26017 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26018 if test -z "$ac_t"; then
26019 break
26020 elif $ac_last_try; then
26021 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26022 else
26023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26024 fi
26025 done
26026
26027 # For the awk script, D is an array of macro values keyed by name,
26028 # likewise P contains macro parameters if any. Preserve backslash
26029 # newline sequences.
26030
26031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26032 sed -n '
26033 s/.\{148\}/&'"$ac_delim"'/g
26034 t rset
26035 :rset
26036 s/^[ ]*#[ ]*define[ ][ ]*/ /
26037 t def
26038 d
26039 :def
26040 s/\\$//
26041 t bsnl
26042 s/["\\]/\\&/g
26043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26044 D["\1"]=" \3"/p
26045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26046 d
26047 :bsnl
26048 s/["\\]/\\&/g
26049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26050 D["\1"]=" \3\\\\\\n"\\/p
26051 t cont
26052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26053 t cont
26054 d
26055 :cont
26056 n
26057 s/.\{148\}/&'"$ac_delim"'/g
26058 t clear
26059 :clear
26060 s/\\$//
26061 t bsnlc
26062 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26063 d
26064 :bsnlc
26065 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26066 b cont
26067 ' <confdefs.h | sed '
26068 s/'"$ac_delim"'/"\\\
26069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26070
26071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26072 for (key in D) D_is_set[key] = 1
26073 FS = "\a"
26074 }
26075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26076 line = \$ 0
26077 split(line, arg, " ")
26078 if (arg[1] == "#") {
26079 defundef = arg[2]
26080 mac1 = arg[3]
26081 } else {
26082 defundef = substr(arg[1], 2)
26083 mac1 = arg[2]
26084 }
26085 split(mac1, mac2, "(") #)
26086 macro = mac2[1]
26087 prefix = substr(line, 1, index(line, defundef) - 1)
26088 if (D_is_set[macro]) {
26089 # Preserve the white space surrounding the "#".
26090 print prefix "define", macro P[macro] D[macro]
26091 next
26092 } else {
26093 # Replace #undef with comments. This is necessary, for example,
26094 # in the case of _POSIX_SOURCE, which is predefined and required
26095 # on some systems where configure will not decide to define it.
26096 if (defundef == "undef") {
26097 print "/*", prefix defundef, macro, "*/"
26098 next
26099 }
26100 }
26101 }
26102 { print }
26103 _ACAWK
26104 _ACEOF
26105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26106 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26107 fi # test -n "$CONFIG_HEADERS"
26108
26109
26110 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26111 shift
26112 for ac_tag
26113 do
26114 case $ac_tag in
26115 :[FHLC]) ac_mode=$ac_tag; continue;;
26116 esac
26117 case $ac_mode$ac_tag in
26118 :[FHL]*:*);;
26119 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26120 :[FH]-) ac_tag=-:-;;
26121 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26122 esac
26123 ac_save_IFS=$IFS
26124 IFS=:
26125 set x $ac_tag
26126 IFS=$ac_save_IFS
26127 shift
26128 ac_file=$1
26129 shift
26130
26131 case $ac_mode in
26132 :L) ac_source=$1;;
26133 :[FH])
26134 ac_file_inputs=
26135 for ac_f
26136 do
26137 case $ac_f in
26138 -) ac_f="$tmp/stdin";;
26139 *) # Look for the file first in the build tree, then in the source tree
26140 # (if the path is not absolute). The absolute path cannot be DOS-style,
26141 # because $ac_f cannot contain `:'.
26142 test -f "$ac_f" ||
26143 case $ac_f in
26144 [\\/$]*) false;;
26145 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26146 esac ||
26147 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26148 esac
26149 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26150 as_fn_append ac_file_inputs " '$ac_f'"
26151 done
26152
26153 # Let's still pretend it is `configure' which instantiates (i.e., don't
26154 # use $as_me), people would be surprised to read:
26155 # /* config.h. Generated by config.status. */
26156 configure_input='Generated from '`
26157 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26158 `' by configure.'
26159 if test x"$ac_file" != x-; then
26160 configure_input="$ac_file. $configure_input"
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26162 $as_echo "$as_me: creating $ac_file" >&6;}
26163 fi
26164 # Neutralize special characters interpreted by sed in replacement strings.
26165 case $configure_input in #(
26166 *\&* | *\|* | *\\* )
26167 ac_sed_conf_input=`$as_echo "$configure_input" |
26168 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26169 *) ac_sed_conf_input=$configure_input;;
26170 esac
26171
26172 case $ac_tag in
26173 *:-:* | *:-) cat >"$tmp/stdin" \
26174 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26175 esac
26176 ;;
26177 esac
26178
26179 ac_dir=`$as_dirname -- "$ac_file" ||
26180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26181 X"$ac_file" : 'X\(//\)[^/]' \| \
26182 X"$ac_file" : 'X\(//\)$' \| \
26183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26184 $as_echo X"$ac_file" |
26185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26186 s//\1/
26187 q
26188 }
26189 /^X\(\/\/\)[^/].*/{
26190 s//\1/
26191 q
26192 }
26193 /^X\(\/\/\)$/{
26194 s//\1/
26195 q
26196 }
26197 /^X\(\/\).*/{
26198 s//\1/
26199 q
26200 }
26201 s/.*/./; q'`
26202 as_dir="$ac_dir"; as_fn_mkdir_p
26203 ac_builddir=.
26204
26205 case "$ac_dir" in
26206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26207 *)
26208 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26209 # A ".." for each directory in $ac_dir_suffix.
26210 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26211 case $ac_top_builddir_sub in
26212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26214 esac ;;
26215 esac
26216 ac_abs_top_builddir=$ac_pwd
26217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26218 # for backward compatibility:
26219 ac_top_builddir=$ac_top_build_prefix
26220
26221 case $srcdir in
26222 .) # We are building in place.
26223 ac_srcdir=.
26224 ac_top_srcdir=$ac_top_builddir_sub
26225 ac_abs_top_srcdir=$ac_pwd ;;
26226 [\\/]* | ?:[\\/]* ) # Absolute name.
26227 ac_srcdir=$srcdir$ac_dir_suffix;
26228 ac_top_srcdir=$srcdir
26229 ac_abs_top_srcdir=$srcdir ;;
26230 *) # Relative name.
26231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26232 ac_top_srcdir=$ac_top_build_prefix$srcdir
26233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26234 esac
26235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26236
26237
26238 case $ac_mode in
26239 :F)
26240 #
26241 # CONFIG_FILE
26242 #
26243
26244 case $INSTALL in
26245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26246 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26247 esac
26248 ac_MKDIR_P=$MKDIR_P
26249 case $MKDIR_P in
26250 [\\/$]* | ?:[\\/]* ) ;;
26251 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26252 esac
26253 _ACEOF
26254
26255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26256 # If the template does not know about datarootdir, expand it.
26257 # FIXME: This hack should be removed a few years after 2.60.
26258 ac_datarootdir_hack=; ac_datarootdir_seen=
26259 ac_sed_dataroot='
26260 /datarootdir/ {
26261 p
26262 q
26263 }
26264 /@datadir@/p
26265 /@docdir@/p
26266 /@infodir@/p
26267 /@localedir@/p
26268 /@mandir@/p'
26269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26270 *datarootdir*) ac_datarootdir_seen=yes;;
26271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26274 _ACEOF
26275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26276 ac_datarootdir_hack='
26277 s&@datadir@&$datadir&g
26278 s&@docdir@&$docdir&g
26279 s&@infodir@&$infodir&g
26280 s&@localedir@&$localedir&g
26281 s&@mandir@&$mandir&g
26282 s&\\\${datarootdir}&$datarootdir&g' ;;
26283 esac
26284 _ACEOF
26285
26286 # Neutralize VPATH when `$srcdir' = `.'.
26287 # Shell code in configure.ac might set extrasub.
26288 # FIXME: do we really want to maintain this feature?
26289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26290 ac_sed_extra="$ac_vpsub
26291 $extrasub
26292 _ACEOF
26293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26294 :t
26295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26296 s|@configure_input@|$ac_sed_conf_input|;t t
26297 s&@top_builddir@&$ac_top_builddir_sub&;t t
26298 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26299 s&@srcdir@&$ac_srcdir&;t t
26300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26301 s&@top_srcdir@&$ac_top_srcdir&;t t
26302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26303 s&@builddir@&$ac_builddir&;t t
26304 s&@abs_builddir@&$ac_abs_builddir&;t t
26305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26306 s&@INSTALL@&$ac_INSTALL&;t t
26307 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26308 $ac_datarootdir_hack
26309 "
26310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26311 || as_fn_error "could not create $ac_file" "$LINENO" 5
26312
26313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26314 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26317 which seems to be undefined. Please make sure it is defined." >&5
26318 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26319 which seems to be undefined. Please make sure it is defined." >&2;}
26320
26321 rm -f "$tmp/stdin"
26322 case $ac_file in
26323 -) cat "$tmp/out" && rm -f "$tmp/out";;
26324 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26325 esac \
26326 || as_fn_error "could not create $ac_file" "$LINENO" 5
26327 ;;
26328 :H)
26329 #
26330 # CONFIG_HEADER
26331 #
26332 if test x"$ac_file" != x-; then
26333 {
26334 $as_echo "/* $configure_input */" \
26335 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26336 } >"$tmp/config.h" \
26337 || as_fn_error "could not create $ac_file" "$LINENO" 5
26338 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26340 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26341 else
26342 rm -f "$ac_file"
26343 mv "$tmp/config.h" "$ac_file" \
26344 || as_fn_error "could not create $ac_file" "$LINENO" 5
26345 fi
26346 else
26347 $as_echo "/* $configure_input */" \
26348 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26349 || as_fn_error "could not create -" "$LINENO" 5
26350 fi
26351 # Compute "$ac_file"'s index in $config_headers.
26352 _am_arg="$ac_file"
26353 _am_stamp_count=1
26354 for _am_header in $config_headers :; do
26355 case $_am_header in
26356 $_am_arg | $_am_arg:* )
26357 break ;;
26358 * )
26359 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26360 esac
26361 done
26362 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26363 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26364 X"$_am_arg" : 'X\(//\)[^/]' \| \
26365 X"$_am_arg" : 'X\(//\)$' \| \
26366 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26367 $as_echo X"$_am_arg" |
26368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26369 s//\1/
26370 q
26371 }
26372 /^X\(\/\/\)[^/].*/{
26373 s//\1/
26374 q
26375 }
26376 /^X\(\/\/\)$/{
26377 s//\1/
26378 q
26379 }
26380 /^X\(\/\).*/{
26381 s//\1/
26382 q
26383 }
26384 s/.*/./; q'`/stamp-h$_am_stamp_count
26385 ;;
26386 :L)
26387 #
26388 # CONFIG_LINK
26389 #
26390
26391 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26392 :
26393 else
26394 # Prefer the file from the source tree if names are identical.
26395 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26396 ac_source=$srcdir/$ac_source
26397 fi
26398
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26400 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26401
26402 if test ! -r "$ac_source"; then
26403 as_fn_error "$ac_source: file not found" "$LINENO" 5
26404 fi
26405 rm -f "$ac_file"
26406
26407 # Try a relative symlink, then a hard link, then a copy.
26408 case $srcdir in
26409 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26410 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26411 esac
26412 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26413 ln "$ac_source" "$ac_file" 2>/dev/null ||
26414 cp -p "$ac_source" "$ac_file" ||
26415 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26416 fi
26417 ;;
26418 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26419 $as_echo "$as_me: executing $ac_file commands" >&6;}
26420 ;;
26421 esac
26422
26423
26424 case $ac_file$ac_mode in
26425 "default-1":C)
26426 # Only add multilib support code if we just rebuilt the top-level
26427 # Makefile.
26428 case " $CONFIG_FILES " in
26429 *" Makefile "*)
26430 ac_file=Makefile . ${multi_basedir}/config-ml.in
26431 ;;
26432 esac ;;
26433 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26434 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26435 # are listed without --file. Let's play safe and only enable the eval
26436 # if we detect the quoting.
26437 case $CONFIG_FILES in
26438 *\'*) eval set x "$CONFIG_FILES" ;;
26439 *) set x $CONFIG_FILES ;;
26440 esac
26441 shift
26442 for mf
26443 do
26444 # Strip MF so we end up with the name of the file.
26445 mf=`echo "$mf" | sed -e 's/:.*$//'`
26446 # Check whether this is an Automake generated Makefile or not.
26447 # We used to match only the files named `Makefile.in', but
26448 # some people rename them; so instead we look at the file content.
26449 # Grep'ing the first line is not enough: some people post-process
26450 # each Makefile.in and add a new line on top of each file to say so.
26451 # Grep'ing the whole file is not good either: AIX grep has a line
26452 # limit of 2048, but all sed's we know have understand at least 4000.
26453 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26454 dirpart=`$as_dirname -- "$mf" ||
26455 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26456 X"$mf" : 'X\(//\)[^/]' \| \
26457 X"$mf" : 'X\(//\)$' \| \
26458 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26459 $as_echo X"$mf" |
26460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26461 s//\1/
26462 q
26463 }
26464 /^X\(\/\/\)[^/].*/{
26465 s//\1/
26466 q
26467 }
26468 /^X\(\/\/\)$/{
26469 s//\1/
26470 q
26471 }
26472 /^X\(\/\).*/{
26473 s//\1/
26474 q
26475 }
26476 s/.*/./; q'`
26477 else
26478 continue
26479 fi
26480 # Extract the definition of DEPDIR, am__include, and am__quote
26481 # from the Makefile without running `make'.
26482 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26483 test -z "$DEPDIR" && continue
26484 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26485 test -z "am__include" && continue
26486 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26487 # When using ansi2knr, U may be empty or an underscore; expand it
26488 U=`sed -n 's/^U = //p' < "$mf"`
26489 # Find all dependency output files, they are included files with
26490 # $(DEPDIR) in their names. We invoke sed twice because it is the
26491 # simplest approach to changing $(DEPDIR) to its actual value in the
26492 # expansion.
26493 for file in `sed -n "
26494 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26495 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26496 # Make sure the directory exists.
26497 test -f "$dirpart/$file" && continue
26498 fdir=`$as_dirname -- "$file" ||
26499 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26500 X"$file" : 'X\(//\)[^/]' \| \
26501 X"$file" : 'X\(//\)$' \| \
26502 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26503 $as_echo X"$file" |
26504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26505 s//\1/
26506 q
26507 }
26508 /^X\(\/\/\)[^/].*/{
26509 s//\1/
26510 q
26511 }
26512 /^X\(\/\/\)$/{
26513 s//\1/
26514 q
26515 }
26516 /^X\(\/\).*/{
26517 s//\1/
26518 q
26519 }
26520 s/.*/./; q'`
26521 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26522 # echo "creating $dirpart/$file"
26523 echo '# dummy' > "$dirpart/$file"
26524 done
26525 done
26526 }
26527 ;;
26528 "libtool":C)
26529
26530 # See if we are running on zsh, and set the options which allow our
26531 # commands through without removal of \ escapes.
26532 if test -n "${ZSH_VERSION+set}" ; then
26533 setopt NO_GLOB_SUBST
26534 fi
26535
26536 cfgfile="${ofile}T"
26537 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26538 $RM "$cfgfile"
26539
26540 cat <<_LT_EOF >> "$cfgfile"
26541 #! $SHELL
26542
26543 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26544 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26546 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26547 #
26548 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26549 # 2006, 2007, 2008 Free Software Foundation, Inc.
26550 # Written by Gordon Matzigkeit, 1996
26551 #
26552 # This file is part of GNU Libtool.
26553 #
26554 # GNU Libtool is free software; you can redistribute it and/or
26555 # modify it under the terms of the GNU General Public License as
26556 # published by the Free Software Foundation; either version 2 of
26557 # the License, or (at your option) any later version.
26558 #
26559 # As a special exception to the GNU General Public License,
26560 # if you distribute this file as part of a program or library that
26561 # is built using GNU Libtool, you may include this file under the
26562 # same distribution terms that you use for the rest of that program.
26563 #
26564 # GNU Libtool is distributed in the hope that it will be useful,
26565 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26566 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26567 # GNU General Public License for more details.
26568 #
26569 # You should have received a copy of the GNU General Public License
26570 # along with GNU Libtool; see the file COPYING. If not, a copy
26571 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26572 # obtained by writing to the Free Software Foundation, Inc.,
26573 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26574
26575
26576 # The names of the tagged configurations supported by this script.
26577 available_tags="CXX GCJ "
26578
26579 # ### BEGIN LIBTOOL CONFIG
26580
26581 # Which release of libtool.m4 was used?
26582 macro_version=$macro_version
26583 macro_revision=$macro_revision
26584
26585 # Whether or not to build shared libraries.
26586 build_libtool_libs=$enable_shared
26587
26588 # Whether or not to build static libraries.
26589 build_old_libs=$enable_static
26590
26591 # What type of objects to build.
26592 pic_mode=$pic_mode
26593
26594 # Whether or not to optimize for fast installation.
26595 fast_install=$enable_fast_install
26596
26597 # The host system.
26598 host_alias=$host_alias
26599 host=$host
26600 host_os=$host_os
26601
26602 # The build system.
26603 build_alias=$build_alias
26604 build=$build
26605 build_os=$build_os
26606
26607 # A sed program that does not truncate output.
26608 SED=$lt_SED
26609
26610 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26611 Xsed="\$SED -e 1s/^X//"
26612
26613 # A grep program that handles long lines.
26614 GREP=$lt_GREP
26615
26616 # An ERE matcher.
26617 EGREP=$lt_EGREP
26618
26619 # A literal string matcher.
26620 FGREP=$lt_FGREP
26621
26622 # A BSD- or MS-compatible name lister.
26623 NM=$lt_NM
26624
26625 # Whether we need soft or hard links.
26626 LN_S=$lt_LN_S
26627
26628 # What is the maximum length of a command?
26629 max_cmd_len=$max_cmd_len
26630
26631 # Object file suffix (normally "o").
26632 objext=$ac_objext
26633
26634 # Executable file suffix (normally "").
26635 exeext=$exeext
26636
26637 # whether the shell understands "unset".
26638 lt_unset=$lt_unset
26639
26640 # turn spaces into newlines.
26641 SP2NL=$lt_lt_SP2NL
26642
26643 # turn newlines into spaces.
26644 NL2SP=$lt_lt_NL2SP
26645
26646 # How to create reloadable object files.
26647 reload_flag=$lt_reload_flag
26648 reload_cmds=$lt_reload_cmds
26649
26650 # An object symbol dumper.
26651 OBJDUMP=$lt_OBJDUMP
26652
26653 # Method to check whether dependent libraries are shared objects.
26654 deplibs_check_method=$lt_deplibs_check_method
26655
26656 # Command to use when deplibs_check_method == "file_magic".
26657 file_magic_cmd=$lt_file_magic_cmd
26658
26659 # The archiver.
26660 AR=$lt_AR
26661 AR_FLAGS=$lt_AR_FLAGS
26662
26663 # A symbol stripping program.
26664 STRIP=$lt_STRIP
26665
26666 # Commands used to install an old-style archive.
26667 RANLIB=$lt_RANLIB
26668 old_postinstall_cmds=$lt_old_postinstall_cmds
26669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26670
26671 # A C compiler.
26672 LTCC=$lt_CC
26673
26674 # LTCC compiler flags.
26675 LTCFLAGS=$lt_CFLAGS
26676
26677 # Take the output of nm and produce a listing of raw symbols and C names.
26678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26679
26680 # Transform the output of nm in a proper C declaration.
26681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26682
26683 # Transform the output of nm in a C name address pair.
26684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26685
26686 # Transform the output of nm in a C name address pair when lib prefix is needed.
26687 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26688
26689 # The name of the directory that contains temporary libtool files.
26690 objdir=$objdir
26691
26692 # Shell to use when invoking shell scripts.
26693 SHELL=$lt_SHELL
26694
26695 # An echo program that does not interpret backslashes.
26696 ECHO=$lt_ECHO
26697
26698 # Used to examine libraries when file_magic_cmd begins with "file".
26699 MAGIC_CMD=$MAGIC_CMD
26700
26701 # Must we lock files when doing compilation?
26702 need_locks=$lt_need_locks
26703
26704 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26705 DSYMUTIL=$lt_DSYMUTIL
26706
26707 # Tool to change global to local symbols on Mac OS X.
26708 NMEDIT=$lt_NMEDIT
26709
26710 # Tool to manipulate fat objects and archives on Mac OS X.
26711 LIPO=$lt_LIPO
26712
26713 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26714 OTOOL=$lt_OTOOL
26715
26716 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26717 OTOOL64=$lt_OTOOL64
26718
26719 # Old archive suffix (normally "a").
26720 libext=$libext
26721
26722 # Shared library suffix (normally ".so").
26723 shrext_cmds=$lt_shrext_cmds
26724
26725 # The commands to extract the exported symbol list from a shared archive.
26726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26727
26728 # Variables whose values should be saved in libtool wrapper scripts and
26729 # restored at link time.
26730 variables_saved_for_relink=$lt_variables_saved_for_relink
26731
26732 # Do we need the "lib" prefix for modules?
26733 need_lib_prefix=$need_lib_prefix
26734
26735 # Do we need a version for libraries?
26736 need_version=$need_version
26737
26738 # Library versioning type.
26739 version_type=$version_type
26740
26741 # Shared library runtime path variable.
26742 runpath_var=$runpath_var
26743
26744 # Shared library path variable.
26745 shlibpath_var=$shlibpath_var
26746
26747 # Is shlibpath searched before the hard-coded library search path?
26748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26749
26750 # Format of library name prefix.
26751 libname_spec=$lt_libname_spec
26752
26753 # List of archive names. First name is the real one, the rest are links.
26754 # The last name is the one that the linker finds with -lNAME
26755 library_names_spec=$lt_library_names_spec
26756
26757 # The coded name of the library, if different from the real name.
26758 soname_spec=$lt_soname_spec
26759
26760 # Command to use after installation of a shared archive.
26761 postinstall_cmds=$lt_postinstall_cmds
26762
26763 # Command to use after uninstallation of a shared archive.
26764 postuninstall_cmds=$lt_postuninstall_cmds
26765
26766 # Commands used to finish a libtool library installation in a directory.
26767 finish_cmds=$lt_finish_cmds
26768
26769 # As "finish_cmds", except a single script fragment to be evaled but
26770 # not shown.
26771 finish_eval=$lt_finish_eval
26772
26773 # Whether we should hardcode library paths into libraries.
26774 hardcode_into_libs=$hardcode_into_libs
26775
26776 # Compile-time system search path for libraries.
26777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26778
26779 # Run-time system search path for libraries.
26780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26781
26782 # Whether dlopen is supported.
26783 dlopen_support=$enable_dlopen
26784
26785 # Whether dlopen of programs is supported.
26786 dlopen_self=$enable_dlopen_self
26787
26788 # Whether dlopen of statically linked programs is supported.
26789 dlopen_self_static=$enable_dlopen_self_static
26790
26791 # Commands to strip libraries.
26792 old_striplib=$lt_old_striplib
26793 striplib=$lt_striplib
26794
26795
26796 # The linker used to build libraries.
26797 LD=$lt_LD
26798
26799 # Commands used to build an old-style archive.
26800 old_archive_cmds=$lt_old_archive_cmds
26801
26802 # A language specific compiler.
26803 CC=$lt_compiler
26804
26805 # Is the compiler the GNU compiler?
26806 with_gcc=$GCC
26807
26808 # Compiler flag to turn off builtin functions.
26809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26810
26811 # How to pass a linker flag through the compiler.
26812 wl=$lt_lt_prog_compiler_wl
26813
26814 # Additional compiler flags for building library objects.
26815 pic_flag=$lt_lt_prog_compiler_pic
26816
26817 # Compiler flag to prevent dynamic linking.
26818 link_static_flag=$lt_lt_prog_compiler_static
26819
26820 # Does compiler simultaneously support -c and -o options?
26821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26822
26823 # Whether or not to add -lc for building shared libraries.
26824 build_libtool_need_lc=$archive_cmds_need_lc
26825
26826 # Whether or not to disallow shared libs when runtime libs are static.
26827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26828
26829 # Compiler flag to allow reflexive dlopens.
26830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26831
26832 # Compiler flag to generate shared objects directly from archives.
26833 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26834
26835 # Whether the compiler copes with passing no objects directly.
26836 compiler_needs_object=$lt_compiler_needs_object
26837
26838 # Create an old-style archive from a shared archive.
26839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26840
26841 # Create a temporary old-style archive to link instead of a shared archive.
26842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26843
26844 # Commands used to build a shared archive.
26845 archive_cmds=$lt_archive_cmds
26846 archive_expsym_cmds=$lt_archive_expsym_cmds
26847
26848 # Commands used to build a loadable module if different from building
26849 # a shared archive.
26850 module_cmds=$lt_module_cmds
26851 module_expsym_cmds=$lt_module_expsym_cmds
26852
26853 # Whether we are building with GNU ld or not.
26854 with_gnu_ld=$lt_with_gnu_ld
26855
26856 # Flag that allows shared libraries with undefined symbols to be built.
26857 allow_undefined_flag=$lt_allow_undefined_flag
26858
26859 # Flag that enforces no undefined symbols.
26860 no_undefined_flag=$lt_no_undefined_flag
26861
26862 # Flag to hardcode \$libdir into a binary during linking.
26863 # This must work even if \$libdir does not exist
26864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26865
26866 # If ld is used when linking, flag to hardcode \$libdir into a binary
26867 # during linking. This must work even if \$libdir does not exist.
26868 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26869
26870 # Whether we need a single "-rpath" flag with a separated argument.
26871 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26872
26873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26874 # DIR into the resulting binary.
26875 hardcode_direct=$hardcode_direct
26876
26877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26878 # DIR into the resulting binary and the resulting library dependency is
26879 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26880 # library is relocated.
26881 hardcode_direct_absolute=$hardcode_direct_absolute
26882
26883 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26884 # into the resulting binary.
26885 hardcode_minus_L=$hardcode_minus_L
26886
26887 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26888 # into the resulting binary.
26889 hardcode_shlibpath_var=$hardcode_shlibpath_var
26890
26891 # Set to "yes" if building a shared library automatically hardcodes DIR
26892 # into the library and all subsequent libraries and executables linked
26893 # against it.
26894 hardcode_automatic=$hardcode_automatic
26895
26896 # Set to yes if linker adds runtime paths of dependent libraries
26897 # to runtime path list.
26898 inherit_rpath=$inherit_rpath
26899
26900 # Whether libtool must link a program against all its dependency libraries.
26901 link_all_deplibs=$link_all_deplibs
26902
26903 # Fix the shell variable \$srcfile for the compiler.
26904 fix_srcfile_path=$lt_fix_srcfile_path
26905
26906 # Set to "yes" if exported symbols are required.
26907 always_export_symbols=$always_export_symbols
26908
26909 # The commands to list exported symbols.
26910 export_symbols_cmds=$lt_export_symbols_cmds
26911
26912 # Symbols that should not be listed in the preloaded symbols.
26913 exclude_expsyms=$lt_exclude_expsyms
26914
26915 # Symbols that must always be exported.
26916 include_expsyms=$lt_include_expsyms
26917
26918 # Commands necessary for linking programs (against libraries) with templates.
26919 prelink_cmds=$lt_prelink_cmds
26920
26921 # Specify filename containing input files.
26922 file_list_spec=$lt_file_list_spec
26923
26924 # How to hardcode a shared library path into an executable.
26925 hardcode_action=$hardcode_action
26926
26927 # The directories searched by this compiler when creating a shared library.
26928 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26929
26930 # Dependencies to place before and after the objects being linked to
26931 # create a shared library.
26932 predep_objects=$lt_predep_objects
26933 postdep_objects=$lt_postdep_objects
26934 predeps=$lt_predeps
26935 postdeps=$lt_postdeps
26936
26937 # The library search path used internally by the compiler when linking
26938 # a shared library.
26939 compiler_lib_search_path=$lt_compiler_lib_search_path
26940
26941 # ### END LIBTOOL CONFIG
26942
26943 _LT_EOF
26944
26945 case $host_os in
26946 aix3*)
26947 cat <<\_LT_EOF >> "$cfgfile"
26948 # AIX sometimes has problems with the GCC collect2 program. For some
26949 # reason, if we set the COLLECT_NAMES environment variable, the problems
26950 # vanish in a puff of smoke.
26951 if test "X${COLLECT_NAMES+set}" != Xset; then
26952 COLLECT_NAMES=
26953 export COLLECT_NAMES
26954 fi
26955 _LT_EOF
26956 ;;
26957 esac
26958
26959
26960 ltmain="$ac_aux_dir/ltmain.sh"
26961
26962
26963 # We use sed instead of cat because bash on DJGPP gets confused if
26964 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26965 # text mode, it properly converts lines to CR/LF. This bash problem
26966 # is reportedly fixed, but why not run on old versions too?
26967 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26968 || (rm -f "$cfgfile"; exit 1)
26969
26970 case $xsi_shell in
26971 yes)
26972 cat << \_LT_EOF >> "$cfgfile"
26973
26974 # func_dirname file append nondir_replacement
26975 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26976 # otherwise set result to NONDIR_REPLACEMENT.
26977 func_dirname ()
26978 {
26979 case ${1} in
26980 */*) func_dirname_result="${1%/*}${2}" ;;
26981 * ) func_dirname_result="${3}" ;;
26982 esac
26983 }
26984
26985 # func_basename file
26986 func_basename ()
26987 {
26988 func_basename_result="${1##*/}"
26989 }
26990
26991 # func_dirname_and_basename file append nondir_replacement
26992 # perform func_basename and func_dirname in a single function
26993 # call:
26994 # dirname: Compute the dirname of FILE. If nonempty,
26995 # add APPEND to the result, otherwise set result
26996 # to NONDIR_REPLACEMENT.
26997 # value returned in "$func_dirname_result"
26998 # basename: Compute filename of FILE.
26999 # value retuned in "$func_basename_result"
27000 # Implementation must be kept synchronized with func_dirname
27001 # and func_basename. For efficiency, we do not delegate to
27002 # those functions but instead duplicate the functionality here.
27003 func_dirname_and_basename ()
27004 {
27005 case ${1} in
27006 */*) func_dirname_result="${1%/*}${2}" ;;
27007 * ) func_dirname_result="${3}" ;;
27008 esac
27009 func_basename_result="${1##*/}"
27010 }
27011
27012 # func_stripname prefix suffix name
27013 # strip PREFIX and SUFFIX off of NAME.
27014 # PREFIX and SUFFIX must not contain globbing or regex special
27015 # characters, hashes, percent signs, but SUFFIX may contain a leading
27016 # dot (in which case that matches only a dot).
27017 func_stripname ()
27018 {
27019 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27020 # positional parameters, so assign one to ordinary parameter first.
27021 func_stripname_result=${3}
27022 func_stripname_result=${func_stripname_result#"${1}"}
27023 func_stripname_result=${func_stripname_result%"${2}"}
27024 }
27025
27026 # func_opt_split
27027 func_opt_split ()
27028 {
27029 func_opt_split_opt=${1%%=*}
27030 func_opt_split_arg=${1#*=}
27031 }
27032
27033 # func_lo2o object
27034 func_lo2o ()
27035 {
27036 case ${1} in
27037 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27038 *) func_lo2o_result=${1} ;;
27039 esac
27040 }
27041
27042 # func_xform libobj-or-source
27043 func_xform ()
27044 {
27045 func_xform_result=${1%.*}.lo
27046 }
27047
27048 # func_arith arithmetic-term...
27049 func_arith ()
27050 {
27051 func_arith_result=$(( $* ))
27052 }
27053
27054 # func_len string
27055 # STRING may not start with a hyphen.
27056 func_len ()
27057 {
27058 func_len_result=${#1}
27059 }
27060
27061 _LT_EOF
27062 ;;
27063 *) # Bourne compatible functions.
27064 cat << \_LT_EOF >> "$cfgfile"
27065
27066 # func_dirname file append nondir_replacement
27067 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27068 # otherwise set result to NONDIR_REPLACEMENT.
27069 func_dirname ()
27070 {
27071 # Extract subdirectory from the argument.
27072 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27073 if test "X$func_dirname_result" = "X${1}"; then
27074 func_dirname_result="${3}"
27075 else
27076 func_dirname_result="$func_dirname_result${2}"
27077 fi
27078 }
27079
27080 # func_basename file
27081 func_basename ()
27082 {
27083 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27084 }
27085
27086
27087 # func_stripname prefix suffix name
27088 # strip PREFIX and SUFFIX off of NAME.
27089 # PREFIX and SUFFIX must not contain globbing or regex special
27090 # characters, hashes, percent signs, but SUFFIX may contain a leading
27091 # dot (in which case that matches only a dot).
27092 # func_strip_suffix prefix name
27093 func_stripname ()
27094 {
27095 case ${2} in
27096 .*) func_stripname_result=`$ECHO "X${3}" \
27097 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27098 *) func_stripname_result=`$ECHO "X${3}" \
27099 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27100 esac
27101 }
27102
27103 # sed scripts:
27104 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27105 my_sed_long_arg='1s/^-[^=]*=//'
27106
27107 # func_opt_split
27108 func_opt_split ()
27109 {
27110 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27111 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27112 }
27113
27114 # func_lo2o object
27115 func_lo2o ()
27116 {
27117 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27118 }
27119
27120 # func_xform libobj-or-source
27121 func_xform ()
27122 {
27123 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27124 }
27125
27126 # func_arith arithmetic-term...
27127 func_arith ()
27128 {
27129 func_arith_result=`expr "$@"`
27130 }
27131
27132 # func_len string
27133 # STRING may not start with a hyphen.
27134 func_len ()
27135 {
27136 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27137 }
27138
27139 _LT_EOF
27140 esac
27141
27142 case $lt_shell_append in
27143 yes)
27144 cat << \_LT_EOF >> "$cfgfile"
27145
27146 # func_append var value
27147 # Append VALUE to the end of shell variable VAR.
27148 func_append ()
27149 {
27150 eval "$1+=\$2"
27151 }
27152 _LT_EOF
27153 ;;
27154 *)
27155 cat << \_LT_EOF >> "$cfgfile"
27156
27157 # func_append var value
27158 # Append VALUE to the end of shell variable VAR.
27159 func_append ()
27160 {
27161 eval "$1=\$$1\$2"
27162 }
27163
27164 _LT_EOF
27165 ;;
27166 esac
27167
27168
27169 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27170 || (rm -f "$cfgfile"; exit 1)
27171
27172 mv -f "$cfgfile" "$ofile" ||
27173 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27174 chmod +x "$ofile"
27175
27176
27177 cat <<_LT_EOF >> "$ofile"
27178
27179 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27180
27181 # The linker used to build libraries.
27182 LD=$lt_LD_CXX
27183
27184 # Commands used to build an old-style archive.
27185 old_archive_cmds=$lt_old_archive_cmds_CXX
27186
27187 # A language specific compiler.
27188 CC=$lt_compiler_CXX
27189
27190 # Is the compiler the GNU compiler?
27191 with_gcc=$GCC_CXX
27192
27193 # Compiler flag to turn off builtin functions.
27194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27195
27196 # How to pass a linker flag through the compiler.
27197 wl=$lt_lt_prog_compiler_wl_CXX
27198
27199 # Additional compiler flags for building library objects.
27200 pic_flag=$lt_lt_prog_compiler_pic_CXX
27201
27202 # Compiler flag to prevent dynamic linking.
27203 link_static_flag=$lt_lt_prog_compiler_static_CXX
27204
27205 # Does compiler simultaneously support -c and -o options?
27206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27207
27208 # Whether or not to add -lc for building shared libraries.
27209 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27210
27211 # Whether or not to disallow shared libs when runtime libs are static.
27212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27213
27214 # Compiler flag to allow reflexive dlopens.
27215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27216
27217 # Compiler flag to generate shared objects directly from archives.
27218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27219
27220 # Whether the compiler copes with passing no objects directly.
27221 compiler_needs_object=$lt_compiler_needs_object_CXX
27222
27223 # Create an old-style archive from a shared archive.
27224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27225
27226 # Create a temporary old-style archive to link instead of a shared archive.
27227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27228
27229 # Commands used to build a shared archive.
27230 archive_cmds=$lt_archive_cmds_CXX
27231 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27232
27233 # Commands used to build a loadable module if different from building
27234 # a shared archive.
27235 module_cmds=$lt_module_cmds_CXX
27236 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27237
27238 # Whether we are building with GNU ld or not.
27239 with_gnu_ld=$lt_with_gnu_ld_CXX
27240
27241 # Flag that allows shared libraries with undefined symbols to be built.
27242 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27243
27244 # Flag that enforces no undefined symbols.
27245 no_undefined_flag=$lt_no_undefined_flag_CXX
27246
27247 # Flag to hardcode \$libdir into a binary during linking.
27248 # This must work even if \$libdir does not exist
27249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27250
27251 # If ld is used when linking, flag to hardcode \$libdir into a binary
27252 # during linking. This must work even if \$libdir does not exist.
27253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27254
27255 # Whether we need a single "-rpath" flag with a separated argument.
27256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27257
27258 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27259 # DIR into the resulting binary.
27260 hardcode_direct=$hardcode_direct_CXX
27261
27262 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27263 # DIR into the resulting binary and the resulting library dependency is
27264 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27265 # library is relocated.
27266 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27267
27268 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27269 # into the resulting binary.
27270 hardcode_minus_L=$hardcode_minus_L_CXX
27271
27272 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27273 # into the resulting binary.
27274 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27275
27276 # Set to "yes" if building a shared library automatically hardcodes DIR
27277 # into the library and all subsequent libraries and executables linked
27278 # against it.
27279 hardcode_automatic=$hardcode_automatic_CXX
27280
27281 # Set to yes if linker adds runtime paths of dependent libraries
27282 # to runtime path list.
27283 inherit_rpath=$inherit_rpath_CXX
27284
27285 # Whether libtool must link a program against all its dependency libraries.
27286 link_all_deplibs=$link_all_deplibs_CXX
27287
27288 # Fix the shell variable \$srcfile for the compiler.
27289 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27290
27291 # Set to "yes" if exported symbols are required.
27292 always_export_symbols=$always_export_symbols_CXX
27293
27294 # The commands to list exported symbols.
27295 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27296
27297 # Symbols that should not be listed in the preloaded symbols.
27298 exclude_expsyms=$lt_exclude_expsyms_CXX
27299
27300 # Symbols that must always be exported.
27301 include_expsyms=$lt_include_expsyms_CXX
27302
27303 # Commands necessary for linking programs (against libraries) with templates.
27304 prelink_cmds=$lt_prelink_cmds_CXX
27305
27306 # Specify filename containing input files.
27307 file_list_spec=$lt_file_list_spec_CXX
27308
27309 # How to hardcode a shared library path into an executable.
27310 hardcode_action=$hardcode_action_CXX
27311
27312 # The directories searched by this compiler when creating a shared library.
27313 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27314
27315 # Dependencies to place before and after the objects being linked to
27316 # create a shared library.
27317 predep_objects=$lt_predep_objects_CXX
27318 postdep_objects=$lt_postdep_objects_CXX
27319 predeps=$lt_predeps_CXX
27320 postdeps=$lt_postdeps_CXX
27321
27322 # The library search path used internally by the compiler when linking
27323 # a shared library.
27324 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27325
27326 # ### END LIBTOOL TAG CONFIG: CXX
27327 _LT_EOF
27328
27329
27330 cat <<_LT_EOF >> "$ofile"
27331
27332 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27333
27334 # The linker used to build libraries.
27335 LD=$lt_LD_GCJ
27336
27337 # Commands used to build an old-style archive.
27338 old_archive_cmds=$lt_old_archive_cmds_GCJ
27339
27340 # A language specific compiler.
27341 CC=$lt_compiler_GCJ
27342
27343 # Is the compiler the GNU compiler?
27344 with_gcc=$GCC_GCJ
27345
27346 # Compiler flag to turn off builtin functions.
27347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27348
27349 # How to pass a linker flag through the compiler.
27350 wl=$lt_lt_prog_compiler_wl_GCJ
27351
27352 # Additional compiler flags for building library objects.
27353 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27354
27355 # Compiler flag to prevent dynamic linking.
27356 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27357
27358 # Does compiler simultaneously support -c and -o options?
27359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27360
27361 # Whether or not to add -lc for building shared libraries.
27362 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27363
27364 # Whether or not to disallow shared libs when runtime libs are static.
27365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27366
27367 # Compiler flag to allow reflexive dlopens.
27368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27369
27370 # Compiler flag to generate shared objects directly from archives.
27371 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27372
27373 # Whether the compiler copes with passing no objects directly.
27374 compiler_needs_object=$lt_compiler_needs_object_GCJ
27375
27376 # Create an old-style archive from a shared archive.
27377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27378
27379 # Create a temporary old-style archive to link instead of a shared archive.
27380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27381
27382 # Commands used to build a shared archive.
27383 archive_cmds=$lt_archive_cmds_GCJ
27384 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27385
27386 # Commands used to build a loadable module if different from building
27387 # a shared archive.
27388 module_cmds=$lt_module_cmds_GCJ
27389 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27390
27391 # Whether we are building with GNU ld or not.
27392 with_gnu_ld=$lt_with_gnu_ld_GCJ
27393
27394 # Flag that allows shared libraries with undefined symbols to be built.
27395 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27396
27397 # Flag that enforces no undefined symbols.
27398 no_undefined_flag=$lt_no_undefined_flag_GCJ
27399
27400 # Flag to hardcode \$libdir into a binary during linking.
27401 # This must work even if \$libdir does not exist
27402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27403
27404 # If ld is used when linking, flag to hardcode \$libdir into a binary
27405 # during linking. This must work even if \$libdir does not exist.
27406 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27407
27408 # Whether we need a single "-rpath" flag with a separated argument.
27409 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27410
27411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27412 # DIR into the resulting binary.
27413 hardcode_direct=$hardcode_direct_GCJ
27414
27415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27416 # DIR into the resulting binary and the resulting library dependency is
27417 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27418 # library is relocated.
27419 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27420
27421 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27422 # into the resulting binary.
27423 hardcode_minus_L=$hardcode_minus_L_GCJ
27424
27425 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27426 # into the resulting binary.
27427 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27428
27429 # Set to "yes" if building a shared library automatically hardcodes DIR
27430 # into the library and all subsequent libraries and executables linked
27431 # against it.
27432 hardcode_automatic=$hardcode_automatic_GCJ
27433
27434 # Set to yes if linker adds runtime paths of dependent libraries
27435 # to runtime path list.
27436 inherit_rpath=$inherit_rpath_GCJ
27437
27438 # Whether libtool must link a program against all its dependency libraries.
27439 link_all_deplibs=$link_all_deplibs_GCJ
27440
27441 # Fix the shell variable \$srcfile for the compiler.
27442 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27443
27444 # Set to "yes" if exported symbols are required.
27445 always_export_symbols=$always_export_symbols_GCJ
27446
27447 # The commands to list exported symbols.
27448 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27449
27450 # Symbols that should not be listed in the preloaded symbols.
27451 exclude_expsyms=$lt_exclude_expsyms_GCJ
27452
27453 # Symbols that must always be exported.
27454 include_expsyms=$lt_include_expsyms_GCJ
27455
27456 # Commands necessary for linking programs (against libraries) with templates.
27457 prelink_cmds=$lt_prelink_cmds_GCJ
27458
27459 # Specify filename containing input files.
27460 file_list_spec=$lt_file_list_spec_GCJ
27461
27462 # How to hardcode a shared library path into an executable.
27463 hardcode_action=$hardcode_action_GCJ
27464
27465 # The directories searched by this compiler when creating a shared library.
27466 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27467
27468 # Dependencies to place before and after the objects being linked to
27469 # create a shared library.
27470 predep_objects=$lt_predep_objects_GCJ
27471 postdep_objects=$lt_postdep_objects_GCJ
27472 predeps=$lt_predeps_GCJ
27473 postdeps=$lt_postdeps_GCJ
27474
27475 # The library search path used internally by the compiler when linking
27476 # a shared library.
27477 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27478
27479 # ### END LIBTOOL TAG CONFIG: GCJ
27480 _LT_EOF
27481
27482 ;;
27483 "scripts/jar":F) chmod +x scripts/jar ;;
27484
27485 esac
27486 done # for ac_tag
27487
27488
27489 as_fn_exit 0
27490 _ACEOF
27491 ac_clean_files=$ac_clean_files_save
27492
27493 test $ac_write_fail = 0 ||
27494 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27495
27496
27497 # configure is writing to config.log, and then calls config.status.
27498 # config.status does its own redirection, appending to config.log.
27499 # Unfortunately, on DOS this fails, as config.log is still kept open
27500 # by configure, so config.status won't be able to write to it; its
27501 # output is simply discarded. So we exec the FD to /dev/null,
27502 # effectively closing config.log, so it can be properly (re)opened and
27503 # appended to by config.status. When coming back to configure, we
27504 # need to make the FD available again.
27505 if test "$no_create" != yes; then
27506 ac_cs_success=:
27507 ac_config_status_args=
27508 test "$silent" = yes &&
27509 ac_config_status_args="$ac_config_status_args --quiet"
27510 exec 5>/dev/null
27511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27512 exec 5>>config.log
27513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27514 # would make configure fail if this is the last instruction.
27515 $ac_cs_success || as_fn_exit $?
27516 fi
27517
27518 #
27519 # CONFIG_SUBDIRS section.
27520 #
27521 if test "$no_recursion" != yes; then
27522
27523 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27524 # so they do not pile up.
27525 ac_sub_configure_args=
27526 ac_prev=
27527 eval "set x $ac_configure_args"
27528 shift
27529 for ac_arg
27530 do
27531 if test -n "$ac_prev"; then
27532 ac_prev=
27533 continue
27534 fi
27535 case $ac_arg in
27536 -cache-file | --cache-file | --cache-fil | --cache-fi \
27537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27538 ac_prev=cache_file ;;
27539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27541 | --c=*)
27542 ;;
27543 --config-cache | -C)
27544 ;;
27545 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27546 ac_prev=srcdir ;;
27547 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27548 ;;
27549 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27550 ac_prev=prefix ;;
27551 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27552 ;;
27553 --disable-option-checking)
27554 ;;
27555 *)
27556 case $ac_arg in
27557 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27558 esac
27559 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27560 esac
27561 done
27562
27563 # Always prepend --prefix to ensure using the same prefix
27564 # in subdir configurations.
27565 ac_arg="--prefix=$prefix"
27566 case $ac_arg in
27567 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27568 esac
27569 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27570
27571 # Pass --silent
27572 if test "$silent" = yes; then
27573 ac_sub_configure_args="--silent $ac_sub_configure_args"
27574 fi
27575
27576 # Always prepend --disable-option-checking to silence warnings, since
27577 # different subdirs can have different --enable and --with options.
27578 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27579
27580 ac_popdir=`pwd`
27581 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27582
27583 # Do not complain, so a configure script can configure whichever
27584 # parts of a large source tree are present.
27585 test -d "$srcdir/$ac_dir" || continue
27586
27587 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27588 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27589 $as_echo "$ac_msg" >&6
27590 as_dir="$ac_dir"; as_fn_mkdir_p
27591 ac_builddir=.
27592
27593 case "$ac_dir" in
27594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27595 *)
27596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27597 # A ".." for each directory in $ac_dir_suffix.
27598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27599 case $ac_top_builddir_sub in
27600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27602 esac ;;
27603 esac
27604 ac_abs_top_builddir=$ac_pwd
27605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27606 # for backward compatibility:
27607 ac_top_builddir=$ac_top_build_prefix
27608
27609 case $srcdir in
27610 .) # We are building in place.
27611 ac_srcdir=.
27612 ac_top_srcdir=$ac_top_builddir_sub
27613 ac_abs_top_srcdir=$ac_pwd ;;
27614 [\\/]* | ?:[\\/]* ) # Absolute name.
27615 ac_srcdir=$srcdir$ac_dir_suffix;
27616 ac_top_srcdir=$srcdir
27617 ac_abs_top_srcdir=$srcdir ;;
27618 *) # Relative name.
27619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27620 ac_top_srcdir=$ac_top_build_prefix$srcdir
27621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27622 esac
27623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27624
27625
27626 cd "$ac_dir"
27627
27628 # Check for guested configure; otherwise get Cygnus style configure.
27629 if test -f "$ac_srcdir/configure.gnu"; then
27630 ac_sub_configure=$ac_srcdir/configure.gnu
27631 elif test -f "$ac_srcdir/configure"; then
27632 ac_sub_configure=$ac_srcdir/configure
27633 elif test -f "$ac_srcdir/configure.in"; then
27634 # This should be Cygnus configure.
27635 ac_sub_configure=$ac_aux_dir/configure
27636 else
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27639 ac_sub_configure=
27640 fi
27641
27642 # The recursion is here.
27643 if test -n "$ac_sub_configure"; then
27644 # Make the cache file name correct relative to the subdirectory.
27645 case $cache_file in
27646 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27647 *) # Relative name.
27648 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27649 esac
27650
27651 { $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
27652 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27653 # The eval makes quoting arguments work.
27654 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27655 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27656 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27657 fi
27658
27659 cd "$ac_popdir"
27660 done
27661 fi
27662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27664 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27665 fi
27666