PR bootstrap/41451
[official-gcc.git] / libjava / configure
blob8234c8b13df233839f8b32fda578e71ef9897726
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
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
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
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+"$@"}
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."
234 exit 1
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
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
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 ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
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/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
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"
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 ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
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 ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
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 ()
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
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
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
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
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/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
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
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 '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
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; }
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
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;;
460 ECHO_N='-n';;
461 esac
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
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'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
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
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=
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
518 as_executable_p=$as_test_x
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'"
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'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
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','`
536 esac
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
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
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
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
576 done
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
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'
588 # So, first we look for a working echo in the user's PATH.
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
600 done
601 IFS="$lt_save_ifs"
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
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=:
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
649 prev="$cmd"
650 done
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
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"
676 exec 7<&0 </dev/null 6>&1
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`
684 # Initializations.
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=
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=''
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"
740 enable_option_checking=no
741 ac_subst_vars='am__EXEEXT_FALSE
742 am__EXEEXT_TRUE
743 LTLIBOBJS
744 LIBOBJS
745 LIBDIR
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
889 CXXCPP
891 OTOOL64
892 OTOOL
893 LIPO
894 NMEDIT
895 DSYMUTIL
896 lt_ECHO
897 OBJDUMP
899 ac_ct_DUMPBIN
900 DUMPBIN
901 FGREP
902 EGREP
903 GREP
905 LIBTOOL
906 DIRLTDL
907 LIBLTDL
908 INCLTDL
909 host_exeext
910 GCJH
911 GCJ_FOR_ECJX
912 X_AWT_FALSE
913 X_AWT_TRUE
914 XLIB_AWT_FALSE
915 XLIB_AWT_TRUE
916 TOOLKIT
917 LIBGCJDEBUG
918 BUILD_SUBLIBS_FALSE
919 BUILD_SUBLIBS_TRUE
920 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
921 LIBGCJ_LD_SYMBOLIC
922 LIBGCJ_SUBLIB_LTFLAGS
923 LIBGCJ_JAVAFLAGS
924 LIBGCJ_CXXFLAGS
925 LIBGCJ_CFLAGS
926 MAINT
927 MAINTAINER_MODE_FALSE
928 MAINTAINER_MODE_TRUE
929 UNZIP
932 RANLIB
936 am__fastdepCXX_FALSE
937 am__fastdepCXX_TRUE
938 CXXDEPMODE
939 am__fastdepCC_FALSE
940 am__fastdepCC_TRUE
941 CCDEPMODE
942 AMDEPBACKSLASH
943 AMDEP_FALSE
944 AMDEP_TRUE
945 am__quote
946 am__include
947 DEPDIR
948 am__untar
949 am__tar
950 AMTAR
951 am__leading_dot
952 SET_MAKE
954 mkdir_p
955 MKDIR_P
956 INSTALL_STRIP_PROGRAM
957 STRIP
958 install_sh
959 MAKEINFO
960 AUTOHEADER
961 AUTOMAKE
962 AUTOCONF
963 ACLOCAL
964 VERSION
965 PACKAGE
966 CYGPATH_W
967 am__isrc
968 INSTALL_DATA
969 INSTALL_SCRIPT
970 INSTALL_PROGRAM
971 ac_ct_CXX
972 CXXFLAGS
974 OBJEXT
975 EXEEXT
976 ac_ct_CC
977 CPPFLAGS
978 LDFLAGS
979 CFLAGS
981 JAVA_MAINTAINER_MODE_FALSE
982 JAVA_MAINTAINER_MODE_TRUE
983 CREATE_GJDOC_FALSE
984 CREATE_GJDOC_TRUE
985 ANTLR_JAR
986 mkinstalldirs
987 LN_S
988 target_noncanonical
989 target_os
990 target_vendor
991 target_cpu
992 target
993 host_os
994 host_vendor
995 host_cpu
996 host
997 multi_basedir
998 target_subdir
999 host_subdir
1000 build_subdir
1001 build_libsubdir
1002 build_os
1003 build_vendor
1004 build_cpu
1005 build
1006 target_alias
1007 host_alias
1008 build_alias
1009 LIBS
1010 ECHO_T
1011 ECHO_N
1012 ECHO_C
1013 DEFS
1014 mandir
1015 localedir
1016 libdir
1017 psdir
1018 pdfdir
1019 dvidir
1020 htmldir
1021 infodir
1022 docdir
1023 oldincludedir
1024 includedir
1025 localstatedir
1026 sharedstatedir
1027 sysconfdir
1028 datadir
1029 datarootdir
1030 libexecdir
1031 sbindir
1032 bindir
1033 program_transform_name
1034 prefix
1035 exec_prefix
1036 PACKAGE_URL
1037 PACKAGE_BUGREPORT
1038 PACKAGE_STRING
1039 PACKAGE_VERSION
1040 PACKAGE_TARNAME
1041 PACKAGE_NAME
1042 PATH_SEPARATOR
1043 SHELL'
1044 ac_subst_files=''
1045 ac_user_opts='
1046 enable_option_checking
1047 with_build_libsubdir
1048 with_target_subdir
1049 enable_multilib
1050 with_cross_host
1051 with_newlib
1052 enable_version_specific_runtime_libs
1053 enable_browser_plugin
1054 enable_gconf_peer
1055 with_antlr_jar
1056 enable_gjdoc
1057 enable_java_maintainer_mode
1058 enable_dependency_tracking
1059 enable_maintainer_mode
1060 enable_libgcj_sublibs
1061 enable_libgcj_debug
1062 with_escher
1063 enable_java_awt
1064 enable_shared
1065 enable_static
1066 with_pic
1067 enable_fast_install
1068 with_gnu_ld
1069 enable_libtool_lock
1070 enable_getenv_properties
1071 enable_hash_synchronization
1072 with_ecj_jar
1073 with_java_home
1074 enable_libgcj_bc
1075 enable_reduced_reflection
1076 with_win32_nlsapi
1077 enable_gc_debug
1078 enable_interpreter
1079 enable_sjlj_exceptions
1080 enable_java_net
1081 with_libffi
1082 enable_jvmpi
1083 with_ecos
1084 with_system_zlib
1085 with_x
1086 enable_java_gc
1087 enable_rpath
1088 with_libiconv_prefix
1089 enable_tls
1090 with_system_libunwind
1091 with_python_dir
1092 enable_aot_compile_rpm
1093 enable_java_home
1094 with_gcc_suffix
1095 with_arch_directory
1096 with_os_directory
1097 with_origin_name
1098 with_arch_suffix
1099 with_jvm_root_dir
1100 with_jvm_jar_dir
1102 ac_precious_vars='build_alias
1103 host_alias
1104 target_alias
1106 CPPFLAGS
1108 CXXFLAGS
1109 LDFLAGS
1110 LIBS
1112 CXXCPP
1113 XMKMF'
1114 ac_subdirs_all='classpath libltdl'
1116 # Initialize some variables set by options.
1117 ac_init_help=
1118 ac_init_version=false
1119 ac_unrecognized_opts=
1120 ac_unrecognized_sep=
1121 # The variables have the same names as the options, with
1122 # dashes changed to underlines.
1123 cache_file=/dev/null
1124 exec_prefix=NONE
1125 no_create=
1126 no_recursion=
1127 prefix=NONE
1128 program_prefix=NONE
1129 program_suffix=NONE
1130 program_transform_name=s,x,x,
1131 silent=
1132 site=
1133 srcdir=
1134 verbose=
1135 x_includes=NONE
1136 x_libraries=NONE
1138 # Installation directory options.
1139 # These are left unexpanded so users can "make install exec_prefix=/foo"
1140 # and all the variables that are supposed to be based on exec_prefix
1141 # by default will actually change.
1142 # Use braces instead of parens because sh, perl, etc. also accept them.
1143 # (The list follows the same order as the GNU Coding Standards.)
1144 bindir='${exec_prefix}/bin'
1145 sbindir='${exec_prefix}/sbin'
1146 libexecdir='${exec_prefix}/libexec'
1147 datarootdir='${prefix}/share'
1148 datadir='${datarootdir}'
1149 sysconfdir='${prefix}/etc'
1150 sharedstatedir='${prefix}/com'
1151 localstatedir='${prefix}/var'
1152 includedir='${prefix}/include'
1153 oldincludedir='/usr/include'
1154 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1155 infodir='${datarootdir}/info'
1156 htmldir='${docdir}'
1157 dvidir='${docdir}'
1158 pdfdir='${docdir}'
1159 psdir='${docdir}'
1160 libdir='${exec_prefix}/lib'
1161 localedir='${datarootdir}/locale'
1162 mandir='${datarootdir}/man'
1164 ac_prev=
1165 ac_dashdash=
1166 for ac_option
1168 # If the previous option needs an argument, assign it.
1169 if test -n "$ac_prev"; then
1170 eval $ac_prev=\$ac_option
1171 ac_prev=
1172 continue
1175 case $ac_option in
1176 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1177 *) ac_optarg=yes ;;
1178 esac
1180 # Accept the important Cygnus configure options, so we can diagnose typos.
1182 case $ac_dashdash$ac_option in
1184 ac_dashdash=yes ;;
1186 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1187 ac_prev=bindir ;;
1188 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1189 bindir=$ac_optarg ;;
1191 -build | --build | --buil | --bui | --bu)
1192 ac_prev=build_alias ;;
1193 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1194 build_alias=$ac_optarg ;;
1196 -cache-file | --cache-file | --cache-fil | --cache-fi \
1197 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1198 ac_prev=cache_file ;;
1199 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1200 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1201 cache_file=$ac_optarg ;;
1203 --config-cache | -C)
1204 cache_file=config.cache ;;
1206 -datadir | --datadir | --datadi | --datad)
1207 ac_prev=datadir ;;
1208 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1209 datadir=$ac_optarg ;;
1211 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1212 | --dataroo | --dataro | --datar)
1213 ac_prev=datarootdir ;;
1214 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1215 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1216 datarootdir=$ac_optarg ;;
1218 -disable-* | --disable-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error "invalid feature name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1227 "enable_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval enable_$ac_useropt=no ;;
1234 -docdir | --docdir | --docdi | --doc | --do)
1235 ac_prev=docdir ;;
1236 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1237 docdir=$ac_optarg ;;
1239 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1240 ac_prev=dvidir ;;
1241 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1242 dvidir=$ac_optarg ;;
1244 -enable-* | --enable-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid feature name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1253 "enable_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval enable_$ac_useropt=\$ac_optarg ;;
1260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1262 | --exec | --exe | --ex)
1263 ac_prev=exec_prefix ;;
1264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1266 | --exec=* | --exe=* | --ex=*)
1267 exec_prefix=$ac_optarg ;;
1269 -gas | --gas | --ga | --g)
1270 # Obsolete; use --with-gas.
1271 with_gas=yes ;;
1273 -help | --help | --hel | --he | -h)
1274 ac_init_help=long ;;
1275 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1276 ac_init_help=recursive ;;
1277 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1278 ac_init_help=short ;;
1280 -host | --host | --hos | --ho)
1281 ac_prev=host_alias ;;
1282 -host=* | --host=* | --hos=* | --ho=*)
1283 host_alias=$ac_optarg ;;
1285 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1286 ac_prev=htmldir ;;
1287 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1288 | --ht=*)
1289 htmldir=$ac_optarg ;;
1291 -includedir | --includedir | --includedi | --included | --include \
1292 | --includ | --inclu | --incl | --inc)
1293 ac_prev=includedir ;;
1294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1295 | --includ=* | --inclu=* | --incl=* | --inc=*)
1296 includedir=$ac_optarg ;;
1298 -infodir | --infodir | --infodi | --infod | --info | --inf)
1299 ac_prev=infodir ;;
1300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1301 infodir=$ac_optarg ;;
1303 -libdir | --libdir | --libdi | --libd)
1304 ac_prev=libdir ;;
1305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1306 libdir=$ac_optarg ;;
1308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1309 | --libexe | --libex | --libe)
1310 ac_prev=libexecdir ;;
1311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1312 | --libexe=* | --libex=* | --libe=*)
1313 libexecdir=$ac_optarg ;;
1315 -localedir | --localedir | --localedi | --localed | --locale)
1316 ac_prev=localedir ;;
1317 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1318 localedir=$ac_optarg ;;
1320 -localstatedir | --localstatedir | --localstatedi | --localstated \
1321 | --localstate | --localstat | --localsta | --localst | --locals)
1322 ac_prev=localstatedir ;;
1323 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1324 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1325 localstatedir=$ac_optarg ;;
1327 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1328 ac_prev=mandir ;;
1329 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1330 mandir=$ac_optarg ;;
1332 -nfp | --nfp | --nf)
1333 # Obsolete; use --without-fp.
1334 with_fp=no ;;
1336 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1337 | --no-cr | --no-c | -n)
1338 no_create=yes ;;
1340 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1341 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1342 no_recursion=yes ;;
1344 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1345 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1346 | --oldin | --oldi | --old | --ol | --o)
1347 ac_prev=oldincludedir ;;
1348 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1349 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1350 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1351 oldincludedir=$ac_optarg ;;
1353 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1354 ac_prev=prefix ;;
1355 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1356 prefix=$ac_optarg ;;
1358 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1359 | --program-pre | --program-pr | --program-p)
1360 ac_prev=program_prefix ;;
1361 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1362 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1363 program_prefix=$ac_optarg ;;
1365 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1366 | --program-suf | --program-su | --program-s)
1367 ac_prev=program_suffix ;;
1368 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1369 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1370 program_suffix=$ac_optarg ;;
1372 -program-transform-name | --program-transform-name \
1373 | --program-transform-nam | --program-transform-na \
1374 | --program-transform-n | --program-transform- \
1375 | --program-transform | --program-transfor \
1376 | --program-transfo | --program-transf \
1377 | --program-trans | --program-tran \
1378 | --progr-tra | --program-tr | --program-t)
1379 ac_prev=program_transform_name ;;
1380 -program-transform-name=* | --program-transform-name=* \
1381 | --program-transform-nam=* | --program-transform-na=* \
1382 | --program-transform-n=* | --program-transform-=* \
1383 | --program-transform=* | --program-transfor=* \
1384 | --program-transfo=* | --program-transf=* \
1385 | --program-trans=* | --program-tran=* \
1386 | --progr-tra=* | --program-tr=* | --program-t=*)
1387 program_transform_name=$ac_optarg ;;
1389 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1390 ac_prev=pdfdir ;;
1391 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1392 pdfdir=$ac_optarg ;;
1394 -psdir | --psdir | --psdi | --psd | --ps)
1395 ac_prev=psdir ;;
1396 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1397 psdir=$ac_optarg ;;
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400 | -silent | --silent | --silen | --sile | --sil)
1401 silent=yes ;;
1403 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1404 ac_prev=sbindir ;;
1405 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1406 | --sbi=* | --sb=*)
1407 sbindir=$ac_optarg ;;
1409 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1410 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1411 | --sharedst | --shareds | --shared | --share | --shar \
1412 | --sha | --sh)
1413 ac_prev=sharedstatedir ;;
1414 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1415 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1416 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1417 | --sha=* | --sh=*)
1418 sharedstatedir=$ac_optarg ;;
1420 -site | --site | --sit)
1421 ac_prev=site ;;
1422 -site=* | --site=* | --sit=*)
1423 site=$ac_optarg ;;
1425 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1426 ac_prev=srcdir ;;
1427 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1428 srcdir=$ac_optarg ;;
1430 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1431 | --syscon | --sysco | --sysc | --sys | --sy)
1432 ac_prev=sysconfdir ;;
1433 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1434 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1435 sysconfdir=$ac_optarg ;;
1437 -target | --target | --targe | --targ | --tar | --ta | --t)
1438 ac_prev=target_alias ;;
1439 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1440 target_alias=$ac_optarg ;;
1442 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1443 verbose=yes ;;
1445 -version | --version | --versio | --versi | --vers | -V)
1446 ac_init_version=: ;;
1448 -with-* | --with-*)
1449 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1450 # Reject names that are not valid shell variable names.
1451 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1452 as_fn_error "invalid package name: $ac_useropt"
1453 ac_useropt_orig=$ac_useropt
1454 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1455 case $ac_user_opts in
1457 "with_$ac_useropt"
1458 "*) ;;
1459 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1460 ac_unrecognized_sep=', ';;
1461 esac
1462 eval with_$ac_useropt=\$ac_optarg ;;
1464 -without-* | --without-*)
1465 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1466 # Reject names that are not valid shell variable names.
1467 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1468 as_fn_error "invalid package name: $ac_useropt"
1469 ac_useropt_orig=$ac_useropt
1470 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471 case $ac_user_opts in
1473 "with_$ac_useropt"
1474 "*) ;;
1475 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1476 ac_unrecognized_sep=', ';;
1477 esac
1478 eval with_$ac_useropt=no ;;
1480 --x)
1481 # Obsolete; use --with-x.
1482 with_x=yes ;;
1484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1485 | --x-incl | --x-inc | --x-in | --x-i)
1486 ac_prev=x_includes ;;
1487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1489 x_includes=$ac_optarg ;;
1491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1493 ac_prev=x_libraries ;;
1494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1496 x_libraries=$ac_optarg ;;
1498 -*) as_fn_error "unrecognized option: \`$ac_option'
1499 Try \`$0 --help' for more information."
1502 *=*)
1503 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1504 # Reject names that are not valid shell variable names.
1505 case $ac_envvar in #(
1506 '' | [0-9]* | *[!_$as_cr_alnum]* )
1507 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1508 esac
1509 eval $ac_envvar=\$ac_optarg
1510 export $ac_envvar ;;
1513 # FIXME: should be removed in autoconf 3.0.
1514 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1515 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1516 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1517 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1520 esac
1521 done
1523 if test -n "$ac_prev"; then
1524 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1525 as_fn_error "missing argument to $ac_option"
1528 if test -n "$ac_unrecognized_opts"; then
1529 case $enable_option_checking in
1530 no) ;;
1531 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1532 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1533 esac
1536 # Check all directory arguments for consistency.
1537 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1538 datadir sysconfdir sharedstatedir localstatedir includedir \
1539 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1540 libdir localedir mandir
1542 eval ac_val=\$$ac_var
1543 # Remove trailing slashes.
1544 case $ac_val in
1545 */ )
1546 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1547 eval $ac_var=\$ac_val;;
1548 esac
1549 # Be sure to have absolute directory names.
1550 case $ac_val in
1551 [\\/$]* | ?:[\\/]* ) continue;;
1552 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1553 esac
1554 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1555 done
1557 # There might be people who depend on the old broken behavior: `$host'
1558 # used to hold the argument of --host etc.
1559 # FIXME: To remove some day.
1560 build=$build_alias
1561 host=$host_alias
1562 target=$target_alias
1564 # FIXME: To remove some day.
1565 if test "x$host_alias" != x; then
1566 if test "x$build_alias" = x; then
1567 cross_compiling=maybe
1568 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1569 If a cross compiler is detected then cross compile mode will be used." >&2
1570 elif test "x$build_alias" != "x$host_alias"; then
1571 cross_compiling=yes
1575 ac_tool_prefix=
1576 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1578 test "$silent" = yes && exec 6>/dev/null
1581 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1582 ac_ls_di=`ls -di .` &&
1583 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1584 as_fn_error "working directory cannot be determined"
1585 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1586 as_fn_error "pwd does not report name of working directory"
1589 # Find the source files, if location was not specified.
1590 if test -z "$srcdir"; then
1591 ac_srcdir_defaulted=yes
1592 # Try the directory containing this script, then the parent directory.
1593 ac_confdir=`$as_dirname -- "$as_myself" ||
1594 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1595 X"$as_myself" : 'X\(//\)[^/]' \| \
1596 X"$as_myself" : 'X\(//\)$' \| \
1597 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1598 $as_echo X"$as_myself" |
1599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1600 s//\1/
1603 /^X\(\/\/\)[^/].*/{
1604 s//\1/
1607 /^X\(\/\/\)$/{
1608 s//\1/
1611 /^X\(\/\).*/{
1612 s//\1/
1615 s/.*/./; q'`
1616 srcdir=$ac_confdir
1617 if test ! -r "$srcdir/$ac_unique_file"; then
1618 srcdir=..
1620 else
1621 ac_srcdir_defaulted=no
1623 if test ! -r "$srcdir/$ac_unique_file"; then
1624 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1625 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1627 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1628 ac_abs_confdir=`(
1629 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1630 pwd)`
1631 # When building in place, set srcdir=.
1632 if test "$ac_abs_confdir" = "$ac_pwd"; then
1633 srcdir=.
1635 # Remove unnecessary trailing slashes from srcdir.
1636 # Double slashes in file names in object file debugging info
1637 # mess up M-x gdb in Emacs.
1638 case $srcdir in
1639 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1640 esac
1641 for ac_var in $ac_precious_vars; do
1642 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1643 eval ac_env_${ac_var}_value=\$${ac_var}
1644 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1645 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1646 done
1649 # Report the --help message.
1651 if test "$ac_init_help" = "long"; then
1652 # Omit some internal or obsolete options to make the list less imposing.
1653 # This message is too long to be a string in the A/UX 3.1 sh.
1654 cat <<_ACEOF
1655 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1657 Usage: $0 [OPTION]... [VAR=VALUE]...
1659 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1660 VAR=VALUE. See below for descriptions of some of the useful variables.
1662 Defaults for the options are specified in brackets.
1664 Configuration:
1665 -h, --help display this help and exit
1666 --help=short display options specific to this package
1667 --help=recursive display the short help of all the included packages
1668 -V, --version display version information and exit
1669 -q, --quiet, --silent do not print \`checking...' messages
1670 --cache-file=FILE cache test results in FILE [disabled]
1671 -C, --config-cache alias for \`--cache-file=config.cache'
1672 -n, --no-create do not create output files
1673 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1675 Installation directories:
1676 --prefix=PREFIX install architecture-independent files in PREFIX
1677 [$ac_default_prefix]
1678 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1679 [PREFIX]
1681 By default, \`make install' will install all the files in
1682 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1683 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1684 for instance \`--prefix=\$HOME'.
1686 For better control, use the options below.
1688 Fine tuning of the installation directories:
1689 --bindir=DIR user executables [EPREFIX/bin]
1690 --sbindir=DIR system admin executables [EPREFIX/sbin]
1691 --libexecdir=DIR program executables [EPREFIX/libexec]
1692 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1693 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1694 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1695 --libdir=DIR object code libraries [EPREFIX/lib]
1696 --includedir=DIR C header files [PREFIX/include]
1697 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1698 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1699 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1700 --infodir=DIR info documentation [DATAROOTDIR/info]
1701 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1702 --mandir=DIR man documentation [DATAROOTDIR/man]
1703 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1704 --htmldir=DIR html documentation [DOCDIR]
1705 --dvidir=DIR dvi documentation [DOCDIR]
1706 --pdfdir=DIR pdf documentation [DOCDIR]
1707 --psdir=DIR ps documentation [DOCDIR]
1708 _ACEOF
1710 cat <<\_ACEOF
1712 Program names:
1713 --program-prefix=PREFIX prepend PREFIX to installed program names
1714 --program-suffix=SUFFIX append SUFFIX to installed program names
1715 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1717 X features:
1718 --x-includes=DIR X include files are in DIR
1719 --x-libraries=DIR X library files are in DIR
1721 System types:
1722 --build=BUILD configure for building on BUILD [guessed]
1723 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1724 --target=TARGET configure for building compilers for TARGET [HOST]
1725 _ACEOF
1728 if test -n "$ac_init_help"; then
1729 case $ac_init_help in
1730 short | recursive ) echo "Configuration of libjava version-unused:";;
1731 esac
1732 cat <<\_ACEOF
1734 Optional Features:
1735 --disable-option-checking ignore unrecognized --enable/--with options
1736 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1737 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1738 --enable-multilib build many library versions (default)
1739 --enable-version-specific-runtime-libs
1740 specify that runtime libraries should be installed
1741 in a compiler-specific directory
1742 --enable-browser-plugin build gcjwebplugin web browser plugin
1743 --enable-gconf-peer compile GConf native peers for util.preferences
1744 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1745 default=yes
1746 --enable-java-maintainer-mode
1747 allow rebuilding of .class and .h files
1748 --disable-dependency-tracking speeds up one-time build
1749 --enable-dependency-tracking do not reject slow dependency extractors
1750 --enable-maintainer-mode enable make rules and dependencies not useful
1751 (and sometimes confusing) to the casual installer
1752 --enable-libgcj-sublibs build libgcj as many sub-libraries
1753 --enable-libgcj-debug enable runtime debugging code
1754 --enable-java-awt list of AWT peer implementations to be built
1755 --enable-shared[=PKGS] build shared libraries [default=yes]
1756 --enable-static[=PKGS] build static libraries [default=yes]
1757 --enable-fast-install[=PKGS]
1758 optimize for fast installation [default=yes]
1759 --disable-libtool-lock avoid locking (might break parallel builds)
1760 --disable-getenv-properties
1761 don't set system properties from GCJ_PROPERTIES
1762 --enable-hash-synchronization
1763 use global hash table for monitor locks
1764 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1765 libgcj
1766 --enable-reduced-reflection
1767 enable or disable(default) -freduced-reflection when
1768 building portions of libgcj
1769 --enable-gc-debug include full support for pointer backtracing etc.
1770 --enable-interpreter enable interpreter
1771 --enable-sjlj-exceptions
1772 force use of builtin_setjmp for exceptions
1773 --disable-java-net disable java.net
1774 --disable-jvmpi disable JVMPI support
1775 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1776 --disable-rpath do not hardcode runtime library paths
1777 --enable-tls Use thread-local storage [default=yes]
1778 --enable-aot-compile-rpm
1779 enable installation of aot-compile-rpm [default=no]
1780 --enable-java-home create a standard JDK-style directory layout in the
1781 install tree [default=no]
1783 Optional Packages:
1784 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1785 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1786 --with-build-libsubdir=DIR Directory where to find libraries for build system
1787 --with-target-subdir=SUBDIR
1788 configure in a subdirectory
1789 --with-cross-host=HOST configure with a cross compiler from HOST
1790 --with-newlib configure with newlib
1791 --with-antlr-jar=file Use ANTLR from the specified jar file
1792 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1793 --with-pic try to use only PIC/non-PIC objects [default=use
1794 both]
1795 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1796 --with-ecj-jar=FILE use preinstalled ecj jar
1797 --with-java-home=DIRECTORY
1798 value of java.home system property
1799 --with-win32-nlsapi=ansi or unicows or unicode
1800 native MinGW libgcj Win32 OS API (default is ansi)
1801 --without-libffi don't use libffi
1802 --with-ecos enable runtime eCos target support
1803 --with-system-zlib use installed libz
1804 --with-x use the X Window System
1805 --with-gnu-ld assume the C compiler uses GNU ld default=no
1806 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1807 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1808 --with-system-libunwind use installed libunwind
1809 --with-python-dir the location to install Python modules. This path
1810 should NOT include the prefix.
1811 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1812 --with-arch-directory the arch directory under jre/lib (defaults to
1813 auto-detect)
1814 --with-os-directory the os directory under include (defaults to
1815 auto-detect)
1816 --with-origin-name the JPackage origin name of this package (default is
1817 gcj${gcc_suffix}
1818 --with-arch-suffix the arch directory suffix (default is the empty
1819 string
1820 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1821 --with-jvm-jar-dir where to install jars (default is
1822 ${prefix}/lib/jvm-exports)
1824 Some influential environment variables:
1825 CC C compiler command
1826 CFLAGS C compiler flags
1827 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1828 nonstandard directory <lib dir>
1829 LIBS libraries to pass to the linker, e.g. -l<library>
1830 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1831 you have headers in a nonstandard directory <include dir>
1832 CXX C++ compiler command
1833 CXXFLAGS C++ compiler flags
1834 CPP C preprocessor
1835 CXXCPP C++ preprocessor
1836 XMKMF Path to xmkmf, Makefile generator for X Window System
1838 Use these variables to override the choices made by `configure' or to help
1839 it to find libraries and programs with nonstandard names/locations.
1841 Report bugs to the package provider.
1842 _ACEOF
1843 ac_status=$?
1846 if test "$ac_init_help" = "recursive"; then
1847 # If there are subdirs, report their specific --help.
1848 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849 test -d "$ac_dir" ||
1850 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1851 continue
1852 ac_builddir=.
1854 case "$ac_dir" in
1855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858 # A ".." for each directory in $ac_dir_suffix.
1859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860 case $ac_top_builddir_sub in
1861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1863 esac ;;
1864 esac
1865 ac_abs_top_builddir=$ac_pwd
1866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867 # for backward compatibility:
1868 ac_top_builddir=$ac_top_build_prefix
1870 case $srcdir in
1871 .) # We are building in place.
1872 ac_srcdir=.
1873 ac_top_srcdir=$ac_top_builddir_sub
1874 ac_abs_top_srcdir=$ac_pwd ;;
1875 [\\/]* | ?:[\\/]* ) # Absolute name.
1876 ac_srcdir=$srcdir$ac_dir_suffix;
1877 ac_top_srcdir=$srcdir
1878 ac_abs_top_srcdir=$srcdir ;;
1879 *) # Relative name.
1880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881 ac_top_srcdir=$ac_top_build_prefix$srcdir
1882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1883 esac
1884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1886 cd "$ac_dir" || { ac_status=$?; continue; }
1887 # Check for guested configure.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1889 echo &&
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1894 else
1895 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896 fi || ac_status=$?
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1898 done
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1903 cat <<\_ACEOF
1904 libjava configure version-unused
1905 generated by GNU Autoconf 2.64
1907 Copyright (C) 2009 Free Software Foundation, Inc.
1908 This configure script is free software; the Free Software Foundation
1909 gives unlimited permission to copy, distribute and modify it.
1910 _ACEOF
1911 exit
1914 ## ------------------------ ##
1915 ## Autoconf initialization. ##
1916 ## ------------------------ ##
1918 # ac_fn_c_try_compile LINENO
1919 # --------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext
1925 if { { ac_try="$ac_compile"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext; then :
1944 ac_retval=0
1945 else
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1949 ac_retval=1
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952 return $ac_retval
1954 } # ac_fn_c_try_compile
1956 # ac_fn_cxx_try_compile LINENO
1957 # ----------------------------
1958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_compile ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext
1963 if { { ac_try="$ac_compile"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_compile") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest.$ac_objext; then :
1982 ac_retval=0
1983 else
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1987 ac_retval=1
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 return $ac_retval
1992 } # ac_fn_cxx_try_compile
1994 # ac_fn_c_try_link LINENO
1995 # -----------------------
1996 # Try to link conftest.$ac_ext, and return whether this succeeded.
1997 ac_fn_c_try_link ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 rm -f conftest.$ac_objext conftest$ac_exeext
2001 if { { ac_try="$ac_link"
2002 case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_link") 2>conftest.err
2009 ac_status=$?
2010 if test -s conftest.err; then
2011 grep -v '^ *+' conftest.err >conftest.er1
2012 cat conftest.er1 >&5
2013 mv -f conftest.er1 conftest.err
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && {
2017 test -z "$ac_c_werror_flag" ||
2018 test ! -s conftest.err
2019 } && test -s conftest$ac_exeext && {
2020 test "$cross_compiling" = yes ||
2021 $as_test_x conftest$ac_exeext
2022 }; then :
2023 ac_retval=0
2024 else
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 ac_retval=1
2030 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2031 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2032 # interfere with the next link command; also delete a directory that is
2033 # left behind by Apple's compiler. We do this before executing the actions.
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 return $ac_retval
2038 } # ac_fn_c_try_link
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2055 #include <$2>
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$3=yes"
2059 else
2060 eval "$3=no"
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_c_check_header_compile
2071 # ac_fn_c_try_cpp LINENO
2072 # ----------------------
2073 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2074 ac_fn_c_try_cpp ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_cpp conftest.$ac_ext"
2078 case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2085 ac_status=$?
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } >/dev/null && {
2093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2094 test ! -s conftest.err
2095 }; then :
2096 ac_retval=0
2097 else
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2101 ac_retval=1
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 return $ac_retval
2106 } # ac_fn_c_try_cpp
2108 # ac_fn_c_try_run LINENO
2109 # ----------------------
2110 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2111 # that executables *can* be run.
2112 ac_fn_c_try_run ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_link"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_link") 2>&5
2123 ac_status=$?
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2126 { { case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129 esac
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_try") 2>&5
2133 ac_status=$?
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; }; }; then :
2136 ac_retval=0
2137 else
2138 $as_echo "$as_me: program exited with status $ac_status" >&5
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=$ac_status
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2148 } # ac_fn_c_try_run
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2159 $as_echo_n "(cached) " >&6
2160 else
2161 if test x$gcc_no_link = xyes; then
2162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2168 #define $2 innocuous_$2
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char $2 (); below.
2172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2173 <limits.h> exists even on freestanding compilers. */
2175 #ifdef __STDC__
2176 # include <limits.h>
2177 #else
2178 # include <assert.h>
2179 #endif
2181 #undef $2
2183 /* Override any GCC internal prototype to avoid an error.
2184 Use char because int might match the return type of a GCC
2185 builtin and then its argument prototype would still apply. */
2186 #ifdef __cplusplus
2187 extern "C"
2188 #endif
2189 char $2 ();
2190 /* The GNU C library defines this for functions which it implements
2191 to always fail with ENOSYS. Some functions are actually named
2192 something starting with __ and the normal name is an alias. */
2193 #if defined __stub_$2 || defined __stub___$2
2194 choke me
2195 #endif
2198 main ()
2200 return $2 ();
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_link "$LINENO"; then :
2206 eval "$3=yes"
2207 else
2208 eval "$3=no"
2210 rm -f core conftest.err conftest.$ac_objext \
2211 conftest$ac_exeext conftest.$ac_ext
2213 eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 } # ac_fn_c_check_func
2220 # ac_fn_cxx_try_cpp LINENO
2221 # ------------------------
2222 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_cxx_try_cpp ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 if { { ac_try="$ac_cpp conftest.$ac_ext"
2227 case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2234 ac_status=$?
2235 if test -s conftest.err; then
2236 grep -v '^ *+' conftest.err >conftest.er1
2237 cat conftest.er1 >&5
2238 mv -f conftest.er1 conftest.err
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; } >/dev/null && {
2242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2243 test ! -s conftest.err
2244 }; then :
2245 ac_retval=0
2246 else
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 ac_retval=1
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 return $ac_retval
2255 } # ac_fn_cxx_try_cpp
2257 # ac_fn_cxx_try_link LINENO
2258 # -------------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_link ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext conftest$ac_exeext
2264 if { { ac_try="$ac_link"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest$ac_exeext && {
2283 test "$cross_compiling" = yes ||
2284 $as_test_x conftest$ac_exeext
2285 }; then :
2286 ac_retval=0
2287 else
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 ac_retval=1
2293 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2294 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2295 # interfere with the next link command; also delete a directory that is
2296 # left behind by Apple's compiler. We do this before executing the actions.
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299 return $ac_retval
2301 } # ac_fn_cxx_try_link
2303 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2304 # -------------------------------------------------------
2305 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2306 # the include files in INCLUDES and setting the cache variable VAR
2307 # accordingly.
2308 ac_fn_c_check_header_mongrel ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2317 eval ac_res=\$$3
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320 else
2321 # Is the header compilable?
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2323 $as_echo_n "checking $2 usability... " >&6; }
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2327 #include <$2>
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 ac_header_compiler=yes
2331 else
2332 ac_header_compiler=no
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2336 $as_echo "$ac_header_compiler" >&6; }
2338 # Is the header present?
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2340 $as_echo_n "checking $2 presence... " >&6; }
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2343 #include <$2>
2344 _ACEOF
2345 if ac_fn_c_try_cpp "$LINENO"; then :
2346 ac_header_preproc=yes
2347 else
2348 ac_header_preproc=no
2350 rm -f conftest.err conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2352 $as_echo "$ac_header_preproc" >&6; }
2354 # So? What about this header?
2355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2356 yes:no: )
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2358 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2362 no:yes:* )
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2364 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2366 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2368 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2370 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2372 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2374 esac
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376 $as_echo_n "checking for $2... " >&6; }
2377 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 eval "$3=\$ac_header_compiler"
2382 eval ac_res=\$$3
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_c_check_header_mongrel
2390 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2391 # ----------------------------------------------------
2392 # Tries to find if the field MEMBER exists in type AGGR, after including
2393 # INCLUDES, setting cache variable VAR accordingly.
2394 ac_fn_c_check_member ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2398 $as_echo_n "checking for $2.$3... " >&6; }
2399 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2406 main ()
2408 static $2 ac_aggr;
2409 if (ac_aggr.$3)
2410 return 0;
2412 return 0;
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 eval "$4=yes"
2417 else
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2422 main ()
2424 static $2 ac_aggr;
2425 if (sizeof ac_aggr.$3)
2426 return 0;
2428 return 0;
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 eval "$4=yes"
2433 else
2434 eval "$4=no"
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 eval ac_res=\$$4
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_member
2447 # ac_fn_c_check_decl LINENO SYMBOL VAR
2448 # ------------------------------------
2449 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2450 ac_fn_c_check_decl ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2454 $as_echo_n "checking whether $2 is declared... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2462 main ()
2464 #ifndef $2
2465 (void) $2;
2466 #endif
2469 return 0;
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473 eval "$3=yes"
2474 else
2475 eval "$3=no"
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_decl
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2490 # computed
2491 ac_fn_c_compute_int ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 if test "$cross_compiling" = yes; then
2495 # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2500 main ()
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2503 test_array [0] = 0
2506 return 0;
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510 ac_lo=0 ac_mid=0
2511 while :; do
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2516 main ()
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2519 test_array [0] = 0
2522 return 0;
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_hi=$ac_mid; break
2527 else
2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529 if test $ac_lo -le $ac_mid; then
2530 ac_lo= ac_hi=
2531 break
2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 done
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 main ()
2544 static int test_array [1 - 2 * !(($2) < 0)];
2545 test_array [0] = 0
2548 return 0;
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552 ac_hi=-1 ac_mid=-1
2553 while :; do
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 main ()
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2561 test_array [0] = 0
2564 return 0;
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_lo=$ac_mid; break
2569 else
2570 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571 if test $ac_mid -le $ac_hi; then
2572 ac_lo= ac_hi=
2573 break
2575 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 done
2579 else
2580 ac_lo= ac_hi=
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2592 main ()
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 test_array [0] = 0
2598 return 0;
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602 ac_hi=$ac_mid
2603 else
2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 case $ac_lo in #((
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2610 '') ac_retval=1 ;;
2611 esac
2612 else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2618 #include <stdio.h>
2619 #include <stdlib.h>
2621 main ()
2624 FILE *f = fopen ("conftest.val", "w");
2625 if (! f)
2626 return 1;
2627 if (($2) < 0)
2629 long int i = longval ();
2630 if (i != ($2))
2631 return 1;
2632 fprintf (f, "%ld", i);
2634 else
2636 unsigned long int i = ulongval ();
2637 if (i != ($2))
2638 return 1;
2639 fprintf (f, "%lu", i);
2641 /* Do not output a trailing newline, as this causes \r\n confusion
2642 on some platforms. */
2643 return ferror (f) || fclose (f) != 0;
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_run "$LINENO"; then :
2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2651 else
2652 ac_retval=1
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655 conftest.$ac_objext conftest.beam conftest.$ac_ext
2656 rm -f conftest.val
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 return $ac_retval
2662 } # ac_fn_c_compute_int
2664 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2665 # -------------------------------------------
2666 # Tests whether TYPE exists after having included INCLUDES, setting cache
2667 # variable VAR accordingly.
2668 ac_fn_c_check_type ()
2670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2672 $as_echo_n "checking for $2... " >&6; }
2673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 eval "$3=no"
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2681 main ()
2683 if (sizeof ($2))
2684 return 0;
2686 return 0;
2688 _ACEOF
2689 if ac_fn_c_try_compile "$LINENO"; then :
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2694 main ()
2696 if (sizeof (($2)))
2697 return 0;
2699 return 0;
2701 _ACEOF
2702 if ac_fn_c_try_compile "$LINENO"; then :
2704 else
2705 eval "$3=yes"
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 eval ac_res=\$$3
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 $as_echo "$ac_res" >&6; }
2714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2716 } # ac_fn_c_check_type
2717 cat >config.log <<_ACEOF
2718 This file contains any messages produced by compilers while
2719 running configure, to aid debugging if configure makes a mistake.
2721 It was created by libjava $as_me version-unused, which was
2722 generated by GNU Autoconf 2.64. Invocation command line was
2724 $ $0 $@
2726 _ACEOF
2727 exec 5>>config.log
2729 cat <<_ASUNAME
2730 ## --------- ##
2731 ## Platform. ##
2732 ## --------- ##
2734 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2735 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2736 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2737 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2738 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2740 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2741 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2743 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2744 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2745 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2746 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2747 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2748 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2749 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2751 _ASUNAME
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 $as_echo "PATH: $as_dir"
2759 done
2760 IFS=$as_save_IFS
2762 } >&5
2764 cat >&5 <<_ACEOF
2767 ## ----------- ##
2768 ## Core tests. ##
2769 ## ----------- ##
2771 _ACEOF
2774 # Keep a trace of the command line.
2775 # Strip out --no-create and --no-recursion so they do not pile up.
2776 # Strip out --silent because we don't want to record it for future runs.
2777 # Also quote any args containing shell meta-characters.
2778 # Make two passes to allow for proper duplicate-argument suppression.
2779 ac_configure_args=
2780 ac_configure_args0=
2781 ac_configure_args1=
2782 ac_must_keep_next=false
2783 for ac_pass in 1 2
2785 for ac_arg
2787 case $ac_arg in
2788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2790 | -silent | --silent | --silen | --sile | --sil)
2791 continue ;;
2792 *\'*)
2793 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2794 esac
2795 case $ac_pass in
2796 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2798 as_fn_append ac_configure_args1 " '$ac_arg'"
2799 if test $ac_must_keep_next = true; then
2800 ac_must_keep_next=false # Got value, back to normal.
2801 else
2802 case $ac_arg in
2803 *=* | --config-cache | -C | -disable-* | --disable-* \
2804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2806 | -with-* | --with-* | -without-* | --without-* | --x)
2807 case "$ac_configure_args0 " in
2808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2809 esac
2811 -* ) ac_must_keep_next=true ;;
2812 esac
2814 as_fn_append ac_configure_args " '$ac_arg'"
2816 esac
2817 done
2818 done
2819 { ac_configure_args0=; unset ac_configure_args0;}
2820 { ac_configure_args1=; unset ac_configure_args1;}
2822 # When interrupted or exit'd, cleanup temporary files, and complete
2823 # config.log. We remove comments because anyway the quotes in there
2824 # would cause problems or look ugly.
2825 # WARNING: Use '\'' to represent an apostrophe within the trap.
2826 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2827 trap 'exit_status=$?
2828 # Save into config.log some information that might help in debugging.
2830 echo
2832 cat <<\_ASBOX
2833 ## ---------------- ##
2834 ## Cache variables. ##
2835 ## ---------------- ##
2836 _ASBOX
2837 echo
2838 # The following way of writing the cache mishandles newlines in values,
2840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2841 eval ac_val=\$$ac_var
2842 case $ac_val in #(
2843 *${as_nl}*)
2844 case $ac_var in #(
2845 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2846 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2847 esac
2848 case $ac_var in #(
2849 _ | IFS | as_nl) ;; #(
2850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2851 *) { eval $ac_var=; unset $ac_var;} ;;
2852 esac ;;
2853 esac
2854 done
2855 (set) 2>&1 |
2856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2857 *${as_nl}ac_space=\ *)
2858 sed -n \
2859 "s/'\''/'\''\\\\'\'''\''/g;
2860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2861 ;; #(
2863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2865 esac |
2866 sort
2868 echo
2870 cat <<\_ASBOX
2871 ## ----------------- ##
2872 ## Output variables. ##
2873 ## ----------------- ##
2874 _ASBOX
2875 echo
2876 for ac_var in $ac_subst_vars
2878 eval ac_val=\$$ac_var
2879 case $ac_val in
2880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2881 esac
2882 $as_echo "$ac_var='\''$ac_val'\''"
2883 done | sort
2884 echo
2886 if test -n "$ac_subst_files"; then
2887 cat <<\_ASBOX
2888 ## ------------------- ##
2889 ## File substitutions. ##
2890 ## ------------------- ##
2891 _ASBOX
2892 echo
2893 for ac_var in $ac_subst_files
2895 eval ac_val=\$$ac_var
2896 case $ac_val in
2897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898 esac
2899 $as_echo "$ac_var='\''$ac_val'\''"
2900 done | sort
2901 echo
2904 if test -s confdefs.h; then
2905 cat <<\_ASBOX
2906 ## ----------- ##
2907 ## confdefs.h. ##
2908 ## ----------- ##
2909 _ASBOX
2910 echo
2911 cat confdefs.h
2912 echo
2914 test "$ac_signal" != 0 &&
2915 $as_echo "$as_me: caught signal $ac_signal"
2916 $as_echo "$as_me: exit $exit_status"
2917 } >&5
2918 rm -f core *.core core.conftest.* &&
2919 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2920 exit $exit_status
2922 for ac_signal in 1 2 13 15; do
2923 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2924 done
2925 ac_signal=0
2927 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2928 rm -f -r conftest* confdefs.h
2930 $as_echo "/* confdefs.h */" > confdefs.h
2932 # Predefined preprocessor variables.
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_NAME "$PACKAGE_NAME"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2940 _ACEOF
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2944 _ACEOF
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_STRING "$PACKAGE_STRING"
2948 _ACEOF
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2952 _ACEOF
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_URL "$PACKAGE_URL"
2956 _ACEOF
2959 # Let the site file select an alternate cache file if it wants to.
2960 # Prefer an explicitly selected file to automatically selected ones.
2961 ac_site_file1=NONE
2962 ac_site_file2=NONE
2963 if test -n "$CONFIG_SITE"; then
2964 ac_site_file1=$CONFIG_SITE
2965 elif test "x$prefix" != xNONE; then
2966 ac_site_file1=$prefix/share/config.site
2967 ac_site_file2=$prefix/etc/config.site
2968 else
2969 ac_site_file1=$ac_default_prefix/share/config.site
2970 ac_site_file2=$ac_default_prefix/etc/config.site
2972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2974 test "x$ac_site_file" = xNONE && continue
2975 if test -r "$ac_site_file"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2978 sed 's/^/| /' "$ac_site_file" >&5
2979 . "$ac_site_file"
2981 done
2983 if test -r "$cache_file"; then
2984 # Some versions of bash will fail to source /dev/null (special
2985 # files actually), so we avoid doing that.
2986 if test -f "$cache_file"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2988 $as_echo "$as_me: loading cache $cache_file" >&6;}
2989 case $cache_file in
2990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2991 *) . "./$cache_file";;
2992 esac
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2996 $as_echo "$as_me: creating cache $cache_file" >&6;}
2997 >$cache_file
3000 # Check that the precious variables saved in the cache have kept the same
3001 # value.
3002 ac_cache_corrupted=false
3003 for ac_var in $ac_precious_vars; do
3004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3005 eval ac_new_set=\$ac_env_${ac_var}_set
3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3007 eval ac_new_val=\$ac_env_${ac_var}_value
3008 case $ac_old_set,$ac_new_set in
3009 set,)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3012 ac_cache_corrupted=: ;;
3013 ,set)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3016 ac_cache_corrupted=: ;;
3017 ,);;
3019 if test "x$ac_old_val" != "x$ac_new_val"; then
3020 # differences in whitespace do not lead to failure.
3021 ac_old_val_w=`echo x $ac_old_val`
3022 ac_new_val_w=`echo x $ac_new_val`
3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3026 ac_cache_corrupted=:
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3030 eval $ac_var=\$ac_old_val
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3036 fi;;
3037 esac
3038 # Pass precious variables to config.status.
3039 if test "$ac_new_set" = set; then
3040 case $ac_new_val in
3041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3042 *) ac_arg=$ac_var=$ac_new_val ;;
3043 esac
3044 case " $ac_configure_args " in
3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3047 esac
3049 done
3050 if $ac_cache_corrupted; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3055 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3057 ## -------------------- ##
3058 ## Main body of script. ##
3059 ## -------------------- ##
3061 ac_ext=c
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 ac_aux_dir=
3075 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3076 for ac_t in install-sh install.sh shtool; do
3077 if test -f "$ac_dir/$ac_t"; then
3078 ac_aux_dir=$ac_dir
3079 ac_install_sh="$ac_aux_dir/$ac_t -c"
3080 break 2
3082 done
3083 done
3084 if test -z "$ac_aux_dir"; then
3085 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3088 # These three variables are undocumented and unsupported,
3089 # and are intended to be withdrawn in a future Autoconf release.
3090 # They can cause serious problems if a builder's source tree is in a directory
3091 # whose full name contains unusual characters.
3092 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3093 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3094 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3097 # Make sure we can run config.sub.
3098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3099 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3102 $as_echo_n "checking build system type... " >&6; }
3103 if test "${ac_cv_build+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 ac_build_alias=$build_alias
3107 test "x$ac_build_alias" = x &&
3108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3109 test "x$ac_build_alias" = x &&
3110 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3112 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3116 $as_echo "$ac_cv_build" >&6; }
3117 case $ac_cv_build in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3120 esac
3121 build=$ac_cv_build
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_build
3124 shift
3125 build_cpu=$1
3126 build_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 build_os=$*
3131 IFS=$ac_save_IFS
3132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3135 case ${build_alias} in
3136 "") build_noncanonical=${build} ;;
3137 *) build_noncanonical=${build_alias} ;;
3138 esac
3140 case ${host_alias} in
3141 "") host_noncanonical=${build_noncanonical} ;;
3142 *) host_noncanonical=${host_alias} ;;
3143 esac
3145 case ${target_alias} in
3146 "") target_noncanonical=${host_noncanonical} ;;
3147 *) target_noncanonical=${target_alias} ;;
3148 esac
3151 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3152 # have matching libraries, they should use host libraries: Makefile.tpl
3153 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3154 # However, they still use the build modules, because the corresponding
3155 # host modules (e.g. bison) are only built for the host when bootstrap
3156 # finishes. So:
3157 # - build_subdir is where we find build modules, and never changes.
3158 # - build_libsubdir is where we find build libraries, and can be overridden.
3160 # Prefix 'build-' so this never conflicts with target_subdir.
3161 build_subdir="build-${build_noncanonical}"
3163 # Check whether --with-build-libsubdir was given.
3164 if test "${with_build_libsubdir+set}" = set; then :
3165 withval=$with_build_libsubdir; build_libsubdir="$withval"
3166 else
3167 build_libsubdir="$build_subdir"
3170 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3171 if ( test $srcdir = . && test -d gcc ) \
3172 || test -d $srcdir/../host-${host_noncanonical}; then
3173 host_subdir="host-${host_noncanonical}"
3174 else
3175 host_subdir=.
3177 # No prefix.
3178 target_subdir=${target_noncanonical}
3181 # We use these options to decide which functions to include.
3183 # Check whether --with-target-subdir was given.
3184 if test "${with_target_subdir+set}" = set; then :
3185 withval=$with_target_subdir;
3189 # We may get other options which we don't document:
3190 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3192 # Find the rest of the source tree framework.
3193 # Default to --enable-multilib
3194 # Check whether --enable-multilib was given.
3195 if test "${enable_multilib+set}" = set; then :
3196 enableval=$enable_multilib; case "$enableval" in
3197 yes) multilib=yes ;;
3198 no) multilib=no ;;
3199 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3200 esac
3201 else
3202 multilib=yes
3206 # We may get other options which we leave undocumented:
3207 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3208 # See config-ml.in if you want the gory details.
3210 if test "$srcdir" = "."; then
3211 if test "$with_target_subdir" != "."; then
3212 multi_basedir="$srcdir/$with_multisrctop../.."
3213 else
3214 multi_basedir="$srcdir/$with_multisrctop.."
3216 else
3217 multi_basedir="$srcdir/.."
3221 # Even if the default multilib is not a cross compilation,
3222 # it may be that some of the other multilibs are.
3223 if test $cross_compiling = no && test $multilib = yes \
3224 && test "x${with_multisubdir}" != x ; then
3225 cross_compiling=maybe
3228 ac_config_commands="$ac_config_commands default-1"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3232 $as_echo_n "checking host system type... " >&6; }
3233 if test "${ac_cv_host+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test "x$host_alias" = x; then
3237 ac_cv_host=$ac_cv_build
3238 else
3239 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3240 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3245 $as_echo "$ac_cv_host" >&6; }
3246 case $ac_cv_host in
3247 *-*-*) ;;
3248 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3249 esac
3250 host=$ac_cv_host
3251 ac_save_IFS=$IFS; IFS='-'
3252 set x $ac_cv_host
3253 shift
3254 host_cpu=$1
3255 host_vendor=$2
3256 shift; shift
3257 # Remember, the first character of IFS is used to create $*,
3258 # except with old shells:
3259 host_os=$*
3260 IFS=$ac_save_IFS
3261 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3265 $as_echo_n "checking target system type... " >&6; }
3266 if test "${ac_cv_target+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test "x$target_alias" = x; then
3270 ac_cv_target=$ac_cv_host
3271 else
3272 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3273 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3278 $as_echo "$ac_cv_target" >&6; }
3279 case $ac_cv_target in
3280 *-*-*) ;;
3281 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3282 esac
3283 target=$ac_cv_target
3284 ac_save_IFS=$IFS; IFS='-'
3285 set x $ac_cv_target
3286 shift
3287 target_cpu=$1
3288 target_vendor=$2
3289 shift; shift
3290 # Remember, the first character of IFS is used to create $*,
3291 # except with old shells:
3292 target_os=$*
3293 IFS=$ac_save_IFS
3294 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3297 # The aliases save the names the user supplied, while $host etc.
3298 # will get canonicalized.
3299 test -n "$target_alias" &&
3300 test "$program_prefix$program_suffix$program_transform_name" = \
3301 NONENONEs,x,x, &&
3302 program_prefix=${target_alias}-
3304 case ${build_alias} in
3305 "") build_noncanonical=${build} ;;
3306 *) build_noncanonical=${build_alias} ;;
3307 esac
3309 case ${target_alias} in
3310 "") target_noncanonical=${host_noncanonical} ;;
3311 *) target_noncanonical=${target_alias} ;;
3312 esac
3317 # This works around the fact that libtool configuration may change LD
3318 # for this particular configuration, but some shells, instead of
3319 # keeping the changes in LD private, export them just because LD is
3320 # exported.
3321 ORIGINAL_LD_FOR_MULTILIBS=$LD
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3324 $as_echo_n "checking whether ln -s works... " >&6; }
3325 LN_S=$as_ln_s
3326 if test "$LN_S" = "ln -s"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3331 $as_echo "no, using $LN_S" >&6; }
3335 # This works around an automake problem.
3336 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3340 # Check whether --with-cross-host was given.
3341 if test "${with_cross_host+set}" = set; then :
3342 withval=$with_cross_host;
3347 # Check whether --with-newlib was given.
3348 if test "${with_newlib+set}" = set; then :
3349 withval=$with_newlib;
3353 # Check whether --enable-version-specific-runtime-libs was given.
3354 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3355 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3356 yes) version_specific_libs=yes ;;
3357 no) version_specific_libs=no ;;
3358 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3359 esac
3360 else
3361 version_specific_libs=no
3366 # Check whether --enable-browser-plugin was given.
3367 if test "${enable_browser_plugin+set}" = set; then :
3368 enableval=$enable_browser_plugin; case "$enableval" in
3369 yes) browser_plugin_enabled=yes ;;
3370 no) browser_plugin_enabled=no ;;
3371 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3372 esac
3373 else
3374 browser_plugin_enabled=no
3379 # Check whether --enable-gconf-peer was given.
3380 if test "${enable_gconf_peer+set}" = set; then :
3381 enableval=$enable_gconf_peer; case "$enableval" in
3382 yes) gconf_enabled=yes ;;
3383 no) gconf_enabled=no ;;
3384 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3385 esac
3386 else
3387 gconf_enabled=no
3393 # Check whether --with-antlr-jar was given.
3394 if test "${with_antlr_jar+set}" = set; then :
3395 withval=$with_antlr_jar;
3396 ANTLR_JAR=$withval
3398 else
3400 ANTLR_JAR=
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3406 $as_echo_n "checking for antlr.jar... " >&6; }
3407 if test "x$ANTLR_JAR" = x; then
3408 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3409 /usr/share/antlr/lib /usr/share/java /usr/lib;
3411 if test -f "$antlr_lib_home/antlr.jar"; then
3412 # FIXME: version check for antlr needed without using a VM
3413 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3414 break
3416 done
3417 if test "x$ANTLR_JAR" = x; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3419 $as_echo "not found" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3422 $as_echo "$ANTLR_JAR" >&6; }
3424 else
3425 if test -f "${ANTLR_JAR}"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3427 $as_echo "$ANTLR_JAR" >&6; }
3428 else
3429 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3434 # Check whether --enable-gjdoc was given.
3435 if test "${enable_gjdoc+set}" = set; then :
3436 enableval=$enable_gjdoc; case "${enableval}" in
3437 yes) BUILD_GJDOC=yes ;;
3438 no) BUILD_GJDOC=no ;;
3439 *) BUILD_GJDOC=yes ;;
3440 esac
3441 else
3442 BUILD_GJDOC=maybe
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3447 $as_echo_n "checking whether to build gjdoc... " >&6; }
3448 if test "x$BUILD_GJDOC" = xmaybe; then
3449 if test -f "${ANTLR_JAR}"; then
3450 BUILD_GJDOC=yes
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3452 $as_echo "yes" >&6; }
3453 else
3454 BUILD_GJDOC=no
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3456 $as_echo "no, antlr.jar not found" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3460 $as_echo "$BUILD_GJDOC" >&6; }
3462 if test "x${BUILD_GJDOC}" = xyes; then
3463 CREATE_GJDOC_TRUE=
3464 CREATE_GJDOC_FALSE='#'
3465 else
3466 CREATE_GJDOC_TRUE='#'
3467 CREATE_GJDOC_FALSE=
3471 # Check whether --enable-java-maintainer-mode was given.
3472 if test "${enable_java_maintainer_mode+set}" = set; then :
3473 enableval=$enable_java_maintainer_mode;
3476 if test "$enable_java_maintainer_mode" = yes; then
3477 JAVA_MAINTAINER_MODE_TRUE=
3478 JAVA_MAINTAINER_MODE_FALSE='#'
3479 else
3480 JAVA_MAINTAINER_MODE_TRUE='#'
3481 JAVA_MAINTAINER_MODE_FALSE=
3485 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3488 # (1) We use an abnormal CXX (without library references), so we
3489 # must cache it under a different name.
3490 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3491 # the non-multilib-adjusted value will be used in multilibs.
3492 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3493 # (4) As another side effect, automake doesn't automatically include them
3494 # in Makefile.in.
3495 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3496 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3497 # used in later tests. This may not be necessary in libjava; I don't know.
3500 save_CXXFLAGS="$CXXFLAGS"
3501 CXXFLAGS="$CXXFLAGS -fno-builtin"
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3529 done
3530 done
3531 IFS=$as_save_IFS
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$ac_cv_prog_CC"; then
3547 ac_ct_CC=$CC
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$ac_ct_CC"; then
3556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_CC="gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3569 done
3570 done
3571 IFS=$as_save_IFS
3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3584 if test "x$ac_ct_CC" = x; then
3585 CC=""
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CC=$ac_ct_CC
3595 else
3596 CC="$ac_cv_prog_CC"
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_CC="${ac_tool_prefix}cc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 ac_prog_rejected=no
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660 ac_prog_rejected=yes
3661 continue
3663 ac_cv_prog_CC="cc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3671 if test $ac_prog_rejected = yes; then
3672 # We found a bogon in the path, so make sure we never use it.
3673 set dummy $ac_cv_prog_CC
3674 shift
3675 if test $# != 0; then
3676 # We chose a different compiler from the bogus one.
3677 # However, it has the same basename, so the bogon will be chosen
3678 # first if we set CC to just the basename; use the full file name.
3679 shift
3680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog in cl.exe
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$CC" && break
3738 done
3740 if test -z "$CC"; then
3741 ac_ct_CC=$CC
3742 for ac_prog in cl.exe
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CC="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3767 IFS=$as_save_IFS
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$ac_ct_CC" && break
3782 done
3784 if test "x$ac_ct_CC" = x; then
3785 CC=""
3786 else
3787 case $cross_compiling:$ac_tool_warned in
3788 yes:)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3792 esac
3793 CC=$ac_ct_CC
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error "no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details." "$LINENO" 5; }
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3824 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3834 main ()
3838 return 0;
3840 _ACEOF
3841 # FIXME: Cleanup?
3842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3843 (eval $ac_link) 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 gcc_no_link=no
3848 else
3849 gcc_no_link=yes
3851 if test x$gcc_no_link = xyes; then
3852 # Setting cross_compile will disable run tests; it will
3853 # also disable AC_CHECK_FILE but that's generally
3854 # correct if we can't link.
3855 cross_compiling=yes
3856 EXEEXT=
3857 else
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3862 main ()
3866 return 0;
3868 _ACEOF
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3873 # of exeext.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3881 ac_rmfiles=
3882 for ac_file in $ac_files
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3887 esac
3888 done
3889 rm -f $ac_rmfiles
3891 if { { ac_try="$ac_link_default"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3906 # Autoconf.
3907 for ac_file in $ac_files ''
3909 test -f "$ac_file" || continue
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3913 [ab].out )
3914 # We found the default executable, but exeext='' is most
3915 # certainly right.
3916 break;;
3917 *.* )
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3919 then :; else
3920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3926 # actually working.
3927 break;;
3929 break;;
3930 esac
3931 done
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3934 else
3935 ac_file=''
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3938 $as_echo "$ac_file" >&6; }
3939 if test -z "$ac_file"; then :
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 { as_fn_set_status 77
3946 as_fn_error "C compiler cannot create executables
3947 See \`config.log' for more details." "$LINENO" 5; }; }
3949 ac_exeext=$ac_cv_exeext
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3954 $as_echo_n "checking whether the C compiler works... " >&6; }
3955 # If not cross compiling, check that we can run a simple program.
3956 if test "$cross_compiling" != yes; then
3957 if { ac_try='./$ac_file'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3968 cross_compiling=no
3969 else
3970 if test "$cross_compiling" = maybe; then
3971 cross_compiling=yes
3972 else
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error "cannot run C compiled programs.
3976 If you meant to cross compile, use \`--host'.
3977 See \`config.log' for more details." "$LINENO" 5; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 $as_echo "yes" >&6; }
3984 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3985 ac_clean_files=$ac_clean_files_save
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3989 $as_echo_n "checking whether we are cross compiling... " >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3991 $as_echo "$cross_compiling" >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 $as_echo_n "checking for suffix of executables... " >&6; }
3995 if { { ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4003 ac_status=$?
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; then :
4006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4009 # `rm'.
4010 for ac_file in conftest.exe conftest conftest.*; do
4011 test -f "$ac_file" || continue
4012 case $ac_file in
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015 break;;
4016 * ) break;;
4017 esac
4018 done
4019 else
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details." "$LINENO" 5; }
4025 rm -f conftest$ac_cv_exeext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 $as_echo "$ac_cv_exeext" >&6; }
4029 rm -f conftest.$ac_ext
4030 EXEEXT=$ac_cv_exeext
4031 ac_exeext=$EXEEXT
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4034 $as_echo_n "checking for suffix of object files... " >&6; }
4035 if test "${ac_cv_objext+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 rm -f conftest.o conftest.obj
4050 if { { ac_try="$ac_compile"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compile") 2>&5
4058 ac_status=$?
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }; then :
4061 for ac_file in conftest.o conftest.obj conftest.*; do
4062 test -f "$ac_file" || continue;
4063 case $ac_file in
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066 break;;
4067 esac
4068 done
4069 else
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "cannot compute suffix of object files: cannot compile
4076 See \`config.log' for more details." "$LINENO" 5; }
4078 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4081 $as_echo "$ac_cv_objext" >&6; }
4082 OBJEXT=$ac_cv_objext
4083 ac_objext=$OBJEXT
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 main ()
4095 #ifndef __GNUC__
4096 choke me
4097 #endif
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_compiler_gnu=yes
4105 else
4106 ac_compiler_gnu=no
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114 if test $ac_compiler_gnu = yes; then
4115 GCC=yes
4116 else
4117 GCC=
4119 ac_test_CFLAGS=${CFLAGS+set}
4120 ac_save_CFLAGS=$CFLAGS
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4123 if test "${ac_cv_prog_cc_g+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 ac_save_c_werror_flag=$ac_c_werror_flag
4127 ac_c_werror_flag=yes
4128 ac_cv_prog_cc_g=no
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4143 else
4144 CFLAGS=""
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main ()
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4158 else
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4165 main ()
4169 return 0;
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <stdarg.h>
4209 #include <stdio.h>
4210 #include <sys/types.h>
4211 #include <sys/stat.h>
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4216 char **p;
4217 int i;
4219 return p[i];
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4223 char *s;
4224 va_list v;
4225 va_start (v,p);
4226 s = g (p, va_arg (v,int));
4227 va_end (v);
4228 return s;
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4242 #define FOO(x) 'x'
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 int argc;
4250 char **argv;
4252 main ()
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4256 return 0;
4258 _ACEOF
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4268 done
4269 rm -f conftest.$ac_ext
4270 CC=$ac_save_CC
4273 # AC_CACHE_VAL
4274 case "x$ac_cv_prog_cc_c89" in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4278 xno)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285 esac
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 ac_ext=cpp
4297 ac_cpp='$CXXCPP $CPPFLAGS'
4298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4301 if test -z "$CXX"; then
4302 if test -n "$CCC"; then
4303 CXX=$CCC
4304 else
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if test "${ac_cv_prog_CXX+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$CXX"; then
4316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 CXX=$ac_cv_prog_CXX
4336 if test -n "$CXX"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4338 $as_echo "$CXX" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$CXX" && break
4346 done
4348 if test -z "$CXX"; then
4349 ac_ct_CXX=$CXX
4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$ac_ct_CXX"; then
4360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_ac_ct_CXX="$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4380 if test -n "$ac_ct_CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4382 $as_echo "$ac_ct_CXX" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$ac_ct_CXX" && break
4390 done
4392 if test "x$ac_ct_CXX" = x; then
4393 CXX="g++"
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 CXX=$ac_ct_CXX
4407 # Provide some information about the compiler.
4408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4409 set X $ac_compile
4410 ac_compiler=$2
4411 for ac_option in --version -v -V -qversion; do
4412 { { ac_try="$ac_compiler $ac_option >&5"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4420 ac_status=$?
4421 if test -s conftest.err; then
4422 sed '10a\
4423 ... rest of stderr output deleted ...
4424 10q' conftest.err >conftest.er1
4425 cat conftest.er1 >&5
4426 rm -f conftest.er1 conftest.err
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4430 done
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4433 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4434 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4441 main ()
4443 #ifndef __GNUC__
4444 choke me
4445 #endif
4448 return 0;
4450 _ACEOF
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4452 ac_compiler_gnu=yes
4453 else
4454 ac_compiler_gnu=no
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4462 if test $ac_compiler_gnu = yes; then
4463 GXX=yes
4464 else
4465 GXX=
4467 ac_test_CXXFLAGS=${CXXFLAGS+set}
4468 ac_save_CXXFLAGS=$CXXFLAGS
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4471 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4475 ac_cxx_werror_flag=yes
4476 ac_cv_prog_cxx_g=no
4477 CXXFLAGS="-g"
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4482 main ()
4486 return 0;
4488 _ACEOF
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_cv_prog_cxx_g=yes
4491 else
4492 CXXFLAGS=""
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4497 main ()
4501 return 0;
4503 _ACEOF
4504 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 else
4507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4508 CXXFLAGS="-g"
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4513 main ()
4517 return 0;
4519 _ACEOF
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4521 ac_cv_prog_cxx_g=yes
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4531 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4532 if test "$ac_test_CXXFLAGS" = set; then
4533 CXXFLAGS=$ac_save_CXXFLAGS
4534 elif test $ac_cv_prog_cxx_g = yes; then
4535 if test "$GXX" = yes; then
4536 CXXFLAGS="-g -O2"
4537 else
4538 CXXFLAGS="-g"
4540 else
4541 if test "$GXX" = yes; then
4542 CXXFLAGS="-O2"
4543 else
4544 CXXFLAGS=
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 CXXFLAGS="$save_CXXFLAGS"
4559 am__api_version='1.11'
4561 # Find a good install program. We prefer a C program (faster),
4562 # so one script is as good as another. But avoid the broken or
4563 # incompatible versions:
4564 # SysV /etc/install, /usr/sbin/install
4565 # SunOS /usr/etc/install
4566 # IRIX /sbin/install
4567 # AIX /bin/install
4568 # AmigaOS /C/install, which installs bootblocks on floppy discs
4569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4572 # OS/2's system install, which has a completely different semantic
4573 # ./install, which can be erroneously created by make from ./install.sh.
4574 # Reject install programs that cannot install multiple files.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4577 if test -z "$INSTALL"; then
4578 if test "${ac_cv_path_install+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 # Account for people who put trailing slashes in PATH elements.
4587 case $as_dir/ in #((
4588 ./ | .// | /[cC]/* | \
4589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4591 /usr/ucb/* ) ;;
4593 # OSF1 and SCO ODT 3.0 have their own names for install.
4594 # Don't use installbsd from OSF since it installs stuff as root
4595 # by default.
4596 for ac_prog in ginstall scoinst install; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4599 if test $ac_prog = install &&
4600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4601 # AIX install. It has an incompatible calling convention.
4603 elif test $ac_prog = install &&
4604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4605 # program-specific install script used by HP pwplus--don't use.
4607 else
4608 rm -rf conftest.one conftest.two conftest.dir
4609 echo one > conftest.one
4610 echo two > conftest.two
4611 mkdir conftest.dir
4612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4613 test -s conftest.one && test -s conftest.two &&
4614 test -s conftest.dir/conftest.one &&
4615 test -s conftest.dir/conftest.two
4616 then
4617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4618 break 3
4622 done
4623 done
4625 esac
4627 done
4628 IFS=$as_save_IFS
4630 rm -rf conftest.one conftest.two conftest.dir
4633 if test "${ac_cv_path_install+set}" = set; then
4634 INSTALL=$ac_cv_path_install
4635 else
4636 # As a last resort, use the slow shell script. Don't cache a
4637 # value for INSTALL within a source directory, because that will
4638 # break other packages using the cache if that directory is
4639 # removed, or if the value is a relative name.
4640 INSTALL=$ac_install_sh
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4644 $as_echo "$INSTALL" >&6; }
4646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4647 # It thinks the first close brace ends the variable substitution.
4648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4655 $as_echo_n "checking whether build environment is sane... " >&6; }
4656 # Just in case
4657 sleep 1
4658 echo timestamp > conftest.file
4659 # Reject unsafe characters in $srcdir or the absolute working directory
4660 # name. Accept space and tab only in the latter.
4661 am_lf='
4663 case `pwd` in
4664 *[\\\"\#\$\&\'\`$am_lf]*)
4665 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4666 esac
4667 case $srcdir in
4668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4669 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4670 esac
4672 # Do `set' in a subshell so we don't clobber the current shell's
4673 # arguments. Must try -L first in case configure is actually a
4674 # symlink; some systems play weird games with the mod time of symlinks
4675 # (eg FreeBSD returns the mod time of the symlink's containing
4676 # directory).
4677 if (
4678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4679 if test "$*" = "X"; then
4680 # -L didn't work.
4681 set X `ls -t "$srcdir/configure" conftest.file`
4683 rm -f conftest.file
4684 if test "$*" != "X $srcdir/configure conftest.file" \
4685 && test "$*" != "X conftest.file $srcdir/configure"; then
4687 # If neither matched, then we have a broken ls. This can happen
4688 # if, for instance, CONFIG_SHELL is bash and it inherits a
4689 # broken ls alias from the environment. This has actually
4690 # happened. Such a system could not be considered "sane".
4691 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4692 alias in your environment" "$LINENO" 5
4695 test "$2" = conftest.file
4697 then
4698 # Ok.
4700 else
4701 as_fn_error "newly created file is older than distributed files!
4702 Check your system clock" "$LINENO" 5
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4706 test "$program_prefix" != NONE &&
4707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4708 # Use a double $ so make ignores it.
4709 test "$program_suffix" != NONE &&
4710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4711 # Double any \ or $.
4712 # By default was `s,x,x', remove it if useless.
4713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4716 # expand $ac_aux_dir to an absolute path
4717 am_aux_dir=`cd $ac_aux_dir && pwd`
4719 if test x"${MISSING+set}" != xset; then
4720 case $am_aux_dir in
4721 *\ * | *\ *)
4722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4725 esac
4727 # Use eval to expand $SHELL
4728 if eval "$MISSING --run true"; then
4729 am_missing_run="$MISSING --run "
4730 else
4731 am_missing_run=
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4733 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4736 if test x"${install_sh}" != xset; then
4737 case $am_aux_dir in
4738 *\ * | *\ *)
4739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4741 install_sh="\${SHELL} $am_aux_dir/install-sh"
4742 esac
4745 # Installed binaries are usually stripped using `strip' when the user
4746 # run `make install-strip'. However `strip' might not be the right
4747 # tool to use in cross-compilation environments, therefore Automake
4748 # will honor the `STRIP' environment variable to overrule this program.
4749 if test "$cross_compiling" != no; then
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}strip; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_STRIP+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$STRIP"; then
4759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 STRIP=$ac_cv_prog_STRIP
4779 if test -n "$STRIP"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4781 $as_echo "$STRIP" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4789 if test -z "$ac_cv_prog_STRIP"; then
4790 ac_ct_STRIP=$STRIP
4791 # Extract the first word of "strip", so it can be a program name with args.
4792 set dummy strip; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_STRIP"; then
4799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_STRIP="strip"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4819 if test -n "$ac_ct_STRIP"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4821 $as_echo "$ac_ct_STRIP" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4827 if test "x$ac_ct_STRIP" = x; then
4828 STRIP=":"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 STRIP=$ac_ct_STRIP
4838 else
4839 STRIP="$ac_cv_prog_STRIP"
4843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4847 if test -z "$MKDIR_P"; then
4848 if test "${ac_cv_path_mkdir+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_prog in mkdir gmkdir; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4860 'mkdir (GNU coreutils) '* | \
4861 'mkdir (coreutils) '* | \
4862 'mkdir (fileutils) '4.1*)
4863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4864 break 3;;
4865 esac
4866 done
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 if test "${ac_cv_path_mkdir+set}" = set; then
4874 MKDIR_P="$ac_cv_path_mkdir -p"
4875 else
4876 # As a last resort, use the slow shell script. Don't cache a
4877 # value for MKDIR_P within a source directory, because that will
4878 # break other packages using the cache if that directory is
4879 # removed, or if the value is a relative name.
4880 test -d ./--version && rmdir ./--version
4881 MKDIR_P="$ac_install_sh -d"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4885 $as_echo "$MKDIR_P" >&6; }
4887 mkdir_p="$MKDIR_P"
4888 case $mkdir_p in
4889 [\\/$]* | ?:[\\/]*) ;;
4890 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4891 esac
4893 for ac_prog in gawk mawk nawk awk
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_AWK+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$AWK"; then
4903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_AWK="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 AWK=$ac_cv_prog_AWK
4923 if test -n "$AWK"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4925 $as_echo "$AWK" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$AWK" && break
4933 done
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4936 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4937 set x ${MAKE-make}
4938 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4939 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat >conftest.make <<\_ACEOF
4943 SHELL = /bin/sh
4944 all:
4945 @echo '@@@%%%=$(MAKE)=@@@%%%'
4946 _ACEOF
4947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4948 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4949 *@@@%%%=?*=@@@%%%*)
4950 eval ac_cv_prog_make_${ac_make}_set=yes;;
4952 eval ac_cv_prog_make_${ac_make}_set=no;;
4953 esac
4954 rm -f conftest.make
4956 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4958 $as_echo "yes" >&6; }
4959 SET_MAKE=
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 SET_MAKE="MAKE=${MAKE-make}"
4966 rm -rf .tst 2>/dev/null
4967 mkdir .tst 2>/dev/null
4968 if test -d .tst; then
4969 am__leading_dot=.
4970 else
4971 am__leading_dot=_
4973 rmdir .tst 2>/dev/null
4975 DEPDIR="${am__leading_dot}deps"
4977 ac_config_commands="$ac_config_commands depfiles"
4980 am_make=${MAKE-make}
4981 cat > confinc << 'END'
4982 am__doit:
4983 @echo this is the am__doit target
4984 .PHONY: am__doit
4986 # If we don't find an include directive, just comment out the code.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4988 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4989 am__include="#"
4990 am__quote=
4991 _am_result=none
4992 # First try GNU make style include.
4993 echo "include confinc" > confmf
4994 # Ignore all kinds of additional output from `make'.
4995 case `$am_make -s -f confmf 2> /dev/null` in #(
4996 *the\ am__doit\ target*)
4997 am__include=include
4998 am__quote=
4999 _am_result=GNU
5001 esac
5002 # Now try BSD make style include.
5003 if test "$am__include" = "#"; then
5004 echo '.include "confinc"' > confmf
5005 case `$am_make -s -f confmf 2> /dev/null` in #(
5006 *the\ am__doit\ target*)
5007 am__include=.include
5008 am__quote="\""
5009 _am_result=BSD
5011 esac
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5016 $as_echo "$_am_result" >&6; }
5017 rm -f confinc confmf
5019 # Check whether --enable-dependency-tracking was given.
5020 if test "${enable_dependency_tracking+set}" = set; then :
5021 enableval=$enable_dependency_tracking;
5024 if test "x$enable_dependency_tracking" != xno; then
5025 am_depcomp="$ac_aux_dir/depcomp"
5026 AMDEPBACKSLASH='\'
5028 if test "x$enable_dependency_tracking" != xno; then
5029 AMDEP_TRUE=
5030 AMDEP_FALSE='#'
5031 else
5032 AMDEP_TRUE='#'
5033 AMDEP_FALSE=
5037 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5038 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5039 # is not polluted with repeated "-I."
5040 am__isrc=' -I$(srcdir)'
5041 # test to see if srcdir already configured
5042 if test -f $srcdir/config.status; then
5043 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5047 # test whether we have cygpath
5048 if test -z "$CYGPATH_W"; then
5049 if (cygpath --version) >/dev/null 2>/dev/null; then
5050 CYGPATH_W='cygpath -w'
5051 else
5052 CYGPATH_W=echo
5057 # Define the identity of the package.
5058 PACKAGE='libjava'
5059 VERSION='version-unused'
5062 cat >>confdefs.h <<_ACEOF
5063 #define PACKAGE "$PACKAGE"
5064 _ACEOF
5067 cat >>confdefs.h <<_ACEOF
5068 #define VERSION "$VERSION"
5069 _ACEOF
5071 # Some tools Automake needs.
5073 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5076 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5079 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5082 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5085 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5087 # We need awk for the "check" target. The system "awk" is bad on
5088 # some platforms.
5089 # Always define AMTAR for backward compatibility.
5091 AMTAR=${AMTAR-"${am_missing_run}tar"}
5093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5098 depcc="$CC" am_compiler_list=
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5101 $as_echo_n "checking dependency style of $depcc... " >&6; }
5102 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5106 # We make a subdir and do the tests there. Otherwise we can end up
5107 # making bogus files that we don't know about and never remove. For
5108 # instance it was reported that on HP-UX the gcc test will end up
5109 # making a dummy file named `D' -- because `-MD' means `put the output
5110 # in D'.
5111 mkdir conftest.dir
5112 # Copy depcomp to subdir because otherwise we won't find it if we're
5113 # using a relative directory.
5114 cp "$am_depcomp" conftest.dir
5115 cd conftest.dir
5116 # We will build objects and dependencies in a subdirectory because
5117 # it helps to detect inapplicable dependency modes. For instance
5118 # both Tru64's cc and ICC support -MD to output dependencies as a
5119 # side effect of compilation, but ICC will put the dependencies in
5120 # the current directory while Tru64 will put them in the object
5121 # directory.
5122 mkdir sub
5124 am_cv_CC_dependencies_compiler_type=none
5125 if test "$am_compiler_list" = ""; then
5126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5128 am__universal=false
5129 case " $depcc " in #(
5130 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5131 esac
5133 for depmode in $am_compiler_list; do
5134 # Setup a source with many dependencies, because some compilers
5135 # like to wrap large dependency lists on column 80 (with \), and
5136 # we should not choose a depcomp mode which is confused by this.
5138 # We need to recreate these files for each test, as the compiler may
5139 # overwrite some of them when testing with obscure command lines.
5140 # This happens at least with the AIX C compiler.
5141 : > sub/conftest.c
5142 for i in 1 2 3 4 5 6; do
5143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5145 # Solaris 8's {/usr,}/bin/sh.
5146 touch sub/conftst$i.h
5147 done
5148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5151 # mode. It turns out that the SunPro C++ compiler does not properly
5152 # handle `-M -o', and we need to detect this. Also, some Intel
5153 # versions had trouble with output in subdirs
5154 am__obj=sub/conftest.${OBJEXT-o}
5155 am__minus_obj="-o $am__obj"
5156 case $depmode in
5157 gcc)
5158 # This depmode causes a compiler race in universal mode.
5159 test "$am__universal" = false || continue
5161 nosideeffect)
5162 # after this tag, mechanisms are not by side-effect, so they'll
5163 # only be used when explicitly requested
5164 if test "x$enable_dependency_tracking" = xyes; then
5165 continue
5166 else
5167 break
5170 msvisualcpp | msvcmsys)
5171 # This compiler won't grok `-c -o', but also, the minuso test has
5172 # not run yet. These depmodes are late enough in the game, and
5173 # so weak that their functioning should not be impacted.
5174 am__obj=conftest.${OBJEXT-o}
5175 am__minus_obj=
5177 none) break ;;
5178 esac
5179 if depmode=$depmode \
5180 source=sub/conftest.c object=$am__obj \
5181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5183 >/dev/null 2>conftest.err &&
5184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5188 # icc doesn't choke on unknown options, it will just issue warnings
5189 # or remarks (even with -Werror). So we grep stderr for any message
5190 # that says an option was ignored or not supported.
5191 # When given -MP, icc 7.0 and 7.1 complain thusly:
5192 # icc: Command line warning: ignoring option '-M'; no argument required
5193 # The diagnosis changed in icc 8.0:
5194 # icc: Command line remark: option '-MP' not supported
5195 if (grep 'ignoring option' conftest.err ||
5196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5197 am_cv_CC_dependencies_compiler_type=$depmode
5198 break
5201 done
5203 cd ..
5204 rm -rf conftest.dir
5205 else
5206 am_cv_CC_dependencies_compiler_type=none
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5211 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5215 test "x$enable_dependency_tracking" != xno \
5216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5217 am__fastdepCC_TRUE=
5218 am__fastdepCC_FALSE='#'
5219 else
5220 am__fastdepCC_TRUE='#'
5221 am__fastdepCC_FALSE=
5225 depcc="$CXX" am_compiler_list=
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5228 $as_echo_n "checking dependency style of $depcc... " >&6; }
5229 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233 # We make a subdir and do the tests there. Otherwise we can end up
5234 # making bogus files that we don't know about and never remove. For
5235 # instance it was reported that on HP-UX the gcc test will end up
5236 # making a dummy file named `D' -- because `-MD' means `put the output
5237 # in D'.
5238 mkdir conftest.dir
5239 # Copy depcomp to subdir because otherwise we won't find it if we're
5240 # using a relative directory.
5241 cp "$am_depcomp" conftest.dir
5242 cd conftest.dir
5243 # We will build objects and dependencies in a subdirectory because
5244 # it helps to detect inapplicable dependency modes. For instance
5245 # both Tru64's cc and ICC support -MD to output dependencies as a
5246 # side effect of compilation, but ICC will put the dependencies in
5247 # the current directory while Tru64 will put them in the object
5248 # directory.
5249 mkdir sub
5251 am_cv_CXX_dependencies_compiler_type=none
5252 if test "$am_compiler_list" = ""; then
5253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5255 am__universal=false
5256 case " $depcc " in #(
5257 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5258 esac
5260 for depmode in $am_compiler_list; do
5261 # Setup a source with many dependencies, because some compilers
5262 # like to wrap large dependency lists on column 80 (with \), and
5263 # we should not choose a depcomp mode which is confused by this.
5265 # We need to recreate these files for each test, as the compiler may
5266 # overwrite some of them when testing with obscure command lines.
5267 # This happens at least with the AIX C compiler.
5268 : > sub/conftest.c
5269 for i in 1 2 3 4 5 6; do
5270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5272 # Solaris 8's {/usr,}/bin/sh.
5273 touch sub/conftst$i.h
5274 done
5275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5278 # mode. It turns out that the SunPro C++ compiler does not properly
5279 # handle `-M -o', and we need to detect this. Also, some Intel
5280 # versions had trouble with output in subdirs
5281 am__obj=sub/conftest.${OBJEXT-o}
5282 am__minus_obj="-o $am__obj"
5283 case $depmode in
5284 gcc)
5285 # This depmode causes a compiler race in universal mode.
5286 test "$am__universal" = false || continue
5288 nosideeffect)
5289 # after this tag, mechanisms are not by side-effect, so they'll
5290 # only be used when explicitly requested
5291 if test "x$enable_dependency_tracking" = xyes; then
5292 continue
5293 else
5294 break
5297 msvisualcpp | msvcmsys)
5298 # This compiler won't grok `-c -o', but also, the minuso test has
5299 # not run yet. These depmodes are late enough in the game, and
5300 # so weak that their functioning should not be impacted.
5301 am__obj=conftest.${OBJEXT-o}
5302 am__minus_obj=
5304 none) break ;;
5305 esac
5306 if depmode=$depmode \
5307 source=sub/conftest.c object=$am__obj \
5308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5310 >/dev/null 2>conftest.err &&
5311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315 # icc doesn't choke on unknown options, it will just issue warnings
5316 # or remarks (even with -Werror). So we grep stderr for any message
5317 # that says an option was ignored or not supported.
5318 # When given -MP, icc 7.0 and 7.1 complain thusly:
5319 # icc: Command line warning: ignoring option '-M'; no argument required
5320 # The diagnosis changed in icc 8.0:
5321 # icc: Command line remark: option '-MP' not supported
5322 if (grep 'ignoring option' conftest.err ||
5323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324 am_cv_CXX_dependencies_compiler_type=$depmode
5325 break
5328 done
5330 cd ..
5331 rm -rf conftest.dir
5332 else
5333 am_cv_CXX_dependencies_compiler_type=none
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5338 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5339 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5342 test "x$enable_dependency_tracking" != xno \
5343 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5344 am__fastdepCXX_TRUE=
5345 am__fastdepCXX_FALSE='#'
5346 else
5347 am__fastdepCXX_TRUE='#'
5348 am__fastdepCXX_FALSE=
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}as; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_AS+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$AS"; then
5363 ac_cv_prog_AS="$AS" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_AS="${ac_tool_prefix}as"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5382 AS=$ac_cv_prog_AS
5383 if test -n "$AS"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5385 $as_echo "$AS" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_AS"; then
5394 ac_ct_AS=$AS
5395 # Extract the first word of "as", so it can be a program name with args.
5396 set dummy as; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_AS"; then
5403 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AS="as"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5418 IFS=$as_save_IFS
5422 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5423 if test -n "$ac_ct_AS"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5425 $as_echo "$ac_ct_AS" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_AS" = x; then
5432 AS=""
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 AS=$ac_ct_AS
5442 else
5443 AS="$ac_cv_prog_AS"
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ld; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_LD+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$LD"; then
5455 ac_cv_prog_LD="$LD" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_LD="${ac_tool_prefix}ld"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 LD=$ac_cv_prog_LD
5475 if test -n "$LD"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5477 $as_echo "$LD" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5485 if test -z "$ac_cv_prog_LD"; then
5486 ac_ct_LD=$LD
5487 # Extract the first word of "ld", so it can be a program name with args.
5488 set dummy ld; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_LD"; then
5495 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_LD="ld"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5510 IFS=$as_save_IFS
5514 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5515 if test -n "$ac_ct_LD"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5517 $as_echo "$ac_ct_LD" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5523 if test "x$ac_ct_LD" = x; then
5524 LD=""
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532 LD=$ac_ct_LD
5534 else
5535 LD="$ac_cv_prog_LD"
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}ar; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_AR+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$AR"; then
5547 ac_cv_prog_AR="$AR" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_AR="${ac_tool_prefix}ar"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 AR=$ac_cv_prog_AR
5567 if test -n "$AR"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5569 $as_echo "$AR" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5577 if test -z "$ac_cv_prog_AR"; then
5578 ac_ct_AR=$AR
5579 # Extract the first word of "ar", so it can be a program name with args.
5580 set dummy ar; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$ac_ct_AR"; then
5587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_AR="ar"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5600 done
5601 done
5602 IFS=$as_save_IFS
5606 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5607 if test -n "$ac_ct_AR"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5609 $as_echo "$ac_ct_AR" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5615 if test "x$ac_ct_AR" = x; then
5616 AR=""
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 AR=$ac_ct_AR
5626 else
5627 AR="$ac_cv_prog_AR"
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$RANLIB"; then
5639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 RANLIB=$ac_cv_prog_RANLIB
5659 if test -n "$RANLIB"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5661 $as_echo "$RANLIB" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5669 if test -z "$ac_cv_prog_RANLIB"; then
5670 ac_ct_RANLIB=$RANLIB
5671 # Extract the first word of "ranlib", so it can be a program name with args.
5672 set dummy ranlib; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ac_ct_RANLIB"; then
5679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_RANLIB="ranlib"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5698 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5699 if test -n "$ac_ct_RANLIB"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5701 $as_echo "$ac_ct_RANLIB" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5707 if test "x$ac_ct_RANLIB" = x; then
5708 RANLIB=":"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 RANLIB=$ac_ct_RANLIB
5718 else
5719 RANLIB="$ac_cv_prog_RANLIB"
5722 for ac_prog in gawk mawk nawk awk
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if test "${ac_cv_prog_AWK+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$AWK"; then
5732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_AWK="$ac_prog"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 AWK=$ac_cv_prog_AWK
5752 if test -n "$AWK"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5754 $as_echo "$AWK" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 test -n "$AWK" && break
5762 done
5764 for ac_prog in jar fastjar gjar
5766 # Extract the first word of "$ac_prog", so it can be a program name with args.
5767 set dummy $ac_prog; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_JAR+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$JAR"; then
5774 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_JAR="$ac_prog"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5787 done
5788 done
5789 IFS=$as_save_IFS
5793 JAR=$ac_cv_prog_JAR
5794 if test -n "$JAR"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5796 $as_echo "$JAR" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5803 test -n "$JAR" && break
5804 done
5805 test -n "$JAR" || JAR="no"
5807 # Extract the first word of "zip", so it can be a program name with args.
5808 set dummy zip; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_path_ZIP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 case $ZIP in
5815 [\\/]* | ?:[\\/]*)
5816 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5834 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5836 esac
5838 ZIP=$ac_cv_path_ZIP
5839 if test -n "$ZIP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5841 $as_echo "$ZIP" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5848 # Extract the first word of "unzip", so it can be a program name with args.
5849 set dummy unzip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_path_UNZIP+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 case $UNZIP in
5856 [\\/]* | ?:[\\/]*)
5857 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5871 done
5872 done
5873 IFS=$as_save_IFS
5875 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5877 esac
5879 UNZIP=$ac_cv_path_UNZIP
5880 if test -n "$UNZIP"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5882 $as_echo "$UNZIP" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5890 # We need a jar that supports -@. This is a GNU extension.
5891 if test "$JAR" != no; then
5892 rm -f config-test.jar
5893 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5894 if test -f config-test.jar; then
5895 rm -f config-test.jar
5896 else
5897 JAR=no
5901 # Prefer the jar we found, but fall back to our jar script.
5902 if test "$JAR" = no; then
5903 if test "$ZIP" = no; then
5904 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5905 else
5906 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5907 JAR=`pwd`/scripts/jar
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5916 # Check whether --enable-maintainer-mode was given.
5917 if test "${enable_maintainer_mode+set}" = set; then :
5918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5919 else
5920 USE_MAINTAINER_MODE=no
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5925 if test $USE_MAINTAINER_MODE = yes; then
5926 MAINTAINER_MODE_TRUE=
5927 MAINTAINER_MODE_FALSE='#'
5928 else
5929 MAINTAINER_MODE_TRUE='#'
5930 MAINTAINER_MODE_FALSE=
5933 MAINT=$MAINTAINER_MODE_TRUE
5939 # configure.host sets the following important variables
5940 # libgcj_cflags - host specific C compiler flags
5941 # libgcj_cxxflags - host specific C++ compiler flags
5942 # libgcj_javaflags - host specific Java compiler flags
5943 # libgcj_sublib_ltflags - host specific Libtool flags
5944 # (only used when building sublibs)
5945 # and a number of others; see the list at the start of the file.
5947 libgcj_cflags=
5948 libgcj_cxxflags=
5949 libgcj_javaflags=
5950 libgcj_sublib_ltflags=
5952 . ${srcdir}/configure.host
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5956 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5960 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5961 acl_cv_prog_gnu_ld=yes
5962 else
5963 acl_cv_prog_gnu_ld=no
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5967 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5968 with_gnu_ld=$acl_cv_prog_gnu_ld
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5971 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5972 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5976 acl_cv_prog_gnu_ld_symbolic=no
5978 if test x"$with_gnu_ld" = x"yes"; then
5979 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5980 acl_cv_prog_gnu_ld_symbolic=yes
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5985 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5986 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5987 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5988 else
5989 SYMBOLIC_LDFLAGS=''
5992 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5993 if test -z "$libgcj_ld_symbolic"; then
5994 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5997 LIBGCJ_CFLAGS="${libgcj_cflags}"
5998 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5999 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
6000 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
6001 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
6002 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
6010 # Only use libltdl for non-newlib builds.
6011 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6014 library_names_spec=
6015 libname_spec='lib$name'
6016 soname_spec=
6017 shrext=".so"
6018 postinstall_cmds=
6019 postuninstall_cmds=
6020 finish_cmds=
6021 finish_eval=
6022 shlibpath_var=
6023 shlibpath_overrides_runpath=unknown
6024 version_type=none
6025 dynamic_linker="$host_os ld.so"
6026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6027 if test "$GCC" = yes; then
6028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6030 # if the path contains ";" then we assume it to be the separator
6031 # otherwise default to the standard path separator (i.e. ":") - it is
6032 # assumed that no part of a normal pathname contains ";" but that should
6033 # okay in the real world where ";" in dirpaths is itself problematic.
6034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6035 else
6036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6038 else
6039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6041 need_lib_prefix=unknown
6042 hardcode_into_libs=no
6044 # when you set need_version to no, make sure it does not cause -set_version
6045 # flags to be left without arguments
6046 need_version=unknown
6048 case $host_os in
6049 aix3*)
6050 version_type=linux
6051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6052 shlibpath_var=LIBPATH
6054 # AIX 3 has no versioning support, so we append a major version to the name.
6055 soname_spec='${libname}${release}${shared_ext}$major'
6058 aix[4-9]*)
6059 version_type=linux
6060 need_lib_prefix=no
6061 need_version=no
6062 hardcode_into_libs=yes
6063 if test "$host_cpu" = ia64; then
6064 # AIX 5 supports IA64
6065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6066 shlibpath_var=LD_LIBRARY_PATH
6067 else
6068 # With GCC up to 2.95.x, collect2 would create an import file
6069 # for dependence libraries. The import file would start with
6070 # the line `#! .'. This would cause the generated library to
6071 # depend on `.', always an invalid library. This was fixed in
6072 # development snapshots of GCC prior to 3.0.
6073 case $host_os in
6074 aix4 | aix4.[01] | aix4.[01].*)
6075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6076 echo ' yes '
6077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6079 else
6080 can_build_shared=no
6083 esac
6084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6085 # soname into executable. Probably we can add versioning support to
6086 # collect2, so additional links can be useful in future.
6087 if test "$aix_use_runtimelinking" = yes; then
6088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6089 # instead of lib<name>.a to let people know that these are not
6090 # typical AIX shared libraries.
6091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6092 else
6093 # We preserve .a as extension for shared libraries through AIX4.2
6094 # and later when we are not doing run time linking.
6095 library_names_spec='${libname}${release}.a $libname.a'
6096 soname_spec='${libname}${release}${shared_ext}$major'
6098 shlibpath_var=LIBPATH
6102 amigaos*)
6103 library_names_spec='$libname.ixlibrary $libname.a'
6104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6105 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'
6108 beos*)
6109 library_names_spec='${libname}${shared_ext}'
6110 dynamic_linker="$host_os ld.so"
6111 shlibpath_var=LIBRARY_PATH
6114 bsdi4*)
6115 version_type=linux
6116 need_version=no
6117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6118 soname_spec='${libname}${release}${shared_ext}$major'
6119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6120 shlibpath_var=LD_LIBRARY_PATH
6121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6123 # the default ld.so.conf also contains /usr/contrib/lib and
6124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6125 # libtool to hard-code these into programs
6128 cygwin* | mingw* | pw32*)
6129 version_type=windows
6130 shrext=".dll"
6131 need_version=no
6132 need_lib_prefix=no
6134 case $GCC,$host_os in
6135 yes,cygwin* | yes,mingw* | yes,pw32*)
6136 library_names_spec='$libname.dll.a'
6137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6138 postinstall_cmds='base_file=`basename \${file}`~
6139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6140 dldir=$destdir/`dirname \$dlpath`~
6141 test -d \$dldir || mkdir -p \$dldir~
6142 $install_prog $dir/$dlname \$dldir/$dlname'
6143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6144 dlpath=$dir/\$dldll~
6145 $rm \$dlpath'
6146 shlibpath_overrides_runpath=yes
6148 case $host_os in
6149 cygwin*)
6150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6152 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6154 mingw*)
6155 # MinGW DLLs use traditional 'lib' prefix
6156 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6159 # It is most probably a Windows format PATH printed by
6160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6161 # path with ; separators, and with drive letters. We can handle the
6162 # drive letters (cygwin fileutils understands them), so leave them,
6163 # especially as we might pass files found there to a mingw objdump,
6164 # which wouldn't understand a cygwinified path. Ahh.
6165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6166 else
6167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6170 pw32*)
6171 # pw32 DLLs use 'pw' prefix rather than 'lib'
6172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6174 esac
6178 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6180 esac
6181 dynamic_linker='Win32 ld.exe'
6182 # FIXME: first we should search . and the directory the executable is in
6183 shlibpath_var=PATH
6186 darwin* | rhapsody*)
6187 dynamic_linker="$host_os dyld"
6188 version_type=darwin
6189 need_lib_prefix=no
6190 need_version=no
6191 # FIXME: Relying on posixy $() will cause problems for
6192 # cross-compilation, but unfortunately the echo tests do not
6193 # yet detect zsh echo's removal of \ escapes.
6194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6195 soname_spec='${libname}${release}${major}$shared_ext'
6196 shlibpath_overrides_runpath=yes
6197 shlibpath_var=DYLD_LIBRARY_PATH
6198 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6200 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6201 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"`
6203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6206 dgux*)
6207 version_type=linux
6208 need_lib_prefix=no
6209 need_version=no
6210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6211 soname_spec='${libname}${release}${shared_ext}$major'
6212 shlibpath_var=LD_LIBRARY_PATH
6215 freebsd1*)
6216 dynamic_linker=no
6219 freebsd*)
6220 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6221 version_type=freebsd-$objformat
6222 case $version_type in
6223 freebsd-elf*)
6224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6225 need_version=no
6226 need_lib_prefix=no
6228 freebsd-*)
6229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6230 need_version=yes
6232 esac
6233 shlibpath_var=LD_LIBRARY_PATH
6234 case $host_os in
6235 freebsd2*)
6236 shlibpath_overrides_runpath=yes
6238 freebsd3.01* | freebsdelf3.01*)
6239 shlibpath_overrides_runpath=yes
6240 hardcode_into_libs=yes
6242 *) # from 3.2 on
6243 shlibpath_overrides_runpath=no
6244 hardcode_into_libs=yes
6246 esac
6249 gnu*)
6250 version_type=linux
6251 need_lib_prefix=no
6252 need_version=no
6253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6254 soname_spec='${libname}${release}${shared_ext}$major'
6255 shlibpath_var=LD_LIBRARY_PATH
6256 hardcode_into_libs=yes
6259 hpux9* | hpux10* | hpux11*)
6260 # Give a soname corresponding to the major version so that dld.sl refuses to
6261 # link against other versions.
6262 version_type=sunos
6263 need_lib_prefix=no
6264 need_version=no
6265 case "$host_cpu" in
6266 ia64*)
6267 shrext='.so'
6268 hardcode_into_libs=yes
6269 dynamic_linker="$host_os dld.so"
6270 shlibpath_var=LD_LIBRARY_PATH
6271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6273 soname_spec='${libname}${release}${shared_ext}$major'
6274 if test "X$HPUX_IA64_MODE" = X32; then
6275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6276 else
6277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6281 hppa*64*)
6282 shrext='.sl'
6283 hardcode_into_libs=yes
6284 dynamic_linker="$host_os dld.sl"
6285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6288 soname_spec='${libname}${release}${shared_ext}$major'
6289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6293 shrext='.sl'
6294 dynamic_linker="$host_os dld.sl"
6295 shlibpath_var=SHLIB_PATH
6296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6298 soname_spec='${libname}${release}${shared_ext}$major'
6300 esac
6301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6302 postinstall_cmds='chmod 555 $lib'
6305 irix5* | irix6* | nonstopux*)
6306 case $host_os in
6307 nonstopux*) version_type=nonstopux ;;
6309 if test "$lt_cv_prog_gnu_ld" = yes; then
6310 version_type=linux
6311 else
6312 version_type=irix
6313 fi ;;
6314 esac
6315 need_lib_prefix=no
6316 need_version=no
6317 soname_spec='${libname}${release}${shared_ext}$major'
6318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6319 case $host_os in
6320 irix5* | nonstopux*)
6321 libsuff= shlibsuff=
6324 case $LD in # libtool.m4 will add one of these switches to LD
6325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6326 libsuff= shlibsuff= libmagic=32-bit;;
6327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6328 libsuff=32 shlibsuff=N32 libmagic=N32;;
6329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6331 *) libsuff= shlibsuff= libmagic=never-match;;
6332 esac
6334 esac
6335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6336 shlibpath_overrides_runpath=no
6337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6339 hardcode_into_libs=yes
6342 # No shared lib support for Linux oldld, aout, or coff.
6343 linux*oldld* | linux*aout* | linux*coff*)
6344 dynamic_linker=no
6347 # This must be Linux ELF.
6348 linux*|k*bsd*-gnu)
6349 version_type=linux
6350 need_lib_prefix=no
6351 need_version=no
6352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6353 soname_spec='${libname}${release}${shared_ext}$major'
6354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6355 shlibpath_var=LD_LIBRARY_PATH
6356 shlibpath_overrides_runpath=no
6357 # This implies no fast_install, which is unacceptable.
6358 # Some rework will be needed to allow for fast_install
6359 # before this can be enabled.
6360 hardcode_into_libs=yes
6362 # We used to test for /lib/ld.so.1 and disable shared libraries on
6363 # powerpc, because MkLinux only supported shared libraries with the
6364 # GNU dynamic linker. Since this was broken with cross compilers,
6365 # most powerpc-linux boxes support dynamic linking these days and
6366 # people can always --disable-shared, the test was removed, and we
6367 # assume the GNU/Linux dynamic linker is in use.
6368 dynamic_linker='GNU/Linux ld.so'
6371 netbsd*)
6372 version_type=sunos
6373 need_lib_prefix=no
6374 need_version=no
6375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6378 dynamic_linker='NetBSD (a.out) ld.so'
6379 else
6380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6381 soname_spec='${libname}${release}${shared_ext}$major'
6382 dynamic_linker='NetBSD ld.elf_so'
6384 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6386 hardcode_into_libs=yes
6389 newsos6)
6390 version_type=linux
6391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6392 shlibpath_var=LD_LIBRARY_PATH
6393 shlibpath_overrides_runpath=yes
6396 nto-qnx)
6397 version_type=linux
6398 need_lib_prefix=no
6399 need_version=no
6400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6401 soname_spec='${libname}${release}${shared_ext}$major'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 shlibpath_overrides_runpath=yes
6406 openbsd*)
6407 version_type=sunos
6408 need_lib_prefix=no
6409 need_version=no
6410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6412 shlibpath_var=LD_LIBRARY_PATH
6413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6414 case $host_os in
6415 openbsd2.[89] | openbsd2.[89].*)
6416 shlibpath_overrides_runpath=no
6419 shlibpath_overrides_runpath=yes
6421 esac
6422 else
6423 shlibpath_overrides_runpath=yes
6427 os2*)
6428 libname_spec='$name'
6429 shrext=".dll"
6430 need_lib_prefix=no
6431 library_names_spec='$libname${shared_ext} $libname.a'
6432 dynamic_linker='OS/2 ld.exe'
6433 shlibpath_var=LIBPATH
6436 osf3* | osf4* | osf5*)
6437 version_type=osf
6438 need_lib_prefix=no
6439 need_version=no
6440 soname_spec='${libname}${release}${shared_ext}$major'
6441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6442 shlibpath_var=LD_LIBRARY_PATH
6443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6447 sco3.2v5*)
6448 version_type=osf
6449 soname_spec='${libname}${release}${shared_ext}$major'
6450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6451 shlibpath_var=LD_LIBRARY_PATH
6454 solaris*)
6455 version_type=linux
6456 need_lib_prefix=no
6457 need_version=no
6458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6459 soname_spec='${libname}${release}${shared_ext}$major'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 shlibpath_overrides_runpath=yes
6462 hardcode_into_libs=yes
6463 # ldd complains unless libraries are executable
6464 postinstall_cmds='chmod +x $lib'
6467 sunos4*)
6468 version_type=sunos
6469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6471 shlibpath_var=LD_LIBRARY_PATH
6472 shlibpath_overrides_runpath=yes
6473 if test "$with_gnu_ld" = yes; then
6474 need_lib_prefix=no
6476 need_version=yes
6479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6480 version_type=linux
6481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6482 soname_spec='${libname}${release}${shared_ext}$major'
6483 shlibpath_var=LD_LIBRARY_PATH
6484 case $host_vendor in
6485 sni)
6486 shlibpath_overrides_runpath=no
6487 need_lib_prefix=no
6488 export_dynamic_flag_spec='${wl}-Blargedynsym'
6489 runpath_var=LD_RUN_PATH
6491 siemens)
6492 need_lib_prefix=no
6494 motorola)
6495 need_lib_prefix=no
6496 need_version=no
6497 shlibpath_overrides_runpath=no
6498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6500 esac
6503 sysv4*MP*)
6504 if test -d /usr/nec ;then
6505 version_type=linux
6506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6507 soname_spec='$libname${shared_ext}.$major'
6508 shlibpath_var=LD_LIBRARY_PATH
6512 uts4*)
6513 version_type=linux
6514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6515 soname_spec='${libname}${release}${shared_ext}$major'
6516 shlibpath_var=LD_LIBRARY_PATH
6520 dynamic_linker=no
6522 esac
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6524 $as_echo "$dynamic_linker" >&6; }
6525 test "$dynamic_linker" = no && can_build_shared=no
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6529 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6530 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 libltdl_cv_shlibpath_var="$shlibpath_var"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6536 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6537 if test -n "$libltdl_cv_shlibpath_var"; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6541 _ACEOF
6547 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6550 # Possibly build libgcj as many sub-libraries.
6551 # Check whether --enable-libgcj-sublibs was given.
6552 if test "${enable_libgcj_sublibs+set}" = set; then :
6553 enableval=$enable_libgcj_sublibs;
6557 if test -z "$enable_libgcj_sublibs"; then
6558 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6560 if test "$enable_libgcj_sublibs" = yes; then
6561 BUILD_SUBLIBS_TRUE=
6562 BUILD_SUBLIBS_FALSE='#'
6563 else
6564 BUILD_SUBLIBS_TRUE='#'
6565 BUILD_SUBLIBS_FALSE=
6568 if test "$enable_libgcj_sublibs" = yes ; then
6569 # In theory we could make do with only one override and simply
6570 # tag "_bc" onto the end of it when we use it to generate the
6571 # spec, but that's an ugly thing to do when there are multiple
6572 # words in the string and you're relying on the ordering to
6573 # append the correct one.
6574 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6575 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6579 # See if the user has requested runtime debugging.
6580 LIBGCJDEBUG="disable"
6582 # Check whether --enable-libgcj-debug was given.
6583 if test "${enable_libgcj_debug+set}" = set; then :
6584 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6586 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6588 LIBGCJDEBUG="enable"
6594 # Check whether --with-escher was given.
6595 if test "${with_escher+set}" = set; then :
6596 withval=$with_escher;
6599 case "$with_escher" in
6601 use_escher=false
6603 "no")
6604 use_escher=false
6606 "yes")
6607 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6610 use_escher=true
6612 esac
6614 # Determine which AWT peer libraries to build
6615 # Check whether --enable-java-awt was given.
6616 if test "${enable_java_awt+set}" = set; then :
6617 enableval=$enable_java_awt;
6621 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6622 use_xlib_awt=""
6623 use_gtk_awt=""
6624 use_qt_awt=""
6625 use_x_awt=""
6626 # The default toolkit to use is the first one specified.
6627 TOOLKIT=
6630 for peer in $peerlibs ; do
6631 case $peer in
6632 xlib)
6633 if test "$no_x" = yes; then
6634 echo "*** xlib peers requested but no X library available" 1>&2
6635 exit 1
6636 else
6637 use_xlib_awt="yes"
6638 if test -z "$TOOLKIT"; then
6639 TOOLKIT=gnu.awt.xlib.XToolkit
6643 gtk)
6644 if test "$no_x" = yes; then
6645 echo "*** gtk peers requested but no X library available" 1>&2
6646 exit 1
6647 else
6648 use_gtk_awt=yes
6649 if test -z "$TOOLKIT"; then
6650 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6655 if test "$no_x" = yes; then
6656 # Perhaps we should admit the possibility of embedded Qt.
6657 echo "*** Qt peers requested but no X library available" 1>&2
6658 exit 1
6659 else
6660 use_qt_awt=yes
6661 if test -z "$TOOLKIT"; then
6662 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6667 use_x_awt=yes
6668 if test -z "$TOOLKIT"; then
6669 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6673 use_xlib_awt=
6674 use_gtk_awt=
6675 use_qt_awt=
6676 use_x_awt=
6677 break
6680 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6681 exit 1
6682 esac
6683 done
6685 if test "$use_xlib_awt" = yes; then
6686 XLIB_AWT_TRUE=
6687 XLIB_AWT_FALSE='#'
6688 else
6689 XLIB_AWT_TRUE='#'
6690 XLIB_AWT_FALSE=
6693 if test "$use_x_awt" = yes; then
6694 X_AWT_TRUE=
6695 X_AWT_FALSE='#'
6696 else
6697 X_AWT_TRUE='#'
6698 X_AWT_FALSE=
6703 cat >>confdefs.h <<_ACEOF
6704 #define AWT_TOOLKIT "$TOOLKIT"
6705 _ACEOF
6709 cat >>confdefs.h <<_ACEOF
6710 #define LIBGCJ_PREFIX "$prefix"
6711 _ACEOF
6714 # Create standard.omit based on decisions we just made.
6715 cp $srcdir/standard.omit.in standard.omit
6716 if test "$use_xlib_awt" != yes; then
6717 echo gnu/awt/xlib >> standard.omit
6718 echo gnu/gcj/xlib >> standard.omit
6720 if test "$use_x_awt" != yes; then
6721 echo gnu/java/awt/peer/x >> standard.omit
6724 # Tools that need to be compiled against classpath's tools classes
6725 : > vm-tools-packages
6726 for package in gnu/gcj/tools/gc_analyze ; do
6727 echo $package >> standard.omit
6728 echo $package >> vm-tools-packages
6729 done
6731 if test -z "${with_multisubdir}"; then
6732 builddotdot=.
6733 else
6734 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6737 NATIVE=yes
6739 # Which gcj and host gcj (for ecjx) do we use?
6740 which_gcj=default
6741 host_exeext=${ac_exeext}
6742 GCJ_FOR_ECJX=
6743 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6744 if test -n "${with_cross_host}"; then
6745 # We are being configured with a cross compiler. We can't
6746 # use ac_exeext, because that is for the target platform.
6747 NATIVE=no
6748 cross_host_exeext=
6749 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6750 case "${with_cross_host}" in
6751 *mingw* | *cygwin*)
6752 cross_host_exeext=.exe
6754 esac
6755 host_exeext=${cross_host_exeext}
6756 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6757 if test x"$build_noncanonical" = x"$with_cross_host"; then
6758 # Ordinary cross (host!=target and host=build)
6759 which_gcj=built
6760 else
6761 # Canadian cross (host!=target and host!=build)
6762 which_gcj=cross
6764 else
6765 which_gcj=cross
6767 else
6768 # We are being configured with a native or crossed-native compiler
6769 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6770 if test x"$build" = x"$host"; then
6771 # True native build (host=target and host=build)
6772 which_gcj=built
6773 else
6774 # Crossed-native build (host=target and host!=build)
6775 which_gcj=cross
6777 else
6778 which_gcj=path
6781 libgcjdir=`${PWDCMD-pwd}`
6782 case $GCJ in
6783 *" -B"*)
6784 # Just in case there is a comma in the build dir, quote it for the
6785 # sed command below.
6786 case $libgcjdir in
6787 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6788 *) qlibgcjdir=$libgcjdir;;
6789 esac
6790 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6793 GCJ=$GCJ" -B$libgcjdir/"
6795 esac
6796 case "${which_gcj}" in
6797 built)
6798 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6800 cross)
6801 if test "x${with_newlib}" = "xyes"; then
6802 # FIXME (comment): Why is this needed?
6803 GCC_UNWIND_INCLUDE=
6805 GCJH='$(target_noncanonical)-gcjh'
6807 path)
6808 GCJH=gcjh
6810 esac
6811 JAVAC="$GCJ -C"
6812 export JAVAC
6818 # Create it, so that compile/link tests don't fail
6819 test -f libgcj.spec || touch libgcj.spec
6823 # Set up to configure Classpath.
6824 # FIXME: no supported way to pass args in autoconf.
6825 # Disable tool wrappers to avoid ltdl.h configure check.
6826 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6827 ac_configure_args="$ac_configure_args --disable-load-library"
6828 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6829 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6830 dir1=`cd $srcdir && pwd`
6831 dir2=`pwd`
6832 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6833 ac_configure_args="$ac_configure_args --disable-core-jni"
6834 ac_configure_args="$ac_configure_args --disable-examples"
6835 ac_configure_args="$ac_configure_args --with-glibj=build"
6836 if test "$browser_plugin_enabled" != yes; then
6837 ac_configure_args="$ac_configure_args --disable-plugin"
6838 else
6839 ac_configure_args="$ac_configure_args --enable-plugin"
6841 if test "$gconf_enabled" != yes; then
6842 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6843 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6845 if test "$use_gtk_awt" != yes; then
6846 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6848 if test "$use_qt_awt" != yes; then
6849 ac_configure_args="$ac_configure_args --disable-qt-peer"
6850 else
6851 # We need this as qt is disabled by default in classpath.
6852 ac_configure_args="$ac_configure_args --enable-qt-peer"
6854 if test "$use_x_awt" != yes; then
6855 ac_configure_args="$ac_configure_args --without-escher"
6856 else
6857 # We need this as escher is disabled by default in classpath.
6858 if test "$use_escher" != true; then
6859 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6860 else
6861 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6864 if test "x$BUILD_GJDOC" = xno; then
6865 ac_configure_args="$ac_configure_args --disable-gjdoc"
6867 # -Werror causes unavoidable problems in code using alsa.
6868 ac_configure_args="$ac_configure_args --disable-regen-headers"
6869 ac_configure_args="$ac_configure_args --disable-Werror"
6871 # Only use libltdl for non-newlib builds.
6872 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6873 case $enable_ltdl_convenience in
6874 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6875 "") enable_ltdl_convenience=yes
6876 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6877 esac
6878 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6879 LTDLINCL='-I${top_srcdir}/''libltdl'
6880 # For backwards non-gettext consistent compatibility...
6881 INCLTDL="$LTDLINCL"
6883 enable_dlopen=yes
6887 DIRLTDL=libltdl
6889 $as_echo "#define USE_LTDL 1" >>confdefs.h
6891 # Sigh. Libtool's macro doesn't do the right thing.
6892 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6893 # FIXME: this is a hack.
6894 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6895 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6900 case `pwd` in
6901 *\ * | *\ *)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6903 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6904 esac
6908 macro_version='2.2.6'
6909 macro_revision='1.3012'
6923 ltmain="$ac_aux_dir/ltmain.sh"
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6926 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6927 if test "${ac_cv_path_SED+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6931 for ac_i in 1 2 3 4 5 6 7; do
6932 ac_script="$ac_script$as_nl$ac_script"
6933 done
6934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6935 { ac_script=; unset ac_script;}
6936 if test -z "$SED"; then
6937 ac_path_SED_found=false
6938 # Loop through the user's path and test for each of PROGNAME-LIST
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_prog in sed gsed; do
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6947 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6948 # Check for GNU ac_path_SED and select it if it is found.
6949 # Check for GNU $ac_path_SED
6950 case `"$ac_path_SED" --version 2>&1` in
6951 *GNU*)
6952 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6954 ac_count=0
6955 $as_echo_n 0123456789 >"conftest.in"
6956 while :
6958 cat "conftest.in" "conftest.in" >"conftest.tmp"
6959 mv "conftest.tmp" "conftest.in"
6960 cp "conftest.in" "conftest.nl"
6961 $as_echo '' >> "conftest.nl"
6962 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6964 as_fn_arith $ac_count + 1 && ac_count=$as_val
6965 if test $ac_count -gt ${ac_path_SED_max-0}; then
6966 # Best one so far, save it but keep looking for a better one
6967 ac_cv_path_SED="$ac_path_SED"
6968 ac_path_SED_max=$ac_count
6970 # 10*(2^10) chars as input seems more than enough
6971 test $ac_count -gt 10 && break
6972 done
6973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6974 esac
6976 $ac_path_SED_found && break 3
6977 done
6978 done
6979 done
6980 IFS=$as_save_IFS
6981 if test -z "$ac_cv_path_SED"; then
6982 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6984 else
6985 ac_cv_path_SED=$SED
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6990 $as_echo "$ac_cv_path_SED" >&6; }
6991 SED="$ac_cv_path_SED"
6992 rm -f conftest.sed
6994 test -z "$SED" && SED=sed
6995 Xsed="$SED -e 1s/^X//"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7008 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7009 if test "${ac_cv_path_GREP+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -z "$GREP"; then
7013 ac_path_GREP_found=false
7014 # Loop through the user's path and test for each of PROGNAME-LIST
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_prog in grep ggrep; do
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7023 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7024 # Check for GNU ac_path_GREP and select it if it is found.
7025 # Check for GNU $ac_path_GREP
7026 case `"$ac_path_GREP" --version 2>&1` in
7027 *GNU*)
7028 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7030 ac_count=0
7031 $as_echo_n 0123456789 >"conftest.in"
7032 while :
7034 cat "conftest.in" "conftest.in" >"conftest.tmp"
7035 mv "conftest.tmp" "conftest.in"
7036 cp "conftest.in" "conftest.nl"
7037 $as_echo 'GREP' >> "conftest.nl"
7038 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7040 as_fn_arith $ac_count + 1 && ac_count=$as_val
7041 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7042 # Best one so far, save it but keep looking for a better one
7043 ac_cv_path_GREP="$ac_path_GREP"
7044 ac_path_GREP_max=$ac_count
7046 # 10*(2^10) chars as input seems more than enough
7047 test $ac_count -gt 10 && break
7048 done
7049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7050 esac
7052 $ac_path_GREP_found && break 3
7053 done
7054 done
7055 done
7056 IFS=$as_save_IFS
7057 if test -z "$ac_cv_path_GREP"; then
7058 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7060 else
7061 ac_cv_path_GREP=$GREP
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7066 $as_echo "$ac_cv_path_GREP" >&6; }
7067 GREP="$ac_cv_path_GREP"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7071 $as_echo_n "checking for egrep... " >&6; }
7072 if test "${ac_cv_path_EGREP+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7076 then ac_cv_path_EGREP="$GREP -E"
7077 else
7078 if test -z "$EGREP"; then
7079 ac_path_EGREP_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_prog in egrep; do
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7089 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7090 # Check for GNU ac_path_EGREP and select it if it is found.
7091 # Check for GNU $ac_path_EGREP
7092 case `"$ac_path_EGREP" --version 2>&1` in
7093 *GNU*)
7094 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7096 ac_count=0
7097 $as_echo_n 0123456789 >"conftest.in"
7098 while :
7100 cat "conftest.in" "conftest.in" >"conftest.tmp"
7101 mv "conftest.tmp" "conftest.in"
7102 cp "conftest.in" "conftest.nl"
7103 $as_echo 'EGREP' >> "conftest.nl"
7104 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7106 as_fn_arith $ac_count + 1 && ac_count=$as_val
7107 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7108 # Best one so far, save it but keep looking for a better one
7109 ac_cv_path_EGREP="$ac_path_EGREP"
7110 ac_path_EGREP_max=$ac_count
7112 # 10*(2^10) chars as input seems more than enough
7113 test $ac_count -gt 10 && break
7114 done
7115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7116 esac
7118 $ac_path_EGREP_found && break 3
7119 done
7120 done
7121 done
7122 IFS=$as_save_IFS
7123 if test -z "$ac_cv_path_EGREP"; then
7124 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7126 else
7127 ac_cv_path_EGREP=$EGREP
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7133 $as_echo "$ac_cv_path_EGREP" >&6; }
7134 EGREP="$ac_cv_path_EGREP"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7138 $as_echo_n "checking for fgrep... " >&6; }
7139 if test "${ac_cv_path_FGREP+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7143 then ac_cv_path_FGREP="$GREP -F"
7144 else
7145 if test -z "$FGREP"; then
7146 ac_path_FGREP_found=false
7147 # Loop through the user's path and test for each of PROGNAME-LIST
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_prog in fgrep; do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7156 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7157 # Check for GNU ac_path_FGREP and select it if it is found.
7158 # Check for GNU $ac_path_FGREP
7159 case `"$ac_path_FGREP" --version 2>&1` in
7160 *GNU*)
7161 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7163 ac_count=0
7164 $as_echo_n 0123456789 >"conftest.in"
7165 while :
7167 cat "conftest.in" "conftest.in" >"conftest.tmp"
7168 mv "conftest.tmp" "conftest.in"
7169 cp "conftest.in" "conftest.nl"
7170 $as_echo 'FGREP' >> "conftest.nl"
7171 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7173 as_fn_arith $ac_count + 1 && ac_count=$as_val
7174 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7175 # Best one so far, save it but keep looking for a better one
7176 ac_cv_path_FGREP="$ac_path_FGREP"
7177 ac_path_FGREP_max=$ac_count
7179 # 10*(2^10) chars as input seems more than enough
7180 test $ac_count -gt 10 && break
7181 done
7182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7183 esac
7185 $ac_path_FGREP_found && break 3
7186 done
7187 done
7188 done
7189 IFS=$as_save_IFS
7190 if test -z "$ac_cv_path_FGREP"; then
7191 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7193 else
7194 ac_cv_path_FGREP=$FGREP
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7200 $as_echo "$ac_cv_path_FGREP" >&6; }
7201 FGREP="$ac_cv_path_FGREP"
7204 test -z "$GREP" && GREP=grep
7224 # Check whether --with-gnu-ld was given.
7225 if test "${with_gnu_ld+set}" = set; then :
7226 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7227 else
7228 with_gnu_ld=no
7231 ac_prog=ld
7232 if test "$GCC" = yes; then
7233 # Check if gcc -print-prog-name=ld gives a path.
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7235 $as_echo_n "checking for ld used by $CC... " >&6; }
7236 case $host in
7237 *-*-mingw*)
7238 # gcc leaves a trailing carriage return which upsets mingw
7239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7242 esac
7243 case $ac_prog in
7244 # Accept absolute paths.
7245 [\\/]* | ?:[\\/]*)
7246 re_direlt='/[^/][^/]*/\.\./'
7247 # Canonicalize the pathname of ld
7248 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7249 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7250 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7251 done
7252 test -z "$LD" && LD="$ac_prog"
7255 # If it fails, then pretend we aren't using GCC.
7256 ac_prog=ld
7259 # If it is relative, then search for the first ld in PATH.
7260 with_gnu_ld=unknown
7262 esac
7263 elif test "$with_gnu_ld" = yes; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7265 $as_echo_n "checking for GNU ld... " >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7268 $as_echo_n "checking for non-GNU ld... " >&6; }
7270 if test "${lt_cv_path_LD+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 if test -z "$LD"; then
7274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7275 for ac_dir in $PATH; do
7276 IFS="$lt_save_ifs"
7277 test -z "$ac_dir" && ac_dir=.
7278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7279 lt_cv_path_LD="$ac_dir/$ac_prog"
7280 # Check to see if the program is GNU ld. I'd rather use --version,
7281 # but apparently some variants of GNU ld only accept -v.
7282 # Break only if it was the GNU/non-GNU ld that we prefer.
7283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7284 *GNU* | *'with BFD'*)
7285 test "$with_gnu_ld" != no && break
7288 test "$with_gnu_ld" != yes && break
7290 esac
7292 done
7293 IFS="$lt_save_ifs"
7294 else
7295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7299 LD="$lt_cv_path_LD"
7300 if test -n "$LD"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7302 $as_echo "$LD" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7307 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7309 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7310 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7314 case `$LD -v 2>&1 </dev/null` in
7315 *GNU* | *'with BFD'*)
7316 lt_cv_prog_gnu_ld=yes
7319 lt_cv_prog_gnu_ld=no
7321 esac
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7324 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7325 with_gnu_ld=$lt_cv_prog_gnu_ld
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7336 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7337 if test "${lt_cv_path_NM+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$NM"; then
7341 # Let the user override the test.
7342 lt_cv_path_NM="$NM"
7343 else
7344 lt_nm_to_check="${ac_tool_prefix}nm"
7345 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7346 lt_nm_to_check="$lt_nm_to_check nm"
7348 for lt_tmp_nm in $lt_nm_to_check; do
7349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7350 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7351 IFS="$lt_save_ifs"
7352 test -z "$ac_dir" && ac_dir=.
7353 tmp_nm="$ac_dir/$lt_tmp_nm"
7354 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7355 # Check to see if the nm accepts a BSD-compat flag.
7356 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7357 # nm: unknown option "B" ignored
7358 # Tru64's nm complains that /dev/null is an invalid object file
7359 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7360 */dev/null* | *'Invalid file or object type'*)
7361 lt_cv_path_NM="$tmp_nm -B"
7362 break
7365 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7366 */dev/null*)
7367 lt_cv_path_NM="$tmp_nm -p"
7368 break
7371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7372 continue # so that we can try to find one that supports BSD flags
7374 esac
7376 esac
7378 done
7379 IFS="$lt_save_ifs"
7380 done
7381 : ${lt_cv_path_NM=no}
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7385 $as_echo "$lt_cv_path_NM" >&6; }
7386 if test "$lt_cv_path_NM" != "no"; then
7387 NM="$lt_cv_path_NM"
7388 else
7389 # Didn't find any BSD compatible name lister, look for dumpbin.
7390 if test -n "$ac_tool_prefix"; then
7391 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 if test -n "$DUMPBIN"; then
7401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7414 done
7415 done
7416 IFS=$as_save_IFS
7420 DUMPBIN=$ac_cv_prog_DUMPBIN
7421 if test -n "$DUMPBIN"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7423 $as_echo "$DUMPBIN" >&6; }
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7430 test -n "$DUMPBIN" && break
7431 done
7433 if test -z "$DUMPBIN"; then
7434 ac_ct_DUMPBIN=$DUMPBIN
7435 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7437 # Extract the first word of "$ac_prog", so it can be a program name with args.
7438 set dummy $ac_prog; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$ac_ct_DUMPBIN"; then
7445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7460 IFS=$as_save_IFS
7464 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7465 if test -n "$ac_ct_DUMPBIN"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7467 $as_echo "$ac_ct_DUMPBIN" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7474 test -n "$ac_ct_DUMPBIN" && break
7475 done
7477 if test "x$ac_ct_DUMPBIN" = x; then
7478 DUMPBIN=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 DUMPBIN=$ac_ct_DUMPBIN
7491 if test "$DUMPBIN" != ":"; then
7492 NM="$DUMPBIN"
7495 test -z "$NM" && NM=nm
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7504 if test "${lt_cv_nm_interface+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 lt_cv_nm_interface="BSD nm"
7508 echo "int some_variable = 0;" > conftest.$ac_ext
7509 (eval echo "\"\$as_me:7509: $ac_compile\"" >&5)
7510 (eval "$ac_compile" 2>conftest.err)
7511 cat conftest.err >&5
7512 (eval echo "\"\$as_me:7512: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7514 cat conftest.err >&5
7515 (eval echo "\"\$as_me:7515: output\"" >&5)
7516 cat conftest.out >&5
7517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7518 lt_cv_nm_interface="MS dumpbin"
7520 rm -f conftest*
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7523 $as_echo "$lt_cv_nm_interface" >&6; }
7525 # find the maximum length of command line arguments
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7527 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7528 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7532 teststring="ABCD"
7534 case $build_os in
7535 msdosdjgpp*)
7536 # On DJGPP, this test can blow up pretty badly due to problems in libc
7537 # (any single argument exceeding 2000 bytes causes a buffer overrun
7538 # during glob expansion). Even if it were fixed, the result of this
7539 # check would be larger than it should be.
7540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7543 gnu*)
7544 # Under GNU Hurd, this test is not required because there is
7545 # no limit to the length of command line arguments.
7546 # Libtool will interpret -1 as no limit whatsoever
7547 lt_cv_sys_max_cmd_len=-1;
7550 cygwin* | mingw* | cegcc*)
7551 # On Win9x/ME, this test blows up -- it succeeds, but takes
7552 # about 5 minutes as the teststring grows exponentially.
7553 # Worse, since 9x/ME are not pre-emptively multitasking,
7554 # you end up with a "frozen" computer, even though with patience
7555 # the test eventually succeeds (with a max line length of 256k).
7556 # Instead, let's just punt: use the minimum linelength reported by
7557 # all of the supported platforms: 8192 (on NT/2K/XP).
7558 lt_cv_sys_max_cmd_len=8192;
7561 amigaos*)
7562 # On AmigaOS with pdksh, this test takes hours, literally.
7563 # So we just punt and use a minimum line length of 8192.
7564 lt_cv_sys_max_cmd_len=8192;
7567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7568 # This has been around since 386BSD, at least. Likely further.
7569 if test -x /sbin/sysctl; then
7570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7571 elif test -x /usr/sbin/sysctl; then
7572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7573 else
7574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7576 # And add a safety zone
7577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7581 interix*)
7582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7583 lt_cv_sys_max_cmd_len=196608
7586 osf*)
7587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7589 # nice to cause kernel panics so lets avoid the loop below.
7590 # First set a reasonable default.
7591 lt_cv_sys_max_cmd_len=16384
7593 if test -x /sbin/sysconfig; then
7594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7595 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7596 esac
7599 sco3.2v5*)
7600 lt_cv_sys_max_cmd_len=102400
7602 sysv5* | sco5v6* | sysv4.2uw2*)
7603 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7604 if test -n "$kargmax"; then
7605 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7606 else
7607 lt_cv_sys_max_cmd_len=32768
7611 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7612 if test -n "$lt_cv_sys_max_cmd_len"; then
7613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7615 else
7616 # Make teststring a little bigger before we do anything with it.
7617 # a 1K string should be a reasonable start.
7618 for i in 1 2 3 4 5 6 7 8 ; do
7619 teststring=$teststring$teststring
7620 done
7621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7622 # If test is not a shell built-in, we'll probably end up computing a
7623 # maximum length that is only half of the actual maximum length, but
7624 # we can't tell.
7625 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7626 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7627 test $i != 17 # 1/2 MB should be enough
7629 i=`expr $i + 1`
7630 teststring=$teststring$teststring
7631 done
7632 # Only check the string length outside the loop.
7633 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7634 teststring=
7635 # Add a significant safety factor because C++ compilers can tack on
7636 # massive amounts of additional arguments before passing them to the
7637 # linker. It appears as though 1/2 is a usable value.
7638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7641 esac
7645 if test -n $lt_cv_sys_max_cmd_len ; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7647 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7650 $as_echo "none" >&6; }
7652 max_cmd_len=$lt_cv_sys_max_cmd_len
7659 : ${CP="cp -f"}
7660 : ${MV="mv -f"}
7661 : ${RM="rm -f"}
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7664 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7665 # Try some XSI features
7666 xsi_shell=no
7667 ( _lt_dummy="a/b/c"
7668 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7669 = c,a/b,, \
7670 && eval 'test $(( 1 + 1 )) -eq 2 \
7671 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7672 && xsi_shell=yes
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7674 $as_echo "$xsi_shell" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7678 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7679 lt_shell_append=no
7680 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7681 >/dev/null 2>&1 \
7682 && lt_shell_append=yes
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7684 $as_echo "$lt_shell_append" >&6; }
7687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7688 lt_unset=unset
7689 else
7690 lt_unset=false
7697 # test EBCDIC or ASCII
7698 case `echo X|tr X '\101'` in
7699 A) # ASCII based system
7700 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7701 lt_SP2NL='tr \040 \012'
7702 lt_NL2SP='tr \015\012 \040\040'
7704 *) # EBCDIC based system
7705 lt_SP2NL='tr \100 \n'
7706 lt_NL2SP='tr \r\n \100\100'
7708 esac
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7719 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7720 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 lt_cv_ld_reload_flag='-r'
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7726 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7727 reload_flag=$lt_cv_ld_reload_flag
7728 case $reload_flag in
7729 "" | " "*) ;;
7730 *) reload_flag=" $reload_flag" ;;
7731 esac
7732 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7733 case $host_os in
7734 darwin*)
7735 if test "$GCC" = yes; then
7736 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7737 else
7738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7741 esac
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$OBJDUMP"; then
7760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7779 OBJDUMP=$ac_cv_prog_OBJDUMP
7780 if test -n "$OBJDUMP"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7782 $as_echo "$OBJDUMP" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7790 if test -z "$ac_cv_prog_OBJDUMP"; then
7791 ac_ct_OBJDUMP=$OBJDUMP
7792 # Extract the first word of "objdump", so it can be a program name with args.
7793 set dummy objdump; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$ac_ct_OBJDUMP"; then
7800 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7819 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7820 if test -n "$ac_ct_OBJDUMP"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7822 $as_echo "$ac_ct_OBJDUMP" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7828 if test "x$ac_ct_OBJDUMP" = x; then
7829 OBJDUMP="false"
7830 else
7831 case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837 OBJDUMP=$ac_ct_OBJDUMP
7839 else
7840 OBJDUMP="$ac_cv_prog_OBJDUMP"
7843 test -z "$OBJDUMP" && OBJDUMP=objdump
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7854 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7855 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 lt_cv_file_magic_cmd='$MAGIC_CMD'
7859 lt_cv_file_magic_test_file=
7860 lt_cv_deplibs_check_method='unknown'
7861 # Need to set the preceding variable on all platforms that support
7862 # interlibrary dependencies.
7863 # 'none' -- dependencies not supported.
7864 # `unknown' -- same as none, but documents that we really don't know.
7865 # 'pass_all' -- all dependencies passed with no checks.
7866 # 'test_compile' -- check by making test program.
7867 # 'file_magic [[regex]]' -- check by looking for files in library path
7868 # which responds to the $file_magic_cmd with a given extended regex.
7869 # If you have `file' or equivalent on your system and you're not sure
7870 # whether `pass_all' will *always* work, you probably want this one.
7872 case $host_os in
7873 aix[4-9]*)
7874 lt_cv_deplibs_check_method=pass_all
7877 beos*)
7878 lt_cv_deplibs_check_method=pass_all
7881 bsdi[45]*)
7882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7883 lt_cv_file_magic_cmd='/usr/bin/file -L'
7884 lt_cv_file_magic_test_file=/shlib/libc.so
7887 cygwin*)
7888 # func_win32_libid is a shell function defined in ltmain.sh
7889 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7890 lt_cv_file_magic_cmd='func_win32_libid'
7893 mingw* | pw32*)
7894 # Base MSYS/MinGW do not provide the 'file' command needed by
7895 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7896 # unless we find 'file', for example because we are cross-compiling.
7897 if ( file / ) >/dev/null 2>&1; then
7898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7899 lt_cv_file_magic_cmd='func_win32_libid'
7900 else
7901 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7902 lt_cv_file_magic_cmd='$OBJDUMP -f'
7906 cegcc)
7907 # use the weaker test based on 'objdump'. See mingw*.
7908 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7909 lt_cv_file_magic_cmd='$OBJDUMP -f'
7912 darwin* | rhapsody*)
7913 lt_cv_deplibs_check_method=pass_all
7916 freebsd* | dragonfly*)
7917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7918 case $host_cpu in
7919 i*86 )
7920 # Not sure whether the presence of OpenBSD here was a mistake.
7921 # Let's accept both of them until this is cleared up.
7922 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7923 lt_cv_file_magic_cmd=/usr/bin/file
7924 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7926 esac
7927 else
7928 lt_cv_deplibs_check_method=pass_all
7932 gnu*)
7933 lt_cv_deplibs_check_method=pass_all
7936 hpux10.20* | hpux11*)
7937 lt_cv_file_magic_cmd=/usr/bin/file
7938 case $host_cpu in
7939 ia64*)
7940 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7941 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7943 hppa*64*)
7944 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]'
7945 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7949 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7951 esac
7954 interix[3-9]*)
7955 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7959 irix5* | irix6* | nonstopux*)
7960 case $LD in
7961 *-32|*"-32 ") libmagic=32-bit;;
7962 *-n32|*"-n32 ") libmagic=N32;;
7963 *-64|*"-64 ") libmagic=64-bit;;
7964 *) libmagic=never-match;;
7965 esac
7966 lt_cv_deplibs_check_method=pass_all
7969 # This must be Linux ELF.
7970 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7971 lt_cv_deplibs_check_method=pass_all
7974 netbsd*)
7975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7977 else
7978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7982 newos6*)
7983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7984 lt_cv_file_magic_cmd=/usr/bin/file
7985 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7988 *nto* | *qnx*)
7989 lt_cv_deplibs_check_method=pass_all
7992 openbsd*)
7993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7995 else
7996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8000 osf3* | osf4* | osf5*)
8001 lt_cv_deplibs_check_method=pass_all
8004 rdos*)
8005 lt_cv_deplibs_check_method=pass_all
8008 solaris*)
8009 lt_cv_deplibs_check_method=pass_all
8012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8013 lt_cv_deplibs_check_method=pass_all
8016 sysv4 | sysv4.3*)
8017 case $host_vendor in
8018 motorola)
8019 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]'
8020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8022 ncr)
8023 lt_cv_deplibs_check_method=pass_all
8025 sequent)
8026 lt_cv_file_magic_cmd='/bin/file'
8027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8029 sni)
8030 lt_cv_file_magic_cmd='/bin/file'
8031 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8032 lt_cv_file_magic_test_file=/lib/libc.so
8034 siemens)
8035 lt_cv_deplibs_check_method=pass_all
8038 lt_cv_deplibs_check_method=pass_all
8040 esac
8043 tpf*)
8044 lt_cv_deplibs_check_method=pass_all
8046 esac
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8050 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8051 file_magic_cmd=$lt_cv_file_magic_cmd
8052 deplibs_check_method=$lt_cv_deplibs_check_method
8053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}ar; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_AR+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$AR"; then
8075 ac_cv_prog_AR="$AR" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_AR="${ac_tool_prefix}ar"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 AR=$ac_cv_prog_AR
8095 if test -n "$AR"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8097 $as_echo "$AR" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8105 if test -z "$ac_cv_prog_AR"; then
8106 ac_ct_AR=$AR
8107 # Extract the first word of "ar", so it can be a program name with args.
8108 set dummy ar; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$ac_ct_AR"; then
8115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_ac_ct_AR="ar"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8135 if test -n "$ac_ct_AR"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8137 $as_echo "$ac_ct_AR" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8143 if test "x$ac_ct_AR" = x; then
8144 AR="false"
8145 else
8146 case $cross_compiling:$ac_tool_warned in
8147 yes:)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150 ac_tool_warned=yes ;;
8151 esac
8152 AR=$ac_ct_AR
8154 else
8155 AR="$ac_cv_prog_AR"
8158 test -z "$AR" && AR=ar
8159 test -z "$AR_FLAGS" && AR_FLAGS=cru
8171 if test -n "$ac_tool_prefix"; then
8172 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8173 set dummy ${ac_tool_prefix}strip; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_STRIP+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$STRIP"; then
8180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8199 STRIP=$ac_cv_prog_STRIP
8200 if test -n "$STRIP"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8202 $as_echo "$STRIP" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8210 if test -z "$ac_cv_prog_STRIP"; then
8211 ac_ct_STRIP=$STRIP
8212 # Extract the first word of "strip", so it can be a program name with args.
8213 set dummy strip; ac_word=$2
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 if test -n "$ac_ct_STRIP"; then
8220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_prog_ac_ct_STRIP="strip"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8233 done
8234 done
8235 IFS=$as_save_IFS
8239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8240 if test -n "$ac_ct_STRIP"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8242 $as_echo "$ac_ct_STRIP" >&6; }
8243 else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8248 if test "x$ac_ct_STRIP" = x; then
8249 STRIP=":"
8250 else
8251 case $cross_compiling:$ac_tool_warned in
8252 yes:)
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8255 ac_tool_warned=yes ;;
8256 esac
8257 STRIP=$ac_ct_STRIP
8259 else
8260 STRIP="$ac_cv_prog_STRIP"
8263 test -z "$STRIP" && STRIP=:
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$RANLIB"; then
8279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8298 RANLIB=$ac_cv_prog_RANLIB
8299 if test -n "$RANLIB"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8301 $as_echo "$RANLIB" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8309 if test -z "$ac_cv_prog_RANLIB"; then
8310 ac_ct_RANLIB=$RANLIB
8311 # Extract the first word of "ranlib", so it can be a program name with args.
8312 set dummy ranlib; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$ac_ct_RANLIB"; then
8319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_ac_ct_RANLIB="ranlib"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8339 if test -n "$ac_ct_RANLIB"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8341 $as_echo "$ac_ct_RANLIB" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8347 if test "x$ac_ct_RANLIB" = x; then
8348 RANLIB=":"
8349 else
8350 case $cross_compiling:$ac_tool_warned in
8351 yes:)
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8355 esac
8356 RANLIB=$ac_ct_RANLIB
8358 else
8359 RANLIB="$ac_cv_prog_RANLIB"
8362 test -z "$RANLIB" && RANLIB=:
8369 # Determine commands to create old-style static archives.
8370 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8371 old_postinstall_cmds='chmod 644 $oldlib'
8372 old_postuninstall_cmds=
8374 if test -n "$RANLIB"; then
8375 case $host_os in
8376 openbsd*)
8377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8382 esac
8383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8419 # If no C compiler was specified, use CC.
8420 LTCC=${LTCC-"$CC"}
8422 # If no C compiler flags were specified, use CFLAGS.
8423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8425 # Allow CC to be a program name with arguments.
8426 compiler=$CC
8429 # Check for command to grab the raw symbol name followed by C symbol from nm.
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8431 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8432 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8436 # These are sane defaults that work on at least a few old systems.
8437 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8439 # Character class describing NM global symbol codes.
8440 symcode='[BCDEGRST]'
8442 # Regexp to match symbols that can be accessed directly from C.
8443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8445 # Define system-specific variables.
8446 case $host_os in
8447 aix*)
8448 symcode='[BCDT]'
8450 cygwin* | mingw* | pw32* | cegcc*)
8451 symcode='[ABCDGISTW]'
8453 hpux*)
8454 if test "$host_cpu" = ia64; then
8455 symcode='[ABCDEGRST]'
8458 irix* | nonstopux*)
8459 symcode='[BCDEGRST]'
8461 osf*)
8462 symcode='[BCDEGQRST]'
8464 solaris*)
8465 symcode='[BDRT]'
8467 sco3.2v5*)
8468 symcode='[DT]'
8470 sysv4.2uw2*)
8471 symcode='[DT]'
8473 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8474 symcode='[ABDT]'
8476 sysv4)
8477 symcode='[DFNSTU]'
8479 esac
8481 # If we're using GNU nm, then use its standard symbol codes.
8482 case `$NM -V 2>&1` in
8483 *GNU* | *'with BFD'*)
8484 symcode='[ABCDGIRSTW]' ;;
8485 esac
8487 # Transform an extracted symbol line into a proper C declaration.
8488 # Some systems (esp. on ia64) link data and code symbols differently,
8489 # so use this general approach.
8490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8492 # Transform an extracted symbol line into symbol name and symbol address
8493 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8494 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'"
8496 # Handle CRLF in mingw tool chain
8497 opt_cr=
8498 case $build_os in
8499 mingw*)
8500 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8502 esac
8504 # Try without a prefix underscore, then with it.
8505 for ac_symprfx in "" "_"; do
8507 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8508 symxfrm="\\1 $ac_symprfx\\2 \\2"
8510 # Write the raw and C identifiers.
8511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8512 # Fake it for dumpbin and say T for any non-static function
8513 # and D for any global variable.
8514 # Also find C++ and __fastcall symbols from MSVC++,
8515 # which start with @ or ?.
8516 lt_cv_sys_global_symbol_pipe="$AWK '"\
8517 " {last_section=section; section=\$ 3};"\
8518 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8519 " \$ 0!~/External *\|/{next};"\
8520 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8521 " {if(hide[section]) next};"\
8522 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8523 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8524 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8525 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8526 " ' prfx=^$ac_symprfx"
8527 else
8528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8531 # Check to see that the pipe works correctly.
8532 pipe_works=no
8534 rm -f conftest*
8535 cat > conftest.$ac_ext <<_LT_EOF
8536 #ifdef __cplusplus
8537 extern "C" {
8538 #endif
8539 char nm_test_var;
8540 void nm_test_func(void);
8541 void nm_test_func(void){}
8542 #ifdef __cplusplus
8544 #endif
8545 int main(){nm_test_var='a';nm_test_func();return(0);}
8546 _LT_EOF
8548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8549 (eval $ac_compile) 2>&5
8550 ac_status=$?
8551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8552 test $ac_status = 0; }; then
8553 # Now try to grab the symbols.
8554 nlist=conftest.nm
8555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8556 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8557 ac_status=$?
8558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8559 test $ac_status = 0; } && test -s "$nlist"; then
8560 # Try sorting and uniquifying the output.
8561 if sort "$nlist" | uniq > "$nlist"T; then
8562 mv -f "$nlist"T "$nlist"
8563 else
8564 rm -f "$nlist"T
8567 # Make sure that we snagged all the symbols we need.
8568 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8569 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8570 cat <<_LT_EOF > conftest.$ac_ext
8571 #ifdef __cplusplus
8572 extern "C" {
8573 #endif
8575 _LT_EOF
8576 # Now generate the symbol file.
8577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8579 cat <<_LT_EOF >> conftest.$ac_ext
8581 /* The mapping between symbol names and symbols. */
8582 const struct {
8583 const char *name;
8584 void *address;
8586 lt__PROGRAM__LTX_preloaded_symbols[] =
8588 { "@PROGRAM@", (void *) 0 },
8589 _LT_EOF
8590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8591 cat <<\_LT_EOF >> conftest.$ac_ext
8592 {0, (void *) 0}
8595 /* This works around a problem in FreeBSD linker */
8596 #ifdef FREEBSD_WORKAROUND
8597 static const void *lt_preloaded_setup() {
8598 return lt__PROGRAM__LTX_preloaded_symbols;
8600 #endif
8602 #ifdef __cplusplus
8604 #endif
8605 _LT_EOF
8606 # Now try linking the two files.
8607 mv conftest.$ac_objext conftstm.$ac_objext
8608 lt_save_LIBS="$LIBS"
8609 lt_save_CFLAGS="$CFLAGS"
8610 LIBS="conftstm.$ac_objext"
8611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8613 (eval $ac_link) 2>&5
8614 ac_status=$?
8615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8616 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8617 pipe_works=yes
8619 LIBS="$lt_save_LIBS"
8620 CFLAGS="$lt_save_CFLAGS"
8621 else
8622 echo "cannot find nm_test_func in $nlist" >&5
8624 else
8625 echo "cannot find nm_test_var in $nlist" >&5
8627 else
8628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8630 else
8631 echo "$progname: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 rm -rf conftest* conftst*
8636 # Do not use the global_symbol_pipe unless it works.
8637 if test "$pipe_works" = yes; then
8638 break
8639 else
8640 lt_cv_sys_global_symbol_pipe=
8642 done
8646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8647 lt_cv_sys_global_symbol_to_cdecl=
8649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8651 $as_echo "failed" >&6; }
8652 else
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8654 $as_echo "ok" >&6; }
8679 # Check whether --enable-libtool-lock was given.
8680 if test "${enable_libtool_lock+set}" = set; then :
8681 enableval=$enable_libtool_lock;
8684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8686 # Some flags need to be propagated to the compiler or linker for good
8687 # libtool support.
8688 case $host in
8689 ia64-*-hpux*)
8690 # Find out which ABI we are using.
8691 echo 'int i;' > conftest.$ac_ext
8692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8693 (eval $ac_compile) 2>&5
8694 ac_status=$?
8695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8696 test $ac_status = 0; }; then
8697 case `/usr/bin/file conftest.$ac_objext` in
8698 *ELF-32*)
8699 HPUX_IA64_MODE="32"
8701 *ELF-64*)
8702 HPUX_IA64_MODE="64"
8704 esac
8706 rm -rf conftest*
8708 *-*-irix6*)
8709 # Find out which ABI we are using.
8710 echo '#line 8710 "configure"' > conftest.$ac_ext
8711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8712 (eval $ac_compile) 2>&5
8713 ac_status=$?
8714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8715 test $ac_status = 0; }; then
8716 if test "$lt_cv_prog_gnu_ld" = yes; then
8717 case `/usr/bin/file conftest.$ac_objext` in
8718 *32-bit*)
8719 LD="${LD-ld} -melf32bsmip"
8721 *N32*)
8722 LD="${LD-ld} -melf32bmipn32"
8724 *64-bit*)
8725 LD="${LD-ld} -melf64bmip"
8727 esac
8728 else
8729 case `/usr/bin/file conftest.$ac_objext` in
8730 *32-bit*)
8731 LD="${LD-ld} -32"
8733 *N32*)
8734 LD="${LD-ld} -n32"
8736 *64-bit*)
8737 LD="${LD-ld} -64"
8739 esac
8742 rm -rf conftest*
8745 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8746 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8747 # Find out which ABI we are using.
8748 echo 'int i;' > conftest.$ac_ext
8749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8750 (eval $ac_compile) 2>&5
8751 ac_status=$?
8752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8753 test $ac_status = 0; }; then
8754 case `/usr/bin/file conftest.o` in
8755 *32-bit*)
8756 case $host in
8757 x86_64-*kfreebsd*-gnu)
8758 LD="${LD-ld} -m elf_i386_fbsd"
8760 x86_64-*linux*)
8761 LD="${LD-ld} -m elf_i386"
8763 ppc64-*linux*|powerpc64-*linux*)
8764 LD="${LD-ld} -m elf32ppclinux"
8766 s390x-*linux*)
8767 LD="${LD-ld} -m elf_s390"
8769 sparc64-*linux*)
8770 LD="${LD-ld} -m elf32_sparc"
8772 esac
8774 *64-bit*)
8775 case $host in
8776 x86_64-*kfreebsd*-gnu)
8777 LD="${LD-ld} -m elf_x86_64_fbsd"
8779 x86_64-*linux*)
8780 LD="${LD-ld} -m elf_x86_64"
8782 ppc*-*linux*|powerpc*-*linux*)
8783 LD="${LD-ld} -m elf64ppc"
8785 s390*-*linux*|s390*-*tpf*)
8786 LD="${LD-ld} -m elf64_s390"
8788 sparc*-*linux*)
8789 LD="${LD-ld} -m elf64_sparc"
8791 esac
8793 esac
8795 rm -rf conftest*
8798 *-*-sco3.2v5*)
8799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8800 SAVE_CFLAGS="$CFLAGS"
8801 CFLAGS="$CFLAGS -belf"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8803 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8804 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 ac_ext=c
8808 ac_cpp='$CPP $CPPFLAGS'
8809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8813 if test x$gcc_no_link = xyes; then
8814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8820 main ()
8824 return 0;
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"; then :
8828 lt_cv_cc_needs_belf=yes
8829 else
8830 lt_cv_cc_needs_belf=no
8832 rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 ac_ext=c
8835 ac_cpp='$CPP $CPPFLAGS'
8836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8842 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8845 CFLAGS="$SAVE_CFLAGS"
8848 sparc*-*solaris*)
8849 # Find out which ABI we are using.
8850 echo 'int i;' > conftest.$ac_ext
8851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8852 (eval $ac_compile) 2>&5
8853 ac_status=$?
8854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8855 test $ac_status = 0; }; then
8856 case `/usr/bin/file conftest.o` in
8857 *64-bit*)
8858 case $lt_cv_prog_gnu_ld in
8859 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8862 LD="${LD-ld} -64"
8865 esac
8867 esac
8869 rm -rf conftest*
8871 esac
8873 need_locks="$enable_libtool_lock"
8876 case $host_os in
8877 rhapsody* | darwin*)
8878 if test -n "$ac_tool_prefix"; then
8879 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8880 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 if test -n "$DSYMUTIL"; then
8887 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8900 done
8901 done
8902 IFS=$as_save_IFS
8906 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8907 if test -n "$DSYMUTIL"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8909 $as_echo "$DSYMUTIL" >&6; }
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8917 if test -z "$ac_cv_prog_DSYMUTIL"; then
8918 ac_ct_DSYMUTIL=$DSYMUTIL
8919 # Extract the first word of "dsymutil", so it can be a program name with args.
8920 set dummy dsymutil; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test -n "$ac_ct_DSYMUTIL"; then
8927 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8946 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8947 if test -n "$ac_ct_DSYMUTIL"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8949 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8955 if test "x$ac_ct_DSYMUTIL" = x; then
8956 DSYMUTIL=":"
8957 else
8958 case $cross_compiling:$ac_tool_warned in
8959 yes:)
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8962 ac_tool_warned=yes ;;
8963 esac
8964 DSYMUTIL=$ac_ct_DSYMUTIL
8966 else
8967 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8970 if test -n "$ac_tool_prefix"; then
8971 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8972 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 if test -n "$NMEDIT"; then
8979 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8980 else
8981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 for as_dir in $PATH
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8988 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8992 done
8993 done
8994 IFS=$as_save_IFS
8998 NMEDIT=$ac_cv_prog_NMEDIT
8999 if test -n "$NMEDIT"; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9001 $as_echo "$NMEDIT" >&6; }
9002 else
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9009 if test -z "$ac_cv_prog_NMEDIT"; then
9010 ac_ct_NMEDIT=$NMEDIT
9011 # Extract the first word of "nmedit", so it can be a program name with args.
9012 set dummy nmedit; ac_word=$2
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -n "$ac_ct_NMEDIT"; then
9019 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9020 else
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9034 IFS=$as_save_IFS
9038 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9039 if test -n "$ac_ct_NMEDIT"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9041 $as_echo "$ac_ct_NMEDIT" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9047 if test "x$ac_ct_NMEDIT" = x; then
9048 NMEDIT=":"
9049 else
9050 case $cross_compiling:$ac_tool_warned in
9051 yes:)
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9054 ac_tool_warned=yes ;;
9055 esac
9056 NMEDIT=$ac_ct_NMEDIT
9058 else
9059 NMEDIT="$ac_cv_prog_NMEDIT"
9062 if test -n "$ac_tool_prefix"; then
9063 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9064 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if test "${ac_cv_prog_LIPO+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 if test -n "$LIPO"; then
9071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9072 else
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9086 IFS=$as_save_IFS
9090 LIPO=$ac_cv_prog_LIPO
9091 if test -n "$LIPO"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9093 $as_echo "$LIPO" >&6; }
9094 else
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9101 if test -z "$ac_cv_prog_LIPO"; then
9102 ac_ct_LIPO=$LIPO
9103 # Extract the first word of "lipo", so it can be a program name with args.
9104 set dummy lipo; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 if test -n "$ac_ct_LIPO"; then
9111 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_prog_ac_ct_LIPO="lipo"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9124 done
9125 done
9126 IFS=$as_save_IFS
9130 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9131 if test -n "$ac_ct_LIPO"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9133 $as_echo "$ac_ct_LIPO" >&6; }
9134 else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9139 if test "x$ac_ct_LIPO" = x; then
9140 LIPO=":"
9141 else
9142 case $cross_compiling:$ac_tool_warned in
9143 yes:)
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9146 ac_tool_warned=yes ;;
9147 esac
9148 LIPO=$ac_ct_LIPO
9150 else
9151 LIPO="$ac_cv_prog_LIPO"
9154 if test -n "$ac_tool_prefix"; then
9155 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9156 set dummy ${ac_tool_prefix}otool; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$OTOOL"; then
9163 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9182 OTOOL=$ac_cv_prog_OTOOL
9183 if test -n "$OTOOL"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9185 $as_echo "$OTOOL" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9193 if test -z "$ac_cv_prog_OTOOL"; then
9194 ac_ct_OTOOL=$OTOOL
9195 # Extract the first word of "otool", so it can be a program name with args.
9196 set dummy otool; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 if test -n "$ac_ct_OTOOL"; then
9203 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9204 else
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9212 ac_cv_prog_ac_ct_OTOOL="otool"
9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 break 2
9216 done
9217 done
9218 IFS=$as_save_IFS
9222 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9223 if test -n "$ac_ct_OTOOL"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9225 $as_echo "$ac_ct_OTOOL" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9231 if test "x$ac_ct_OTOOL" = x; then
9232 OTOOL=":"
9233 else
9234 case $cross_compiling:$ac_tool_warned in
9235 yes:)
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9238 ac_tool_warned=yes ;;
9239 esac
9240 OTOOL=$ac_ct_OTOOL
9242 else
9243 OTOOL="$ac_cv_prog_OTOOL"
9246 if test -n "$ac_tool_prefix"; then
9247 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9248 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 if test -n "$OTOOL64"; then
9255 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9256 else
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9268 done
9269 done
9270 IFS=$as_save_IFS
9274 OTOOL64=$ac_cv_prog_OTOOL64
9275 if test -n "$OTOOL64"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9277 $as_echo "$OTOOL64" >&6; }
9278 else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9285 if test -z "$ac_cv_prog_OTOOL64"; then
9286 ac_ct_OTOOL64=$OTOOL64
9287 # Extract the first word of "otool64", so it can be a program name with args.
9288 set dummy otool64; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 if test -n "$ac_ct_OTOOL64"; then
9295 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_ac_ct_OTOOL64="otool64"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9314 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9315 if test -n "$ac_ct_OTOOL64"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9317 $as_echo "$ac_ct_OTOOL64" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9323 if test "x$ac_ct_OTOOL64" = x; then
9324 OTOOL64=":"
9325 else
9326 case $cross_compiling:$ac_tool_warned in
9327 yes:)
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9330 ac_tool_warned=yes ;;
9331 esac
9332 OTOOL64=$ac_ct_OTOOL64
9334 else
9335 OTOOL64="$ac_cv_prog_OTOOL64"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9365 $as_echo_n "checking for -single_module linker flag... " >&6; }
9366 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 lt_cv_apple_cc_single_mod=no
9370 if test -z "${LT_MULTI_MODULE}"; then
9371 # By default we will add the -single_module flag. You can override
9372 # by either setting the environment variable LT_MULTI_MODULE
9373 # non-empty at configure time, or by adding -multi_module to the
9374 # link flags.
9375 rm -rf libconftest.dylib*
9376 echo "int foo(void){return 1;}" > conftest.c
9377 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9378 -dynamiclib -Wl,-single_module conftest.c" >&5
9379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9380 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9381 _lt_result=$?
9382 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9383 lt_cv_apple_cc_single_mod=yes
9384 else
9385 cat conftest.err >&5
9387 rm -rf libconftest.dylib*
9388 rm -f conftest.*
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9392 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9394 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9395 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 lt_cv_ld_exported_symbols_list=no
9399 save_LDFLAGS=$LDFLAGS
9400 echo "_main" > conftest.sym
9401 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9402 if test x$gcc_no_link = xyes; then
9403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9409 main ()
9413 return 0;
9415 _ACEOF
9416 if ac_fn_c_try_link "$LINENO"; then :
9417 lt_cv_ld_exported_symbols_list=yes
9418 else
9419 lt_cv_ld_exported_symbols_list=no
9421 rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 LDFLAGS="$save_LDFLAGS"
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9427 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9428 case $host_os in
9429 rhapsody* | darwin1.[012])
9430 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9431 darwin1.*)
9432 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9433 darwin*) # darwin 5.x on
9434 # if running on 10.5 or later, the deployment target defaults
9435 # to the OS version, if on x86, and 10.4, the deployment
9436 # target defaults to 10.4. Don't you love it?
9437 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9438 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9439 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9440 10.[012]*)
9441 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9442 10.*)
9443 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9444 esac
9446 esac
9447 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9448 _lt_dar_single_mod='$single_module'
9450 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9451 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9452 else
9453 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9455 if test "$DSYMUTIL" != ":"; then
9456 _lt_dsymutil='~$DSYMUTIL $lib || :'
9457 else
9458 _lt_dsymutil=
9461 esac
9463 ac_ext=c
9464 ac_cpp='$CPP $CPPFLAGS'
9465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9469 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9470 # On Suns, sometimes $CPP names a directory.
9471 if test -n "$CPP" && test -d "$CPP"; then
9472 CPP=
9474 if test -z "$CPP"; then
9475 if test "${ac_cv_prog_CPP+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 # Double quotes because CPP needs to be expanded
9479 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9481 ac_preproc_ok=false
9482 for ac_c_preproc_warn_flag in '' yes
9484 # Use a header file that comes with gcc, so configuring glibc
9485 # with a fresh cross-compiler works.
9486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 # <limits.h> exists even on freestanding compilers.
9488 # On the NeXT, cc -E runs the code through the compiler's parser,
9489 # not just through cpp. "Syntax error" is here to catch this case.
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #ifdef __STDC__
9493 # include <limits.h>
9494 #else
9495 # include <assert.h>
9496 #endif
9497 Syntax error
9498 _ACEOF
9499 if ac_fn_c_try_cpp "$LINENO"; then :
9501 else
9502 # Broken: fails on valid input.
9503 continue
9505 rm -f conftest.err conftest.$ac_ext
9507 # OK, works on sane cases. Now check whether nonexistent headers
9508 # can be detected and how.
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 #include <ac_nonexistent.h>
9512 _ACEOF
9513 if ac_fn_c_try_cpp "$LINENO"; then :
9514 # Broken: success on invalid input.
9515 continue
9516 else
9517 # Passes both tests.
9518 ac_preproc_ok=:
9519 break
9521 rm -f conftest.err conftest.$ac_ext
9523 done
9524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9525 rm -f conftest.err conftest.$ac_ext
9526 if $ac_preproc_ok; then :
9527 break
9530 done
9531 ac_cv_prog_CPP=$CPP
9534 CPP=$ac_cv_prog_CPP
9535 else
9536 ac_cv_prog_CPP=$CPP
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9539 $as_echo "$CPP" >&6; }
9540 ac_preproc_ok=false
9541 for ac_c_preproc_warn_flag in '' yes
9543 # Use a header file that comes with gcc, so configuring glibc
9544 # with a fresh cross-compiler works.
9545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9546 # <limits.h> exists even on freestanding compilers.
9547 # On the NeXT, cc -E runs the code through the compiler's parser,
9548 # not just through cpp. "Syntax error" is here to catch this case.
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551 #ifdef __STDC__
9552 # include <limits.h>
9553 #else
9554 # include <assert.h>
9555 #endif
9556 Syntax error
9557 _ACEOF
9558 if ac_fn_c_try_cpp "$LINENO"; then :
9560 else
9561 # Broken: fails on valid input.
9562 continue
9564 rm -f conftest.err conftest.$ac_ext
9566 # OK, works on sane cases. Now check whether nonexistent headers
9567 # can be detected and how.
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 #include <ac_nonexistent.h>
9571 _ACEOF
9572 if ac_fn_c_try_cpp "$LINENO"; then :
9573 # Broken: success on invalid input.
9574 continue
9575 else
9576 # Passes both tests.
9577 ac_preproc_ok=:
9578 break
9580 rm -f conftest.err conftest.$ac_ext
9582 done
9583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9584 rm -f conftest.err conftest.$ac_ext
9585 if $ac_preproc_ok; then :
9587 else
9588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9590 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9591 See \`config.log' for more details." "$LINENO" 5; }
9594 ac_ext=c
9595 ac_cpp='$CPP $CPPFLAGS'
9596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9602 $as_echo_n "checking for ANSI C header files... " >&6; }
9603 if test "${ac_cv_header_stdc+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 #include <stdlib.h>
9609 #include <stdarg.h>
9610 #include <string.h>
9611 #include <float.h>
9614 main ()
9618 return 0;
9620 _ACEOF
9621 if ac_fn_c_try_compile "$LINENO"; then :
9622 ac_cv_header_stdc=yes
9623 else
9624 ac_cv_header_stdc=no
9626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9628 if test $ac_cv_header_stdc = yes; then
9629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #include <string.h>
9634 _ACEOF
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 $EGREP "memchr" >/dev/null 2>&1; then :
9638 else
9639 ac_cv_header_stdc=no
9641 rm -f conftest*
9645 if test $ac_cv_header_stdc = yes; then
9646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 #include <stdlib.h>
9651 _ACEOF
9652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9653 $EGREP "free" >/dev/null 2>&1; then :
9655 else
9656 ac_cv_header_stdc=no
9658 rm -f conftest*
9662 if test $ac_cv_header_stdc = yes; then
9663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9664 if test "$cross_compiling" = yes; then :
9666 else
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include <ctype.h>
9670 #include <stdlib.h>
9671 #if ((' ' & 0x0FF) == 0x020)
9672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9674 #else
9675 # define ISLOWER(c) \
9676 (('a' <= (c) && (c) <= 'i') \
9677 || ('j' <= (c) && (c) <= 'r') \
9678 || ('s' <= (c) && (c) <= 'z'))
9679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9680 #endif
9682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9684 main ()
9686 int i;
9687 for (i = 0; i < 256; i++)
9688 if (XOR (islower (i), ISLOWER (i))
9689 || toupper (i) != TOUPPER (i))
9690 return 2;
9691 return 0;
9693 _ACEOF
9694 if ac_fn_c_try_run "$LINENO"; then :
9696 else
9697 ac_cv_header_stdc=no
9699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9700 conftest.$ac_objext conftest.beam conftest.$ac_ext
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9706 $as_echo "$ac_cv_header_stdc" >&6; }
9707 if test $ac_cv_header_stdc = yes; then
9709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9713 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9715 inttypes.h stdint.h unistd.h
9716 do :
9717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9718 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9720 eval as_val=\$$as_ac_Header
9721 if test "x$as_val" = x""yes; then :
9722 cat >>confdefs.h <<_ACEOF
9723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9724 _ACEOF
9728 done
9731 for ac_header in dlfcn.h
9732 do :
9733 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9735 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9736 cat >>confdefs.h <<_ACEOF
9737 #define HAVE_DLFCN_H 1
9738 _ACEOF
9742 done
9746 ac_ext=cpp
9747 ac_cpp='$CXXCPP $CPPFLAGS'
9748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9751 if test -z "$CXX"; then
9752 if test -n "$CCC"; then
9753 CXX=$CCC
9754 else
9755 if test -n "$ac_tool_prefix"; then
9756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if test "${ac_cv_prog_CXX+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 if test -n "$CXX"; then
9766 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9767 else
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9781 IFS=$as_save_IFS
9785 CXX=$ac_cv_prog_CXX
9786 if test -n "$CXX"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9788 $as_echo "$CXX" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9795 test -n "$CXX" && break
9796 done
9798 if test -z "$CXX"; then
9799 ac_ct_CXX=$CXX
9800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9802 # Extract the first word of "$ac_prog", so it can be a program name with args.
9803 set dummy $ac_prog; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 if test -n "$ac_ct_CXX"; then
9810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9811 else
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819 ac_cv_prog_ac_ct_CXX="$ac_prog"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 break 2
9823 done
9824 done
9825 IFS=$as_save_IFS
9829 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9830 if test -n "$ac_ct_CXX"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9832 $as_echo "$ac_ct_CXX" >&6; }
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9839 test -n "$ac_ct_CXX" && break
9840 done
9842 if test "x$ac_ct_CXX" = x; then
9843 CXX="g++"
9844 else
9845 case $cross_compiling:$ac_tool_warned in
9846 yes:)
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9849 ac_tool_warned=yes ;;
9850 esac
9851 CXX=$ac_ct_CXX
9857 # Provide some information about the compiler.
9858 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9859 set X $ac_compile
9860 ac_compiler=$2
9861 for ac_option in --version -v -V -qversion; do
9862 { { ac_try="$ac_compiler $ac_option >&5"
9863 case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9868 $as_echo "$ac_try_echo"; } >&5
9869 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9870 ac_status=$?
9871 if test -s conftest.err; then
9872 sed '10a\
9873 ... rest of stderr output deleted ...
9874 10q' conftest.err >conftest.er1
9875 cat conftest.er1 >&5
9876 rm -f conftest.er1 conftest.err
9878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9879 test $ac_status = 0; }
9880 done
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9883 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9884 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9891 main ()
9893 #ifndef __GNUC__
9894 choke me
9895 #endif
9898 return 0;
9900 _ACEOF
9901 if ac_fn_cxx_try_compile "$LINENO"; then :
9902 ac_compiler_gnu=yes
9903 else
9904 ac_compiler_gnu=no
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9911 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9912 if test $ac_compiler_gnu = yes; then
9913 GXX=yes
9914 else
9915 GXX=
9917 ac_test_CXXFLAGS=${CXXFLAGS+set}
9918 ac_save_CXXFLAGS=$CXXFLAGS
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9920 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9921 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9925 ac_cxx_werror_flag=yes
9926 ac_cv_prog_cxx_g=no
9927 CXXFLAGS="-g"
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9932 main ()
9936 return 0;
9938 _ACEOF
9939 if ac_fn_cxx_try_compile "$LINENO"; then :
9940 ac_cv_prog_cxx_g=yes
9941 else
9942 CXXFLAGS=""
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9947 main ()
9951 return 0;
9953 _ACEOF
9954 if ac_fn_cxx_try_compile "$LINENO"; then :
9956 else
9957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9958 CXXFLAGS="-g"
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9963 main ()
9967 return 0;
9969 _ACEOF
9970 if ac_fn_cxx_try_compile "$LINENO"; then :
9971 ac_cv_prog_cxx_g=yes
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9981 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9982 if test "$ac_test_CXXFLAGS" = set; then
9983 CXXFLAGS=$ac_save_CXXFLAGS
9984 elif test $ac_cv_prog_cxx_g = yes; then
9985 if test "$GXX" = yes; then
9986 CXXFLAGS="-g -O2"
9987 else
9988 CXXFLAGS="-g"
9990 else
9991 if test "$GXX" = yes; then
9992 CXXFLAGS="-O2"
9993 else
9994 CXXFLAGS=
9997 ac_ext=c
9998 ac_cpp='$CPP $CPPFLAGS'
9999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10003 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10005 (test "X$CXX" != "Xg++"))) ; then
10006 ac_ext=cpp
10007 ac_cpp='$CXXCPP $CPPFLAGS'
10008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10012 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10013 if test -z "$CXXCPP"; then
10014 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 # Double quotes because CXXCPP needs to be expanded
10018 for CXXCPP in "$CXX -E" "/lib/cpp"
10020 ac_preproc_ok=false
10021 for ac_cxx_preproc_warn_flag in '' yes
10023 # Use a header file that comes with gcc, so configuring glibc
10024 # with a fresh cross-compiler works.
10025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10026 # <limits.h> exists even on freestanding compilers.
10027 # On the NeXT, cc -E runs the code through the compiler's parser,
10028 # not just through cpp. "Syntax error" is here to catch this case.
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 #ifdef __STDC__
10032 # include <limits.h>
10033 #else
10034 # include <assert.h>
10035 #endif
10036 Syntax error
10037 _ACEOF
10038 if ac_fn_cxx_try_cpp "$LINENO"; then :
10040 else
10041 # Broken: fails on valid input.
10042 continue
10044 rm -f conftest.err conftest.$ac_ext
10046 # OK, works on sane cases. Now check whether nonexistent headers
10047 # can be detected and how.
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 #include <ac_nonexistent.h>
10051 _ACEOF
10052 if ac_fn_cxx_try_cpp "$LINENO"; then :
10053 # Broken: success on invalid input.
10054 continue
10055 else
10056 # Passes both tests.
10057 ac_preproc_ok=:
10058 break
10060 rm -f conftest.err conftest.$ac_ext
10062 done
10063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10064 rm -f conftest.err conftest.$ac_ext
10065 if $ac_preproc_ok; then :
10066 break
10069 done
10070 ac_cv_prog_CXXCPP=$CXXCPP
10073 CXXCPP=$ac_cv_prog_CXXCPP
10074 else
10075 ac_cv_prog_CXXCPP=$CXXCPP
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10078 $as_echo "$CXXCPP" >&6; }
10079 ac_preproc_ok=false
10080 for ac_cxx_preproc_warn_flag in '' yes
10082 # Use a header file that comes with gcc, so configuring glibc
10083 # with a fresh cross-compiler works.
10084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 # <limits.h> exists even on freestanding compilers.
10086 # On the NeXT, cc -E runs the code through the compiler's parser,
10087 # not just through cpp. "Syntax error" is here to catch this case.
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 #ifdef __STDC__
10091 # include <limits.h>
10092 #else
10093 # include <assert.h>
10094 #endif
10095 Syntax error
10096 _ACEOF
10097 if ac_fn_cxx_try_cpp "$LINENO"; then :
10099 else
10100 # Broken: fails on valid input.
10101 continue
10103 rm -f conftest.err conftest.$ac_ext
10105 # OK, works on sane cases. Now check whether nonexistent headers
10106 # can be detected and how.
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 #include <ac_nonexistent.h>
10110 _ACEOF
10111 if ac_fn_cxx_try_cpp "$LINENO"; then :
10112 # Broken: success on invalid input.
10113 continue
10114 else
10115 # Passes both tests.
10116 ac_preproc_ok=:
10117 break
10119 rm -f conftest.err conftest.$ac_ext
10121 done
10122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10123 rm -f conftest.err conftest.$ac_ext
10124 if $ac_preproc_ok; then :
10126 else
10127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10129 _lt_caught_CXX_error=yes; }
10132 ac_ext=c
10133 ac_cpp='$CPP $CPPFLAGS'
10134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10138 else
10139 _lt_caught_CXX_error=yes
10146 # Set options
10151 enable_win32_dll=no
10154 # Check whether --enable-shared was given.
10155 if test "${enable_shared+set}" = set; then :
10156 enableval=$enable_shared; p=${PACKAGE-default}
10157 case $enableval in
10158 yes) enable_shared=yes ;;
10159 no) enable_shared=no ;;
10161 enable_shared=no
10162 # Look at the argument we got. We use all the common list separators.
10163 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10164 for pkg in $enableval; do
10165 IFS="$lt_save_ifs"
10166 if test "X$pkg" = "X$p"; then
10167 enable_shared=yes
10169 done
10170 IFS="$lt_save_ifs"
10172 esac
10173 else
10174 enable_shared=yes
10185 # Check whether --enable-static was given.
10186 if test "${enable_static+set}" = set; then :
10187 enableval=$enable_static; p=${PACKAGE-default}
10188 case $enableval in
10189 yes) enable_static=yes ;;
10190 no) enable_static=no ;;
10192 enable_static=no
10193 # Look at the argument we got. We use all the common list separators.
10194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10195 for pkg in $enableval; do
10196 IFS="$lt_save_ifs"
10197 if test "X$pkg" = "X$p"; then
10198 enable_static=yes
10200 done
10201 IFS="$lt_save_ifs"
10203 esac
10204 else
10205 enable_static=yes
10217 # Check whether --with-pic was given.
10218 if test "${with_pic+set}" = set; then :
10219 withval=$with_pic; pic_mode="$withval"
10220 else
10221 pic_mode=default
10225 test -z "$pic_mode" && pic_mode=default
10233 # Check whether --enable-fast-install was given.
10234 if test "${enable_fast_install+set}" = set; then :
10235 enableval=$enable_fast_install; p=${PACKAGE-default}
10236 case $enableval in
10237 yes) enable_fast_install=yes ;;
10238 no) enable_fast_install=no ;;
10240 enable_fast_install=no
10241 # Look at the argument we got. We use all the common list separators.
10242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10243 for pkg in $enableval; do
10244 IFS="$lt_save_ifs"
10245 if test "X$pkg" = "X$p"; then
10246 enable_fast_install=yes
10248 done
10249 IFS="$lt_save_ifs"
10251 esac
10252 else
10253 enable_fast_install=yes
10266 # This can be used to rebuild libtool when needed
10267 LIBTOOL_DEPS="$ltmain"
10269 # Always use our own libtool.
10270 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10296 test -z "$LN_S" && LN_S="ln -s"
10311 if test -n "${ZSH_VERSION+set}" ; then
10312 setopt NO_GLOB_SUBST
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10316 $as_echo_n "checking for objdir... " >&6; }
10317 if test "${lt_cv_objdir+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 rm -f .libs 2>/dev/null
10321 mkdir .libs 2>/dev/null
10322 if test -d .libs; then
10323 lt_cv_objdir=.libs
10324 else
10325 # MS-DOS does not allow filenames that begin with a dot.
10326 lt_cv_objdir=_libs
10328 rmdir .libs 2>/dev/null
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10331 $as_echo "$lt_cv_objdir" >&6; }
10332 objdir=$lt_cv_objdir
10338 cat >>confdefs.h <<_ACEOF
10339 #define LT_OBJDIR "$lt_cv_objdir/"
10340 _ACEOF
10358 case $host_os in
10359 aix3*)
10360 # AIX sometimes has problems with the GCC collect2 program. For some
10361 # reason, if we set the COLLECT_NAMES environment variable, the problems
10362 # vanish in a puff of smoke.
10363 if test "X${COLLECT_NAMES+set}" != Xset; then
10364 COLLECT_NAMES=
10365 export COLLECT_NAMES
10368 esac
10370 # Sed substitution that helps us do robust quoting. It backslashifies
10371 # metacharacters that are still active within double-quoted strings.
10372 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10374 # Same as above, but do not quote variable references.
10375 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10377 # Sed substitution to delay expansion of an escaped shell variable in a
10378 # double_quote_subst'ed string.
10379 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10381 # Sed substitution to delay expansion of an escaped single quote.
10382 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10384 # Sed substitution to avoid accidental globbing in evaled expressions
10385 no_glob_subst='s/\*/\\\*/g'
10387 # Global variables:
10388 ofile=libtool
10389 can_build_shared=yes
10391 # All known linkers require a `.a' archive for static linking (except MSVC,
10392 # which needs '.lib').
10393 libext=a
10395 with_gnu_ld="$lt_cv_prog_gnu_ld"
10397 old_CC="$CC"
10398 old_CFLAGS="$CFLAGS"
10400 # Set sane defaults for various variables
10401 test -z "$CC" && CC=cc
10402 test -z "$LTCC" && LTCC=$CC
10403 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10404 test -z "$LD" && LD=ld
10405 test -z "$ac_objext" && ac_objext=o
10407 for cc_temp in $compiler""; do
10408 case $cc_temp in
10409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10411 \-*) ;;
10412 *) break;;
10413 esac
10414 done
10415 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10418 # Only perform the check for file, if the check method requires it
10419 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10420 case $deplibs_check_method in
10421 file_magic*)
10422 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10424 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10425 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 case $MAGIC_CMD in
10429 [\\/*] | ?:[\\/]*)
10430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10433 lt_save_MAGIC_CMD="$MAGIC_CMD"
10434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10435 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10436 for ac_dir in $ac_dummy; do
10437 IFS="$lt_save_ifs"
10438 test -z "$ac_dir" && ac_dir=.
10439 if test -f $ac_dir/${ac_tool_prefix}file; then
10440 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10441 if test -n "$file_magic_test_file"; then
10442 case $deplibs_check_method in
10443 "file_magic "*)
10444 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10447 $EGREP "$file_magic_regex" > /dev/null; then
10449 else
10450 cat <<_LT_EOF 1>&2
10452 *** Warning: the command libtool uses to detect shared libraries,
10453 *** $file_magic_cmd, produces output that libtool cannot recognize.
10454 *** The result is that libtool may fail to recognize shared libraries
10455 *** as such. This will affect the creation of libtool libraries that
10456 *** depend on shared libraries, but programs linked with such libtool
10457 *** libraries will work regardless of this problem. Nevertheless, you
10458 *** may want to report the problem to your system manager and/or to
10459 *** bug-libtool@gnu.org
10461 _LT_EOF
10462 fi ;;
10463 esac
10465 break
10467 done
10468 IFS="$lt_save_ifs"
10469 MAGIC_CMD="$lt_save_MAGIC_CMD"
10471 esac
10474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10475 if test -n "$MAGIC_CMD"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10477 $as_echo "$MAGIC_CMD" >&6; }
10478 else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10487 if test -z "$lt_cv_path_MAGIC_CMD"; then
10488 if test -n "$ac_tool_prefix"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10490 $as_echo_n "checking for file... " >&6; }
10491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 case $MAGIC_CMD in
10495 [\\/*] | ?:[\\/]*)
10496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10499 lt_save_MAGIC_CMD="$MAGIC_CMD"
10500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10502 for ac_dir in $ac_dummy; do
10503 IFS="$lt_save_ifs"
10504 test -z "$ac_dir" && ac_dir=.
10505 if test -f $ac_dir/file; then
10506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10507 if test -n "$file_magic_test_file"; then
10508 case $deplibs_check_method in
10509 "file_magic "*)
10510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10513 $EGREP "$file_magic_regex" > /dev/null; then
10515 else
10516 cat <<_LT_EOF 1>&2
10518 *** Warning: the command libtool uses to detect shared libraries,
10519 *** $file_magic_cmd, produces output that libtool cannot recognize.
10520 *** The result is that libtool may fail to recognize shared libraries
10521 *** as such. This will affect the creation of libtool libraries that
10522 *** depend on shared libraries, but programs linked with such libtool
10523 *** libraries will work regardless of this problem. Nevertheless, you
10524 *** may want to report the problem to your system manager and/or to
10525 *** bug-libtool@gnu.org
10527 _LT_EOF
10528 fi ;;
10529 esac
10531 break
10533 done
10534 IFS="$lt_save_ifs"
10535 MAGIC_CMD="$lt_save_MAGIC_CMD"
10537 esac
10540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10541 if test -n "$MAGIC_CMD"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10543 $as_echo "$MAGIC_CMD" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10550 else
10551 MAGIC_CMD=:
10557 esac
10559 # Use C for the default configuration in the libtool script
10561 lt_save_CC="$CC"
10562 ac_ext=c
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10569 # Source file extension for C test sources.
10570 ac_ext=c
10572 # Object file extension for compiled C test sources.
10573 objext=o
10574 objext=$objext
10576 # Code to be used in simple compile tests
10577 lt_simple_compile_test_code="int some_variable = 0;"
10579 # Code to be used in simple link tests
10580 lt_simple_link_test_code='int main(){return(0);}'
10588 # If no C compiler was specified, use CC.
10589 LTCC=${LTCC-"$CC"}
10591 # If no C compiler flags were specified, use CFLAGS.
10592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10594 # Allow CC to be a program name with arguments.
10595 compiler=$CC
10597 # Save the default compiler, since it gets overwritten when the other
10598 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10599 compiler_DEFAULT=$CC
10601 # save warnings/boilerplate of simple test code
10602 ac_outfile=conftest.$ac_objext
10603 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10604 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10605 _lt_compiler_boilerplate=`cat conftest.err`
10606 $RM conftest*
10608 ac_outfile=conftest.$ac_objext
10609 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10610 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10611 _lt_linker_boilerplate=`cat conftest.err`
10612 $RM -r conftest*
10615 ## CAVEAT EMPTOR:
10616 ## There is no encapsulation within the following macros, do not change
10617 ## the running order or otherwise move them around unless you know exactly
10618 ## what you are doing...
10619 if test -n "$compiler"; then
10621 lt_prog_compiler_no_builtin_flag=
10623 if test "$GCC" = yes; then
10624 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10628 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 lt_cv_prog_compiler_rtti_exceptions=no
10632 ac_outfile=conftest.$ac_objext
10633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10634 lt_compiler_flag="-fno-rtti -fno-exceptions"
10635 # Insert the option either (1) after the last *FLAGS variable, or
10636 # (2) before a word containing "conftest.", or (3) at the end.
10637 # Note that $ac_compile itself does not contain backslashes and begins
10638 # with a dollar sign (not a hyphen), so the echo should work correctly.
10639 # The option is referenced via a variable to avoid confusing sed.
10640 lt_compile=`echo "$ac_compile" | $SED \
10641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10643 -e 's:$: $lt_compiler_flag:'`
10644 (eval echo "\"\$as_me:10644: $lt_compile\"" >&5)
10645 (eval "$lt_compile" 2>conftest.err)
10646 ac_status=$?
10647 cat conftest.err >&5
10648 echo "$as_me:10648: \$? = $ac_status" >&5
10649 if (exit $ac_status) && test -s "$ac_outfile"; then
10650 # The compiler can only warn and ignore the option if not recognized
10651 # So say no if there are warnings other than the usual output.
10652 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10655 lt_cv_prog_compiler_rtti_exceptions=yes
10658 $RM conftest*
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10666 else
10677 lt_prog_compiler_wl=
10678 lt_prog_compiler_pic=
10679 lt_prog_compiler_static=
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10682 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10684 if test "$GCC" = yes; then
10685 lt_prog_compiler_wl='-Wl,'
10686 lt_prog_compiler_static='-static'
10688 case $host_os in
10689 aix*)
10690 # All AIX code is PIC.
10691 if test "$host_cpu" = ia64; then
10692 # AIX 5 now supports IA64 processor
10693 lt_prog_compiler_static='-Bstatic'
10697 amigaos*)
10698 case $host_cpu in
10699 powerpc)
10700 # see comment about AmigaOS4 .so support
10701 lt_prog_compiler_pic='-fPIC'
10703 m68k)
10704 # FIXME: we need at least 68020 code to build shared libraries, but
10705 # adding the `-m68020' flag to GCC prevents building anything better,
10706 # like `-m68040'.
10707 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10709 esac
10712 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10713 # PIC is the default for these OSes.
10716 mingw* | cygwin* | pw32* | os2* | cegcc*)
10717 # This hack is so that the source file can tell whether it is being
10718 # built for inclusion in a dll (and should export symbols for example).
10719 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10720 # (--disable-auto-import) libraries
10721 lt_prog_compiler_pic='-DDLL_EXPORT'
10724 darwin* | rhapsody*)
10725 # PIC is the default on this platform
10726 # Common symbols not allowed in MH_DYLIB files
10727 lt_prog_compiler_pic='-fno-common'
10730 hpux*)
10731 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10732 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10733 # sets the default TLS model and affects inlining.
10734 case $host_cpu in
10735 hppa*64*)
10736 # +Z the default
10739 lt_prog_compiler_pic='-fPIC'
10741 esac
10744 interix[3-9]*)
10745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10746 # Instead, we relocate shared libraries at runtime.
10749 msdosdjgpp*)
10750 # Just because we use GCC doesn't mean we suddenly get shared libraries
10751 # on systems that don't support them.
10752 lt_prog_compiler_can_build_shared=no
10753 enable_shared=no
10756 *nto* | *qnx*)
10757 # QNX uses GNU C++, but need to define -shared option too, otherwise
10758 # it will coredump.
10759 lt_prog_compiler_pic='-fPIC -shared'
10762 sysv4*MP*)
10763 if test -d /usr/nec; then
10764 lt_prog_compiler_pic=-Kconform_pic
10769 lt_prog_compiler_pic='-fPIC'
10771 esac
10772 else
10773 # PORTME Check for flag to pass linker flags through the system compiler.
10774 case $host_os in
10775 aix*)
10776 lt_prog_compiler_wl='-Wl,'
10777 if test "$host_cpu" = ia64; then
10778 # AIX 5 now supports IA64 processor
10779 lt_prog_compiler_static='-Bstatic'
10780 else
10781 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10785 mingw* | cygwin* | pw32* | os2* | cegcc*)
10786 # This hack is so that the source file can tell whether it is being
10787 # built for inclusion in a dll (and should export symbols for example).
10788 lt_prog_compiler_pic='-DDLL_EXPORT'
10791 hpux9* | hpux10* | hpux11*)
10792 lt_prog_compiler_wl='-Wl,'
10793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10794 # not for PA HP-UX.
10795 case $host_cpu in
10796 hppa*64*|ia64*)
10797 # +Z the default
10800 lt_prog_compiler_pic='+Z'
10802 esac
10803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10804 lt_prog_compiler_static='${wl}-a ${wl}archive'
10807 irix5* | irix6* | nonstopux*)
10808 lt_prog_compiler_wl='-Wl,'
10809 # PIC (with -KPIC) is the default.
10810 lt_prog_compiler_static='-non_shared'
10813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10814 case $cc_basename in
10815 # old Intel for x86_64 which still supported -KPIC.
10816 ecc*)
10817 lt_prog_compiler_wl='-Wl,'
10818 lt_prog_compiler_pic='-KPIC'
10819 lt_prog_compiler_static='-static'
10821 # icc used to be incompatible with GCC.
10822 # ICC 10 doesn't accept -KPIC any more.
10823 icc* | ifort*)
10824 lt_prog_compiler_wl='-Wl,'
10825 lt_prog_compiler_pic='-fPIC'
10826 lt_prog_compiler_static='-static'
10828 # Lahey Fortran 8.1.
10829 lf95*)
10830 lt_prog_compiler_wl='-Wl,'
10831 lt_prog_compiler_pic='--shared'
10832 lt_prog_compiler_static='--static'
10834 pgcc* | pgf77* | pgf90* | pgf95*)
10835 # Portland Group compilers (*not* the Pentium gcc compiler,
10836 # which looks to be a dead project)
10837 lt_prog_compiler_wl='-Wl,'
10838 lt_prog_compiler_pic='-fpic'
10839 lt_prog_compiler_static='-Bstatic'
10841 ccc*)
10842 lt_prog_compiler_wl='-Wl,'
10843 # All Alpha code is PIC.
10844 lt_prog_compiler_static='-non_shared'
10846 xl*)
10847 # IBM XL C 8.0/Fortran 10.1 on PPC
10848 lt_prog_compiler_wl='-Wl,'
10849 lt_prog_compiler_pic='-qpic'
10850 lt_prog_compiler_static='-qstaticlink'
10853 case `$CC -V 2>&1 | sed 5q` in
10854 *Sun\ C*)
10855 # Sun C 5.9
10856 lt_prog_compiler_pic='-KPIC'
10857 lt_prog_compiler_static='-Bstatic'
10858 lt_prog_compiler_wl='-Wl,'
10860 *Sun\ F*)
10861 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10862 lt_prog_compiler_pic='-KPIC'
10863 lt_prog_compiler_static='-Bstatic'
10864 lt_prog_compiler_wl=''
10866 esac
10868 esac
10871 newsos6)
10872 lt_prog_compiler_pic='-KPIC'
10873 lt_prog_compiler_static='-Bstatic'
10876 *nto* | *qnx*)
10877 # QNX uses GNU C++, but need to define -shared option too, otherwise
10878 # it will coredump.
10879 lt_prog_compiler_pic='-fPIC -shared'
10882 osf3* | osf4* | osf5*)
10883 lt_prog_compiler_wl='-Wl,'
10884 # All OSF/1 code is PIC.
10885 lt_prog_compiler_static='-non_shared'
10888 rdos*)
10889 lt_prog_compiler_static='-non_shared'
10892 solaris*)
10893 lt_prog_compiler_pic='-KPIC'
10894 lt_prog_compiler_static='-Bstatic'
10895 case $cc_basename in
10896 f77* | f90* | f95*)
10897 lt_prog_compiler_wl='-Qoption ld ';;
10899 lt_prog_compiler_wl='-Wl,';;
10900 esac
10903 sunos4*)
10904 lt_prog_compiler_wl='-Qoption ld '
10905 lt_prog_compiler_pic='-PIC'
10906 lt_prog_compiler_static='-Bstatic'
10909 sysv4 | sysv4.2uw2* | sysv4.3*)
10910 lt_prog_compiler_wl='-Wl,'
10911 lt_prog_compiler_pic='-KPIC'
10912 lt_prog_compiler_static='-Bstatic'
10915 sysv4*MP*)
10916 if test -d /usr/nec ;then
10917 lt_prog_compiler_pic='-Kconform_pic'
10918 lt_prog_compiler_static='-Bstatic'
10922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10923 lt_prog_compiler_wl='-Wl,'
10924 lt_prog_compiler_pic='-KPIC'
10925 lt_prog_compiler_static='-Bstatic'
10928 unicos*)
10929 lt_prog_compiler_wl='-Wl,'
10930 lt_prog_compiler_can_build_shared=no
10933 uts4*)
10934 lt_prog_compiler_pic='-pic'
10935 lt_prog_compiler_static='-Bstatic'
10939 lt_prog_compiler_can_build_shared=no
10941 esac
10944 case $host_os in
10945 # For platforms which do not support PIC, -DPIC is meaningless:
10946 *djgpp*)
10947 lt_prog_compiler_pic=
10950 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10952 esac
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10954 $as_echo "$lt_prog_compiler_pic" >&6; }
10962 # Check to make sure the PIC flag actually works.
10964 if test -n "$lt_prog_compiler_pic"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 lt_cv_prog_compiler_pic_works=no
10971 ac_outfile=conftest.$ac_objext
10972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10973 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10974 # Insert the option either (1) after the last *FLAGS variable, or
10975 # (2) before a word containing "conftest.", or (3) at the end.
10976 # Note that $ac_compile itself does not contain backslashes and begins
10977 # with a dollar sign (not a hyphen), so the echo should work correctly.
10978 # The option is referenced via a variable to avoid confusing sed.
10979 lt_compile=`echo "$ac_compile" | $SED \
10980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10982 -e 's:$: $lt_compiler_flag:'`
10983 (eval echo "\"\$as_me:10983: $lt_compile\"" >&5)
10984 (eval "$lt_compile" 2>conftest.err)
10985 ac_status=$?
10986 cat conftest.err >&5
10987 echo "$as_me:10987: \$? = $ac_status" >&5
10988 if (exit $ac_status) && test -s "$ac_outfile"; then
10989 # The compiler can only warn and ignore the option if not recognized
10990 # So say no if there are warnings other than the usual output.
10991 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10994 lt_cv_prog_compiler_pic_works=yes
10997 $RM conftest*
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11001 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11003 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11004 case $lt_prog_compiler_pic in
11005 "" | " "*) ;;
11006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11007 esac
11008 else
11009 lt_prog_compiler_pic=
11010 lt_prog_compiler_can_build_shared=no
11021 # Check to make sure the static flag actually works.
11023 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11025 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11026 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 lt_cv_prog_compiler_static_works=no
11030 save_LDFLAGS="$LDFLAGS"
11031 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11034 # The linker can only warn and ignore the option if not recognized
11035 # So say no if there are warnings
11036 if test -s conftest.err; then
11037 # Append any errors to the config.log.
11038 cat conftest.err 1>&5
11039 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11041 if diff conftest.exp conftest.er2 >/dev/null; then
11042 lt_cv_prog_compiler_static_works=yes
11044 else
11045 lt_cv_prog_compiler_static_works=yes
11048 $RM -r conftest*
11049 LDFLAGS="$save_LDFLAGS"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11053 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11055 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11057 else
11058 lt_prog_compiler_static=
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11068 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11069 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 lt_cv_prog_compiler_c_o=no
11073 $RM -r conftest 2>/dev/null
11074 mkdir conftest
11075 cd conftest
11076 mkdir out
11077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11079 lt_compiler_flag="-o out/conftest2.$ac_objext"
11080 # Insert the option either (1) after the last *FLAGS variable, or
11081 # (2) before a word containing "conftest.", or (3) at the end.
11082 # Note that $ac_compile itself does not contain backslashes and begins
11083 # with a dollar sign (not a hyphen), so the echo should work correctly.
11084 lt_compile=`echo "$ac_compile" | $SED \
11085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11087 -e 's:$: $lt_compiler_flag:'`
11088 (eval echo "\"\$as_me:11088: $lt_compile\"" >&5)
11089 (eval "$lt_compile" 2>out/conftest.err)
11090 ac_status=$?
11091 cat out/conftest.err >&5
11092 echo "$as_me:11092: \$? = $ac_status" >&5
11093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11094 then
11095 # The compiler can only warn and ignore the option if not recognized
11096 # So say no if there are warnings
11097 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11100 lt_cv_prog_compiler_c_o=yes
11103 chmod u+w . 2>&5
11104 $RM conftest*
11105 # SGI C++ compiler will create directory out/ii_files/ for
11106 # template instantiation
11107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11108 $RM out/* && rmdir out
11109 cd ..
11110 $RM -r conftest
11111 $RM conftest*
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11115 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11124 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 lt_cv_prog_compiler_c_o=no
11128 $RM -r conftest 2>/dev/null
11129 mkdir conftest
11130 cd conftest
11131 mkdir out
11132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11134 lt_compiler_flag="-o out/conftest2.$ac_objext"
11135 # Insert the option either (1) after the last *FLAGS variable, or
11136 # (2) before a word containing "conftest.", or (3) at the end.
11137 # Note that $ac_compile itself does not contain backslashes and begins
11138 # with a dollar sign (not a hyphen), so the echo should work correctly.
11139 lt_compile=`echo "$ac_compile" | $SED \
11140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11142 -e 's:$: $lt_compiler_flag:'`
11143 (eval echo "\"\$as_me:11143: $lt_compile\"" >&5)
11144 (eval "$lt_compile" 2>out/conftest.err)
11145 ac_status=$?
11146 cat out/conftest.err >&5
11147 echo "$as_me:11147: \$? = $ac_status" >&5
11148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11149 then
11150 # The compiler can only warn and ignore the option if not recognized
11151 # So say no if there are warnings
11152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11155 lt_cv_prog_compiler_c_o=yes
11158 chmod u+w . 2>&5
11159 $RM conftest*
11160 # SGI C++ compiler will create directory out/ii_files/ for
11161 # template instantiation
11162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11163 $RM out/* && rmdir out
11164 cd ..
11165 $RM -r conftest
11166 $RM conftest*
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11170 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11175 hard_links="nottested"
11176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11177 # do not overwrite the value of need_locks provided by the user
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11179 $as_echo_n "checking if we can lock with hard links... " >&6; }
11180 hard_links=yes
11181 $RM conftest*
11182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11183 touch conftest.a
11184 ln conftest.a conftest.b 2>&5 || hard_links=no
11185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11187 $as_echo "$hard_links" >&6; }
11188 if test "$hard_links" = no; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11190 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11191 need_locks=warn
11193 else
11194 need_locks=no
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11205 runpath_var=
11206 allow_undefined_flag=
11207 always_export_symbols=no
11208 archive_cmds=
11209 archive_expsym_cmds=
11210 compiler_needs_object=no
11211 enable_shared_with_static_runtimes=no
11212 export_dynamic_flag_spec=
11213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11214 hardcode_automatic=no
11215 hardcode_direct=no
11216 hardcode_direct_absolute=no
11217 hardcode_libdir_flag_spec=
11218 hardcode_libdir_flag_spec_ld=
11219 hardcode_libdir_separator=
11220 hardcode_minus_L=no
11221 hardcode_shlibpath_var=unsupported
11222 inherit_rpath=no
11223 link_all_deplibs=unknown
11224 module_cmds=
11225 module_expsym_cmds=
11226 old_archive_from_new_cmds=
11227 old_archive_from_expsyms_cmds=
11228 thread_safe_flag_spec=
11229 whole_archive_flag_spec=
11230 # include_expsyms should be a list of space-separated symbols to be *always*
11231 # included in the symbol list
11232 include_expsyms=
11233 # exclude_expsyms can be an extended regexp of symbols to exclude
11234 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11235 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11236 # as well as any symbol that contains `d'.
11237 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11238 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11239 # platforms (ab)use it in PIC code, but their linkers get confused if
11240 # the symbol is explicitly referenced. Since portable code cannot
11241 # rely on this symbol name, it's probably fine to never include it in
11242 # preloaded symbol tables.
11243 # Exclude shared library initialization/finalization symbols.
11244 extract_expsyms_cmds=
11246 case $host_os in
11247 cygwin* | mingw* | pw32* | cegcc*)
11248 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11249 # When not using gcc, we currently assume that we are using
11250 # Microsoft Visual C++.
11251 if test "$GCC" != yes; then
11252 with_gnu_ld=no
11255 interix*)
11256 # we just hope/assume this is gcc and not c89 (= MSVC++)
11257 with_gnu_ld=yes
11259 openbsd*)
11260 with_gnu_ld=no
11262 esac
11264 ld_shlibs=yes
11265 if test "$with_gnu_ld" = yes; then
11266 # If archive_cmds runs LD, not CC, wlarc should be empty
11267 wlarc='${wl}'
11269 # Set some defaults for GNU ld with shared library support. These
11270 # are reset later if shared libraries are not supported. Putting them
11271 # here allows them to be overridden if necessary.
11272 runpath_var=LD_RUN_PATH
11273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11274 export_dynamic_flag_spec='${wl}--export-dynamic'
11275 # ancient GNU ld didn't support --whole-archive et. al.
11276 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11278 else
11279 whole_archive_flag_spec=
11281 supports_anon_versioning=no
11282 case `$LD -v 2>&1` in
11283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11286 *\ 2.11.*) ;; # other 2.11 versions
11287 *) supports_anon_versioning=yes ;;
11288 esac
11290 # See if GNU ld supports shared libraries.
11291 case $host_os in
11292 aix[3-9]*)
11293 # On AIX/PPC, the GNU linker is very broken
11294 if test "$host_cpu" != ia64; then
11295 ld_shlibs=no
11296 cat <<_LT_EOF 1>&2
11298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11299 *** to be unable to reliably create shared libraries on AIX.
11300 *** Therefore, libtool is disabling shared libraries support. If you
11301 *** really care for shared libraries, you may want to modify your PATH
11302 *** so that a non-GNU linker is found, and then restart.
11304 _LT_EOF
11308 amigaos*)
11309 case $host_cpu in
11310 powerpc)
11311 # see comment about AmigaOS4 .so support
11312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11313 archive_expsym_cmds=''
11315 m68k)
11316 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)'
11317 hardcode_libdir_flag_spec='-L$libdir'
11318 hardcode_minus_L=yes
11320 esac
11323 beos*)
11324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11325 allow_undefined_flag=unsupported
11326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11327 # support --undefined. This deserves some investigation. FIXME
11328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11329 else
11330 ld_shlibs=no
11334 cygwin* | mingw* | pw32* | cegcc*)
11335 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11336 # as there is no search path for DLLs.
11337 hardcode_libdir_flag_spec='-L$libdir'
11338 allow_undefined_flag=unsupported
11339 always_export_symbols=no
11340 enable_shared_with_static_runtimes=yes
11341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11343 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11345 # If the export-symbols file already is a .def file (1st line
11346 # is EXPORTS), use it as is; otherwise, prepend...
11347 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11348 cp $export_symbols $output_objdir/$soname.def;
11349 else
11350 echo EXPORTS > $output_objdir/$soname.def;
11351 cat $export_symbols >> $output_objdir/$soname.def;
11353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11354 else
11355 ld_shlibs=no
11359 interix[3-9]*)
11360 hardcode_direct=no
11361 hardcode_shlibpath_var=no
11362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11363 export_dynamic_flag_spec='${wl}-E'
11364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11365 # Instead, shared libraries are loaded at an image base (0x10000000 by
11366 # default) and relocated if they conflict, which is a slow very memory
11367 # consuming and fragmenting process. To avoid this, we pick a random,
11368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11371 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'
11374 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11375 tmp_diet=no
11376 if test "$host_os" = linux-dietlibc; then
11377 case $cc_basename in
11378 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11379 esac
11381 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11382 && test "$tmp_diet" = no
11383 then
11384 tmp_addflag=
11385 tmp_sharedflag='-shared'
11386 case $cc_basename,$host_cpu in
11387 pgcc*) # Portland Group C compiler
11388 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'
11389 tmp_addflag=' $pic_flag'
11391 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11392 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'
11393 tmp_addflag=' $pic_flag -Mnomain' ;;
11394 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11395 tmp_addflag=' -i_dynamic' ;;
11396 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11397 tmp_addflag=' -i_dynamic -nofor_main' ;;
11398 ifc* | ifort*) # Intel Fortran compiler
11399 tmp_addflag=' -nofor_main' ;;
11400 lf95*) # Lahey Fortran 8.1
11401 whole_archive_flag_spec=
11402 tmp_sharedflag='--shared' ;;
11403 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11404 tmp_sharedflag='-qmkshrobj'
11405 tmp_addflag= ;;
11406 esac
11407 case `$CC -V 2>&1 | sed 5q` in
11408 *Sun\ C*) # Sun C 5.9
11409 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'
11410 compiler_needs_object=yes
11411 tmp_sharedflag='-G' ;;
11412 *Sun\ F*) # Sun Fortran 8.3
11413 tmp_sharedflag='-G' ;;
11414 esac
11415 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11417 if test "x$supports_anon_versioning" = xyes; then
11418 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11420 echo "local: *; };" >> $output_objdir/$libname.ver~
11421 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11424 case $cc_basename in
11425 xlf*)
11426 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11427 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11428 hardcode_libdir_flag_spec=
11429 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11430 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11431 if test "x$supports_anon_versioning" = xyes; then
11432 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11434 echo "local: *; };" >> $output_objdir/$libname.ver~
11435 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11438 esac
11439 else
11440 ld_shlibs=no
11444 netbsd*)
11445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11446 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11447 wlarc=
11448 else
11449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11454 solaris*)
11455 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11456 ld_shlibs=no
11457 cat <<_LT_EOF 1>&2
11459 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11460 *** create shared libraries on Solaris systems. Therefore, libtool
11461 *** is disabling shared libraries support. We urge you to upgrade GNU
11462 *** binutils to release 2.9.1 or newer. Another option is to modify
11463 *** your PATH or compiler configuration so that the native linker is
11464 *** used, and then restart.
11466 _LT_EOF
11467 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11470 else
11471 ld_shlibs=no
11475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11476 case `$LD -v 2>&1` in
11477 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11478 ld_shlibs=no
11479 cat <<_LT_EOF 1>&2
11481 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11482 *** reliably create shared libraries on SCO systems. Therefore, libtool
11483 *** is disabling shared libraries support. We urge you to upgrade GNU
11484 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11485 *** your PATH or compiler configuration so that the native linker is
11486 *** used, and then restart.
11488 _LT_EOF
11491 # For security reasons, it is highly recommended that you always
11492 # use absolute paths for naming shared libraries, and exclude the
11493 # DT_RUNPATH tag from executables and libraries. But doing so
11494 # requires that you compile everything twice, which is a pain.
11495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11499 else
11500 ld_shlibs=no
11503 esac
11506 sunos4*)
11507 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11508 wlarc=
11509 hardcode_direct=yes
11510 hardcode_shlibpath_var=no
11514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11517 else
11518 ld_shlibs=no
11521 esac
11523 if test "$ld_shlibs" = no; then
11524 runpath_var=
11525 hardcode_libdir_flag_spec=
11526 export_dynamic_flag_spec=
11527 whole_archive_flag_spec=
11529 else
11530 # PORTME fill in a description of your system's linker (not GNU ld)
11531 case $host_os in
11532 aix3*)
11533 allow_undefined_flag=unsupported
11534 always_export_symbols=yes
11535 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'
11536 # Note: this linker hardcodes the directories in LIBPATH if there
11537 # are no directories specified by -L.
11538 hardcode_minus_L=yes
11539 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11540 # Neither direct hardcoding nor static linking is supported with a
11541 # broken collect2.
11542 hardcode_direct=unsupported
11546 aix[4-9]*)
11547 if test "$host_cpu" = ia64; then
11548 # On IA64, the linker does run time linking by default, so we don't
11549 # have to do anything special.
11550 aix_use_runtimelinking=no
11551 exp_sym_flag='-Bexport'
11552 no_entry_flag=""
11553 else
11554 # If we're using GNU nm, then we don't want the "-C" option.
11555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11556 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11557 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'
11558 else
11559 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'
11561 aix_use_runtimelinking=no
11563 # Test if we are trying to use run time linking or normal
11564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11565 # need to do runtime linking.
11566 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11567 for ld_flag in $LDFLAGS; do
11568 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11569 aix_use_runtimelinking=yes
11570 break
11572 done
11574 esac
11576 exp_sym_flag='-bexport'
11577 no_entry_flag='-bnoentry'
11580 # When large executables or shared objects are built, AIX ld can
11581 # have problems creating the table of contents. If linking a library
11582 # or program results in "error TOC overflow" add -mminimal-toc to
11583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11586 archive_cmds=''
11587 hardcode_direct=yes
11588 hardcode_direct_absolute=yes
11589 hardcode_libdir_separator=':'
11590 link_all_deplibs=yes
11591 file_list_spec='${wl}-f,'
11593 if test "$GCC" = yes; then
11594 case $host_os in aix4.[012]|aix4.[012].*)
11595 # We only want to do this on AIX 4.2 and lower, the check
11596 # below for broken collect2 doesn't work under 4.3+
11597 collect2name=`${CC} -print-prog-name=collect2`
11598 if test -f "$collect2name" &&
11599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11600 then
11601 # We have reworked collect2
11603 else
11604 # We have old collect2
11605 hardcode_direct=unsupported
11606 # It fails to find uninstalled libraries when the uninstalled
11607 # path is not listed in the libpath. Setting hardcode_minus_L
11608 # to unsupported forces relinking
11609 hardcode_minus_L=yes
11610 hardcode_libdir_flag_spec='-L$libdir'
11611 hardcode_libdir_separator=
11614 esac
11615 shared_flag='-shared'
11616 if test "$aix_use_runtimelinking" = yes; then
11617 shared_flag="$shared_flag "'${wl}-G'
11619 else
11620 # not using gcc
11621 if test "$host_cpu" = ia64; then
11622 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11623 # chokes on -Wl,-G. The following line is correct:
11624 shared_flag='-G'
11625 else
11626 if test "$aix_use_runtimelinking" = yes; then
11627 shared_flag='${wl}-G'
11628 else
11629 shared_flag='${wl}-bM:SRE'
11634 export_dynamic_flag_spec='${wl}-bexpall'
11635 # It seems that -bexpall does not export symbols beginning with
11636 # underscore (_), so it is better to generate a list of symbols to export.
11637 always_export_symbols=yes
11638 if test "$aix_use_runtimelinking" = yes; then
11639 # Warning - without using the other runtime loading flags (-brtl),
11640 # -berok will link without error, but may produce a broken library.
11641 allow_undefined_flag='-berok'
11642 # Determine the default libpath from the value encoded in an
11643 # empty executable.
11644 if test x$gcc_no_link = xyes; then
11645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11651 main ()
11655 return 0;
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11660 lt_aix_libpath_sed='
11661 /Import File Strings/,/^$/ {
11662 /^0/ {
11663 s/^0 *\(.*\)$/\1/
11667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11668 # Check for a 64-bit object if we didn't find anything.
11669 if test -z "$aix_libpath"; then
11670 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11678 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"
11679 else
11680 if test "$host_cpu" = ia64; then
11681 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11682 allow_undefined_flag="-z nodefs"
11683 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"
11684 else
11685 # Determine the default libpath from the value encoded in an
11686 # empty executable.
11687 if test x$gcc_no_link = xyes; then
11688 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11694 main ()
11698 return 0;
11700 _ACEOF
11701 if ac_fn_c_try_link "$LINENO"; then :
11703 lt_aix_libpath_sed='
11704 /Import File Strings/,/^$/ {
11705 /^0/ {
11706 s/^0 *\(.*\)$/\1/
11710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11711 # Check for a 64-bit object if we didn't find anything.
11712 if test -z "$aix_libpath"; then
11713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11716 rm -f core conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11720 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11721 # Warning - without using the other run time loading flags,
11722 # -berok will link without error, but may produce a broken library.
11723 no_undefined_flag=' ${wl}-bernotok'
11724 allow_undefined_flag=' ${wl}-berok'
11725 # Exported symbols can be pulled into shared objects from archives
11726 whole_archive_flag_spec='$convenience'
11727 archive_cmds_need_lc=yes
11728 # This is similar to how AIX traditionally builds its shared libraries.
11729 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'
11734 amigaos*)
11735 case $host_cpu in
11736 powerpc)
11737 # see comment about AmigaOS4 .so support
11738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11739 archive_expsym_cmds=''
11741 m68k)
11742 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)'
11743 hardcode_libdir_flag_spec='-L$libdir'
11744 hardcode_minus_L=yes
11746 esac
11749 bsdi[45]*)
11750 export_dynamic_flag_spec=-rdynamic
11753 cygwin* | mingw* | pw32* | cegcc*)
11754 # When not using gcc, we currently assume that we are using
11755 # Microsoft Visual C++.
11756 # hardcode_libdir_flag_spec is actually meaningless, as there is
11757 # no search path for DLLs.
11758 hardcode_libdir_flag_spec=' '
11759 allow_undefined_flag=unsupported
11760 # Tell ltmain to make .lib files, not .a files.
11761 libext=lib
11762 # Tell ltmain to make .dll files, not .so files.
11763 shrext_cmds=".dll"
11764 # FIXME: Setting linknames here is a bad hack.
11765 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11766 # The linker will automatically build a .lib file if we build a DLL.
11767 old_archive_from_new_cmds='true'
11768 # FIXME: Should let the user specify the lib program.
11769 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11770 fix_srcfile_path='`cygpath -w "$srcfile"`'
11771 enable_shared_with_static_runtimes=yes
11774 darwin* | rhapsody*)
11777 archive_cmds_need_lc=no
11778 hardcode_direct=no
11779 hardcode_automatic=yes
11780 hardcode_shlibpath_var=unsupported
11781 whole_archive_flag_spec=''
11782 link_all_deplibs=yes
11783 allow_undefined_flag="$_lt_dar_allow_undefined"
11784 case $cc_basename in
11785 ifort*) _lt_dar_can_shared=yes ;;
11786 *) _lt_dar_can_shared=$GCC ;;
11787 esac
11788 if test "$_lt_dar_can_shared" = "yes"; then
11789 output_verbose_link_cmd=echo
11790 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11791 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11792 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}"
11793 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}"
11795 else
11796 ld_shlibs=no
11801 dgux*)
11802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11803 hardcode_libdir_flag_spec='-L$libdir'
11804 hardcode_shlibpath_var=no
11807 freebsd1*)
11808 ld_shlibs=no
11811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11812 # support. Future versions do this automatically, but an explicit c++rt0.o
11813 # does not break anything, and helps significantly (at the cost of a little
11814 # extra space).
11815 freebsd2.2*)
11816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11817 hardcode_libdir_flag_spec='-R$libdir'
11818 hardcode_direct=yes
11819 hardcode_shlibpath_var=no
11822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11823 freebsd2*)
11824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11825 hardcode_direct=yes
11826 hardcode_minus_L=yes
11827 hardcode_shlibpath_var=no
11830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11831 freebsd* | dragonfly*)
11832 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11833 hardcode_libdir_flag_spec='-R$libdir'
11834 hardcode_direct=yes
11835 hardcode_shlibpath_var=no
11838 hpux9*)
11839 if test "$GCC" = yes; then
11840 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'
11841 else
11842 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'
11844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11845 hardcode_libdir_separator=:
11846 hardcode_direct=yes
11848 # hardcode_minus_L: Not really in the search PATH,
11849 # but as the default location of the library.
11850 hardcode_minus_L=yes
11851 export_dynamic_flag_spec='${wl}-E'
11854 hpux10*)
11855 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11856 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11857 else
11858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11860 if test "$with_gnu_ld" = no; then
11861 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11862 hardcode_libdir_flag_spec_ld='+b $libdir'
11863 hardcode_libdir_separator=:
11864 hardcode_direct=yes
11865 hardcode_direct_absolute=yes
11866 export_dynamic_flag_spec='${wl}-E'
11867 # hardcode_minus_L: Not really in the search PATH,
11868 # but as the default location of the library.
11869 hardcode_minus_L=yes
11873 hpux11*)
11874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11875 case $host_cpu in
11876 hppa*64*)
11877 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11879 ia64*)
11880 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11885 esac
11886 else
11887 case $host_cpu in
11888 hppa*64*)
11889 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11891 ia64*)
11892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11897 esac
11899 if test "$with_gnu_ld" = no; then
11900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11901 hardcode_libdir_separator=:
11903 case $host_cpu in
11904 hppa*64*|ia64*)
11905 hardcode_direct=no
11906 hardcode_shlibpath_var=no
11909 hardcode_direct=yes
11910 hardcode_direct_absolute=yes
11911 export_dynamic_flag_spec='${wl}-E'
11913 # hardcode_minus_L: Not really in the search PATH,
11914 # but as the default location of the library.
11915 hardcode_minus_L=yes
11917 esac
11921 irix5* | irix6* | nonstopux*)
11922 if test "$GCC" = yes; then
11923 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'
11924 # Try to use the -exported_symbol ld option, if it does not
11925 # work, assume that -exports_file does not work either and
11926 # implicitly export all symbols.
11927 save_LDFLAGS="$LDFLAGS"
11928 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11929 if test x$gcc_no_link = xyes; then
11930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 int foo(void) {}
11935 _ACEOF
11936 if ac_fn_c_try_link "$LINENO"; then :
11937 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'
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LDFLAGS="$save_LDFLAGS"
11943 else
11944 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'
11945 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'
11947 archive_cmds_need_lc='no'
11948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11949 hardcode_libdir_separator=:
11950 inherit_rpath=yes
11951 link_all_deplibs=yes
11954 netbsd*)
11955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11957 else
11958 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11960 hardcode_libdir_flag_spec='-R$libdir'
11961 hardcode_direct=yes
11962 hardcode_shlibpath_var=no
11965 newsos6)
11966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11967 hardcode_direct=yes
11968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11969 hardcode_libdir_separator=:
11970 hardcode_shlibpath_var=no
11973 *nto* | *qnx*)
11976 openbsd*)
11977 if test -f /usr/libexec/ld.so; then
11978 hardcode_direct=yes
11979 hardcode_shlibpath_var=no
11980 hardcode_direct_absolute=yes
11981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11985 export_dynamic_flag_spec='${wl}-E'
11986 else
11987 case $host_os in
11988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11990 hardcode_libdir_flag_spec='-R$libdir'
11993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11996 esac
11998 else
11999 ld_shlibs=no
12003 os2*)
12004 hardcode_libdir_flag_spec='-L$libdir'
12005 hardcode_minus_L=yes
12006 allow_undefined_flag=unsupported
12007 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'
12008 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12011 osf3*)
12012 if test "$GCC" = yes; then
12013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12014 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'
12015 else
12016 allow_undefined_flag=' -expect_unresolved \*'
12017 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'
12019 archive_cmds_need_lc='no'
12020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12021 hardcode_libdir_separator=:
12024 osf4* | osf5*) # as osf3* with the addition of -msym flag
12025 if test "$GCC" = yes; then
12026 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12027 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'
12028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12029 else
12030 allow_undefined_flag=' -expect_unresolved \*'
12031 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'
12032 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~
12033 $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'
12035 # Both c and cxx compiler support -rpath directly
12036 hardcode_libdir_flag_spec='-rpath $libdir'
12038 archive_cmds_need_lc='no'
12039 hardcode_libdir_separator=:
12042 solaris*)
12043 no_undefined_flag=' -z defs'
12044 if test "$GCC" = yes; then
12045 wlarc='${wl}'
12046 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12048 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12049 else
12050 case `$CC -V 2>&1` in
12051 *"Compilers 5.0"*)
12052 wlarc=''
12053 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12058 wlarc='${wl}'
12059 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12061 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12063 esac
12065 hardcode_libdir_flag_spec='-R$libdir'
12066 hardcode_shlibpath_var=no
12067 case $host_os in
12068 solaris2.[0-5] | solaris2.[0-5].*) ;;
12070 # The compiler driver will combine and reorder linker options,
12071 # but understands `-z linker_flag'. GCC discards it without `$wl',
12072 # but is careful enough not to reorder.
12073 # Supported since Solaris 2.6 (maybe 2.5.1?)
12074 if test "$GCC" = yes; then
12075 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12076 else
12077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12080 esac
12081 link_all_deplibs=yes
12084 sunos4*)
12085 if test "x$host_vendor" = xsequent; then
12086 # Use $CC to link under sequent, because it throws in some extra .o
12087 # files that make .init and .fini sections work.
12088 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12089 else
12090 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12092 hardcode_libdir_flag_spec='-L$libdir'
12093 hardcode_direct=yes
12094 hardcode_minus_L=yes
12095 hardcode_shlibpath_var=no
12098 sysv4)
12099 case $host_vendor in
12100 sni)
12101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12102 hardcode_direct=yes # is this really true???
12104 siemens)
12105 ## LD is ld it makes a PLAMLIB
12106 ## CC just makes a GrossModule.
12107 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12108 reload_cmds='$CC -r -o $output$reload_objs'
12109 hardcode_direct=no
12111 motorola)
12112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12113 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12115 esac
12116 runpath_var='LD_RUN_PATH'
12117 hardcode_shlibpath_var=no
12120 sysv4.3*)
12121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12122 hardcode_shlibpath_var=no
12123 export_dynamic_flag_spec='-Bexport'
12126 sysv4*MP*)
12127 if test -d /usr/nec; then
12128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12129 hardcode_shlibpath_var=no
12130 runpath_var=LD_RUN_PATH
12131 hardcode_runpath_var=yes
12132 ld_shlibs=yes
12136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12137 no_undefined_flag='${wl}-z,text'
12138 archive_cmds_need_lc=no
12139 hardcode_shlibpath_var=no
12140 runpath_var='LD_RUN_PATH'
12142 if test "$GCC" = yes; then
12143 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 else
12146 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151 sysv5* | sco3.2v5* | sco5v6*)
12152 # Note: We can NOT use -z defs as we might desire, because we do not
12153 # link with -lc, and that would cause any symbols used from libc to
12154 # always be unresolved, which means just about no library would
12155 # ever link correctly. If we're not using GNU ld we use -z text
12156 # though, which does catch some bad symbols but isn't as heavy-handed
12157 # as -z defs.
12158 no_undefined_flag='${wl}-z,text'
12159 allow_undefined_flag='${wl}-z,nodefs'
12160 archive_cmds_need_lc=no
12161 hardcode_shlibpath_var=no
12162 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12163 hardcode_libdir_separator=':'
12164 link_all_deplibs=yes
12165 export_dynamic_flag_spec='${wl}-Bexport'
12166 runpath_var='LD_RUN_PATH'
12168 if test "$GCC" = yes; then
12169 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 else
12172 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 uts4*)
12178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12179 hardcode_libdir_flag_spec='-L$libdir'
12180 hardcode_shlibpath_var=no
12184 ld_shlibs=no
12186 esac
12188 if test x$host_vendor = xsni; then
12189 case $host in
12190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12191 export_dynamic_flag_spec='${wl}-Blargedynsym'
12193 esac
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12198 $as_echo "$ld_shlibs" >&6; }
12199 test "$ld_shlibs" = no && can_build_shared=no
12201 with_gnu_ld=$with_gnu_ld
12218 # Do we need to explicitly link libc?
12220 case "x$archive_cmds_need_lc" in
12221 x|xyes)
12222 # Assume -lc should be added
12223 archive_cmds_need_lc=yes
12225 if test "$enable_shared" = yes && test "$GCC" = yes; then
12226 case $archive_cmds in
12227 *'~'*)
12228 # FIXME: we may have to deal with multi-command sequences.
12230 '$CC '*)
12231 # Test whether the compiler implicitly links with -lc since on some
12232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12233 # to ld, don't add -lc before -lgcc.
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12236 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 $RM conftest*
12240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12243 (eval $ac_compile) 2>&5
12244 ac_status=$?
12245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12246 test $ac_status = 0; } 2>conftest.err; then
12247 soname=conftest
12248 lib=conftest
12249 libobjs=conftest.$ac_objext
12250 deplibs=
12251 wl=$lt_prog_compiler_wl
12252 pic_flag=$lt_prog_compiler_pic
12253 compiler_flags=-v
12254 linker_flags=-v
12255 verstring=
12256 output_objdir=.
12257 libname=conftest
12258 lt_save_allow_undefined_flag=$allow_undefined_flag
12259 allow_undefined_flag=
12260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12262 ac_status=$?
12263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12264 test $ac_status = 0; }
12265 then
12266 lt_cv_archive_cmds_need_lc=no
12267 else
12268 lt_cv_archive_cmds_need_lc=yes
12270 allow_undefined_flag=$lt_save_allow_undefined_flag
12271 else
12272 cat conftest.err 1>&5
12274 $RM conftest*
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12278 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12279 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12281 esac
12284 esac
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12443 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12445 if test "$GCC" = yes; then
12446 case $host_os in
12447 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12448 *) lt_awk_arg="/^libraries:/" ;;
12449 esac
12450 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12451 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12452 # if the path contains ";" then we assume it to be the separator
12453 # otherwise default to the standard path separator (i.e. ":") - it is
12454 # assumed that no part of a normal pathname contains ";" but that should
12455 # okay in the real world where ";" in dirpaths is itself problematic.
12456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12457 else
12458 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12460 # Ok, now we have the path, separated by spaces, we can step through it
12461 # and add multilib dir if necessary.
12462 lt_tmp_lt_search_path_spec=
12463 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12464 for lt_sys_path in $lt_search_path_spec; do
12465 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12467 else
12468 test -d "$lt_sys_path" && \
12469 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12471 done
12472 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12473 BEGIN {RS=" "; FS="/|\n";} {
12474 lt_foo="";
12475 lt_count=0;
12476 for (lt_i = NF; lt_i > 0; lt_i--) {
12477 if ($lt_i != "" && $lt_i != ".") {
12478 if ($lt_i == "..") {
12479 lt_count++;
12480 } else {
12481 if (lt_count == 0) {
12482 lt_foo="/" $lt_i lt_foo;
12483 } else {
12484 lt_count--;
12489 if (lt_foo != "") { lt_freq[lt_foo]++; }
12490 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12492 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12493 else
12494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12496 library_names_spec=
12497 libname_spec='lib$name'
12498 soname_spec=
12499 shrext_cmds=".so"
12500 postinstall_cmds=
12501 postuninstall_cmds=
12502 finish_cmds=
12503 finish_eval=
12504 shlibpath_var=
12505 shlibpath_overrides_runpath=unknown
12506 version_type=none
12507 dynamic_linker="$host_os ld.so"
12508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12509 need_lib_prefix=unknown
12510 hardcode_into_libs=no
12512 # when you set need_version to no, make sure it does not cause -set_version
12513 # flags to be left without arguments
12514 need_version=unknown
12516 case $host_os in
12517 aix3*)
12518 version_type=linux
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12520 shlibpath_var=LIBPATH
12522 # AIX 3 has no versioning support, so we append a major version to the name.
12523 soname_spec='${libname}${release}${shared_ext}$major'
12526 aix[4-9]*)
12527 version_type=linux
12528 need_lib_prefix=no
12529 need_version=no
12530 hardcode_into_libs=yes
12531 if test "$host_cpu" = ia64; then
12532 # AIX 5 supports IA64
12533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12534 shlibpath_var=LD_LIBRARY_PATH
12535 else
12536 # With GCC up to 2.95.x, collect2 would create an import file
12537 # for dependence libraries. The import file would start with
12538 # the line `#! .'. This would cause the generated library to
12539 # depend on `.', always an invalid library. This was fixed in
12540 # development snapshots of GCC prior to 3.0.
12541 case $host_os in
12542 aix4 | aix4.[01] | aix4.[01].*)
12543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12544 echo ' yes '
12545 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12547 else
12548 can_build_shared=no
12551 esac
12552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12553 # soname into executable. Probably we can add versioning support to
12554 # collect2, so additional links can be useful in future.
12555 if test "$aix_use_runtimelinking" = yes; then
12556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12557 # instead of lib<name>.a to let people know that these are not
12558 # typical AIX shared libraries.
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 else
12561 # We preserve .a as extension for shared libraries through AIX4.2
12562 # and later when we are not doing run time linking.
12563 library_names_spec='${libname}${release}.a $libname.a'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LIBPATH
12570 amigaos*)
12571 case $host_cpu in
12572 powerpc)
12573 # Since July 2007 AmigaOS4 officially supports .so libraries.
12574 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577 m68k)
12578 library_names_spec='$libname.ixlibrary $libname.a'
12579 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12580 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'
12582 esac
12585 beos*)
12586 library_names_spec='${libname}${shared_ext}'
12587 dynamic_linker="$host_os ld.so"
12588 shlibpath_var=LIBRARY_PATH
12591 bsdi[45]*)
12592 version_type=linux
12593 need_version=no
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12600 # the default ld.so.conf also contains /usr/contrib/lib and
12601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12602 # libtool to hard-code these into programs
12605 cygwin* | mingw* | pw32* | cegcc*)
12606 version_type=windows
12607 shrext_cmds=".dll"
12608 need_version=no
12609 need_lib_prefix=no
12611 case $GCC,$host_os in
12612 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12613 library_names_spec='$libname.dll.a'
12614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12615 postinstall_cmds='base_file=`basename \${file}`~
12616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12617 dldir=$destdir/`dirname \$dlpath`~
12618 test -d \$dldir || mkdir -p \$dldir~
12619 $install_prog $dir/$dlname \$dldir/$dlname~
12620 chmod a+x \$dldir/$dlname~
12621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12625 dlpath=$dir/\$dldll~
12626 $RM \$dlpath'
12627 shlibpath_overrides_runpath=yes
12629 case $host_os in
12630 cygwin*)
12631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12633 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12635 mingw* | cegcc*)
12636 # MinGW DLLs use traditional 'lib' prefix
12637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12638 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12639 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12640 # It is most probably a Windows format PATH printed by
12641 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12642 # path with ; separators, and with drive letters. We can handle the
12643 # drive letters (cygwin fileutils understands them), so leave them,
12644 # especially as we might pass files found there to a mingw objdump,
12645 # which wouldn't understand a cygwinified path. Ahh.
12646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12647 else
12648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12651 pw32*)
12652 # pw32 DLLs use 'pw' prefix rather than 'lib'
12653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12655 esac
12659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12661 esac
12662 dynamic_linker='Win32 ld.exe'
12663 # FIXME: first we should search . and the directory the executable is in
12664 shlibpath_var=PATH
12667 darwin* | rhapsody*)
12668 dynamic_linker="$host_os dyld"
12669 version_type=darwin
12670 need_lib_prefix=no
12671 need_version=no
12672 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12673 soname_spec='${libname}${release}${major}$shared_ext'
12674 shlibpath_overrides_runpath=yes
12675 shlibpath_var=DYLD_LIBRARY_PATH
12676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12678 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12682 dgux*)
12683 version_type=linux
12684 need_lib_prefix=no
12685 need_version=no
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 shlibpath_var=LD_LIBRARY_PATH
12691 freebsd1*)
12692 dynamic_linker=no
12695 freebsd* | dragonfly*)
12696 # DragonFly does not have aout. When/if they implement a new
12697 # versioning mechanism, adjust this.
12698 if test -x /usr/bin/objformat; then
12699 objformat=`/usr/bin/objformat`
12700 else
12701 case $host_os in
12702 freebsd[123]*) objformat=aout ;;
12703 *) objformat=elf ;;
12704 esac
12706 version_type=freebsd-$objformat
12707 case $version_type in
12708 freebsd-elf*)
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12710 need_version=no
12711 need_lib_prefix=no
12713 freebsd-*)
12714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12715 need_version=yes
12717 esac
12718 shlibpath_var=LD_LIBRARY_PATH
12719 case $host_os in
12720 freebsd2*)
12721 shlibpath_overrides_runpath=yes
12723 freebsd3.[01]* | freebsdelf3.[01]*)
12724 shlibpath_overrides_runpath=yes
12725 hardcode_into_libs=yes
12727 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12728 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12729 shlibpath_overrides_runpath=no
12730 hardcode_into_libs=yes
12732 *) # from 4.6 on, and DragonFly
12733 shlibpath_overrides_runpath=yes
12734 hardcode_into_libs=yes
12736 esac
12739 gnu*)
12740 version_type=linux
12741 need_lib_prefix=no
12742 need_version=no
12743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12744 soname_spec='${libname}${release}${shared_ext}$major'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 hardcode_into_libs=yes
12749 hpux9* | hpux10* | hpux11*)
12750 # Give a soname corresponding to the major version so that dld.sl refuses to
12751 # link against other versions.
12752 version_type=sunos
12753 need_lib_prefix=no
12754 need_version=no
12755 case $host_cpu in
12756 ia64*)
12757 shrext_cmds='.so'
12758 hardcode_into_libs=yes
12759 dynamic_linker="$host_os dld.so"
12760 shlibpath_var=LD_LIBRARY_PATH
12761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12764 if test "X$HPUX_IA64_MODE" = X32; then
12765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12766 else
12767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12771 hppa*64*)
12772 shrext_cmds='.sl'
12773 hardcode_into_libs=yes
12774 dynamic_linker="$host_os dld.sl"
12775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12783 shrext_cmds='.sl'
12784 dynamic_linker="$host_os dld.sl"
12785 shlibpath_var=SHLIB_PATH
12786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12790 esac
12791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12792 postinstall_cmds='chmod 555 $lib'
12795 interix[3-9]*)
12796 version_type=linux
12797 need_lib_prefix=no
12798 need_version=no
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 shlibpath_overrides_runpath=no
12804 hardcode_into_libs=yes
12807 irix5* | irix6* | nonstopux*)
12808 case $host_os in
12809 nonstopux*) version_type=nonstopux ;;
12811 if test "$lt_cv_prog_gnu_ld" = yes; then
12812 version_type=linux
12813 else
12814 version_type=irix
12815 fi ;;
12816 esac
12817 need_lib_prefix=no
12818 need_version=no
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12821 case $host_os in
12822 irix5* | nonstopux*)
12823 libsuff= shlibsuff=
12826 case $LD in # libtool.m4 will add one of these switches to LD
12827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12828 libsuff= shlibsuff= libmagic=32-bit;;
12829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12830 libsuff=32 shlibsuff=N32 libmagic=N32;;
12831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12832 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12833 *) libsuff= shlibsuff= libmagic=never-match;;
12834 esac
12836 esac
12837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12838 shlibpath_overrides_runpath=no
12839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12841 hardcode_into_libs=yes
12844 # No shared lib support for Linux oldld, aout, or coff.
12845 linux*oldld* | linux*aout* | linux*coff*)
12846 dynamic_linker=no
12849 # This must be Linux ELF.
12850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12851 version_type=linux
12852 need_lib_prefix=no
12853 need_version=no
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=no
12860 # Some binutils ld are patched to set DT_RUNPATH
12861 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 lt_cv_shlibpath_overrides_runpath=no
12865 save_LDFLAGS=$LDFLAGS
12866 save_libdir=$libdir
12867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12869 if test x$gcc_no_link = xyes; then
12870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12876 main ()
12880 return 0;
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12885 lt_cv_shlibpath_overrides_runpath=yes
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LDFLAGS=$save_LDFLAGS
12891 libdir=$save_libdir
12895 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12897 # This implies no fast_install, which is unacceptable.
12898 # Some rework will be needed to allow for fast_install
12899 # before this can be enabled.
12900 hardcode_into_libs=yes
12902 # Append ld.so.conf contents to the search path
12903 if test -f /etc/ld.so.conf; then
12904 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' ' '`
12905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12908 # We used to test for /lib/ld.so.1 and disable shared libraries on
12909 # powerpc, because MkLinux only supported shared libraries with the
12910 # GNU dynamic linker. Since this was broken with cross compilers,
12911 # most powerpc-linux boxes support dynamic linking these days and
12912 # people can always --disable-shared, the test was removed, and we
12913 # assume the GNU/Linux dynamic linker is in use.
12914 dynamic_linker='GNU/Linux ld.so'
12917 netbsd*)
12918 version_type=sunos
12919 need_lib_prefix=no
12920 need_version=no
12921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12924 dynamic_linker='NetBSD (a.out) ld.so'
12925 else
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12927 soname_spec='${libname}${release}${shared_ext}$major'
12928 dynamic_linker='NetBSD ld.elf_so'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 shlibpath_overrides_runpath=yes
12932 hardcode_into_libs=yes
12935 newsos6)
12936 version_type=linux
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=yes
12942 *nto* | *qnx*)
12943 version_type=qnx
12944 need_lib_prefix=no
12945 need_version=no
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947 soname_spec='${libname}${release}${shared_ext}$major'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 shlibpath_overrides_runpath=no
12950 hardcode_into_libs=yes
12951 dynamic_linker='ldqnx.so'
12954 openbsd*)
12955 version_type=sunos
12956 sys_lib_dlsearch_path_spec="/usr/lib"
12957 need_lib_prefix=no
12958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12959 case $host_os in
12960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12961 *) need_version=no ;;
12962 esac
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12967 case $host_os in
12968 openbsd2.[89] | openbsd2.[89].*)
12969 shlibpath_overrides_runpath=no
12972 shlibpath_overrides_runpath=yes
12974 esac
12975 else
12976 shlibpath_overrides_runpath=yes
12980 os2*)
12981 libname_spec='$name'
12982 shrext_cmds=".dll"
12983 need_lib_prefix=no
12984 library_names_spec='$libname${shared_ext} $libname.a'
12985 dynamic_linker='OS/2 ld.exe'
12986 shlibpath_var=LIBPATH
12989 osf3* | osf4* | osf5*)
12990 version_type=osf
12991 need_lib_prefix=no
12992 need_version=no
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13000 rdos*)
13001 dynamic_linker=no
13004 solaris*)
13005 version_type=linux
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 shlibpath_overrides_runpath=yes
13012 hardcode_into_libs=yes
13013 # ldd complains unless libraries are executable
13014 postinstall_cmds='chmod +x $lib'
13017 sunos4*)
13018 version_type=sunos
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 shlibpath_overrides_runpath=yes
13023 if test "$with_gnu_ld" = yes; then
13024 need_lib_prefix=no
13026 need_version=yes
13029 sysv4 | sysv4.3*)
13030 version_type=linux
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 case $host_vendor in
13035 sni)
13036 shlibpath_overrides_runpath=no
13037 need_lib_prefix=no
13038 runpath_var=LD_RUN_PATH
13040 siemens)
13041 need_lib_prefix=no
13043 motorola)
13044 need_lib_prefix=no
13045 need_version=no
13046 shlibpath_overrides_runpath=no
13047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13049 esac
13052 sysv4*MP*)
13053 if test -d /usr/nec ;then
13054 version_type=linux
13055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13056 soname_spec='$libname${shared_ext}.$major'
13057 shlibpath_var=LD_LIBRARY_PATH
13061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13062 version_type=freebsd-elf
13063 need_lib_prefix=no
13064 need_version=no
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 shlibpath_overrides_runpath=yes
13069 hardcode_into_libs=yes
13070 if test "$with_gnu_ld" = yes; then
13071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13072 else
13073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13074 case $host_os in
13075 sco3.2v5*)
13076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13078 esac
13080 sys_lib_dlsearch_path_spec='/usr/lib'
13083 tpf*)
13084 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13085 version_type=linux
13086 need_lib_prefix=no
13087 need_version=no
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 shlibpath_overrides_runpath=no
13091 hardcode_into_libs=yes
13094 uts4*)
13095 version_type=linux
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13102 dynamic_linker=no
13104 esac
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13106 $as_echo "$dynamic_linker" >&6; }
13107 test "$dynamic_linker" = no && can_build_shared=no
13109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13110 if test "$GCC" = yes; then
13111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13114 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13117 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13118 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13208 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13209 hardcode_action=
13210 if test -n "$hardcode_libdir_flag_spec" ||
13211 test -n "$runpath_var" ||
13212 test "X$hardcode_automatic" = "Xyes" ; then
13214 # We can hardcode non-existent directories.
13215 if test "$hardcode_direct" != no &&
13216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13217 # have to relink, otherwise we might link with an installed library
13218 # when we should be linking with a yet-to-be-installed one
13219 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13220 test "$hardcode_minus_L" != no; then
13221 # Linking always hardcodes the temporary library directory.
13222 hardcode_action=relink
13223 else
13224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13225 hardcode_action=immediate
13227 else
13228 # We cannot hardcode anything, or else we can only hardcode existing
13229 # directories.
13230 hardcode_action=unsupported
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13233 $as_echo "$hardcode_action" >&6; }
13235 if test "$hardcode_action" = relink ||
13236 test "$inherit_rpath" = yes; then
13237 # Fast installation is not supported
13238 enable_fast_install=no
13239 elif test "$shlibpath_overrides_runpath" = yes ||
13240 test "$enable_shared" = no; then
13241 # Fast installation is not necessary
13242 enable_fast_install=needless
13250 if test "x$enable_dlopen" != xyes; then
13251 enable_dlopen=unknown
13252 enable_dlopen_self=unknown
13253 enable_dlopen_self_static=unknown
13254 else
13255 lt_cv_dlopen=no
13256 lt_cv_dlopen_libs=
13258 case $host_os in
13259 beos*)
13260 lt_cv_dlopen="load_add_on"
13261 lt_cv_dlopen_libs=
13262 lt_cv_dlopen_self=yes
13265 mingw* | pw32* | cegcc*)
13266 lt_cv_dlopen="LoadLibrary"
13267 lt_cv_dlopen_libs=
13270 cygwin*)
13271 lt_cv_dlopen="dlopen"
13272 lt_cv_dlopen_libs=
13275 darwin*)
13276 # if libdl is installed we need to link against it
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-ldl $LIBS"
13284 if test x$gcc_no_link = xyes; then
13285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char dlopen ();
13298 main ()
13300 return dlopen ();
13302 return 0;
13304 _ACEOF
13305 if ac_fn_c_try_link "$LINENO"; then :
13306 ac_cv_lib_dl_dlopen=yes
13307 else
13308 ac_cv_lib_dl_dlopen=no
13310 rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext conftest.$ac_ext
13312 LIBS=$ac_check_lib_save_LIBS
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13315 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13316 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13318 else
13320 lt_cv_dlopen="dyld"
13321 lt_cv_dlopen_libs=
13322 lt_cv_dlopen_self=yes
13329 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13330 if test "x$ac_cv_func_shl_load" = x""yes; then :
13331 lt_cv_dlopen="shl_load"
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13334 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13335 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 ac_check_lib_save_LIBS=$LIBS
13339 LIBS="-ldld $LIBS"
13340 if test x$gcc_no_link = xyes; then
13341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13346 /* Override any GCC internal prototype to avoid an error.
13347 Use char because int might match the return type of a GCC
13348 builtin and then its argument prototype would still apply. */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 char shl_load ();
13354 main ()
13356 return shl_load ();
13358 return 0;
13360 _ACEOF
13361 if ac_fn_c_try_link "$LINENO"; then :
13362 ac_cv_lib_dld_shl_load=yes
13363 else
13364 ac_cv_lib_dld_shl_load=no
13366 rm -f core conftest.err conftest.$ac_objext \
13367 conftest$ac_exeext conftest.$ac_ext
13368 LIBS=$ac_check_lib_save_LIBS
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13371 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13372 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13373 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13374 else
13375 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13376 if test "x$ac_cv_func_dlopen" = x""yes; then :
13377 lt_cv_dlopen="dlopen"
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-ldl $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
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
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 ();
13400 main ()
13402 return dlopen ();
13404 return 0;
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408 ac_cv_lib_dl_dlopen=yes
13409 else
13410 ac_cv_lib_dl_dlopen=no
13412 rm -f core conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13418 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13422 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13423 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-lsvld $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
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
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 dlopen ();
13442 main ()
13444 return dlopen ();
13446 return 0;
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 ac_cv_lib_svld_dlopen=yes
13451 else
13452 ac_cv_lib_svld_dlopen=no
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13459 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13460 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13464 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13465 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-ldld $LIBS"
13470 if test x$gcc_no_link = xyes; then
13471 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13476 /* Override any GCC internal prototype to avoid an error.
13477 Use char because int might match the return type of a GCC
13478 builtin and then its argument prototype would still apply. */
13479 #ifdef __cplusplus
13480 extern "C"
13481 #endif
13482 char dld_link ();
13484 main ()
13486 return dld_link ();
13488 return 0;
13490 _ACEOF
13491 if ac_fn_c_try_link "$LINENO"; then :
13492 ac_cv_lib_dld_dld_link=yes
13493 else
13494 ac_cv_lib_dld_dld_link=no
13496 rm -f core conftest.err conftest.$ac_objext \
13497 conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13501 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13502 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13503 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13522 esac
13524 if test "x$lt_cv_dlopen" != xno; then
13525 enable_dlopen=yes
13526 else
13527 enable_dlopen=no
13530 case $lt_cv_dlopen in
13531 dlopen)
13532 save_CPPFLAGS="$CPPFLAGS"
13533 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13535 save_LDFLAGS="$LDFLAGS"
13536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13538 save_LIBS="$LIBS"
13539 LIBS="$lt_cv_dlopen_libs $LIBS"
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13542 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13543 if test "${lt_cv_dlopen_self+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 if test "$cross_compiling" = yes; then :
13547 lt_cv_dlopen_self=cross
13548 else
13549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13550 lt_status=$lt_dlunknown
13551 cat > conftest.$ac_ext <<_LT_EOF
13552 #line 13552 "configure"
13553 #include "confdefs.h"
13555 #if HAVE_DLFCN_H
13556 #include <dlfcn.h>
13557 #endif
13559 #include <stdio.h>
13561 #ifdef RTLD_GLOBAL
13562 # define LT_DLGLOBAL RTLD_GLOBAL
13563 #else
13564 # ifdef DL_GLOBAL
13565 # define LT_DLGLOBAL DL_GLOBAL
13566 # else
13567 # define LT_DLGLOBAL 0
13568 # endif
13569 #endif
13571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13572 find out it does not work in some platform. */
13573 #ifndef LT_DLLAZY_OR_NOW
13574 # ifdef RTLD_LAZY
13575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13576 # else
13577 # ifdef DL_LAZY
13578 # define LT_DLLAZY_OR_NOW DL_LAZY
13579 # else
13580 # ifdef RTLD_NOW
13581 # define LT_DLLAZY_OR_NOW RTLD_NOW
13582 # else
13583 # ifdef DL_NOW
13584 # define LT_DLLAZY_OR_NOW DL_NOW
13585 # else
13586 # define LT_DLLAZY_OR_NOW 0
13587 # endif
13588 # endif
13589 # endif
13590 # endif
13591 #endif
13593 void fnord() { int i=42;}
13594 int main ()
13596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13597 int status = $lt_dlunknown;
13599 if (self)
13601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13603 /* dlclose (self); */
13605 else
13606 puts (dlerror ());
13608 return status;
13610 _LT_EOF
13611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13612 (eval $ac_link) 2>&5
13613 ac_status=$?
13614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13616 (./conftest; exit; ) >&5 2>/dev/null
13617 lt_status=$?
13618 case x$lt_status in
13619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13621 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13622 esac
13623 else :
13624 # compilation failed
13625 lt_cv_dlopen_self=no
13628 rm -fr conftest*
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13633 $as_echo "$lt_cv_dlopen_self" >&6; }
13635 if test "x$lt_cv_dlopen_self" = xyes; then
13636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13638 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13639 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 if test "$cross_compiling" = yes; then :
13643 lt_cv_dlopen_self_static=cross
13644 else
13645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13646 lt_status=$lt_dlunknown
13647 cat > conftest.$ac_ext <<_LT_EOF
13648 #line 13648 "configure"
13649 #include "confdefs.h"
13651 #if HAVE_DLFCN_H
13652 #include <dlfcn.h>
13653 #endif
13655 #include <stdio.h>
13657 #ifdef RTLD_GLOBAL
13658 # define LT_DLGLOBAL RTLD_GLOBAL
13659 #else
13660 # ifdef DL_GLOBAL
13661 # define LT_DLGLOBAL DL_GLOBAL
13662 # else
13663 # define LT_DLGLOBAL 0
13664 # endif
13665 #endif
13667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13668 find out it does not work in some platform. */
13669 #ifndef LT_DLLAZY_OR_NOW
13670 # ifdef RTLD_LAZY
13671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13672 # else
13673 # ifdef DL_LAZY
13674 # define LT_DLLAZY_OR_NOW DL_LAZY
13675 # else
13676 # ifdef RTLD_NOW
13677 # define LT_DLLAZY_OR_NOW RTLD_NOW
13678 # else
13679 # ifdef DL_NOW
13680 # define LT_DLLAZY_OR_NOW DL_NOW
13681 # else
13682 # define LT_DLLAZY_OR_NOW 0
13683 # endif
13684 # endif
13685 # endif
13686 # endif
13687 #endif
13689 void fnord() { int i=42;}
13690 int main ()
13692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13693 int status = $lt_dlunknown;
13695 if (self)
13697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13699 /* dlclose (self); */
13701 else
13702 puts (dlerror ());
13704 return status;
13706 _LT_EOF
13707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13708 (eval $ac_link) 2>&5
13709 ac_status=$?
13710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13712 (./conftest; exit; ) >&5 2>/dev/null
13713 lt_status=$?
13714 case x$lt_status in
13715 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13716 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13717 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13718 esac
13719 else :
13720 # compilation failed
13721 lt_cv_dlopen_self_static=no
13724 rm -fr conftest*
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13729 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13732 CPPFLAGS="$save_CPPFLAGS"
13733 LDFLAGS="$save_LDFLAGS"
13734 LIBS="$save_LIBS"
13736 esac
13738 case $lt_cv_dlopen_self in
13739 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13740 *) enable_dlopen_self=unknown ;;
13741 esac
13743 case $lt_cv_dlopen_self_static in
13744 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13745 *) enable_dlopen_self_static=unknown ;;
13746 esac
13765 striplib=
13766 old_striplib=
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13768 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13769 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13770 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13771 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13773 $as_echo "yes" >&6; }
13774 else
13775 # FIXME - insert some real tests, host_os isn't really good enough
13776 case $host_os in
13777 darwin*)
13778 if test -n "$STRIP" ; then
13779 striplib="$STRIP -x"
13780 old_striplib="$STRIP -S"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790 $as_echo "no" >&6; }
13792 esac
13806 # Report which library types will actually be built
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13808 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13810 $as_echo "$can_build_shared" >&6; }
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13813 $as_echo_n "checking whether to build shared libraries... " >&6; }
13814 test "$can_build_shared" = "no" && enable_shared=no
13816 # On AIX, shared libraries and static libraries use the same namespace, and
13817 # are all built from PIC.
13818 case $host_os in
13819 aix3*)
13820 test "$enable_shared" = yes && enable_static=no
13821 if test -n "$RANLIB"; then
13822 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13823 postinstall_cmds='$RANLIB $lib'
13827 aix[4-9]*)
13828 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13829 test "$enable_shared" = yes && enable_static=no
13832 esac
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13834 $as_echo "$enable_shared" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13837 $as_echo_n "checking whether to build static libraries... " >&6; }
13838 # Make sure either enable_shared or enable_static is yes.
13839 test "$enable_shared" = yes || enable_static=yes
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13841 $as_echo "$enable_static" >&6; }
13847 ac_ext=c
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13853 CC="$lt_save_CC"
13856 ac_ext=cpp
13857 ac_cpp='$CXXCPP $CPPFLAGS'
13858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13862 archive_cmds_need_lc_CXX=no
13863 allow_undefined_flag_CXX=
13864 always_export_symbols_CXX=no
13865 archive_expsym_cmds_CXX=
13866 compiler_needs_object_CXX=no
13867 export_dynamic_flag_spec_CXX=
13868 hardcode_direct_CXX=no
13869 hardcode_direct_absolute_CXX=no
13870 hardcode_libdir_flag_spec_CXX=
13871 hardcode_libdir_flag_spec_ld_CXX=
13872 hardcode_libdir_separator_CXX=
13873 hardcode_minus_L_CXX=no
13874 hardcode_shlibpath_var_CXX=unsupported
13875 hardcode_automatic_CXX=no
13876 inherit_rpath_CXX=no
13877 module_cmds_CXX=
13878 module_expsym_cmds_CXX=
13879 link_all_deplibs_CXX=unknown
13880 old_archive_cmds_CXX=$old_archive_cmds
13881 no_undefined_flag_CXX=
13882 whole_archive_flag_spec_CXX=
13883 enable_shared_with_static_runtimes_CXX=no
13885 # Source file extension for C++ test sources.
13886 ac_ext=cpp
13888 # Object file extension for compiled C++ test sources.
13889 objext=o
13890 objext_CXX=$objext
13892 # No sense in running all these tests if we already determined that
13893 # the CXX compiler isn't working. Some variables (like enable_shared)
13894 # are currently assumed to apply to all compilers on this platform,
13895 # and will be corrupted by setting them based on a non-working compiler.
13896 if test "$_lt_caught_CXX_error" != yes; then
13897 # Code to be used in simple compile tests
13898 lt_simple_compile_test_code="int some_variable = 0;"
13900 # Code to be used in simple link tests
13901 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13910 # If no C compiler was specified, use CC.
13911 LTCC=${LTCC-"$CC"}
13913 # If no C compiler flags were specified, use CFLAGS.
13914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13916 # Allow CC to be a program name with arguments.
13917 compiler=$CC
13920 # save warnings/boilerplate of simple test code
13921 ac_outfile=conftest.$ac_objext
13922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13924 _lt_compiler_boilerplate=`cat conftest.err`
13925 $RM conftest*
13927 ac_outfile=conftest.$ac_objext
13928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13930 _lt_linker_boilerplate=`cat conftest.err`
13931 $RM -r conftest*
13934 # Allow CC to be a program name with arguments.
13935 lt_save_CC=$CC
13936 lt_save_LD=$LD
13937 lt_save_GCC=$GCC
13938 GCC=$GXX
13939 lt_save_with_gnu_ld=$with_gnu_ld
13940 lt_save_path_LD=$lt_cv_path_LD
13941 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13942 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13943 else
13944 $as_unset lt_cv_prog_gnu_ld
13946 if test -n "${lt_cv_path_LDCXX+set}"; then
13947 lt_cv_path_LD=$lt_cv_path_LDCXX
13948 else
13949 $as_unset lt_cv_path_LD
13951 test -z "${LDCXX+set}" || LD=$LDCXX
13952 CC=${CXX-"c++"}
13953 compiler=$CC
13954 compiler_CXX=$CC
13955 for cc_temp in $compiler""; do
13956 case $cc_temp in
13957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13959 \-*) ;;
13960 *) break;;
13961 esac
13962 done
13963 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13966 if test -n "$compiler"; then
13967 # We don't want -fno-exception when compiling C++ code, so set the
13968 # no_builtin_flag separately
13969 if test "$GXX" = yes; then
13970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13971 else
13972 lt_prog_compiler_no_builtin_flag_CXX=
13975 if test "$GXX" = yes; then
13976 # Set up default GNU C++ configuration
13980 # Check whether --with-gnu-ld was given.
13981 if test "${with_gnu_ld+set}" = set; then :
13982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13983 else
13984 with_gnu_ld=no
13987 ac_prog=ld
13988 if test "$GCC" = yes; then
13989 # Check if gcc -print-prog-name=ld gives a path.
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13991 $as_echo_n "checking for ld used by $CC... " >&6; }
13992 case $host in
13993 *-*-mingw*)
13994 # gcc leaves a trailing carriage return which upsets mingw
13995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13998 esac
13999 case $ac_prog in
14000 # Accept absolute paths.
14001 [\\/]* | ?:[\\/]*)
14002 re_direlt='/[^/][^/]*/\.\./'
14003 # Canonicalize the pathname of ld
14004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14007 done
14008 test -z "$LD" && LD="$ac_prog"
14011 # If it fails, then pretend we aren't using GCC.
14012 ac_prog=ld
14015 # If it is relative, then search for the first ld in PATH.
14016 with_gnu_ld=unknown
14018 esac
14019 elif test "$with_gnu_ld" = yes; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14021 $as_echo_n "checking for GNU ld... " >&6; }
14022 else
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14024 $as_echo_n "checking for non-GNU ld... " >&6; }
14026 if test "${lt_cv_path_LD+set}" = set; then :
14027 $as_echo_n "(cached) " >&6
14028 else
14029 if test -z "$LD"; then
14030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14031 for ac_dir in $PATH; do
14032 IFS="$lt_save_ifs"
14033 test -z "$ac_dir" && ac_dir=.
14034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14035 lt_cv_path_LD="$ac_dir/$ac_prog"
14036 # Check to see if the program is GNU ld. I'd rather use --version,
14037 # but apparently some variants of GNU ld only accept -v.
14038 # Break only if it was the GNU/non-GNU ld that we prefer.
14039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14040 *GNU* | *'with BFD'*)
14041 test "$with_gnu_ld" != no && break
14044 test "$with_gnu_ld" != yes && break
14046 esac
14048 done
14049 IFS="$lt_save_ifs"
14050 else
14051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14055 LD="$lt_cv_path_LD"
14056 if test -n "$LD"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14058 $as_echo "$LD" >&6; }
14059 else
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14063 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14066 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14070 case `$LD -v 2>&1 </dev/null` in
14071 *GNU* | *'with BFD'*)
14072 lt_cv_prog_gnu_ld=yes
14075 lt_cv_prog_gnu_ld=no
14077 esac
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14081 with_gnu_ld=$lt_cv_prog_gnu_ld
14089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14090 # archiving commands below assume that GNU ld is being used.
14091 if test "$with_gnu_ld" = yes; then
14092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093 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'
14095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14098 # If archive_cmds runs LD, not CC, wlarc should be empty
14099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14100 # investigate it a little bit more. (MM)
14101 wlarc='${wl}'
14103 # ancient GNU ld didn't support --whole-archive et. al.
14104 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14105 $GREP 'no-whole-archive' > /dev/null; then
14106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14107 else
14108 whole_archive_flag_spec_CXX=
14110 else
14111 with_gnu_ld=no
14112 wlarc=
14114 # A generic and very simple default shared library creation
14115 # command for GNU C++ for the case where it uses the native
14116 # linker, instead of GNU ld. If possible, this setting should
14117 # overridden to take advantage of the native linker features on
14118 # the platform it is being used on.
14119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14122 # Commands to make compiler produce verbose output that lists
14123 # what "hidden" libraries, object files and flags are used when
14124 # linking a shared library.
14125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14127 else
14128 GXX=no
14129 with_gnu_ld=no
14130 wlarc=
14133 # PORTME: fill in a description of your system's C++ link characteristics
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14136 ld_shlibs_CXX=yes
14137 case $host_os in
14138 aix3*)
14139 # FIXME: insert proper C++ library support
14140 ld_shlibs_CXX=no
14142 aix[4-9]*)
14143 if test "$host_cpu" = ia64; then
14144 # On IA64, the linker does run time linking by default, so we don't
14145 # have to do anything special.
14146 aix_use_runtimelinking=no
14147 exp_sym_flag='-Bexport'
14148 no_entry_flag=""
14149 else
14150 aix_use_runtimelinking=no
14152 # Test if we are trying to use run time linking or normal
14153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14154 # need to do runtime linking.
14155 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14156 for ld_flag in $LDFLAGS; do
14157 case $ld_flag in
14158 *-brtl*)
14159 aix_use_runtimelinking=yes
14160 break
14162 esac
14163 done
14165 esac
14167 exp_sym_flag='-bexport'
14168 no_entry_flag='-bnoentry'
14171 # When large executables or shared objects are built, AIX ld can
14172 # have problems creating the table of contents. If linking a library
14173 # or program results in "error TOC overflow" add -mminimal-toc to
14174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14177 archive_cmds_CXX=''
14178 hardcode_direct_CXX=yes
14179 hardcode_direct_absolute_CXX=yes
14180 hardcode_libdir_separator_CXX=':'
14181 link_all_deplibs_CXX=yes
14182 file_list_spec_CXX='${wl}-f,'
14184 if test "$GXX" = yes; then
14185 case $host_os in aix4.[012]|aix4.[012].*)
14186 # We only want to do this on AIX 4.2 and lower, the check
14187 # below for broken collect2 doesn't work under 4.3+
14188 collect2name=`${CC} -print-prog-name=collect2`
14189 if test -f "$collect2name" &&
14190 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14191 then
14192 # We have reworked collect2
14194 else
14195 # We have old collect2
14196 hardcode_direct_CXX=unsupported
14197 # It fails to find uninstalled libraries when the uninstalled
14198 # path is not listed in the libpath. Setting hardcode_minus_L
14199 # to unsupported forces relinking
14200 hardcode_minus_L_CXX=yes
14201 hardcode_libdir_flag_spec_CXX='-L$libdir'
14202 hardcode_libdir_separator_CXX=
14204 esac
14205 shared_flag='-shared'
14206 if test "$aix_use_runtimelinking" = yes; then
14207 shared_flag="$shared_flag "'${wl}-G'
14209 else
14210 # not using gcc
14211 if test "$host_cpu" = ia64; then
14212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14213 # chokes on -Wl,-G. The following line is correct:
14214 shared_flag='-G'
14215 else
14216 if test "$aix_use_runtimelinking" = yes; then
14217 shared_flag='${wl}-G'
14218 else
14219 shared_flag='${wl}-bM:SRE'
14224 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14225 # It seems that -bexpall does not export symbols beginning with
14226 # underscore (_), so it is better to generate a list of symbols to
14227 # export.
14228 always_export_symbols_CXX=yes
14229 if test "$aix_use_runtimelinking" = yes; then
14230 # Warning - without using the other runtime loading flags (-brtl),
14231 # -berok will link without error, but may produce a broken library.
14232 allow_undefined_flag_CXX='-berok'
14233 # Determine the default libpath from the value encoded in an empty
14234 # executable.
14235 if test x$gcc_no_link = xyes; then
14236 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14242 main ()
14246 return 0;
14248 _ACEOF
14249 if ac_fn_cxx_try_link "$LINENO"; then :
14251 lt_aix_libpath_sed='
14252 /Import File Strings/,/^$/ {
14253 /^0/ {
14254 s/^0 *\(.*\)$/\1/
14258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14259 # Check for a 64-bit object if we didn't find anything.
14260 if test -z "$aix_libpath"; then
14261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264 rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext conftest.$ac_ext
14266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14268 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14270 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"
14271 else
14272 if test "$host_cpu" = ia64; then
14273 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14274 allow_undefined_flag_CXX="-z nodefs"
14275 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"
14276 else
14277 # Determine the default libpath from the value encoded in an
14278 # empty executable.
14279 if test x$gcc_no_link = xyes; then
14280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14286 main ()
14290 return 0;
14292 _ACEOF
14293 if ac_fn_cxx_try_link "$LINENO"; then :
14295 lt_aix_libpath_sed='
14296 /Import File Strings/,/^$/ {
14297 /^0/ {
14298 s/^0 *\(.*\)$/\1/
14302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14303 # Check for a 64-bit object if we didn't find anything.
14304 if test -z "$aix_libpath"; then
14305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14308 rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
14310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14312 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14313 # Warning - without using the other run time loading flags,
14314 # -berok will link without error, but may produce a broken library.
14315 no_undefined_flag_CXX=' ${wl}-bernotok'
14316 allow_undefined_flag_CXX=' ${wl}-berok'
14317 # Exported symbols can be pulled into shared objects from archives
14318 whole_archive_flag_spec_CXX='$convenience'
14319 archive_cmds_need_lc_CXX=yes
14320 # This is similar to how AIX traditionally builds its shared
14321 # libraries.
14322 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'
14327 beos*)
14328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14329 allow_undefined_flag_CXX=unsupported
14330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14331 # support --undefined. This deserves some investigation. FIXME
14332 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14333 else
14334 ld_shlibs_CXX=no
14338 chorus*)
14339 case $cc_basename in
14341 # FIXME: insert proper C++ library support
14342 ld_shlibs_CXX=no
14344 esac
14347 cygwin* | mingw* | pw32* | cegcc*)
14348 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14349 # as there is no search path for DLLs.
14350 hardcode_libdir_flag_spec_CXX='-L$libdir'
14351 allow_undefined_flag_CXX=unsupported
14352 always_export_symbols_CXX=no
14353 enable_shared_with_static_runtimes_CXX=yes
14355 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14356 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'
14357 # If the export-symbols file already is a .def file (1st line
14358 # is EXPORTS), use it as is; otherwise, prepend...
14359 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14360 cp $export_symbols $output_objdir/$soname.def;
14361 else
14362 echo EXPORTS > $output_objdir/$soname.def;
14363 cat $export_symbols >> $output_objdir/$soname.def;
14365 $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'
14366 else
14367 ld_shlibs_CXX=no
14370 darwin* | rhapsody*)
14373 archive_cmds_need_lc_CXX=no
14374 hardcode_direct_CXX=no
14375 hardcode_automatic_CXX=yes
14376 hardcode_shlibpath_var_CXX=unsupported
14377 whole_archive_flag_spec_CXX=''
14378 link_all_deplibs_CXX=yes
14379 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14380 case $cc_basename in
14381 ifort*) _lt_dar_can_shared=yes ;;
14382 *) _lt_dar_can_shared=$GCC ;;
14383 esac
14384 if test "$_lt_dar_can_shared" = "yes"; then
14385 output_verbose_link_cmd=echo
14386 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}"
14387 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14388 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}"
14389 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}"
14390 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14391 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}"
14392 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}"
14395 else
14396 ld_shlibs_CXX=no
14401 dgux*)
14402 case $cc_basename in
14403 ec++*)
14404 # FIXME: insert proper C++ library support
14405 ld_shlibs_CXX=no
14407 ghcx*)
14408 # Green Hills C++ Compiler
14409 # FIXME: insert proper C++ library support
14410 ld_shlibs_CXX=no
14413 # FIXME: insert proper C++ library support
14414 ld_shlibs_CXX=no
14416 esac
14419 freebsd[12]*)
14420 # C++ shared libraries reported to be fairly broken before
14421 # switch to ELF
14422 ld_shlibs_CXX=no
14425 freebsd-elf*)
14426 archive_cmds_need_lc_CXX=no
14429 freebsd* | dragonfly*)
14430 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14431 # conventions
14432 ld_shlibs_CXX=yes
14435 gnu*)
14438 hpux9*)
14439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14440 hardcode_libdir_separator_CXX=:
14441 export_dynamic_flag_spec_CXX='${wl}-E'
14442 hardcode_direct_CXX=yes
14443 hardcode_minus_L_CXX=yes # Not in the search PATH,
14444 # but as the default
14445 # location of the library.
14447 case $cc_basename in
14448 CC*)
14449 # FIXME: insert proper C++ library support
14450 ld_shlibs_CXX=no
14452 aCC*)
14453 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'
14454 # Commands to make compiler produce verbose output that lists
14455 # what "hidden" libraries, object files and flags are used when
14456 # linking a shared library.
14458 # There doesn't appear to be a way to prevent this compiler from
14459 # explicitly linking system object files so we need to strip them
14460 # from the output so that they don't get included in the library
14461 # dependencies.
14462 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'
14465 if test "$GXX" = yes; then
14466 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'
14467 else
14468 # FIXME: insert proper C++ library support
14469 ld_shlibs_CXX=no
14472 esac
14475 hpux10*|hpux11*)
14476 if test $with_gnu_ld = no; then
14477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14478 hardcode_libdir_separator_CXX=:
14480 case $host_cpu in
14481 hppa*64*|ia64*)
14484 export_dynamic_flag_spec_CXX='${wl}-E'
14486 esac
14488 case $host_cpu in
14489 hppa*64*|ia64*)
14490 hardcode_direct_CXX=no
14491 hardcode_shlibpath_var_CXX=no
14494 hardcode_direct_CXX=yes
14495 hardcode_direct_absolute_CXX=yes
14496 hardcode_minus_L_CXX=yes # Not in the search PATH,
14497 # but as the default
14498 # location of the library.
14500 esac
14502 case $cc_basename in
14503 CC*)
14504 # FIXME: insert proper C++ library support
14505 ld_shlibs_CXX=no
14507 aCC*)
14508 case $host_cpu in
14509 hppa*64*)
14510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14512 ia64*)
14513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14518 esac
14519 # Commands to make compiler produce verbose output that lists
14520 # what "hidden" libraries, object files and flags are used when
14521 # linking a shared library.
14523 # There doesn't appear to be a way to prevent this compiler from
14524 # explicitly linking system object files so we need to strip them
14525 # from the output so that they don't get included in the library
14526 # dependencies.
14527 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'
14530 if test "$GXX" = yes; then
14531 if test $with_gnu_ld = no; then
14532 case $host_cpu in
14533 hppa*64*)
14534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14536 ia64*)
14537 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14540 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'
14542 esac
14544 else
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14549 esac
14552 interix[3-9]*)
14553 hardcode_direct_CXX=no
14554 hardcode_shlibpath_var_CXX=no
14555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14556 export_dynamic_flag_spec_CXX='${wl}-E'
14557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14558 # Instead, shared libraries are loaded at an image base (0x10000000 by
14559 # default) and relocated if they conflict, which is a slow very memory
14560 # consuming and fragmenting process. To avoid this, we pick a random,
14561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14563 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'
14564 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'
14566 irix5* | irix6*)
14567 case $cc_basename in
14568 CC*)
14569 # SGI C++
14570 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'
14572 # Archives containing C++ object files must be created using
14573 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14574 # necessary to make sure instantiated templates are included
14575 # in the archive.
14576 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14579 if test "$GXX" = yes; then
14580 if test "$with_gnu_ld" = no; then
14581 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'
14582 else
14583 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'
14586 link_all_deplibs_CXX=yes
14588 esac
14589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14590 hardcode_libdir_separator_CXX=:
14591 inherit_rpath_CXX=yes
14594 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14595 case $cc_basename in
14596 KCC*)
14597 # Kuck and Associates, Inc. (KAI) C++ Compiler
14599 # KCC will only create a shared library if the output file
14600 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14601 # to its proper name (with version) after linking.
14602 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'
14603 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'
14604 # Commands to make compiler produce verbose output that lists
14605 # what "hidden" libraries, object files and flags are used when
14606 # linking a shared library.
14608 # There doesn't appear to be a way to prevent this compiler from
14609 # explicitly linking system object files so we need to strip them
14610 # from the output so that they don't get included in the library
14611 # dependencies.
14612 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'
14614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14617 # Archives containing C++ object files must be created using
14618 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14619 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14621 icpc* | ecpc* )
14622 # Intel C++
14623 with_gnu_ld=yes
14624 # version 8.0 and above of icpc choke on multiply defined symbols
14625 # if we add $predep_objects and $postdep_objects, however 7.1 and
14626 # earlier do not add the objects themselves.
14627 case `$CC -V 2>&1` in
14628 *"Version 7."*)
14629 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630 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'
14632 *) # Version 8.0 or newer
14633 tmp_idyn=
14634 case $host_cpu in
14635 ia64*) tmp_idyn=' -i_dynamic';;
14636 esac
14637 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14638 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'
14640 esac
14641 archive_cmds_need_lc_CXX=no
14642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14644 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14646 pgCC* | pgcpp*)
14647 # Portland Group C++ compiler
14648 case `$CC -V` in
14649 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14650 prelink_cmds_CXX='tpldir=Template.dir~
14651 rm -rf $tpldir~
14652 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14653 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14654 old_archive_cmds_CXX='tpldir=Template.dir~
14655 rm -rf $tpldir~
14656 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14657 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14658 $RANLIB $oldlib'
14659 archive_cmds_CXX='tpldir=Template.dir~
14660 rm -rf $tpldir~
14661 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14662 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14663 archive_expsym_cmds_CXX='tpldir=Template.dir~
14664 rm -rf $tpldir~
14665 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14666 $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'
14668 *) # Version 6 will use weak symbols
14669 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14670 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'
14672 esac
14674 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14675 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14676 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'
14678 cxx*)
14679 # Compaq C++
14680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14681 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'
14683 runpath_var=LD_RUN_PATH
14684 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14685 hardcode_libdir_separator_CXX=:
14687 # Commands to make compiler produce verbose output that lists
14688 # what "hidden" libraries, object files and flags are used when
14689 # linking a shared library.
14691 # There doesn't appear to be a way to prevent this compiler from
14692 # explicitly linking system object files so we need to strip them
14693 # from the output so that they don't get included in the library
14694 # dependencies.
14695 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'
14697 xl*)
14698 # IBM XL 8.0 on PPC, with GNU ld
14699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14700 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14701 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702 if test "x$supports_anon_versioning" = xyes; then
14703 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14705 echo "local: *; };" >> $output_objdir/$libname.ver~
14706 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14710 case `$CC -V 2>&1 | sed 5q` in
14711 *Sun\ C*)
14712 # Sun C++ 5.9
14713 no_undefined_flag_CXX=' -zdefs'
14714 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14715 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'
14716 hardcode_libdir_flag_spec_CXX='-R$libdir'
14717 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'
14718 compiler_needs_object_CXX=yes
14720 # Not sure whether something based on
14721 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14722 # would be better.
14723 output_verbose_link_cmd='echo'
14725 # Archives containing C++ object files must be created using
14726 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14727 # necessary to make sure instantiated templates are included
14728 # in the archive.
14729 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14731 esac
14733 esac
14736 lynxos*)
14737 # FIXME: insert proper C++ library support
14738 ld_shlibs_CXX=no
14741 m88k*)
14742 # FIXME: insert proper C++ library support
14743 ld_shlibs_CXX=no
14746 mvs*)
14747 case $cc_basename in
14748 cxx*)
14749 # FIXME: insert proper C++ library support
14750 ld_shlibs_CXX=no
14753 # FIXME: insert proper C++ library support
14754 ld_shlibs_CXX=no
14756 esac
14759 netbsd*)
14760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14761 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14762 wlarc=
14763 hardcode_libdir_flag_spec_CXX='-R$libdir'
14764 hardcode_direct_CXX=yes
14765 hardcode_shlibpath_var_CXX=no
14767 # Workaround some broken pre-1.5 toolchains
14768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14771 *nto* | *qnx*)
14772 ld_shlibs_CXX=yes
14775 openbsd2*)
14776 # C++ shared libraries are fairly broken
14777 ld_shlibs_CXX=no
14780 openbsd*)
14781 if test -f /usr/libexec/ld.so; then
14782 hardcode_direct_CXX=yes
14783 hardcode_shlibpath_var_CXX=no
14784 hardcode_direct_absolute_CXX=yes
14785 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14788 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14789 export_dynamic_flag_spec_CXX='${wl}-E'
14790 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14792 output_verbose_link_cmd=echo
14793 else
14794 ld_shlibs_CXX=no
14798 osf3* | osf4* | osf5*)
14799 case $cc_basename in
14800 KCC*)
14801 # Kuck and Associates, Inc. (KAI) C++ Compiler
14803 # KCC will only create a shared library if the output file
14804 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14805 # to its proper name (with version) after linking.
14806 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'
14808 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14809 hardcode_libdir_separator_CXX=:
14811 # Archives containing C++ object files must be created using
14812 # the KAI C++ compiler.
14813 case $host in
14814 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14815 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14816 esac
14818 RCC*)
14819 # Rational C++ 2.4.1
14820 # FIXME: insert proper C++ library support
14821 ld_shlibs_CXX=no
14823 cxx*)
14824 case $host in
14825 osf3*)
14826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14827 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'
14828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14831 allow_undefined_flag_CXX=' -expect_unresolved \*'
14832 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'
14833 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14834 echo "-hidden">> $lib.exp~
14835 $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~
14836 $RM $lib.exp'
14837 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14839 esac
14841 hardcode_libdir_separator_CXX=:
14843 # Commands to make compiler produce verbose output that lists
14844 # what "hidden" libraries, object files and flags are used when
14845 # linking a shared library.
14847 # There doesn't appear to be a way to prevent this compiler from
14848 # explicitly linking system object files so we need to strip them
14849 # from the output so that they don't get included in the library
14850 # dependencies.
14851 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'
14854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14856 case $host in
14857 osf3*)
14858 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'
14861 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'
14863 esac
14865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14866 hardcode_libdir_separator_CXX=:
14868 # Commands to make compiler produce verbose output that lists
14869 # what "hidden" libraries, object files and flags are used when
14870 # linking a shared library.
14871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14873 else
14874 # FIXME: insert proper C++ library support
14875 ld_shlibs_CXX=no
14878 esac
14881 psos*)
14882 # FIXME: insert proper C++ library support
14883 ld_shlibs_CXX=no
14886 sunos4*)
14887 case $cc_basename in
14888 CC*)
14889 # Sun C++ 4.x
14890 # FIXME: insert proper C++ library support
14891 ld_shlibs_CXX=no
14893 lcc*)
14894 # Lucid
14895 # FIXME: insert proper C++ library support
14896 ld_shlibs_CXX=no
14899 # FIXME: insert proper C++ library support
14900 ld_shlibs_CXX=no
14902 esac
14905 solaris*)
14906 case $cc_basename in
14907 CC*)
14908 # Sun C++ 4.2, 5.x and Centerline C++
14909 archive_cmds_need_lc_CXX=yes
14910 no_undefined_flag_CXX=' -zdefs'
14911 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14912 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14913 $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'
14915 hardcode_libdir_flag_spec_CXX='-R$libdir'
14916 hardcode_shlibpath_var_CXX=no
14917 case $host_os in
14918 solaris2.[0-5] | solaris2.[0-5].*) ;;
14920 # The compiler driver will combine and reorder linker options,
14921 # but understands `-z linker_flag'.
14922 # Supported since Solaris 2.6 (maybe 2.5.1?)
14923 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14925 esac
14926 link_all_deplibs_CXX=yes
14928 output_verbose_link_cmd='echo'
14930 # Archives containing C++ object files must be created using
14931 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14932 # necessary to make sure instantiated templates are included
14933 # in the archive.
14934 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14936 gcx*)
14937 # Green Hills C++ Compiler
14938 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14940 # The C++ compiler must be used to create the archive.
14941 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14944 # GNU C++ compiler with Solaris linker
14945 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14946 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14947 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14948 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14949 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14950 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14952 # Commands to make compiler produce verbose output that lists
14953 # what "hidden" libraries, object files and flags are used when
14954 # linking a shared library.
14955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14956 else
14957 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14958 # platform.
14959 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14960 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14961 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14963 # Commands to make compiler produce verbose output that lists
14964 # what "hidden" libraries, object files and flags are used when
14965 # linking a shared library.
14966 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14969 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14970 case $host_os in
14971 solaris2.[0-5] | solaris2.[0-5].*) ;;
14973 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14975 esac
14978 esac
14981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14982 no_undefined_flag_CXX='${wl}-z,text'
14983 archive_cmds_need_lc_CXX=no
14984 hardcode_shlibpath_var_CXX=no
14985 runpath_var='LD_RUN_PATH'
14987 case $cc_basename in
14988 CC*)
14989 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 esac
14999 sysv5* | sco3.2v5* | sco5v6*)
15000 # Note: We can NOT use -z defs as we might desire, because we do not
15001 # link with -lc, and that would cause any symbols used from libc to
15002 # always be unresolved, which means just about no library would
15003 # ever link correctly. If we're not using GNU ld we use -z text
15004 # though, which does catch some bad symbols but isn't as heavy-handed
15005 # as -z defs.
15006 no_undefined_flag_CXX='${wl}-z,text'
15007 allow_undefined_flag_CXX='${wl}-z,nodefs'
15008 archive_cmds_need_lc_CXX=no
15009 hardcode_shlibpath_var_CXX=no
15010 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15011 hardcode_libdir_separator_CXX=':'
15012 link_all_deplibs_CXX=yes
15013 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15014 runpath_var='LD_RUN_PATH'
15016 case $cc_basename in
15017 CC*)
15018 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15022 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15023 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15025 esac
15028 tandem*)
15029 case $cc_basename in
15030 NCC*)
15031 # NonStop-UX NCC 3.20
15032 # FIXME: insert proper C++ library support
15033 ld_shlibs_CXX=no
15036 # FIXME: insert proper C++ library support
15037 ld_shlibs_CXX=no
15039 esac
15042 vxworks*)
15043 # FIXME: insert proper C++ library support
15044 ld_shlibs_CXX=no
15048 # FIXME: insert proper C++ library support
15049 ld_shlibs_CXX=no
15051 esac
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15054 $as_echo "$ld_shlibs_CXX" >&6; }
15055 test "$ld_shlibs_CXX" = no && can_build_shared=no
15057 GCC_CXX="$GXX"
15058 LD_CXX="$LD"
15060 ## CAVEAT EMPTOR:
15061 ## There is no encapsulation within the following macros, do not change
15062 ## the running order or otherwise move them around unless you know exactly
15063 ## what you are doing...
15064 # Dependencies to place before and after the object being linked:
15065 predep_objects_CXX=
15066 postdep_objects_CXX=
15067 predeps_CXX=
15068 postdeps_CXX=
15069 compiler_lib_search_path_CXX=
15071 cat > conftest.$ac_ext <<_LT_EOF
15072 class Foo
15074 public:
15075 Foo (void) { a = 0; }
15076 private:
15077 int a;
15079 _LT_EOF
15081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15082 (eval $ac_compile) 2>&5
15083 ac_status=$?
15084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15085 test $ac_status = 0; }; then
15086 # Parse the compiler output and extract the necessary
15087 # objects, libraries and library flags.
15089 # Sentinel used to keep track of whether or not we are before
15090 # the conftest object file.
15091 pre_test_object_deps_done=no
15093 for p in `eval "$output_verbose_link_cmd"`; do
15094 case $p in
15096 -L* | -R* | -l*)
15097 # Some compilers place space between "-{L,R}" and the path.
15098 # Remove the space.
15099 if test $p = "-L" ||
15100 test $p = "-R"; then
15101 prev=$p
15102 continue
15103 else
15104 prev=
15107 if test "$pre_test_object_deps_done" = no; then
15108 case $p in
15109 -L* | -R*)
15110 # Internal compiler library paths should come after those
15111 # provided the user. The postdeps already come after the
15112 # user supplied libs so there is no need to process them.
15113 if test -z "$compiler_lib_search_path_CXX"; then
15114 compiler_lib_search_path_CXX="${prev}${p}"
15115 else
15116 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15119 # The "-l" case would never come before the object being
15120 # linked, so don't bother handling this case.
15121 esac
15122 else
15123 if test -z "$postdeps_CXX"; then
15124 postdeps_CXX="${prev}${p}"
15125 else
15126 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15131 *.$objext)
15132 # This assumes that the test object file only shows up
15133 # once in the compiler output.
15134 if test "$p" = "conftest.$objext"; then
15135 pre_test_object_deps_done=yes
15136 continue
15139 if test "$pre_test_object_deps_done" = no; then
15140 if test -z "$predep_objects_CXX"; then
15141 predep_objects_CXX="$p"
15142 else
15143 predep_objects_CXX="$predep_objects_CXX $p"
15145 else
15146 if test -z "$postdep_objects_CXX"; then
15147 postdep_objects_CXX="$p"
15148 else
15149 postdep_objects_CXX="$postdep_objects_CXX $p"
15154 *) ;; # Ignore the rest.
15156 esac
15157 done
15159 # Clean up.
15160 rm -f a.out a.exe
15161 else
15162 echo "libtool.m4: error: problem compiling CXX test program"
15165 $RM -f confest.$objext
15167 # PORTME: override above test on systems where it is broken
15168 case $host_os in
15169 interix[3-9]*)
15170 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15171 # hack all around it, let's just trust "g++" to DTRT.
15172 predep_objects_CXX=
15173 postdep_objects_CXX=
15174 postdeps_CXX=
15177 linux*)
15178 case `$CC -V 2>&1 | sed 5q` in
15179 *Sun\ C*)
15180 # Sun C++ 5.9
15182 # The more standards-conforming stlport4 library is
15183 # incompatible with the Cstd library. Avoid specifying
15184 # it if it's in CXXFLAGS. Ignore libCrun as
15185 # -library=stlport4 depends on it.
15186 case " $CXX $CXXFLAGS " in
15187 *" -library=stlport4 "*)
15188 solaris_use_stlport4=yes
15190 esac
15192 if test "$solaris_use_stlport4" != yes; then
15193 postdeps_CXX='-library=Cstd -library=Crun'
15196 esac
15199 solaris*)
15200 case $cc_basename in
15201 CC*)
15202 # The more standards-conforming stlport4 library is
15203 # incompatible with the Cstd library. Avoid specifying
15204 # it if it's in CXXFLAGS. Ignore libCrun as
15205 # -library=stlport4 depends on it.
15206 case " $CXX $CXXFLAGS " in
15207 *" -library=stlport4 "*)
15208 solaris_use_stlport4=yes
15210 esac
15212 # Adding this requires a known-good setup of shared libraries for
15213 # Sun compiler versions before 5.6, else PIC objects from an old
15214 # archive will be linked into the output, leading to subtle bugs.
15215 if test "$solaris_use_stlport4" != yes; then
15216 postdeps_CXX='-library=Cstd -library=Crun'
15219 esac
15221 esac
15224 case " $postdeps_CXX " in
15225 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15226 esac
15227 compiler_lib_search_dirs_CXX=
15228 if test -n "${compiler_lib_search_path_CXX}"; then
15229 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15262 lt_prog_compiler_wl_CXX=
15263 lt_prog_compiler_pic_CXX=
15264 lt_prog_compiler_static_CXX=
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15269 # C++ specific cases for pic, static, wl, etc.
15270 if test "$GXX" = yes; then
15271 lt_prog_compiler_wl_CXX='-Wl,'
15272 lt_prog_compiler_static_CXX='-static'
15274 case $host_os in
15275 aix*)
15276 # All AIX code is PIC.
15277 if test "$host_cpu" = ia64; then
15278 # AIX 5 now supports IA64 processor
15279 lt_prog_compiler_static_CXX='-Bstatic'
15283 amigaos*)
15284 case $host_cpu in
15285 powerpc)
15286 # see comment about AmigaOS4 .so support
15287 lt_prog_compiler_pic_CXX='-fPIC'
15289 m68k)
15290 # FIXME: we need at least 68020 code to build shared libraries, but
15291 # adding the `-m68020' flag to GCC prevents building anything better,
15292 # like `-m68040'.
15293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15295 esac
15298 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15299 # PIC is the default for these OSes.
15301 mingw* | cygwin* | os2* | pw32* | cegcc*)
15302 # This hack is so that the source file can tell whether it is being
15303 # built for inclusion in a dll (and should export symbols for example).
15304 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15305 # (--disable-auto-import) libraries
15306 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15308 darwin* | rhapsody*)
15309 # PIC is the default on this platform
15310 # Common symbols not allowed in MH_DYLIB files
15311 lt_prog_compiler_pic_CXX='-fno-common'
15313 *djgpp*)
15314 # DJGPP does not support shared libraries at all
15315 lt_prog_compiler_pic_CXX=
15317 interix[3-9]*)
15318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15319 # Instead, we relocate shared libraries at runtime.
15321 sysv4*MP*)
15322 if test -d /usr/nec; then
15323 lt_prog_compiler_pic_CXX=-Kconform_pic
15326 hpux*)
15327 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15328 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15329 # sets the default TLS model and affects inlining.
15330 case $host_cpu in
15331 hppa*64*)
15334 lt_prog_compiler_pic_CXX='-fPIC'
15336 esac
15338 *qnx* | *nto*)
15339 # QNX uses GNU C++, but need to define -shared option too, otherwise
15340 # it will coredump.
15341 lt_prog_compiler_pic_CXX='-fPIC -shared'
15344 lt_prog_compiler_pic_CXX='-fPIC'
15346 esac
15347 else
15348 case $host_os in
15349 aix[4-9]*)
15350 # All AIX code is PIC.
15351 if test "$host_cpu" = ia64; then
15352 # AIX 5 now supports IA64 processor
15353 lt_prog_compiler_static_CXX='-Bstatic'
15354 else
15355 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15358 chorus*)
15359 case $cc_basename in
15360 cxch68*)
15361 # Green Hills C++ Compiler
15362 # _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"
15364 esac
15366 dgux*)
15367 case $cc_basename in
15368 ec++*)
15369 lt_prog_compiler_pic_CXX='-KPIC'
15371 ghcx*)
15372 # Green Hills C++ Compiler
15373 lt_prog_compiler_pic_CXX='-pic'
15377 esac
15379 freebsd* | dragonfly*)
15380 # FreeBSD uses GNU C++
15382 hpux9* | hpux10* | hpux11*)
15383 case $cc_basename in
15384 CC*)
15385 lt_prog_compiler_wl_CXX='-Wl,'
15386 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15387 if test "$host_cpu" != ia64; then
15388 lt_prog_compiler_pic_CXX='+Z'
15391 aCC*)
15392 lt_prog_compiler_wl_CXX='-Wl,'
15393 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15394 case $host_cpu in
15395 hppa*64*|ia64*)
15396 # +Z the default
15399 lt_prog_compiler_pic_CXX='+Z'
15401 esac
15405 esac
15407 interix*)
15408 # This is c89, which is MS Visual C++ (no shared libs)
15409 # Anyone wants to do a port?
15411 irix5* | irix6* | nonstopux*)
15412 case $cc_basename in
15413 CC*)
15414 lt_prog_compiler_wl_CXX='-Wl,'
15415 lt_prog_compiler_static_CXX='-non_shared'
15416 # CC pic flag -KPIC is the default.
15420 esac
15422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15423 case $cc_basename in
15424 KCC*)
15425 # KAI C++ Compiler
15426 lt_prog_compiler_wl_CXX='--backend -Wl,'
15427 lt_prog_compiler_pic_CXX='-fPIC'
15429 ecpc* )
15430 # old Intel C++ for x86_64 which still supported -KPIC.
15431 lt_prog_compiler_wl_CXX='-Wl,'
15432 lt_prog_compiler_pic_CXX='-KPIC'
15433 lt_prog_compiler_static_CXX='-static'
15435 icpc* )
15436 # Intel C++, used to be incompatible with GCC.
15437 # ICC 10 doesn't accept -KPIC any more.
15438 lt_prog_compiler_wl_CXX='-Wl,'
15439 lt_prog_compiler_pic_CXX='-fPIC'
15440 lt_prog_compiler_static_CXX='-static'
15442 pgCC* | pgcpp*)
15443 # Portland Group C++ compiler
15444 lt_prog_compiler_wl_CXX='-Wl,'
15445 lt_prog_compiler_pic_CXX='-fpic'
15446 lt_prog_compiler_static_CXX='-Bstatic'
15448 cxx*)
15449 # Compaq C++
15450 # Make sure the PIC flag is empty. It appears that all Alpha
15451 # Linux and Compaq Tru64 Unix objects are PIC.
15452 lt_prog_compiler_pic_CXX=
15453 lt_prog_compiler_static_CXX='-non_shared'
15455 xlc* | xlC*)
15456 # IBM XL 8.0 on PPC
15457 lt_prog_compiler_wl_CXX='-Wl,'
15458 lt_prog_compiler_pic_CXX='-qpic'
15459 lt_prog_compiler_static_CXX='-qstaticlink'
15462 case `$CC -V 2>&1 | sed 5q` in
15463 *Sun\ C*)
15464 # Sun C++ 5.9
15465 lt_prog_compiler_pic_CXX='-KPIC'
15466 lt_prog_compiler_static_CXX='-Bstatic'
15467 lt_prog_compiler_wl_CXX='-Qoption ld '
15469 esac
15471 esac
15473 lynxos*)
15475 m88k*)
15477 mvs*)
15478 case $cc_basename in
15479 cxx*)
15480 lt_prog_compiler_pic_CXX='-W c,exportall'
15484 esac
15486 netbsd*)
15488 *qnx* | *nto*)
15489 # QNX uses GNU C++, but need to define -shared option too, otherwise
15490 # it will coredump.
15491 lt_prog_compiler_pic_CXX='-fPIC -shared'
15493 osf3* | osf4* | osf5*)
15494 case $cc_basename in
15495 KCC*)
15496 lt_prog_compiler_wl_CXX='--backend -Wl,'
15498 RCC*)
15499 # Rational C++ 2.4.1
15500 lt_prog_compiler_pic_CXX='-pic'
15502 cxx*)
15503 # Digital/Compaq C++
15504 lt_prog_compiler_wl_CXX='-Wl,'
15505 # Make sure the PIC flag is empty. It appears that all Alpha
15506 # Linux and Compaq Tru64 Unix objects are PIC.
15507 lt_prog_compiler_pic_CXX=
15508 lt_prog_compiler_static_CXX='-non_shared'
15512 esac
15514 psos*)
15516 solaris*)
15517 case $cc_basename in
15518 CC*)
15519 # Sun C++ 4.2, 5.x and Centerline C++
15520 lt_prog_compiler_pic_CXX='-KPIC'
15521 lt_prog_compiler_static_CXX='-Bstatic'
15522 lt_prog_compiler_wl_CXX='-Qoption ld '
15524 gcx*)
15525 # Green Hills C++ Compiler
15526 lt_prog_compiler_pic_CXX='-PIC'
15530 esac
15532 sunos4*)
15533 case $cc_basename in
15534 CC*)
15535 # Sun C++ 4.x
15536 lt_prog_compiler_pic_CXX='-pic'
15537 lt_prog_compiler_static_CXX='-Bstatic'
15539 lcc*)
15540 # Lucid
15541 lt_prog_compiler_pic_CXX='-pic'
15545 esac
15547 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15548 case $cc_basename in
15549 CC*)
15550 lt_prog_compiler_wl_CXX='-Wl,'
15551 lt_prog_compiler_pic_CXX='-KPIC'
15552 lt_prog_compiler_static_CXX='-Bstatic'
15554 esac
15556 tandem*)
15557 case $cc_basename in
15558 NCC*)
15559 # NonStop-UX NCC 3.20
15560 lt_prog_compiler_pic_CXX='-KPIC'
15564 esac
15566 vxworks*)
15569 lt_prog_compiler_can_build_shared_CXX=no
15571 esac
15574 case $host_os in
15575 # For platforms which do not support PIC, -DPIC is meaningless:
15576 *djgpp*)
15577 lt_prog_compiler_pic_CXX=
15580 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15582 esac
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15584 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15589 # Check to make sure the PIC flag actually works.
15591 if test -n "$lt_prog_compiler_pic_CXX"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15593 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15594 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15595 $as_echo_n "(cached) " >&6
15596 else
15597 lt_cv_prog_compiler_pic_works_CXX=no
15598 ac_outfile=conftest.$ac_objext
15599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15600 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15601 # Insert the option either (1) after the last *FLAGS variable, or
15602 # (2) before a word containing "conftest.", or (3) at the end.
15603 # Note that $ac_compile itself does not contain backslashes and begins
15604 # with a dollar sign (not a hyphen), so the echo should work correctly.
15605 # The option is referenced via a variable to avoid confusing sed.
15606 lt_compile=`echo "$ac_compile" | $SED \
15607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15609 -e 's:$: $lt_compiler_flag:'`
15610 (eval echo "\"\$as_me:15610: $lt_compile\"" >&5)
15611 (eval "$lt_compile" 2>conftest.err)
15612 ac_status=$?
15613 cat conftest.err >&5
15614 echo "$as_me:15614: \$? = $ac_status" >&5
15615 if (exit $ac_status) && test -s "$ac_outfile"; then
15616 # The compiler can only warn and ignore the option if not recognized
15617 # So say no if there are warnings other than the usual output.
15618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15621 lt_cv_prog_compiler_pic_works_CXX=yes
15624 $RM conftest*
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15628 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15630 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15631 case $lt_prog_compiler_pic_CXX in
15632 "" | " "*) ;;
15633 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15634 esac
15635 else
15636 lt_prog_compiler_pic_CXX=
15637 lt_prog_compiler_can_build_shared_CXX=no
15645 # Check to make sure the static flag actually works.
15647 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15649 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15650 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 lt_cv_prog_compiler_static_works_CXX=no
15654 save_LDFLAGS="$LDFLAGS"
15655 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15656 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15658 # The linker can only warn and ignore the option if not recognized
15659 # So say no if there are warnings
15660 if test -s conftest.err; then
15661 # Append any errors to the config.log.
15662 cat conftest.err 1>&5
15663 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15665 if diff conftest.exp conftest.er2 >/dev/null; then
15666 lt_cv_prog_compiler_static_works_CXX=yes
15668 else
15669 lt_cv_prog_compiler_static_works_CXX=yes
15672 $RM -r conftest*
15673 LDFLAGS="$save_LDFLAGS"
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15677 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15679 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15681 else
15682 lt_prog_compiler_static_CXX=
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15690 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15691 $as_echo_n "(cached) " >&6
15692 else
15693 lt_cv_prog_compiler_c_o_CXX=no
15694 $RM -r conftest 2>/dev/null
15695 mkdir conftest
15696 cd conftest
15697 mkdir out
15698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15700 lt_compiler_flag="-o out/conftest2.$ac_objext"
15701 # Insert the option either (1) after the last *FLAGS variable, or
15702 # (2) before a word containing "conftest.", or (3) at the end.
15703 # Note that $ac_compile itself does not contain backslashes and begins
15704 # with a dollar sign (not a hyphen), so the echo should work correctly.
15705 lt_compile=`echo "$ac_compile" | $SED \
15706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15708 -e 's:$: $lt_compiler_flag:'`
15709 (eval echo "\"\$as_me:15709: $lt_compile\"" >&5)
15710 (eval "$lt_compile" 2>out/conftest.err)
15711 ac_status=$?
15712 cat out/conftest.err >&5
15713 echo "$as_me:15713: \$? = $ac_status" >&5
15714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15715 then
15716 # The compiler can only warn and ignore the option if not recognized
15717 # So say no if there are warnings
15718 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15721 lt_cv_prog_compiler_c_o_CXX=yes
15724 chmod u+w . 2>&5
15725 $RM conftest*
15726 # SGI C++ compiler will create directory out/ii_files/ for
15727 # template instantiation
15728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15729 $RM out/* && rmdir out
15730 cd ..
15731 $RM -r conftest
15732 $RM conftest*
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15736 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15741 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15742 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 lt_cv_prog_compiler_c_o_CXX=no
15746 $RM -r conftest 2>/dev/null
15747 mkdir conftest
15748 cd conftest
15749 mkdir out
15750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752 lt_compiler_flag="-o out/conftest2.$ac_objext"
15753 # Insert the option either (1) after the last *FLAGS variable, or
15754 # (2) before a word containing "conftest.", or (3) at the end.
15755 # Note that $ac_compile itself does not contain backslashes and begins
15756 # with a dollar sign (not a hyphen), so the echo should work correctly.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:15761: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>out/conftest.err)
15763 ac_status=$?
15764 cat out/conftest.err >&5
15765 echo "$as_me:15765: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15767 then
15768 # The compiler can only warn and ignore the option if not recognized
15769 # So say no if there are warnings
15770 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15773 lt_cv_prog_compiler_c_o_CXX=yes
15776 chmod u+w . 2>&5
15777 $RM conftest*
15778 # SGI C++ compiler will create directory out/ii_files/ for
15779 # template instantiation
15780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15781 $RM out/* && rmdir out
15782 cd ..
15783 $RM -r conftest
15784 $RM conftest*
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15788 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15793 hard_links="nottested"
15794 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15795 # do not overwrite the value of need_locks provided by the user
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15797 $as_echo_n "checking if we can lock with hard links... " >&6; }
15798 hard_links=yes
15799 $RM conftest*
15800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15801 touch conftest.a
15802 ln conftest.a conftest.b 2>&5 || hard_links=no
15803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15805 $as_echo "$hard_links" >&6; }
15806 if test "$hard_links" = no; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15808 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15809 need_locks=warn
15811 else
15812 need_locks=no
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15818 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15821 case $host_os in
15822 aix[4-9]*)
15823 # If we're using GNU nm, then we don't want the "-C" option.
15824 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15825 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15826 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'
15827 else
15828 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'
15831 pw32*)
15832 export_symbols_cmds_CXX="$ltdll_cmds"
15834 cygwin* | mingw* | cegcc*)
15835 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'
15838 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15840 esac
15841 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15844 $as_echo "$ld_shlibs_CXX" >&6; }
15845 test "$ld_shlibs_CXX" = no && can_build_shared=no
15847 with_gnu_ld_CXX=$with_gnu_ld
15855 # Do we need to explicitly link libc?
15857 case "x$archive_cmds_need_lc_CXX" in
15858 x|xyes)
15859 # Assume -lc should be added
15860 archive_cmds_need_lc_CXX=yes
15862 if test "$enable_shared" = yes && test "$GCC" = yes; then
15863 case $archive_cmds_CXX in
15864 *'~'*)
15865 # FIXME: we may have to deal with multi-command sequences.
15867 '$CC '*)
15868 # Test whether the compiler implicitly links with -lc since on some
15869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15870 # to ld, don't add -lc before -lgcc.
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15872 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15873 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
15875 else
15876 $RM conftest*
15877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15880 (eval $ac_compile) 2>&5
15881 ac_status=$?
15882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15883 test $ac_status = 0; } 2>conftest.err; then
15884 soname=conftest
15885 lib=conftest
15886 libobjs=conftest.$ac_objext
15887 deplibs=
15888 wl=$lt_prog_compiler_wl_CXX
15889 pic_flag=$lt_prog_compiler_pic_CXX
15890 compiler_flags=-v
15891 linker_flags=-v
15892 verstring=
15893 output_objdir=.
15894 libname=conftest
15895 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15896 allow_undefined_flag_CXX=
15897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15898 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15899 ac_status=$?
15900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; }
15902 then
15903 lt_cv_archive_cmds_need_lc_CXX=no
15904 else
15905 lt_cv_archive_cmds_need_lc_CXX=yes
15907 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15908 else
15909 cat conftest.err 1>&5
15911 $RM conftest*
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15915 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15916 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15918 esac
15921 esac
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15987 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15989 library_names_spec=
15990 libname_spec='lib$name'
15991 soname_spec=
15992 shrext_cmds=".so"
15993 postinstall_cmds=
15994 postuninstall_cmds=
15995 finish_cmds=
15996 finish_eval=
15997 shlibpath_var=
15998 shlibpath_overrides_runpath=unknown
15999 version_type=none
16000 dynamic_linker="$host_os ld.so"
16001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16002 need_lib_prefix=unknown
16003 hardcode_into_libs=no
16005 # when you set need_version to no, make sure it does not cause -set_version
16006 # flags to be left without arguments
16007 need_version=unknown
16009 case $host_os in
16010 aix3*)
16011 version_type=linux
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16013 shlibpath_var=LIBPATH
16015 # AIX 3 has no versioning support, so we append a major version to the name.
16016 soname_spec='${libname}${release}${shared_ext}$major'
16019 aix[4-9]*)
16020 version_type=linux
16021 need_lib_prefix=no
16022 need_version=no
16023 hardcode_into_libs=yes
16024 if test "$host_cpu" = ia64; then
16025 # AIX 5 supports IA64
16026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 else
16029 # With GCC up to 2.95.x, collect2 would create an import file
16030 # for dependence libraries. The import file would start with
16031 # the line `#! .'. This would cause the generated library to
16032 # depend on `.', always an invalid library. This was fixed in
16033 # development snapshots of GCC prior to 3.0.
16034 case $host_os in
16035 aix4 | aix4.[01] | aix4.[01].*)
16036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16037 echo ' yes '
16038 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16040 else
16041 can_build_shared=no
16044 esac
16045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16046 # soname into executable. Probably we can add versioning support to
16047 # collect2, so additional links can be useful in future.
16048 if test "$aix_use_runtimelinking" = yes; then
16049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050 # instead of lib<name>.a to let people know that these are not
16051 # typical AIX shared libraries.
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 else
16054 # We preserve .a as extension for shared libraries through AIX4.2
16055 # and later when we are not doing run time linking.
16056 library_names_spec='${libname}${release}.a $libname.a'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16059 shlibpath_var=LIBPATH
16063 amigaos*)
16064 case $host_cpu in
16065 powerpc)
16066 # Since July 2007 AmigaOS4 officially supports .so libraries.
16067 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 m68k)
16071 library_names_spec='$libname.ixlibrary $libname.a'
16072 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16073 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'
16075 esac
16078 beos*)
16079 library_names_spec='${libname}${shared_ext}'
16080 dynamic_linker="$host_os ld.so"
16081 shlibpath_var=LIBRARY_PATH
16084 bsdi[45]*)
16085 version_type=linux
16086 need_version=no
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16090 shlibpath_var=LD_LIBRARY_PATH
16091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16093 # the default ld.so.conf also contains /usr/contrib/lib and
16094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16095 # libtool to hard-code these into programs
16098 cygwin* | mingw* | pw32* | cegcc*)
16099 version_type=windows
16100 shrext_cmds=".dll"
16101 need_version=no
16102 need_lib_prefix=no
16104 case $GCC,$host_os in
16105 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16106 library_names_spec='$libname.dll.a'
16107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16108 postinstall_cmds='base_file=`basename \${file}`~
16109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16110 dldir=$destdir/`dirname \$dlpath`~
16111 test -d \$dldir || mkdir -p \$dldir~
16112 $install_prog $dir/$dlname \$dldir/$dlname~
16113 chmod a+x \$dldir/$dlname~
16114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16118 dlpath=$dir/\$dldll~
16119 $RM \$dlpath'
16120 shlibpath_overrides_runpath=yes
16122 case $host_os in
16123 cygwin*)
16124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16125 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16126 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16128 mingw* | cegcc*)
16129 # MinGW DLLs use traditional 'lib' prefix
16130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16132 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16133 # It is most probably a Windows format PATH printed by
16134 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16135 # path with ; separators, and with drive letters. We can handle the
16136 # drive letters (cygwin fileutils understands them), so leave them,
16137 # especially as we might pass files found there to a mingw objdump,
16138 # which wouldn't understand a cygwinified path. Ahh.
16139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16140 else
16141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16144 pw32*)
16145 # pw32 DLLs use 'pw' prefix rather than 'lib'
16146 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 esac
16152 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16154 esac
16155 dynamic_linker='Win32 ld.exe'
16156 # FIXME: first we should search . and the directory the executable is in
16157 shlibpath_var=PATH
16160 darwin* | rhapsody*)
16161 dynamic_linker="$host_os dyld"
16162 version_type=darwin
16163 need_lib_prefix=no
16164 need_version=no
16165 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16166 soname_spec='${libname}${release}${major}$shared_ext'
16167 shlibpath_overrides_runpath=yes
16168 shlibpath_var=DYLD_LIBRARY_PATH
16169 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16174 dgux*)
16175 version_type=linux
16176 need_lib_prefix=no
16177 need_version=no
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 shlibpath_var=LD_LIBRARY_PATH
16183 freebsd1*)
16184 dynamic_linker=no
16187 freebsd* | dragonfly*)
16188 # DragonFly does not have aout. When/if they implement a new
16189 # versioning mechanism, adjust this.
16190 if test -x /usr/bin/objformat; then
16191 objformat=`/usr/bin/objformat`
16192 else
16193 case $host_os in
16194 freebsd[123]*) objformat=aout ;;
16195 *) objformat=elf ;;
16196 esac
16198 version_type=freebsd-$objformat
16199 case $version_type in
16200 freebsd-elf*)
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16202 need_version=no
16203 need_lib_prefix=no
16205 freebsd-*)
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16207 need_version=yes
16209 esac
16210 shlibpath_var=LD_LIBRARY_PATH
16211 case $host_os in
16212 freebsd2*)
16213 shlibpath_overrides_runpath=yes
16215 freebsd3.[01]* | freebsdelf3.[01]*)
16216 shlibpath_overrides_runpath=yes
16217 hardcode_into_libs=yes
16219 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16220 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16221 shlibpath_overrides_runpath=no
16222 hardcode_into_libs=yes
16224 *) # from 4.6 on, and DragonFly
16225 shlibpath_overrides_runpath=yes
16226 hardcode_into_libs=yes
16228 esac
16231 gnu*)
16232 version_type=linux
16233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 hardcode_into_libs=yes
16241 hpux9* | hpux10* | hpux11*)
16242 # Give a soname corresponding to the major version so that dld.sl refuses to
16243 # link against other versions.
16244 version_type=sunos
16245 need_lib_prefix=no
16246 need_version=no
16247 case $host_cpu in
16248 ia64*)
16249 shrext_cmds='.so'
16250 hardcode_into_libs=yes
16251 dynamic_linker="$host_os dld.so"
16252 shlibpath_var=LD_LIBRARY_PATH
16253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 if test "X$HPUX_IA64_MODE" = X32; then
16257 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16258 else
16259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16263 hppa*64*)
16264 shrext_cmds='.sl'
16265 hardcode_into_libs=yes
16266 dynamic_linker="$host_os dld.sl"
16267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275 shrext_cmds='.sl'
16276 dynamic_linker="$host_os dld.sl"
16277 shlibpath_var=SHLIB_PATH
16278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16282 esac
16283 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16284 postinstall_cmds='chmod 555 $lib'
16287 interix[3-9]*)
16288 version_type=linux
16289 need_lib_prefix=no
16290 need_version=no
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=no
16296 hardcode_into_libs=yes
16299 irix5* | irix6* | nonstopux*)
16300 case $host_os in
16301 nonstopux*) version_type=nonstopux ;;
16303 if test "$lt_cv_prog_gnu_ld" = yes; then
16304 version_type=linux
16305 else
16306 version_type=irix
16307 fi ;;
16308 esac
16309 need_lib_prefix=no
16310 need_version=no
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16313 case $host_os in
16314 irix5* | nonstopux*)
16315 libsuff= shlibsuff=
16318 case $LD in # libtool.m4 will add one of these switches to LD
16319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16320 libsuff= shlibsuff= libmagic=32-bit;;
16321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16322 libsuff=32 shlibsuff=N32 libmagic=N32;;
16323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16325 *) libsuff= shlibsuff= libmagic=never-match;;
16326 esac
16328 esac
16329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16330 shlibpath_overrides_runpath=no
16331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16333 hardcode_into_libs=yes
16336 # No shared lib support for Linux oldld, aout, or coff.
16337 linux*oldld* | linux*aout* | linux*coff*)
16338 dynamic_linker=no
16341 # This must be Linux ELF.
16342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16343 version_type=linux
16344 need_lib_prefix=no
16345 need_version=no
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 shlibpath_overrides_runpath=no
16352 # Some binutils ld are patched to set DT_RUNPATH
16353 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 lt_cv_shlibpath_overrides_runpath=no
16357 save_LDFLAGS=$LDFLAGS
16358 save_libdir=$libdir
16359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16361 if test x$gcc_no_link = xyes; then
16362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16368 main ()
16372 return 0;
16374 _ACEOF
16375 if ac_fn_cxx_try_link "$LINENO"; then :
16376 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16377 lt_cv_shlibpath_overrides_runpath=yes
16380 rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16382 LDFLAGS=$save_LDFLAGS
16383 libdir=$save_libdir
16387 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16389 # This implies no fast_install, which is unacceptable.
16390 # Some rework will be needed to allow for fast_install
16391 # before this can be enabled.
16392 hardcode_into_libs=yes
16394 # Append ld.so.conf contents to the search path
16395 if test -f /etc/ld.so.conf; then
16396 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' ' '`
16397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16400 # We used to test for /lib/ld.so.1 and disable shared libraries on
16401 # powerpc, because MkLinux only supported shared libraries with the
16402 # GNU dynamic linker. Since this was broken with cross compilers,
16403 # most powerpc-linux boxes support dynamic linking these days and
16404 # people can always --disable-shared, the test was removed, and we
16405 # assume the GNU/Linux dynamic linker is in use.
16406 dynamic_linker='GNU/Linux ld.so'
16409 netbsd*)
16410 version_type=sunos
16411 need_lib_prefix=no
16412 need_version=no
16413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16416 dynamic_linker='NetBSD (a.out) ld.so'
16417 else
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 dynamic_linker='NetBSD ld.elf_so'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=yes
16424 hardcode_into_libs=yes
16427 newsos6)
16428 version_type=linux
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=yes
16434 *nto* | *qnx*)
16435 version_type=qnx
16436 need_lib_prefix=no
16437 need_version=no
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=no
16442 hardcode_into_libs=yes
16443 dynamic_linker='ldqnx.so'
16446 openbsd*)
16447 version_type=sunos
16448 sys_lib_dlsearch_path_spec="/usr/lib"
16449 need_lib_prefix=no
16450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16451 case $host_os in
16452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16453 *) need_version=no ;;
16454 esac
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16459 case $host_os in
16460 openbsd2.[89] | openbsd2.[89].*)
16461 shlibpath_overrides_runpath=no
16464 shlibpath_overrides_runpath=yes
16466 esac
16467 else
16468 shlibpath_overrides_runpath=yes
16472 os2*)
16473 libname_spec='$name'
16474 shrext_cmds=".dll"
16475 need_lib_prefix=no
16476 library_names_spec='$libname${shared_ext} $libname.a'
16477 dynamic_linker='OS/2 ld.exe'
16478 shlibpath_var=LIBPATH
16481 osf3* | osf4* | osf5*)
16482 version_type=osf
16483 need_lib_prefix=no
16484 need_version=no
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16492 rdos*)
16493 dynamic_linker=no
16496 solaris*)
16497 version_type=linux
16498 need_lib_prefix=no
16499 need_version=no
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=yes
16504 hardcode_into_libs=yes
16505 # ldd complains unless libraries are executable
16506 postinstall_cmds='chmod +x $lib'
16509 sunos4*)
16510 version_type=sunos
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=yes
16515 if test "$with_gnu_ld" = yes; then
16516 need_lib_prefix=no
16518 need_version=yes
16521 sysv4 | sysv4.3*)
16522 version_type=linux
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 case $host_vendor in
16527 sni)
16528 shlibpath_overrides_runpath=no
16529 need_lib_prefix=no
16530 runpath_var=LD_RUN_PATH
16532 siemens)
16533 need_lib_prefix=no
16535 motorola)
16536 need_lib_prefix=no
16537 need_version=no
16538 shlibpath_overrides_runpath=no
16539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16541 esac
16544 sysv4*MP*)
16545 if test -d /usr/nec ;then
16546 version_type=linux
16547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16548 soname_spec='$libname${shared_ext}.$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16554 version_type=freebsd-elf
16555 need_lib_prefix=no
16556 need_version=no
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=yes
16561 hardcode_into_libs=yes
16562 if test "$with_gnu_ld" = yes; then
16563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16564 else
16565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16566 case $host_os in
16567 sco3.2v5*)
16568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16570 esac
16572 sys_lib_dlsearch_path_spec='/usr/lib'
16575 tpf*)
16576 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16577 version_type=linux
16578 need_lib_prefix=no
16579 need_version=no
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=no
16583 hardcode_into_libs=yes
16586 uts4*)
16587 version_type=linux
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 soname_spec='${libname}${release}${shared_ext}$major'
16590 shlibpath_var=LD_LIBRARY_PATH
16594 dynamic_linker=no
16596 esac
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16598 $as_echo "$dynamic_linker" >&6; }
16599 test "$dynamic_linker" = no && can_build_shared=no
16601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16602 if test "$GCC" = yes; then
16603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16606 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16607 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16609 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16610 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16649 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16650 hardcode_action_CXX=
16651 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16652 test -n "$runpath_var_CXX" ||
16653 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16655 # We can hardcode non-existent directories.
16656 if test "$hardcode_direct_CXX" != no &&
16657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16658 # have to relink, otherwise we might link with an installed library
16659 # when we should be linking with a yet-to-be-installed one
16660 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16661 test "$hardcode_minus_L_CXX" != no; then
16662 # Linking always hardcodes the temporary library directory.
16663 hardcode_action_CXX=relink
16664 else
16665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16666 hardcode_action_CXX=immediate
16668 else
16669 # We cannot hardcode anything, or else we can only hardcode existing
16670 # directories.
16671 hardcode_action_CXX=unsupported
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16674 $as_echo "$hardcode_action_CXX" >&6; }
16676 if test "$hardcode_action_CXX" = relink ||
16677 test "$inherit_rpath_CXX" = yes; then
16678 # Fast installation is not supported
16679 enable_fast_install=no
16680 elif test "$shlibpath_overrides_runpath" = yes ||
16681 test "$enable_shared" = no; then
16682 # Fast installation is not necessary
16683 enable_fast_install=needless
16692 fi # test -n "$compiler"
16694 CC=$lt_save_CC
16695 LDCXX=$LD
16696 LD=$lt_save_LD
16697 GCC=$lt_save_GCC
16698 with_gnu_ld=$lt_save_with_gnu_ld
16699 lt_cv_path_LDCXX=$lt_cv_path_LD
16700 lt_cv_path_LD=$lt_save_path_LD
16701 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16702 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16703 fi # test "$_lt_caught_CXX_error" != yes
16705 ac_ext=c
16706 ac_cpp='$CPP $CPPFLAGS'
16707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723 ac_config_commands="$ac_config_commands libtool"
16728 # Only expand once:
16732 for ac_prog in gcj
16734 # Extract the first word of "$ac_prog", so it can be a program name with args.
16735 set dummy $ac_prog; ac_word=$2
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16737 $as_echo_n "checking for $ac_word... " >&6; }
16738 if test "${ac_cv_prog_GCJ+set}" = set; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 if test -n "$GCJ"; then
16742 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16743 else
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16747 IFS=$as_save_IFS
16748 test -z "$as_dir" && as_dir=.
16749 for ac_exec_ext in '' $ac_executable_extensions; do
16750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16751 ac_cv_prog_GCJ="$ac_prog"
16752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16753 break 2
16755 done
16756 done
16757 IFS=$as_save_IFS
16761 GCJ=$ac_cv_prog_GCJ
16762 if test -n "$GCJ"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16764 $as_echo "$GCJ" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16771 test -n "$GCJ" && break
16772 done
16773 test -n "$GCJ" || GCJ="gcj"
16775 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16776 if test "x${GCJFLAGS-unset}" = xunset; then
16777 GCJFLAGS="-g -O2"
16781 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16784 $as_echo_n "checking dependency style of $depcc... " >&6; }
16785 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16786 $as_echo_n "(cached) " >&6
16787 else
16788 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16789 # We make a subdir and do the tests there. Otherwise we can end up
16790 # making bogus files that we don't know about and never remove. For
16791 # instance it was reported that on HP-UX the gcc test will end up
16792 # making a dummy file named `D' -- because `-MD' means `put the output
16793 # in D'.
16794 mkdir conftest.dir
16795 # Copy depcomp to subdir because otherwise we won't find it if we're
16796 # using a relative directory.
16797 cp "$am_depcomp" conftest.dir
16798 cd conftest.dir
16799 # We will build objects and dependencies in a subdirectory because
16800 # it helps to detect inapplicable dependency modes. For instance
16801 # both Tru64's cc and ICC support -MD to output dependencies as a
16802 # side effect of compilation, but ICC will put the dependencies in
16803 # the current directory while Tru64 will put them in the object
16804 # directory.
16805 mkdir sub
16807 am_cv_GCJ_dependencies_compiler_type=none
16808 if test "$am_compiler_list" = ""; then
16809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16811 am__universal=false
16814 for depmode in $am_compiler_list; do
16815 # Setup a source with many dependencies, because some compilers
16816 # like to wrap large dependency lists on column 80 (with \), and
16817 # we should not choose a depcomp mode which is confused by this.
16819 # We need to recreate these files for each test, as the compiler may
16820 # overwrite some of them when testing with obscure command lines.
16821 # This happens at least with the AIX C compiler.
16822 : > sub/conftest.c
16823 for i in 1 2 3 4 5 6; do
16824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16826 # Solaris 8's {/usr,}/bin/sh.
16827 touch sub/conftst$i.h
16828 done
16829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16832 # mode. It turns out that the SunPro C++ compiler does not properly
16833 # handle `-M -o', and we need to detect this. Also, some Intel
16834 # versions had trouble with output in subdirs
16835 am__obj=sub/conftest.${OBJEXT-o}
16836 am__minus_obj="-o $am__obj"
16837 case $depmode in
16838 gcc)
16839 # This depmode causes a compiler race in universal mode.
16840 test "$am__universal" = false || continue
16842 nosideeffect)
16843 # after this tag, mechanisms are not by side-effect, so they'll
16844 # only be used when explicitly requested
16845 if test "x$enable_dependency_tracking" = xyes; then
16846 continue
16847 else
16848 break
16851 msvisualcpp | msvcmsys)
16852 # This compiler won't grok `-c -o', but also, the minuso test has
16853 # not run yet. These depmodes are late enough in the game, and
16854 # so weak that their functioning should not be impacted.
16855 am__obj=conftest.${OBJEXT-o}
16856 am__minus_obj=
16858 none) break ;;
16859 esac
16860 if depmode=$depmode \
16861 source=sub/conftest.c object=$am__obj \
16862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16864 >/dev/null 2>conftest.err &&
16865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16869 # icc doesn't choke on unknown options, it will just issue warnings
16870 # or remarks (even with -Werror). So we grep stderr for any message
16871 # that says an option was ignored or not supported.
16872 # When given -MP, icc 7.0 and 7.1 complain thusly:
16873 # icc: Command line warning: ignoring option '-M'; no argument required
16874 # The diagnosis changed in icc 8.0:
16875 # icc: Command line remark: option '-MP' not supported
16876 if (grep 'ignoring option' conftest.err ||
16877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16878 am_cv_GCJ_dependencies_compiler_type=$depmode
16879 break
16882 done
16884 cd ..
16885 rm -rf conftest.dir
16886 else
16887 am_cv_GCJ_dependencies_compiler_type=none
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16892 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16893 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16896 test "x$enable_dependency_tracking" != xno \
16897 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16898 am__fastdepGCJ_TRUE=
16899 am__fastdepGCJ_FALSE='#'
16900 else
16901 am__fastdepGCJ_TRUE='#'
16902 am__fastdepGCJ_FALSE=
16907 for ac_prog in gcj
16909 # Extract the first word of "$ac_prog", so it can be a program name with args.
16910 set dummy $ac_prog; ac_word=$2
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16912 $as_echo_n "checking for $ac_word... " >&6; }
16913 if test "${ac_cv_prog_GCJ+set}" = set; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 if test -n "$GCJ"; then
16917 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16918 else
16919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920 for as_dir in $PATH
16922 IFS=$as_save_IFS
16923 test -z "$as_dir" && as_dir=.
16924 for ac_exec_ext in '' $ac_executable_extensions; do
16925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16926 ac_cv_prog_GCJ="$ac_prog"
16927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16928 break 2
16930 done
16931 done
16932 IFS=$as_save_IFS
16936 GCJ=$ac_cv_prog_GCJ
16937 if test -n "$GCJ"; then
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16939 $as_echo "$GCJ" >&6; }
16940 else
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942 $as_echo "no" >&6; }
16946 test -n "$GCJ" && break
16947 done
16948 test -n "$GCJ" || GCJ="gcj"
16950 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16951 if test "x${GCJFLAGS-unset}" = xunset; then
16952 GCJFLAGS="-g -O2"
16956 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16959 $as_echo_n "checking dependency style of $depcc... " >&6; }
16960 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16961 $as_echo_n "(cached) " >&6
16962 else
16963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16964 # We make a subdir and do the tests there. Otherwise we can end up
16965 # making bogus files that we don't know about and never remove. For
16966 # instance it was reported that on HP-UX the gcc test will end up
16967 # making a dummy file named `D' -- because `-MD' means `put the output
16968 # in D'.
16969 mkdir conftest.dir
16970 # Copy depcomp to subdir because otherwise we won't find it if we're
16971 # using a relative directory.
16972 cp "$am_depcomp" conftest.dir
16973 cd conftest.dir
16974 # We will build objects and dependencies in a subdirectory because
16975 # it helps to detect inapplicable dependency modes. For instance
16976 # both Tru64's cc and ICC support -MD to output dependencies as a
16977 # side effect of compilation, but ICC will put the dependencies in
16978 # the current directory while Tru64 will put them in the object
16979 # directory.
16980 mkdir sub
16982 am_cv_GCJ_dependencies_compiler_type=none
16983 if test "$am_compiler_list" = ""; then
16984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16986 am__universal=false
16989 for depmode in $am_compiler_list; do
16990 # Setup a source with many dependencies, because some compilers
16991 # like to wrap large dependency lists on column 80 (with \), and
16992 # we should not choose a depcomp mode which is confused by this.
16994 # We need to recreate these files for each test, as the compiler may
16995 # overwrite some of them when testing with obscure command lines.
16996 # This happens at least with the AIX C compiler.
16997 : > sub/conftest.c
16998 for i in 1 2 3 4 5 6; do
16999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17000 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17001 # Solaris 8's {/usr,}/bin/sh.
17002 touch sub/conftst$i.h
17003 done
17004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17006 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17007 # mode. It turns out that the SunPro C++ compiler does not properly
17008 # handle `-M -o', and we need to detect this. Also, some Intel
17009 # versions had trouble with output in subdirs
17010 am__obj=sub/conftest.${OBJEXT-o}
17011 am__minus_obj="-o $am__obj"
17012 case $depmode in
17013 gcc)
17014 # This depmode causes a compiler race in universal mode.
17015 test "$am__universal" = false || continue
17017 nosideeffect)
17018 # after this tag, mechanisms are not by side-effect, so they'll
17019 # only be used when explicitly requested
17020 if test "x$enable_dependency_tracking" = xyes; then
17021 continue
17022 else
17023 break
17026 msvisualcpp | msvcmsys)
17027 # This compiler won't grok `-c -o', but also, the minuso test has
17028 # not run yet. These depmodes are late enough in the game, and
17029 # so weak that their functioning should not be impacted.
17030 am__obj=conftest.${OBJEXT-o}
17031 am__minus_obj=
17033 none) break ;;
17034 esac
17035 if depmode=$depmode \
17036 source=sub/conftest.c object=$am__obj \
17037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17039 >/dev/null 2>conftest.err &&
17040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17044 # icc doesn't choke on unknown options, it will just issue warnings
17045 # or remarks (even with -Werror). So we grep stderr for any message
17046 # that says an option was ignored or not supported.
17047 # When given -MP, icc 7.0 and 7.1 complain thusly:
17048 # icc: Command line warning: ignoring option '-M'; no argument required
17049 # The diagnosis changed in icc 8.0:
17050 # icc: Command line remark: option '-MP' not supported
17051 if (grep 'ignoring option' conftest.err ||
17052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17053 am_cv_GCJ_dependencies_compiler_type=$depmode
17054 break
17057 done
17059 cd ..
17060 rm -rf conftest.dir
17061 else
17062 am_cv_GCJ_dependencies_compiler_type=none
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17067 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17068 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17071 test "x$enable_dependency_tracking" != xno \
17072 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17073 am__fastdepGCJ_TRUE=
17074 am__fastdepGCJ_FALSE='#'
17075 else
17076 am__fastdepGCJ_TRUE='#'
17077 am__fastdepGCJ_FALSE=
17084 # Source file extension for Java test sources.
17085 ac_ext=c
17087 # Object file extension for compiled Java test sources.
17088 objext=o
17089 objext_GCJ=$objext
17091 # Code to be used in simple compile tests
17092 lt_simple_compile_test_code="int some_variable = 0;"
17094 # Code to be used in simple link tests
17095 lt_simple_link_test_code='int main(){return(0);}'
17097 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17104 # If no C compiler was specified, use CC.
17105 LTCC=${LTCC-"$CC"}
17107 # If no C compiler flags were specified, use CFLAGS.
17108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17110 # Allow CC to be a program name with arguments.
17111 compiler=$CC
17114 # save warnings/boilerplate of simple test code
17115 ac_outfile=conftest.$ac_objext
17116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17118 _lt_compiler_boilerplate=`cat conftest.err`
17119 $RM conftest*
17121 ac_outfile=conftest.$ac_objext
17122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17124 _lt_linker_boilerplate=`cat conftest.err`
17125 $RM -r conftest*
17128 # Allow CC to be a program name with arguments.
17129 GCC=yes
17130 compiler=$CC
17131 compiler_GCJ=$CC
17132 for cc_temp in $compiler""; do
17133 case $cc_temp in
17134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17136 \-*) ;;
17137 *) break;;
17138 esac
17139 done
17140 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17143 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17144 archive_cmds_need_lc_GCJ=no
17146 old_archive_cmds_GCJ=$old_archive_cmds
17148 ## CAVEAT EMPTOR:
17149 ## There is no encapsulation within the following macros, do not change
17150 ## the running order or otherwise move them around unless you know exactly
17151 ## what you are doing...
17152 if test -n "$compiler"; then
17154 lt_prog_compiler_no_builtin_flag_GCJ=
17156 if test "$GCC" = yes; then
17157 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17160 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17161 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17162 $as_echo_n "(cached) " >&6
17163 else
17164 lt_cv_prog_compiler_rtti_exceptions=no
17165 ac_outfile=conftest.$ac_objext
17166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17167 lt_compiler_flag="-fno-rtti -fno-exceptions"
17168 # Insert the option either (1) after the last *FLAGS variable, or
17169 # (2) before a word containing "conftest.", or (3) at the end.
17170 # Note that $ac_compile itself does not contain backslashes and begins
17171 # with a dollar sign (not a hyphen), so the echo should work correctly.
17172 # The option is referenced via a variable to avoid confusing sed.
17173 lt_compile=`echo "$ac_compile" | $SED \
17174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17176 -e 's:$: $lt_compiler_flag:'`
17177 (eval echo "\"\$as_me:17177: $lt_compile\"" >&5)
17178 (eval "$lt_compile" 2>conftest.err)
17179 ac_status=$?
17180 cat conftest.err >&5
17181 echo "$as_me:17181: \$? = $ac_status" >&5
17182 if (exit $ac_status) && test -s "$ac_outfile"; then
17183 # The compiler can only warn and ignore the option if not recognized
17184 # So say no if there are warnings other than the usual output.
17185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17188 lt_cv_prog_compiler_rtti_exceptions=yes
17191 $RM conftest*
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17195 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17197 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17198 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17199 else
17207 lt_prog_compiler_wl_GCJ=
17208 lt_prog_compiler_pic_GCJ=
17209 lt_prog_compiler_static_GCJ=
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17212 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17214 if test "$GCC" = yes; then
17215 lt_prog_compiler_wl_GCJ='-Wl,'
17216 lt_prog_compiler_static_GCJ='-static'
17218 case $host_os in
17219 aix*)
17220 # All AIX code is PIC.
17221 if test "$host_cpu" = ia64; then
17222 # AIX 5 now supports IA64 processor
17223 lt_prog_compiler_static_GCJ='-Bstatic'
17227 amigaos*)
17228 case $host_cpu in
17229 powerpc)
17230 # see comment about AmigaOS4 .so support
17231 lt_prog_compiler_pic_GCJ='-fPIC'
17233 m68k)
17234 # FIXME: we need at least 68020 code to build shared libraries, but
17235 # adding the `-m68020' flag to GCC prevents building anything better,
17236 # like `-m68040'.
17237 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17239 esac
17242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17243 # PIC is the default for these OSes.
17246 mingw* | cygwin* | pw32* | os2* | cegcc*)
17247 # This hack is so that the source file can tell whether it is being
17248 # built for inclusion in a dll (and should export symbols for example).
17249 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17250 # (--disable-auto-import) libraries
17254 darwin* | rhapsody*)
17255 # PIC is the default on this platform
17256 # Common symbols not allowed in MH_DYLIB files
17257 lt_prog_compiler_pic_GCJ='-fno-common'
17260 hpux*)
17261 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17262 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17263 # sets the default TLS model and affects inlining.
17264 case $host_cpu in
17265 hppa*64*)
17266 # +Z the default
17269 lt_prog_compiler_pic_GCJ='-fPIC'
17271 esac
17274 interix[3-9]*)
17275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17276 # Instead, we relocate shared libraries at runtime.
17279 msdosdjgpp*)
17280 # Just because we use GCC doesn't mean we suddenly get shared libraries
17281 # on systems that don't support them.
17282 lt_prog_compiler_can_build_shared_GCJ=no
17283 enable_shared=no
17286 *nto* | *qnx*)
17287 # QNX uses GNU C++, but need to define -shared option too, otherwise
17288 # it will coredump.
17289 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17292 sysv4*MP*)
17293 if test -d /usr/nec; then
17294 lt_prog_compiler_pic_GCJ=-Kconform_pic
17299 lt_prog_compiler_pic_GCJ='-fPIC'
17301 esac
17302 else
17303 # PORTME Check for flag to pass linker flags through the system compiler.
17304 case $host_os in
17305 aix*)
17306 lt_prog_compiler_wl_GCJ='-Wl,'
17307 if test "$host_cpu" = ia64; then
17308 # AIX 5 now supports IA64 processor
17309 lt_prog_compiler_static_GCJ='-Bstatic'
17310 else
17311 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17315 mingw* | cygwin* | pw32* | os2* | cegcc*)
17316 # This hack is so that the source file can tell whether it is being
17317 # built for inclusion in a dll (and should export symbols for example).
17321 hpux9* | hpux10* | hpux11*)
17322 lt_prog_compiler_wl_GCJ='-Wl,'
17323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17324 # not for PA HP-UX.
17325 case $host_cpu in
17326 hppa*64*|ia64*)
17327 # +Z the default
17330 lt_prog_compiler_pic_GCJ='+Z'
17332 esac
17333 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17334 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17337 irix5* | irix6* | nonstopux*)
17338 lt_prog_compiler_wl_GCJ='-Wl,'
17339 # PIC (with -KPIC) is the default.
17340 lt_prog_compiler_static_GCJ='-non_shared'
17343 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17344 case $cc_basename in
17345 # old Intel for x86_64 which still supported -KPIC.
17346 ecc*)
17347 lt_prog_compiler_wl_GCJ='-Wl,'
17348 lt_prog_compiler_pic_GCJ='-KPIC'
17349 lt_prog_compiler_static_GCJ='-static'
17351 # icc used to be incompatible with GCC.
17352 # ICC 10 doesn't accept -KPIC any more.
17353 icc* | ifort*)
17354 lt_prog_compiler_wl_GCJ='-Wl,'
17355 lt_prog_compiler_pic_GCJ='-fPIC'
17356 lt_prog_compiler_static_GCJ='-static'
17358 # Lahey Fortran 8.1.
17359 lf95*)
17360 lt_prog_compiler_wl_GCJ='-Wl,'
17361 lt_prog_compiler_pic_GCJ='--shared'
17362 lt_prog_compiler_static_GCJ='--static'
17364 pgcc* | pgf77* | pgf90* | pgf95*)
17365 # Portland Group compilers (*not* the Pentium gcc compiler,
17366 # which looks to be a dead project)
17367 lt_prog_compiler_wl_GCJ='-Wl,'
17368 lt_prog_compiler_pic_GCJ='-fpic'
17369 lt_prog_compiler_static_GCJ='-Bstatic'
17371 ccc*)
17372 lt_prog_compiler_wl_GCJ='-Wl,'
17373 # All Alpha code is PIC.
17374 lt_prog_compiler_static_GCJ='-non_shared'
17376 xl*)
17377 # IBM XL C 8.0/Fortran 10.1 on PPC
17378 lt_prog_compiler_wl_GCJ='-Wl,'
17379 lt_prog_compiler_pic_GCJ='-qpic'
17380 lt_prog_compiler_static_GCJ='-qstaticlink'
17383 case `$CC -V 2>&1 | sed 5q` in
17384 *Sun\ C*)
17385 # Sun C 5.9
17386 lt_prog_compiler_pic_GCJ='-KPIC'
17387 lt_prog_compiler_static_GCJ='-Bstatic'
17388 lt_prog_compiler_wl_GCJ='-Wl,'
17390 *Sun\ F*)
17391 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17392 lt_prog_compiler_pic_GCJ='-KPIC'
17393 lt_prog_compiler_static_GCJ='-Bstatic'
17394 lt_prog_compiler_wl_GCJ=''
17396 esac
17398 esac
17401 newsos6)
17402 lt_prog_compiler_pic_GCJ='-KPIC'
17403 lt_prog_compiler_static_GCJ='-Bstatic'
17406 *nto* | *qnx*)
17407 # QNX uses GNU C++, but need to define -shared option too, otherwise
17408 # it will coredump.
17409 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17412 osf3* | osf4* | osf5*)
17413 lt_prog_compiler_wl_GCJ='-Wl,'
17414 # All OSF/1 code is PIC.
17415 lt_prog_compiler_static_GCJ='-non_shared'
17418 rdos*)
17419 lt_prog_compiler_static_GCJ='-non_shared'
17422 solaris*)
17423 lt_prog_compiler_pic_GCJ='-KPIC'
17424 lt_prog_compiler_static_GCJ='-Bstatic'
17425 case $cc_basename in
17426 f77* | f90* | f95*)
17427 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17429 lt_prog_compiler_wl_GCJ='-Wl,';;
17430 esac
17433 sunos4*)
17434 lt_prog_compiler_wl_GCJ='-Qoption ld '
17435 lt_prog_compiler_pic_GCJ='-PIC'
17436 lt_prog_compiler_static_GCJ='-Bstatic'
17439 sysv4 | sysv4.2uw2* | sysv4.3*)
17440 lt_prog_compiler_wl_GCJ='-Wl,'
17441 lt_prog_compiler_pic_GCJ='-KPIC'
17442 lt_prog_compiler_static_GCJ='-Bstatic'
17445 sysv4*MP*)
17446 if test -d /usr/nec ;then
17447 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17448 lt_prog_compiler_static_GCJ='-Bstatic'
17452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17453 lt_prog_compiler_wl_GCJ='-Wl,'
17454 lt_prog_compiler_pic_GCJ='-KPIC'
17455 lt_prog_compiler_static_GCJ='-Bstatic'
17458 unicos*)
17459 lt_prog_compiler_wl_GCJ='-Wl,'
17460 lt_prog_compiler_can_build_shared_GCJ=no
17463 uts4*)
17464 lt_prog_compiler_pic_GCJ='-pic'
17465 lt_prog_compiler_static_GCJ='-Bstatic'
17469 lt_prog_compiler_can_build_shared_GCJ=no
17471 esac
17474 case $host_os in
17475 # For platforms which do not support PIC, -DPIC is meaningless:
17476 *djgpp*)
17477 lt_prog_compiler_pic_GCJ=
17480 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17482 esac
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17484 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17489 # Check to make sure the PIC flag actually works.
17491 if test -n "$lt_prog_compiler_pic_GCJ"; then
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17493 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17494 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17495 $as_echo_n "(cached) " >&6
17496 else
17497 lt_cv_prog_compiler_pic_works_GCJ=no
17498 ac_outfile=conftest.$ac_objext
17499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17500 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17501 # Insert the option either (1) after the last *FLAGS variable, or
17502 # (2) before a word containing "conftest.", or (3) at the end.
17503 # Note that $ac_compile itself does not contain backslashes and begins
17504 # with a dollar sign (not a hyphen), so the echo should work correctly.
17505 # The option is referenced via a variable to avoid confusing sed.
17506 lt_compile=`echo "$ac_compile" | $SED \
17507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17509 -e 's:$: $lt_compiler_flag:'`
17510 (eval echo "\"\$as_me:17510: $lt_compile\"" >&5)
17511 (eval "$lt_compile" 2>conftest.err)
17512 ac_status=$?
17513 cat conftest.err >&5
17514 echo "$as_me:17514: \$? = $ac_status" >&5
17515 if (exit $ac_status) && test -s "$ac_outfile"; then
17516 # The compiler can only warn and ignore the option if not recognized
17517 # So say no if there are warnings other than the usual output.
17518 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17521 lt_cv_prog_compiler_pic_works_GCJ=yes
17524 $RM conftest*
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17528 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17530 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17531 case $lt_prog_compiler_pic_GCJ in
17532 "" | " "*) ;;
17533 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17534 esac
17535 else
17536 lt_prog_compiler_pic_GCJ=
17537 lt_prog_compiler_can_build_shared_GCJ=no
17545 # Check to make sure the static flag actually works.
17547 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17549 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17550 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17551 $as_echo_n "(cached) " >&6
17552 else
17553 lt_cv_prog_compiler_static_works_GCJ=no
17554 save_LDFLAGS="$LDFLAGS"
17555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17556 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17558 # The linker can only warn and ignore the option if not recognized
17559 # So say no if there are warnings
17560 if test -s conftest.err; then
17561 # Append any errors to the config.log.
17562 cat conftest.err 1>&5
17563 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17565 if diff conftest.exp conftest.er2 >/dev/null; then
17566 lt_cv_prog_compiler_static_works_GCJ=yes
17568 else
17569 lt_cv_prog_compiler_static_works_GCJ=yes
17572 $RM -r conftest*
17573 LDFLAGS="$save_LDFLAGS"
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17577 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17579 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17581 else
17582 lt_prog_compiler_static_GCJ=
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17590 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17591 $as_echo_n "(cached) " >&6
17592 else
17593 lt_cv_prog_compiler_c_o_GCJ=no
17594 $RM -r conftest 2>/dev/null
17595 mkdir conftest
17596 cd conftest
17597 mkdir out
17598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17600 lt_compiler_flag="-o out/conftest2.$ac_objext"
17601 # Insert the option either (1) after the last *FLAGS variable, or
17602 # (2) before a word containing "conftest.", or (3) at the end.
17603 # Note that $ac_compile itself does not contain backslashes and begins
17604 # with a dollar sign (not a hyphen), so the echo should work correctly.
17605 lt_compile=`echo "$ac_compile" | $SED \
17606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17608 -e 's:$: $lt_compiler_flag:'`
17609 (eval echo "\"\$as_me:17609: $lt_compile\"" >&5)
17610 (eval "$lt_compile" 2>out/conftest.err)
17611 ac_status=$?
17612 cat out/conftest.err >&5
17613 echo "$as_me:17613: \$? = $ac_status" >&5
17614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17615 then
17616 # The compiler can only warn and ignore the option if not recognized
17617 # So say no if there are warnings
17618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17621 lt_cv_prog_compiler_c_o_GCJ=yes
17624 chmod u+w . 2>&5
17625 $RM conftest*
17626 # SGI C++ compiler will create directory out/ii_files/ for
17627 # template instantiation
17628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17629 $RM out/* && rmdir out
17630 cd ..
17631 $RM -r conftest
17632 $RM conftest*
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17636 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17642 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17643 $as_echo_n "(cached) " >&6
17644 else
17645 lt_cv_prog_compiler_c_o_GCJ=no
17646 $RM -r conftest 2>/dev/null
17647 mkdir conftest
17648 cd conftest
17649 mkdir out
17650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17652 lt_compiler_flag="-o out/conftest2.$ac_objext"
17653 # Insert the option either (1) after the last *FLAGS variable, or
17654 # (2) before a word containing "conftest.", or (3) at the end.
17655 # Note that $ac_compile itself does not contain backslashes and begins
17656 # with a dollar sign (not a hyphen), so the echo should work correctly.
17657 lt_compile=`echo "$ac_compile" | $SED \
17658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17660 -e 's:$: $lt_compiler_flag:'`
17661 (eval echo "\"\$as_me:17661: $lt_compile\"" >&5)
17662 (eval "$lt_compile" 2>out/conftest.err)
17663 ac_status=$?
17664 cat out/conftest.err >&5
17665 echo "$as_me:17665: \$? = $ac_status" >&5
17666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17667 then
17668 # The compiler can only warn and ignore the option if not recognized
17669 # So say no if there are warnings
17670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17673 lt_cv_prog_compiler_c_o_GCJ=yes
17676 chmod u+w . 2>&5
17677 $RM conftest*
17678 # SGI C++ compiler will create directory out/ii_files/ for
17679 # template instantiation
17680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17681 $RM out/* && rmdir out
17682 cd ..
17683 $RM -r conftest
17684 $RM conftest*
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17688 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17693 hard_links="nottested"
17694 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17695 # do not overwrite the value of need_locks provided by the user
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17697 $as_echo_n "checking if we can lock with hard links... " >&6; }
17698 hard_links=yes
17699 $RM conftest*
17700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17701 touch conftest.a
17702 ln conftest.a conftest.b 2>&5 || hard_links=no
17703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17705 $as_echo "$hard_links" >&6; }
17706 if test "$hard_links" = no; then
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17708 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17709 need_locks=warn
17711 else
17712 need_locks=no
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17720 runpath_var=
17721 allow_undefined_flag_GCJ=
17722 always_export_symbols_GCJ=no
17723 archive_cmds_GCJ=
17724 archive_expsym_cmds_GCJ=
17725 compiler_needs_object_GCJ=no
17726 enable_shared_with_static_runtimes_GCJ=no
17727 export_dynamic_flag_spec_GCJ=
17728 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17729 hardcode_automatic_GCJ=no
17730 hardcode_direct_GCJ=no
17731 hardcode_direct_absolute_GCJ=no
17732 hardcode_libdir_flag_spec_GCJ=
17733 hardcode_libdir_flag_spec_ld_GCJ=
17734 hardcode_libdir_separator_GCJ=
17735 hardcode_minus_L_GCJ=no
17736 hardcode_shlibpath_var_GCJ=unsupported
17737 inherit_rpath_GCJ=no
17738 link_all_deplibs_GCJ=unknown
17739 module_cmds_GCJ=
17740 module_expsym_cmds_GCJ=
17741 old_archive_from_new_cmds_GCJ=
17742 old_archive_from_expsyms_cmds_GCJ=
17743 thread_safe_flag_spec_GCJ=
17744 whole_archive_flag_spec_GCJ=
17745 # include_expsyms should be a list of space-separated symbols to be *always*
17746 # included in the symbol list
17747 include_expsyms_GCJ=
17748 # exclude_expsyms can be an extended regexp of symbols to exclude
17749 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17751 # as well as any symbol that contains `d'.
17752 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17754 # platforms (ab)use it in PIC code, but their linkers get confused if
17755 # the symbol is explicitly referenced. Since portable code cannot
17756 # rely on this symbol name, it's probably fine to never include it in
17757 # preloaded symbol tables.
17758 # Exclude shared library initialization/finalization symbols.
17759 extract_expsyms_cmds=
17761 case $host_os in
17762 cygwin* | mingw* | pw32* | cegcc*)
17763 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17764 # When not using gcc, we currently assume that we are using
17765 # Microsoft Visual C++.
17766 if test "$GCC" != yes; then
17767 with_gnu_ld=no
17770 interix*)
17771 # we just hope/assume this is gcc and not c89 (= MSVC++)
17772 with_gnu_ld=yes
17774 openbsd*)
17775 with_gnu_ld=no
17777 esac
17779 ld_shlibs_GCJ=yes
17780 if test "$with_gnu_ld" = yes; then
17781 # If archive_cmds runs LD, not CC, wlarc should be empty
17782 wlarc='${wl}'
17784 # Set some defaults for GNU ld with shared library support. These
17785 # are reset later if shared libraries are not supported. Putting them
17786 # here allows them to be overridden if necessary.
17787 runpath_var=LD_RUN_PATH
17788 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17789 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17790 # ancient GNU ld didn't support --whole-archive et. al.
17791 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17792 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17793 else
17794 whole_archive_flag_spec_GCJ=
17796 supports_anon_versioning=no
17797 case `$LD -v 2>&1` in
17798 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17801 *\ 2.11.*) ;; # other 2.11 versions
17802 *) supports_anon_versioning=yes ;;
17803 esac
17805 # See if GNU ld supports shared libraries.
17806 case $host_os in
17807 aix[3-9]*)
17808 # On AIX/PPC, the GNU linker is very broken
17809 if test "$host_cpu" != ia64; then
17810 ld_shlibs_GCJ=no
17811 cat <<_LT_EOF 1>&2
17813 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17814 *** to be unable to reliably create shared libraries on AIX.
17815 *** Therefore, libtool is disabling shared libraries support. If you
17816 *** really care for shared libraries, you may want to modify your PATH
17817 *** so that a non-GNU linker is found, and then restart.
17819 _LT_EOF
17823 amigaos*)
17824 case $host_cpu in
17825 powerpc)
17826 # see comment about AmigaOS4 .so support
17827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17828 archive_expsym_cmds_GCJ=''
17830 m68k)
17831 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)'
17832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17833 hardcode_minus_L_GCJ=yes
17835 esac
17838 beos*)
17839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17840 allow_undefined_flag_GCJ=unsupported
17841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17842 # support --undefined. This deserves some investigation. FIXME
17843 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17844 else
17845 ld_shlibs_GCJ=no
17849 cygwin* | mingw* | pw32* | cegcc*)
17850 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17851 # as there is no search path for DLLs.
17852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17853 allow_undefined_flag_GCJ=unsupported
17854 always_export_symbols_GCJ=no
17855 enable_shared_with_static_runtimes_GCJ=yes
17856 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17860 # If the export-symbols file already is a .def file (1st line
17861 # is EXPORTS), use it as is; otherwise, prepend...
17862 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17863 cp $export_symbols $output_objdir/$soname.def;
17864 else
17865 echo EXPORTS > $output_objdir/$soname.def;
17866 cat $export_symbols >> $output_objdir/$soname.def;
17868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17869 else
17870 ld_shlibs_GCJ=no
17874 interix[3-9]*)
17875 hardcode_direct_GCJ=no
17876 hardcode_shlibpath_var_GCJ=no
17877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17878 export_dynamic_flag_spec_GCJ='${wl}-E'
17879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17880 # Instead, shared libraries are loaded at an image base (0x10000000 by
17881 # default) and relocated if they conflict, which is a slow very memory
17882 # consuming and fragmenting process. To avoid this, we pick a random,
17883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17885 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'
17886 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'
17889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17890 tmp_diet=no
17891 if test "$host_os" = linux-dietlibc; then
17892 case $cc_basename in
17893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17894 esac
17896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17897 && test "$tmp_diet" = no
17898 then
17899 tmp_addflag=
17900 tmp_sharedflag='-shared'
17901 case $cc_basename,$host_cpu in
17902 pgcc*) # Portland Group C compiler
17903 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'
17904 tmp_addflag=' $pic_flag'
17906 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17907 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'
17908 tmp_addflag=' $pic_flag -Mnomain' ;;
17909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17910 tmp_addflag=' -i_dynamic' ;;
17911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17912 tmp_addflag=' -i_dynamic -nofor_main' ;;
17913 ifc* | ifort*) # Intel Fortran compiler
17914 tmp_addflag=' -nofor_main' ;;
17915 lf95*) # Lahey Fortran 8.1
17916 whole_archive_flag_spec_GCJ=
17917 tmp_sharedflag='--shared' ;;
17918 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17919 tmp_sharedflag='-qmkshrobj'
17920 tmp_addflag= ;;
17921 esac
17922 case `$CC -V 2>&1 | sed 5q` in
17923 *Sun\ C*) # Sun C 5.9
17924 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'
17925 compiler_needs_object_GCJ=yes
17926 tmp_sharedflag='-G' ;;
17927 *Sun\ F*) # Sun Fortran 8.3
17928 tmp_sharedflag='-G' ;;
17929 esac
17930 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17932 if test "x$supports_anon_versioning" = xyes; then
17933 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17935 echo "local: *; };" >> $output_objdir/$libname.ver~
17936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17939 case $cc_basename in
17940 xlf*)
17941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17942 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17943 hardcode_libdir_flag_spec_GCJ=
17944 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17945 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17946 if test "x$supports_anon_versioning" = xyes; then
17947 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17949 echo "local: *; };" >> $output_objdir/$libname.ver~
17950 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17953 esac
17954 else
17955 ld_shlibs_GCJ=no
17959 netbsd*)
17960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17961 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17962 wlarc=
17963 else
17964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17965 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17969 solaris*)
17970 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17971 ld_shlibs_GCJ=no
17972 cat <<_LT_EOF 1>&2
17974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17975 *** create shared libraries on Solaris systems. Therefore, libtool
17976 *** is disabling shared libraries support. We urge you to upgrade GNU
17977 *** binutils to release 2.9.1 or newer. Another option is to modify
17978 *** your PATH or compiler configuration so that the native linker is
17979 *** used, and then restart.
17981 _LT_EOF
17982 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17985 else
17986 ld_shlibs_GCJ=no
17990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17991 case `$LD -v 2>&1` in
17992 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17993 ld_shlibs_GCJ=no
17994 cat <<_LT_EOF 1>&2
17996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17997 *** reliably create shared libraries on SCO systems. Therefore, libtool
17998 *** is disabling shared libraries support. We urge you to upgrade GNU
17999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18000 *** your PATH or compiler configuration so that the native linker is
18001 *** used, and then restart.
18003 _LT_EOF
18006 # For security reasons, it is highly recommended that you always
18007 # use absolute paths for naming shared libraries, and exclude the
18008 # DT_RUNPATH tag from executables and libraries. But doing so
18009 # requires that you compile everything twice, which is a pain.
18010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18014 else
18015 ld_shlibs_GCJ=no
18018 esac
18021 sunos4*)
18022 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18023 wlarc=
18024 hardcode_direct_GCJ=yes
18025 hardcode_shlibpath_var_GCJ=no
18029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18032 else
18033 ld_shlibs_GCJ=no
18036 esac
18038 if test "$ld_shlibs_GCJ" = no; then
18039 runpath_var=
18040 hardcode_libdir_flag_spec_GCJ=
18041 export_dynamic_flag_spec_GCJ=
18042 whole_archive_flag_spec_GCJ=
18044 else
18045 # PORTME fill in a description of your system's linker (not GNU ld)
18046 case $host_os in
18047 aix3*)
18048 allow_undefined_flag_GCJ=unsupported
18049 always_export_symbols_GCJ=yes
18050 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'
18051 # Note: this linker hardcodes the directories in LIBPATH if there
18052 # are no directories specified by -L.
18053 hardcode_minus_L_GCJ=yes
18054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18055 # Neither direct hardcoding nor static linking is supported with a
18056 # broken collect2.
18057 hardcode_direct_GCJ=unsupported
18061 aix[4-9]*)
18062 if test "$host_cpu" = ia64; then
18063 # On IA64, the linker does run time linking by default, so we don't
18064 # have to do anything special.
18065 aix_use_runtimelinking=no
18066 exp_sym_flag='-Bexport'
18067 no_entry_flag=""
18068 else
18069 # If we're using GNU nm, then we don't want the "-C" option.
18070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18072 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'
18073 else
18074 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'
18076 aix_use_runtimelinking=no
18078 # Test if we are trying to use run time linking or normal
18079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18080 # need to do runtime linking.
18081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18082 for ld_flag in $LDFLAGS; do
18083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18084 aix_use_runtimelinking=yes
18085 break
18087 done
18089 esac
18091 exp_sym_flag='-bexport'
18092 no_entry_flag='-bnoentry'
18095 # When large executables or shared objects are built, AIX ld can
18096 # have problems creating the table of contents. If linking a library
18097 # or program results in "error TOC overflow" add -mminimal-toc to
18098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18101 archive_cmds_GCJ=''
18102 hardcode_direct_GCJ=yes
18103 hardcode_direct_absolute_GCJ=yes
18104 hardcode_libdir_separator_GCJ=':'
18105 link_all_deplibs_GCJ=yes
18106 file_list_spec_GCJ='${wl}-f,'
18108 if test "$GCC" = yes; then
18109 case $host_os in aix4.[012]|aix4.[012].*)
18110 # We only want to do this on AIX 4.2 and lower, the check
18111 # below for broken collect2 doesn't work under 4.3+
18112 collect2name=`${CC} -print-prog-name=collect2`
18113 if test -f "$collect2name" &&
18114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18115 then
18116 # We have reworked collect2
18118 else
18119 # We have old collect2
18120 hardcode_direct_GCJ=unsupported
18121 # It fails to find uninstalled libraries when the uninstalled
18122 # path is not listed in the libpath. Setting hardcode_minus_L
18123 # to unsupported forces relinking
18124 hardcode_minus_L_GCJ=yes
18125 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18126 hardcode_libdir_separator_GCJ=
18129 esac
18130 shared_flag='-shared'
18131 if test "$aix_use_runtimelinking" = yes; then
18132 shared_flag="$shared_flag "'${wl}-G'
18134 else
18135 # not using gcc
18136 if test "$host_cpu" = ia64; then
18137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18138 # chokes on -Wl,-G. The following line is correct:
18139 shared_flag='-G'
18140 else
18141 if test "$aix_use_runtimelinking" = yes; then
18142 shared_flag='${wl}-G'
18143 else
18144 shared_flag='${wl}-bM:SRE'
18149 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18150 # It seems that -bexpall does not export symbols beginning with
18151 # underscore (_), so it is better to generate a list of symbols to export.
18152 always_export_symbols_GCJ=yes
18153 if test "$aix_use_runtimelinking" = yes; then
18154 # Warning - without using the other runtime loading flags (-brtl),
18155 # -berok will link without error, but may produce a broken library.
18156 allow_undefined_flag_GCJ='-berok'
18157 # Determine the default libpath from the value encoded in an
18158 # empty executable.
18159 if test x$gcc_no_link = xyes; then
18160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18166 main ()
18170 return 0;
18172 _ACEOF
18173 if ac_fn_c_try_link "$LINENO"; then :
18175 lt_aix_libpath_sed='
18176 /Import File Strings/,/^$/ {
18177 /^0/ {
18178 s/^0 *\(.*\)$/\1/
18182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18183 # Check for a 64-bit object if we didn't find anything.
18184 if test -z "$aix_libpath"; then
18185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18188 rm -f core conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18192 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18193 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"
18194 else
18195 if test "$host_cpu" = ia64; then
18196 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18197 allow_undefined_flag_GCJ="-z nodefs"
18198 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"
18199 else
18200 # Determine the default libpath from the value encoded in an
18201 # empty executable.
18202 if test x$gcc_no_link = xyes; then
18203 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18209 main ()
18213 return 0;
18215 _ACEOF
18216 if ac_fn_c_try_link "$LINENO"; then :
18218 lt_aix_libpath_sed='
18219 /Import File Strings/,/^$/ {
18220 /^0/ {
18221 s/^0 *\(.*\)$/\1/
18225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18226 # Check for a 64-bit object if we didn't find anything.
18227 if test -z "$aix_libpath"; then
18228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18235 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18236 # Warning - without using the other run time loading flags,
18237 # -berok will link without error, but may produce a broken library.
18238 no_undefined_flag_GCJ=' ${wl}-bernotok'
18239 allow_undefined_flag_GCJ=' ${wl}-berok'
18240 # Exported symbols can be pulled into shared objects from archives
18241 whole_archive_flag_spec_GCJ='$convenience'
18242 archive_cmds_need_lc_GCJ=yes
18243 # This is similar to how AIX traditionally builds its shared libraries.
18244 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'
18249 amigaos*)
18250 case $host_cpu in
18251 powerpc)
18252 # see comment about AmigaOS4 .so support
18253 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18254 archive_expsym_cmds_GCJ=''
18256 m68k)
18257 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)'
18258 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18259 hardcode_minus_L_GCJ=yes
18261 esac
18264 bsdi[45]*)
18265 export_dynamic_flag_spec_GCJ=-rdynamic
18268 cygwin* | mingw* | pw32* | cegcc*)
18269 # When not using gcc, we currently assume that we are using
18270 # Microsoft Visual C++.
18271 # hardcode_libdir_flag_spec is actually meaningless, as there is
18272 # no search path for DLLs.
18273 hardcode_libdir_flag_spec_GCJ=' '
18274 allow_undefined_flag_GCJ=unsupported
18275 # Tell ltmain to make .lib files, not .a files.
18276 libext=lib
18277 # Tell ltmain to make .dll files, not .so files.
18278 shrext_cmds=".dll"
18279 # FIXME: Setting linknames here is a bad hack.
18280 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18281 # The linker will automatically build a .lib file if we build a DLL.
18282 old_archive_from_new_cmds_GCJ='true'
18283 # FIXME: Should let the user specify the lib program.
18284 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18285 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18286 enable_shared_with_static_runtimes_GCJ=yes
18289 darwin* | rhapsody*)
18292 archive_cmds_need_lc_GCJ=no
18293 hardcode_direct_GCJ=no
18294 hardcode_automatic_GCJ=yes
18295 hardcode_shlibpath_var_GCJ=unsupported
18296 whole_archive_flag_spec_GCJ=''
18297 link_all_deplibs_GCJ=yes
18298 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18299 case $cc_basename in
18300 ifort*) _lt_dar_can_shared=yes ;;
18301 *) _lt_dar_can_shared=$GCC ;;
18302 esac
18303 if test "$_lt_dar_can_shared" = "yes"; then
18304 output_verbose_link_cmd=echo
18305 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}"
18306 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18307 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}"
18308 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}"
18310 else
18311 ld_shlibs_GCJ=no
18316 dgux*)
18317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18319 hardcode_shlibpath_var_GCJ=no
18322 freebsd1*)
18323 ld_shlibs_GCJ=no
18326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18327 # support. Future versions do this automatically, but an explicit c++rt0.o
18328 # does not break anything, and helps significantly (at the cost of a little
18329 # extra space).
18330 freebsd2.2*)
18331 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18332 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18333 hardcode_direct_GCJ=yes
18334 hardcode_shlibpath_var_GCJ=no
18337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18338 freebsd2*)
18339 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18340 hardcode_direct_GCJ=yes
18341 hardcode_minus_L_GCJ=yes
18342 hardcode_shlibpath_var_GCJ=no
18345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18346 freebsd* | dragonfly*)
18347 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18348 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18349 hardcode_direct_GCJ=yes
18350 hardcode_shlibpath_var_GCJ=no
18353 hpux9*)
18354 if test "$GCC" = yes; then
18355 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'
18356 else
18357 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'
18359 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18360 hardcode_libdir_separator_GCJ=:
18361 hardcode_direct_GCJ=yes
18363 # hardcode_minus_L: Not really in the search PATH,
18364 # but as the default location of the library.
18365 hardcode_minus_L_GCJ=yes
18366 export_dynamic_flag_spec_GCJ='${wl}-E'
18369 hpux10*)
18370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18371 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18372 else
18373 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18375 if test "$with_gnu_ld" = no; then
18376 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18377 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18378 hardcode_libdir_separator_GCJ=:
18379 hardcode_direct_GCJ=yes
18380 hardcode_direct_absolute_GCJ=yes
18381 export_dynamic_flag_spec_GCJ='${wl}-E'
18382 # hardcode_minus_L: Not really in the search PATH,
18383 # but as the default location of the library.
18384 hardcode_minus_L_GCJ=yes
18388 hpux11*)
18389 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18390 case $host_cpu in
18391 hppa*64*)
18392 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18394 ia64*)
18395 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18398 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18400 esac
18401 else
18402 case $host_cpu in
18403 hppa*64*)
18404 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406 ia64*)
18407 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18410 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18412 esac
18414 if test "$with_gnu_ld" = no; then
18415 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18416 hardcode_libdir_separator_GCJ=:
18418 case $host_cpu in
18419 hppa*64*|ia64*)
18420 hardcode_direct_GCJ=no
18421 hardcode_shlibpath_var_GCJ=no
18424 hardcode_direct_GCJ=yes
18425 hardcode_direct_absolute_GCJ=yes
18426 export_dynamic_flag_spec_GCJ='${wl}-E'
18428 # hardcode_minus_L: Not really in the search PATH,
18429 # but as the default location of the library.
18430 hardcode_minus_L_GCJ=yes
18432 esac
18436 irix5* | irix6* | nonstopux*)
18437 if test "$GCC" = yes; then
18438 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'
18439 # Try to use the -exported_symbol ld option, if it does not
18440 # work, assume that -exports_file does not work either and
18441 # implicitly export all symbols.
18442 save_LDFLAGS="$LDFLAGS"
18443 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18444 if test x$gcc_no_link = xyes; then
18445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449 int foo(void) {}
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 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'
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 LDFLAGS="$save_LDFLAGS"
18458 else
18459 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'
18460 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'
18462 archive_cmds_need_lc_GCJ='no'
18463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18464 hardcode_libdir_separator_GCJ=:
18465 inherit_rpath_GCJ=yes
18466 link_all_deplibs_GCJ=yes
18469 netbsd*)
18470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18471 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18472 else
18473 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18476 hardcode_direct_GCJ=yes
18477 hardcode_shlibpath_var_GCJ=no
18480 newsos6)
18481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 hardcode_direct_GCJ=yes
18483 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18484 hardcode_libdir_separator_GCJ=:
18485 hardcode_shlibpath_var_GCJ=no
18488 *nto* | *qnx*)
18491 openbsd*)
18492 if test -f /usr/libexec/ld.so; then
18493 hardcode_direct_GCJ=yes
18494 hardcode_shlibpath_var_GCJ=no
18495 hardcode_direct_absolute_GCJ=yes
18496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18497 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18498 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18500 export_dynamic_flag_spec_GCJ='${wl}-E'
18501 else
18502 case $host_os in
18503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18505 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18508 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18511 esac
18513 else
18514 ld_shlibs_GCJ=no
18518 os2*)
18519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18520 hardcode_minus_L_GCJ=yes
18521 allow_undefined_flag_GCJ=unsupported
18522 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'
18523 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18526 osf3*)
18527 if test "$GCC" = yes; then
18528 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18529 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'
18530 else
18531 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18532 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'
18534 archive_cmds_need_lc_GCJ='no'
18535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18536 hardcode_libdir_separator_GCJ=:
18539 osf4* | osf5*) # as osf3* with the addition of -msym flag
18540 if test "$GCC" = yes; then
18541 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18542 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'
18543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18544 else
18545 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18546 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'
18547 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~
18548 $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'
18550 # Both c and cxx compiler support -rpath directly
18551 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18553 archive_cmds_need_lc_GCJ='no'
18554 hardcode_libdir_separator_GCJ=:
18557 solaris*)
18558 no_undefined_flag_GCJ=' -z defs'
18559 if test "$GCC" = yes; then
18560 wlarc='${wl}'
18561 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18562 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18563 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18564 else
18565 case `$CC -V 2>&1` in
18566 *"Compilers 5.0"*)
18567 wlarc=''
18568 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18569 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18573 wlarc='${wl}'
18574 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18575 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18576 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18578 esac
18580 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18581 hardcode_shlibpath_var_GCJ=no
18582 case $host_os in
18583 solaris2.[0-5] | solaris2.[0-5].*) ;;
18585 # The compiler driver will combine and reorder linker options,
18586 # but understands `-z linker_flag'. GCC discards it without `$wl',
18587 # but is careful enough not to reorder.
18588 # Supported since Solaris 2.6 (maybe 2.5.1?)
18589 if test "$GCC" = yes; then
18590 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18591 else
18592 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18595 esac
18596 link_all_deplibs_GCJ=yes
18599 sunos4*)
18600 if test "x$host_vendor" = xsequent; then
18601 # Use $CC to link under sequent, because it throws in some extra .o
18602 # files that make .init and .fini sections work.
18603 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18604 else
18605 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18608 hardcode_direct_GCJ=yes
18609 hardcode_minus_L_GCJ=yes
18610 hardcode_shlibpath_var_GCJ=no
18613 sysv4)
18614 case $host_vendor in
18615 sni)
18616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18617 hardcode_direct_GCJ=yes # is this really true???
18619 siemens)
18620 ## LD is ld it makes a PLAMLIB
18621 ## CC just makes a GrossModule.
18622 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18623 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18624 hardcode_direct_GCJ=no
18626 motorola)
18627 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18628 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18630 esac
18631 runpath_var='LD_RUN_PATH'
18632 hardcode_shlibpath_var_GCJ=no
18635 sysv4.3*)
18636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18637 hardcode_shlibpath_var_GCJ=no
18638 export_dynamic_flag_spec_GCJ='-Bexport'
18641 sysv4*MP*)
18642 if test -d /usr/nec; then
18643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18644 hardcode_shlibpath_var_GCJ=no
18645 runpath_var=LD_RUN_PATH
18646 hardcode_runpath_var=yes
18647 ld_shlibs_GCJ=yes
18651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18652 no_undefined_flag_GCJ='${wl}-z,text'
18653 archive_cmds_need_lc_GCJ=no
18654 hardcode_shlibpath_var_GCJ=no
18655 runpath_var='LD_RUN_PATH'
18657 if test "$GCC" = yes; then
18658 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18659 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18660 else
18661 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18662 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18666 sysv5* | sco3.2v5* | sco5v6*)
18667 # Note: We can NOT use -z defs as we might desire, because we do not
18668 # link with -lc, and that would cause any symbols used from libc to
18669 # always be unresolved, which means just about no library would
18670 # ever link correctly. If we're not using GNU ld we use -z text
18671 # though, which does catch some bad symbols but isn't as heavy-handed
18672 # as -z defs.
18673 no_undefined_flag_GCJ='${wl}-z,text'
18674 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18675 archive_cmds_need_lc_GCJ=no
18676 hardcode_shlibpath_var_GCJ=no
18677 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18678 hardcode_libdir_separator_GCJ=':'
18679 link_all_deplibs_GCJ=yes
18680 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18681 runpath_var='LD_RUN_PATH'
18683 if test "$GCC" = yes; then
18684 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18685 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18686 else
18687 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18688 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18692 uts4*)
18693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18695 hardcode_shlibpath_var_GCJ=no
18699 ld_shlibs_GCJ=no
18701 esac
18703 if test x$host_vendor = xsni; then
18704 case $host in
18705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18706 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18708 esac
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18713 $as_echo "$ld_shlibs_GCJ" >&6; }
18714 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18716 with_gnu_ld_GCJ=$with_gnu_ld
18724 # Do we need to explicitly link libc?
18726 case "x$archive_cmds_need_lc_GCJ" in
18727 x|xyes)
18728 # Assume -lc should be added
18729 archive_cmds_need_lc_GCJ=yes
18731 if test "$enable_shared" = yes && test "$GCC" = yes; then
18732 case $archive_cmds_GCJ in
18733 *'~'*)
18734 # FIXME: we may have to deal with multi-command sequences.
18736 '$CC '*)
18737 # Test whether the compiler implicitly links with -lc since on some
18738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18739 # to ld, don't add -lc before -lgcc.
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18742 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18743 $as_echo_n "(cached) " >&6
18744 else
18745 $RM conftest*
18746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18749 (eval $ac_compile) 2>&5
18750 ac_status=$?
18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18752 test $ac_status = 0; } 2>conftest.err; then
18753 soname=conftest
18754 lib=conftest
18755 libobjs=conftest.$ac_objext
18756 deplibs=
18757 wl=$lt_prog_compiler_wl_GCJ
18758 pic_flag=$lt_prog_compiler_pic_GCJ
18759 compiler_flags=-v
18760 linker_flags=-v
18761 verstring=
18762 output_objdir=.
18763 libname=conftest
18764 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18765 allow_undefined_flag_GCJ=
18766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18767 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18768 ac_status=$?
18769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18770 test $ac_status = 0; }
18771 then
18772 lt_cv_archive_cmds_need_lc_GCJ=no
18773 else
18774 lt_cv_archive_cmds_need_lc_GCJ=yes
18776 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18777 else
18778 cat conftest.err 1>&5
18780 $RM conftest*
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18784 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18785 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18787 esac
18790 esac
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18856 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18857 hardcode_action_GCJ=
18858 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18859 test -n "$runpath_var_GCJ" ||
18860 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18862 # We can hardcode non-existent directories.
18863 if test "$hardcode_direct_GCJ" != no &&
18864 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18865 # have to relink, otherwise we might link with an installed library
18866 # when we should be linking with a yet-to-be-installed one
18867 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18868 test "$hardcode_minus_L_GCJ" != no; then
18869 # Linking always hardcodes the temporary library directory.
18870 hardcode_action_GCJ=relink
18871 else
18872 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18873 hardcode_action_GCJ=immediate
18875 else
18876 # We cannot hardcode anything, or else we can only hardcode existing
18877 # directories.
18878 hardcode_action_GCJ=unsupported
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18881 $as_echo "$hardcode_action_GCJ" >&6; }
18883 if test "$hardcode_action_GCJ" = relink ||
18884 test "$inherit_rpath_GCJ" = yes; then
18885 # Fast installation is not supported
18886 enable_fast_install=no
18887 elif test "$shlibpath_overrides_runpath" = yes ||
18888 test "$enable_shared" = no; then
18889 # Fast installation is not necessary
18890 enable_fast_install=needless
18901 compiler_GCJ=${GCJ-gcj}
18902 ac_ext=c
18903 ac_cpp='$CPP $CPPFLAGS'
18904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18909 if test "x$CC" != xcc; then
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18911 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18912 else
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18914 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18916 set dummy $CC; ac_cc=`$as_echo "$2" |
18917 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18918 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18919 $as_echo_n "(cached) " >&6
18920 else
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18925 main ()
18929 return 0;
18931 _ACEOF
18932 # Make sure it works both with $CC and with simple cc.
18933 # We do the test twice because some compilers refuse to overwrite an
18934 # existing .o file with -o, though they will create one.
18935 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18936 rm -f conftest2.*
18937 if { { case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940 esac
18941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18942 $as_echo "$ac_try_echo"; } >&5
18943 (eval "$ac_try") 2>&5
18944 ac_status=$?
18945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18946 test $ac_status = 0; } &&
18947 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950 esac
18951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18952 $as_echo "$ac_try_echo"; } >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18956 test $ac_status = 0; };
18957 then
18958 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18959 if test "x$CC" != xcc; then
18960 # Test first that cc exists at all.
18961 if { ac_try='cc -c conftest.$ac_ext >&5'
18962 { { case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965 esac
18966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18967 $as_echo "$ac_try_echo"; } >&5
18968 (eval "$ac_try") 2>&5
18969 ac_status=$?
18970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18971 test $ac_status = 0; }; }; then
18972 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18973 rm -f conftest2.*
18974 if { { case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977 esac
18978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18979 $as_echo "$ac_try_echo"; } >&5
18980 (eval "$ac_try") 2>&5
18981 ac_status=$?
18982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18983 test $ac_status = 0; } &&
18984 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18989 $as_echo "$ac_try_echo"; } >&5
18990 (eval "$ac_try") 2>&5
18991 ac_status=$?
18992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18993 test $ac_status = 0; };
18994 then
18995 # cc works too.
18997 else
18998 # cc exists but doesn't like -o.
18999 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19003 else
19004 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19006 rm -f core conftest*
19009 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19011 $as_echo "yes" >&6; }
19012 else
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014 $as_echo "no" >&6; }
19016 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19020 # FIXME: we rely on the cache variable name because
19021 # there is no other way.
19022 set dummy $CC
19023 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19024 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19025 if test "$am_t" != yes; then
19026 # Losing compiler, so override with the script.
19027 # FIXME: It is wrong to rewrite CC.
19028 # But if we don't then we get into trouble of one sort or another.
19029 # A longer-term fix would be to have automake use am__CC in this case,
19030 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19031 CC="$am_aux_dir/compile $CC"
19038 subdirs="$subdirs classpath libltdl"
19041 # The -no-testsuite modules omit the test subdir.
19042 if test -d $srcdir/testsuite; then
19043 TESTSUBDIR_TRUE=
19044 TESTSUBDIR_FALSE='#'
19045 else
19046 TESTSUBDIR_TRUE='#'
19047 TESTSUBDIR_FALSE=
19051 # Should the runtime set system properties by examining the
19052 # environment variable GCJ_PROPERTIES?
19053 # Check whether --enable-getenv-properties was given.
19054 if test "${enable_getenv_properties+set}" = set; then :
19055 enableval=$enable_getenv_properties;
19059 # Whether GCJ_PROPERTIES is used depends on the target.
19060 if test -z "$enable_getenv_properties"; then
19061 enable_getenv_properties=${enable_getenv_properties_default-yes}
19063 if test "$enable_getenv_properties" = no; then
19065 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19069 # Whether we should use arguments to main()
19070 if test -z "$enable_main_args"; then
19071 enable_main_args=${enable_main_args_default-yes}
19073 if test "$enable_main_args" = no; then
19075 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19080 # Should we use hashtable-based synchronization?
19081 # Currently works only for Linux X86/ia64
19082 # Typically faster and more space-efficient
19083 # Check whether --enable-hash-synchronization was given.
19084 if test "${enable_hash_synchronization+set}" = set; then :
19085 enableval=$enable_hash_synchronization;
19089 if test -z "$enable_hash_synchronization"; then
19090 enable_hash_synchronization=$enable_hash_synchronization_default
19094 install_ecj_jar=no
19095 ECJ_BUILD_JAR=
19096 ECJ_JAR=
19098 # Check whether --with-ecj-jar was given.
19099 if test "${with_ecj_jar+set}" = set; then :
19100 withval=$with_ecj_jar; ECJ_JAR=$withval
19101 else
19102 if test -f $multi_basedir/ecj.jar; then
19103 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19104 ECJ_JAR='$(jardir)/ecj.jar'
19105 install_ecj_jar=yes
19111 if test "$ECJ_JAR" != ""; then
19112 BUILD_ECJ1_TRUE=
19113 BUILD_ECJ1_FALSE='#'
19114 else
19115 BUILD_ECJ1_TRUE='#'
19116 BUILD_ECJ1_FALSE=
19119 if test $install_ecj_jar = yes; then
19120 INSTALL_ECJ_JAR_TRUE=
19121 INSTALL_ECJ_JAR_FALSE='#'
19122 else
19123 INSTALL_ECJ_JAR_TRUE='#'
19124 INSTALL_ECJ_JAR_FALSE=
19129 # Check whether --with-java-home was given.
19130 if test "${with_java_home+set}" = set; then :
19131 withval=$with_java_home; JAVA_HOME="${withval}"
19132 else
19133 JAVA_HOME=""
19136 if test ! -z "$JAVA_HOME"; then
19137 JAVA_HOME_SET_TRUE=
19138 JAVA_HOME_SET_FALSE='#'
19139 else
19140 JAVA_HOME_SET_TRUE='#'
19141 JAVA_HOME_SET_FALSE=
19146 suppress_libgcj_bc=no
19147 # Check whether --enable-libgcj-bc was given.
19148 if test "${enable_libgcj_bc+set}" = set; then :
19149 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19150 suppress_libgcj_bc=yes
19154 if test "$suppress_libgcj_bc" = "yes"; then
19155 SUPPRESS_LIBGCJ_BC_TRUE=
19156 SUPPRESS_LIBGCJ_BC_FALSE='#'
19157 else
19158 SUPPRESS_LIBGCJ_BC_TRUE='#'
19159 SUPPRESS_LIBGCJ_BC_FALSE=
19163 build_libgcj_reduced_reflection=no
19164 # Check whether --enable-reduced-reflection was given.
19165 if test "${enable_reduced_reflection+set}" = set; then :
19166 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19167 build_libgcj_reduced_reflection=yes
19171 if test "$build_libgcj_reduced_reflection" = "yes"; then
19172 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19173 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19174 else
19175 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19176 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19180 # What is the native OS API for MinGW?
19182 # Check whether --with-win32-nlsapi was given.
19183 if test "${with_win32_nlsapi+set}" = set; then :
19184 withval=$with_win32_nlsapi; case "${withval}" in
19185 ansi) with_win32_nlsapi=ansi ;;
19186 unicows) with_win32_nlsapi=unicows ;;
19187 unicode) with_win32_nlsapi=unicode ;;
19188 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19189 esac
19190 else
19191 with_win32_nlsapi=ansi
19195 case "${with_win32_nlsapi}" in
19196 unicows | unicode)
19198 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19201 esac
19203 # configure.host sets slow_pthread_self if the synchronization code should
19204 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19205 if test "${slow_pthread_self}" = "yes"; then
19207 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19211 # Check for gc debugging. This option is handled both here and in the GC.
19212 # Check whether --enable-gc-debug was given.
19213 if test "${enable_gc_debug+set}" = set; then :
19214 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19216 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19222 # See if the user has the interpreter included.
19223 # Check whether --enable-interpreter was given.
19224 if test "${enable_interpreter+set}" = set; then :
19225 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19226 # This can also be set in configure.host.
19227 libgcj_interpreter=yes
19228 elif test "$enable_interpreter" = no; then
19229 libgcj_interpreter=no
19234 if test "$libgcj_interpreter" = yes; then
19236 $as_echo "#define INTERPRETER 1" >>confdefs.h
19239 INTERPRETER="$libgcj_interpreter"
19241 if test "$libgcj_interpreter" = yes; then
19242 INTERPRETER_TRUE=
19243 INTERPRETER_FALSE='#'
19244 else
19245 INTERPRETER_TRUE='#'
19246 INTERPRETER_FALSE=
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19251 $as_echo_n "checking for exception model to use... " >&6; }
19252 ac_ext=cpp
19253 ac_cpp='$CXXCPP $CPPFLAGS'
19254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19258 # Check whether --enable-sjlj-exceptions was given.
19259 if test "${enable_sjlj_exceptions+set}" = set; then :
19260 enableval=$enable_sjlj_exceptions; :
19261 else
19262 cat > conftest.$ac_ext << EOF
19263 #line 19263 "configure"
19264 struct S { ~S(); };
19265 void bar();
19266 void foo()
19268 S s;
19269 bar();
19272 old_CXXFLAGS="$CXXFLAGS"
19273 CXXFLAGS=-S
19274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19275 (eval $ac_compile) 2>&5
19276 ac_status=$?
19277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19278 test $ac_status = 0; }; then
19279 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19280 enable_sjlj_exceptions=yes
19281 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19282 enable_sjlj_exceptions=no
19283 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19284 # ARM EH ABI.
19285 enable_sjlj_exceptions=no
19288 CXXFLAGS="$old_CXXFLAGS"
19289 rm -f conftest*
19292 if test x$enable_sjlj_exceptions = xyes; then
19294 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19296 ac_exception_model_name=sjlj
19297 elif test x$enable_sjlj_exceptions = xno; then
19298 ac_exception_model_name="call frame"
19299 else
19300 as_fn_error "unable to detect exception model" "$LINENO" 5
19302 ac_ext=c
19303 ac_cpp='$CPP $CPPFLAGS'
19304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19309 $as_echo "$ac_exception_model_name" >&6; }
19311 # If we are non using SJLJ exceptions, and this host does not have support
19312 # for unwinding from a signal handler, enable checked dereferences and divides.
19313 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19314 CHECKREFSPEC=-fcheck-references
19315 DIVIDESPEC=-fuse-divide-subroutine
19316 EXCEPTIONSPEC=
19319 # See if the user wants to disable java.net. This is the mildly
19320 # ugly way that we admit that target-side configuration sucks.
19321 # Check whether --enable-java-net was given.
19322 if test "${enable_java_net+set}" = set; then :
19323 enableval=$enable_java_net;
19327 # Whether java.net is built by default can depend on the target.
19328 if test -z "$enable_java_net"; then
19329 enable_java_net=${enable_java_net_default-yes}
19331 if test "$enable_java_net" = no; then
19333 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19337 # See if the user wants to configure without libffi. Some
19338 # architectures don't support it, and default values are set in
19339 # configure.host.
19341 # Check whether --with-libffi was given.
19342 if test "${with_libffi+set}" = set; then :
19343 withval=$with_libffi; :
19344 else
19345 with_libffi=${with_libffi_default-yes}
19349 LIBFFI=
19350 LIBFFIINCS=
19351 if test "$with_libffi" != no; then
19353 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19355 LIBFFI=../libffi/libffi_convenience.la
19356 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19361 # See if the user wants to disable JVMPI support.
19362 # Check whether --enable-jvmpi was given.
19363 if test "${enable_jvmpi+set}" = set; then :
19364 enableval=$enable_jvmpi;
19368 if test "$enable_jvmpi" != no; then
19370 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19374 # If the target is an eCos system, use the appropriate eCos
19375 # I/O routines.
19376 # FIXME: this should not be a local option but a global target
19377 # system; at present there is no eCos target.
19378 TARGET_ECOS=${PROCESS-"no"}
19380 # Check whether --with-ecos was given.
19381 if test "${with_ecos+set}" = set; then :
19382 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19387 case "$TARGET_ECOS" in
19388 no) case "$host" in
19389 *mingw*)
19390 PLATFORM=Win32
19391 PLATFORMNET=Win32
19392 PLATFORMH=win32.h
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19395 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19396 LD_PROG=`$CC --print-prog-name=ld`
19397 LD_VERSION=`$LD_PROG --version`
19398 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19399 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19400 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19401 LD_OK="ok"
19402 else
19403 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19404 LD_OK="ok"
19407 if test "x$LD_OK" != x; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19409 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19410 else
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19412 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19414 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19416 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19421 PLATFORM=Posix
19422 PLATFORMNET=Posix
19423 PLATFORMH=posix.h
19425 esac
19428 PLATFORM=Ecos
19429 PLATFORMNET=NoNet
19431 $as_echo "#define ECOS 1" >>confdefs.h
19433 PLATFORMH=posix.h
19435 esac
19437 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442 #include <stdint.h>
19444 _ACEOF
19445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19446 $EGREP "uint32_t" >/dev/null 2>&1; then :
19448 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19451 rm -f conftest*
19453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19454 /* end confdefs.h. */
19455 #include <inttypes.h>
19457 _ACEOF
19458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19459 $EGREP "uint32_t" >/dev/null 2>&1; then :
19461 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19464 rm -f conftest*
19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h. */
19468 #include <sys/types.h>
19470 _ACEOF
19471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19474 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19477 rm -f conftest*
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19481 #include <sys/config.h>
19483 _ACEOF
19484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19485 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19487 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19490 rm -f conftest*
19493 if test "$PLATFORM" = Win32; then
19494 USING_WIN32_PLATFORM_TRUE=
19495 USING_WIN32_PLATFORM_FALSE='#'
19496 else
19497 USING_WIN32_PLATFORM_TRUE='#'
19498 USING_WIN32_PLATFORM_FALSE=
19501 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19502 USING_POSIX_PLATFORM_TRUE=
19503 USING_POSIX_PLATFORM_FALSE='#'
19504 else
19505 USING_POSIX_PLATFORM_TRUE='#'
19506 USING_POSIX_PLATFORM_FALSE=
19510 case "$host" in
19511 *-darwin*) DARWIN_CRT=true ;;
19512 *) DARWIN_CRT=false ;;
19513 esac
19514 if $DARWIN_CRT; then
19515 USING_DARWIN_CRT_TRUE=
19516 USING_DARWIN_CRT_FALSE='#'
19517 else
19518 USING_DARWIN_CRT_TRUE='#'
19519 USING_DARWIN_CRT_FALSE=
19523 # This may not be defined in a non-ANS conformant embedded system.
19524 # FIXME: Should these case a runtime exception in that case?
19525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19527 #include <time.h>
19529 _ACEOF
19530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19531 $EGREP "localtime" >/dev/null 2>&1; then :
19533 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19536 rm -f conftest*
19539 # Create the subdirectory for natFile.cc, or the attempt
19540 # to create the link will fail.
19541 test -d java || mkdir java
19542 test -d java/io || mkdir java/io
19543 test -d gnu || mkdir gnu
19544 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19547 # Likewise for natConcreteProcess.cc.
19548 test -d java/lang || mkdir java/lang
19549 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19552 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19553 test -d java/net || mkdir java/net
19554 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19556 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19559 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19560 test -d gnu/java || mkdir gnu/java
19561 test -d gnu/java/net || mkdir gnu/java/net
19562 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19564 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19567 # Likewise for natVMPipe.cc and natVMSelector.cc.
19568 test -d gnu/java/nio || mkdir gnu/java/nio
19569 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19571 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19574 # Likewise for natFileChannelImpl.cc
19575 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19576 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19579 # Likewise for natVMSecureRandom.cc
19580 test -d gnu/java/security || mkdir gnu/java/security
19581 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19582 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19583 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19586 case "${host}" in
19587 *mingw*)
19588 SYSTEMSPEC="-lgdi32 -lws2_32"
19589 if test "${with_win32_nlsapi}" = "unicows"; then
19590 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19594 SYSTEMSPEC=
19596 esac
19600 # Check whether --with-system-zlib was given.
19601 if test "${with_system_zlib+set}" = set; then :
19602 withval=$with_system_zlib;
19605 ZLIBSPEC=
19607 ZLIBTESTSPEC=
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19611 $as_echo_n "checking for X... " >&6; }
19614 # Check whether --with-x was given.
19615 if test "${with_x+set}" = set; then :
19616 withval=$with_x;
19619 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19620 if test "x$with_x" = xno; then
19621 # The user explicitly disabled X.
19622 have_x=disabled
19623 else
19624 case $x_includes,$x_libraries in #(
19625 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19626 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19627 $as_echo_n "(cached) " >&6
19628 else
19629 # One or both of the vars are not set, and there is no cached value.
19630 ac_x_includes=no ac_x_libraries=no
19631 rm -f -r conftest.dir
19632 if mkdir conftest.dir; then
19633 cd conftest.dir
19634 cat >Imakefile <<'_ACEOF'
19635 incroot:
19636 @echo incroot='${INCROOT}'
19637 usrlibdir:
19638 @echo usrlibdir='${USRLIBDIR}'
19639 libdir:
19640 @echo libdir='${LIBDIR}'
19641 _ACEOF
19642 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19644 for ac_var in incroot usrlibdir libdir; do
19645 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19646 done
19647 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19648 for ac_extension in a so sl dylib la dll; do
19649 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19650 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19651 ac_im_usrlibdir=$ac_im_libdir; break
19653 done
19654 # Screen out bogus values from the imake configuration. They are
19655 # bogus both because they are the default anyway, and because
19656 # using them would break gcc on systems where it needs fixed includes.
19657 case $ac_im_incroot in
19658 /usr/include) ac_x_includes= ;;
19659 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19660 esac
19661 case $ac_im_usrlibdir in
19662 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19663 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19664 esac
19666 cd ..
19667 rm -f -r conftest.dir
19670 # Standard set of common directories for X headers.
19671 # Check X11 before X11Rn because it is often a symlink to the current release.
19672 ac_x_header_dirs='
19673 /usr/X11/include
19674 /usr/X11R7/include
19675 /usr/X11R6/include
19676 /usr/X11R5/include
19677 /usr/X11R4/include
19679 /usr/include/X11
19680 /usr/include/X11R7
19681 /usr/include/X11R6
19682 /usr/include/X11R5
19683 /usr/include/X11R4
19685 /usr/local/X11/include
19686 /usr/local/X11R7/include
19687 /usr/local/X11R6/include
19688 /usr/local/X11R5/include
19689 /usr/local/X11R4/include
19691 /usr/local/include/X11
19692 /usr/local/include/X11R7
19693 /usr/local/include/X11R6
19694 /usr/local/include/X11R5
19695 /usr/local/include/X11R4
19697 /usr/X386/include
19698 /usr/x386/include
19699 /usr/XFree86/include/X11
19701 /usr/include
19702 /usr/local/include
19703 /usr/unsupported/include
19704 /usr/athena/include
19705 /usr/local/x11r5/include
19706 /usr/lpp/Xamples/include
19708 /usr/openwin/include
19709 /usr/openwin/share/include'
19711 if test "$ac_x_includes" = no; then
19712 # Guess where to find include files, by looking for Xlib.h.
19713 # First, try using that file with no special directory specified.
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <X11/Xlib.h>
19717 _ACEOF
19718 if ac_fn_c_try_cpp "$LINENO"; then :
19719 # We can compile using X headers with no special include directory.
19720 ac_x_includes=
19721 else
19722 for ac_dir in $ac_x_header_dirs; do
19723 if test -r "$ac_dir/X11/Xlib.h"; then
19724 ac_x_includes=$ac_dir
19725 break
19727 done
19729 rm -f conftest.err conftest.$ac_ext
19730 fi # $ac_x_includes = no
19732 if test "$ac_x_libraries" = no; then
19733 # Check for the libraries.
19734 # See if we find them without any special options.
19735 # Don't add to $LIBS permanently.
19736 ac_save_LIBS=$LIBS
19737 LIBS="-lX11 $LIBS"
19738 if test x$gcc_no_link = xyes; then
19739 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742 /* end confdefs.h. */
19743 #include <X11/Xlib.h>
19745 main ()
19747 XrmInitialize ()
19749 return 0;
19751 _ACEOF
19752 if ac_fn_c_try_link "$LINENO"; then :
19753 LIBS=$ac_save_LIBS
19754 # We can link X programs with no special library path.
19755 ac_x_libraries=
19756 else
19757 LIBS=$ac_save_LIBS
19758 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19760 # Don't even attempt the hair of trying to link an X program!
19761 for ac_extension in a so sl dylib la dll; do
19762 if test -r "$ac_dir/libX11.$ac_extension"; then
19763 ac_x_libraries=$ac_dir
19764 break 2
19766 done
19767 done
19769 rm -f core conftest.err conftest.$ac_objext \
19770 conftest$ac_exeext conftest.$ac_ext
19771 fi # $ac_x_libraries = no
19773 case $ac_x_includes,$ac_x_libraries in #(
19774 no,* | *,no | *\'*)
19775 # Didn't find X, or a directory has "'" in its name.
19776 ac_cv_have_x="have_x=no";; #(
19778 # Record where we found X for the cache.
19779 ac_cv_have_x="have_x=yes\
19780 ac_x_includes='$ac_x_includes'\
19781 ac_x_libraries='$ac_x_libraries'"
19782 esac
19784 ;; #(
19785 *) have_x=yes;;
19786 esac
19787 eval "$ac_cv_have_x"
19788 fi # $with_x != no
19790 if test "$have_x" != yes; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19792 $as_echo "$have_x" >&6; }
19793 no_x=yes
19794 else
19795 # If each of the values was on the command line, it overrides each guess.
19796 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19797 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19798 # Update the cache value to reflect the command line values.
19799 ac_cv_have_x="have_x=yes\
19800 ac_x_includes='$x_includes'\
19801 ac_x_libraries='$x_libraries'"
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19803 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19806 if test "$no_x" = yes; then
19807 # Not all programs may use this symbol, but it does not hurt to define it.
19809 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19811 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19812 else
19813 if test -n "$x_includes"; then
19814 X_CFLAGS="$X_CFLAGS -I$x_includes"
19817 # It would also be nice to do this for all -L options, not just this one.
19818 if test -n "$x_libraries"; then
19819 X_LIBS="$X_LIBS -L$x_libraries"
19820 # For Solaris; some versions of Sun CC require a space after -R and
19821 # others require no space. Words are not sufficient . . . .
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19823 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19824 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19825 ac_xsave_c_werror_flag=$ac_c_werror_flag
19826 ac_c_werror_flag=yes
19827 if test x$gcc_no_link = xyes; then
19828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19831 /* end confdefs.h. */
19834 main ()
19838 return 0;
19840 _ACEOF
19841 if ac_fn_c_try_link "$LINENO"; then :
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843 $as_echo "no" >&6; }
19844 X_LIBS="$X_LIBS -R$x_libraries"
19845 else
19846 LIBS="$ac_xsave_LIBS -R $x_libraries"
19847 if test x$gcc_no_link = xyes; then
19848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19854 main ()
19858 return 0;
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 $as_echo "yes" >&6; }
19864 X_LIBS="$X_LIBS -R $x_libraries"
19865 else
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19867 $as_echo "neither works" >&6; }
19869 rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19872 rm -f core conftest.err conftest.$ac_objext \
19873 conftest$ac_exeext conftest.$ac_ext
19874 ac_c_werror_flag=$ac_xsave_c_werror_flag
19875 LIBS=$ac_xsave_LIBS
19878 # Check for system-dependent libraries X programs must link with.
19879 # Do this before checking for the system-independent R6 libraries
19880 # (-lICE), since we may need -lsocket or whatever for X linking.
19882 if test "$ISC" = yes; then
19883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19884 else
19885 # Martyn Johnson says this is needed for Ultrix, if the X
19886 # libraries were built with DECnet support. And Karl Berry says
19887 # the Alpha needs dnet_stub (dnet does not exist).
19888 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19889 if test x$gcc_no_link = xyes; then
19890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19895 /* Override any GCC internal prototype to avoid an error.
19896 Use char because int might match the return type of a GCC
19897 builtin and then its argument prototype would still apply. */
19898 #ifdef __cplusplus
19899 extern "C"
19900 #endif
19901 char XOpenDisplay ();
19903 main ()
19905 return XOpenDisplay ();
19907 return 0;
19909 _ACEOF
19910 if ac_fn_c_try_link "$LINENO"; then :
19912 else
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19914 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19915 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19916 $as_echo_n "(cached) " >&6
19917 else
19918 ac_check_lib_save_LIBS=$LIBS
19919 LIBS="-ldnet $LIBS"
19920 if test x$gcc_no_link = xyes; then
19921 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19926 /* Override any GCC internal prototype to avoid an error.
19927 Use char because int might match the return type of a GCC
19928 builtin and then its argument prototype would still apply. */
19929 #ifdef __cplusplus
19930 extern "C"
19931 #endif
19932 char dnet_ntoa ();
19934 main ()
19936 return dnet_ntoa ();
19938 return 0;
19940 _ACEOF
19941 if ac_fn_c_try_link "$LINENO"; then :
19942 ac_cv_lib_dnet_dnet_ntoa=yes
19943 else
19944 ac_cv_lib_dnet_dnet_ntoa=no
19946 rm -f core conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
19948 LIBS=$ac_check_lib_save_LIBS
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19951 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19952 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19956 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19958 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19959 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19960 $as_echo_n "(cached) " >&6
19961 else
19962 ac_check_lib_save_LIBS=$LIBS
19963 LIBS="-ldnet_stub $LIBS"
19964 if test x$gcc_no_link = xyes; then
19965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 char dnet_ntoa ();
19978 main ()
19980 return dnet_ntoa ();
19982 return 0;
19984 _ACEOF
19985 if ac_fn_c_try_link "$LINENO"; then :
19986 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19987 else
19988 ac_cv_lib_dnet_stub_dnet_ntoa=no
19990 rm -f core conftest.err conftest.$ac_objext \
19991 conftest$ac_exeext conftest.$ac_ext
19992 LIBS=$ac_check_lib_save_LIBS
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19995 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19996 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19997 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20002 rm -f core conftest.err conftest.$ac_objext \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS="$ac_xsave_LIBS"
20006 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20007 # to get the SysV transport functions.
20008 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20009 # needs -lnsl.
20010 # The nsl library prevents programs from opening the X display
20011 # on Irix 5.2, according to T.E. Dickey.
20012 # The functions gethostbyname, getservbyname, and inet_addr are
20013 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20014 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20015 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20019 if test $ac_cv_func_gethostbyname = no; then
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20021 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20022 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20023 $as_echo_n "(cached) " >&6
20024 else
20025 ac_check_lib_save_LIBS=$LIBS
20026 LIBS="-lnsl $LIBS"
20027 if test x$gcc_no_link = xyes; then
20028 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char gethostbyname ();
20041 main ()
20043 return gethostbyname ();
20045 return 0;
20047 _ACEOF
20048 if ac_fn_c_try_link "$LINENO"; then :
20049 ac_cv_lib_nsl_gethostbyname=yes
20050 else
20051 ac_cv_lib_nsl_gethostbyname=no
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20058 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20059 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20063 if test $ac_cv_lib_nsl_gethostbyname = no; then
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20065 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20066 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20067 $as_echo_n "(cached) " >&6
20068 else
20069 ac_check_lib_save_LIBS=$LIBS
20070 LIBS="-lbsd $LIBS"
20071 if test x$gcc_no_link = xyes; then
20072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char gethostbyname ();
20085 main ()
20087 return gethostbyname ();
20089 return 0;
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_lib_bsd_gethostbyname=yes
20094 else
20095 ac_cv_lib_bsd_gethostbyname=no
20097 rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20102 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20103 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20111 # socket/setsockopt and other routines are undefined under SCO ODT
20112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20113 # on later versions), says Simon Leinen: it contains gethostby*
20114 # variants that don't use the name server (or something). -lsocket
20115 # must be given before -lnsl if both are needed. We assume that
20116 # if connect needs -lnsl, so does gethostbyname.
20117 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20118 if test "x$ac_cv_func_connect" = x""yes; then :
20122 if test $ac_cv_func_connect = no; then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20124 $as_echo_n "checking for connect in -lsocket... " >&6; }
20125 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20127 else
20128 ac_check_lib_save_LIBS=$LIBS
20129 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20130 if test x$gcc_no_link = xyes; then
20131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char connect ();
20144 main ()
20146 return connect ();
20148 return 0;
20150 _ACEOF
20151 if ac_fn_c_try_link "$LINENO"; then :
20152 ac_cv_lib_socket_connect=yes
20153 else
20154 ac_cv_lib_socket_connect=no
20156 rm -f core conftest.err conftest.$ac_objext \
20157 conftest$ac_exeext conftest.$ac_ext
20158 LIBS=$ac_check_lib_save_LIBS
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20161 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20162 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20163 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20168 # Guillermo Gomez says -lposix is necessary on A/UX.
20169 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20170 if test "x$ac_cv_func_remove" = x""yes; then :
20174 if test $ac_cv_func_remove = no; then
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20176 $as_echo_n "checking for remove in -lposix... " >&6; }
20177 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20178 $as_echo_n "(cached) " >&6
20179 else
20180 ac_check_lib_save_LIBS=$LIBS
20181 LIBS="-lposix $LIBS"
20182 if test x$gcc_no_link = xyes; then
20183 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h. */
20188 /* Override any GCC internal prototype to avoid an error.
20189 Use char because int might match the return type of a GCC
20190 builtin and then its argument prototype would still apply. */
20191 #ifdef __cplusplus
20192 extern "C"
20193 #endif
20194 char remove ();
20196 main ()
20198 return remove ();
20200 return 0;
20202 _ACEOF
20203 if ac_fn_c_try_link "$LINENO"; then :
20204 ac_cv_lib_posix_remove=yes
20205 else
20206 ac_cv_lib_posix_remove=no
20208 rm -f core conftest.err conftest.$ac_objext \
20209 conftest$ac_exeext conftest.$ac_ext
20210 LIBS=$ac_check_lib_save_LIBS
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20213 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20214 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20220 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20221 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20222 if test "x$ac_cv_func_shmat" = x""yes; then :
20226 if test $ac_cv_func_shmat = no; then
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20228 $as_echo_n "checking for shmat in -lipc... " >&6; }
20229 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20230 $as_echo_n "(cached) " >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lipc $LIBS"
20234 if test x$gcc_no_link = xyes; then
20235 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h. */
20240 /* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
20243 #ifdef __cplusplus
20244 extern "C"
20245 #endif
20246 char shmat ();
20248 main ()
20250 return shmat ();
20252 return 0;
20254 _ACEOF
20255 if ac_fn_c_try_link "$LINENO"; then :
20256 ac_cv_lib_ipc_shmat=yes
20257 else
20258 ac_cv_lib_ipc_shmat=no
20260 rm -f core conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20262 LIBS=$ac_check_lib_save_LIBS
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20265 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20266 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20267 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20273 # Check for libraries that X11R6 Xt/Xaw programs need.
20274 ac_save_LDFLAGS=$LDFLAGS
20275 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20276 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20277 # check for ICE first), but we must link in the order -lSM -lICE or
20278 # we get undefined symbols. So assume we have SM if we have ICE.
20279 # These have to be linked with before -lX11, unlike the other
20280 # libraries we check for below, so use a different variable.
20281 # John Interrante, Karl Berry
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20283 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20284 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20285 $as_echo_n "(cached) " >&6
20286 else
20287 ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20289 if test x$gcc_no_link = xyes; then
20290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20295 /* Override any GCC internal prototype to avoid an error.
20296 Use char because int might match the return type of a GCC
20297 builtin and then its argument prototype would still apply. */
20298 #ifdef __cplusplus
20299 extern "C"
20300 #endif
20301 char IceConnectionNumber ();
20303 main ()
20305 return IceConnectionNumber ();
20307 return 0;
20309 _ACEOF
20310 if ac_fn_c_try_link "$LINENO"; then :
20311 ac_cv_lib_ICE_IceConnectionNumber=yes
20312 else
20313 ac_cv_lib_ICE_IceConnectionNumber=no
20315 rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20317 LIBS=$ac_check_lib_save_LIBS
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20320 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20321 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20322 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20325 LDFLAGS=$ac_save_LDFLAGS
20330 # FIXME: this should be _libs on some hosts.
20331 libsubdir=.libs
20333 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20335 LIBSTDCXXSPEC=
20336 # extra LD Flags which are required for targets
20337 case "${host}" in
20338 *-*-darwin[0-7].*)
20339 # For now we have to disable it on darwin[8-9] because it slows down
20340 # the linking phase. A possible bug in ld?
20341 # on Darwin -single_module speeds up loading of the dynamic libraries.
20342 extra_ldflags_libjava=-Wl,-single_module
20344 *-*-darwin[912]*)
20345 extra_gij_ldflags=-Wl,-allow_stack_execute
20347 arm*linux*eabi)
20348 # Some of the ARM unwinder code is actually in libstdc++. We
20349 # could in principle replicate it in libgcj, but it's better to
20350 # have a dependency on libstdc++.
20351 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20352 LIBSTDCXXSPEC=-lstdc++
20353 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20355 *-*-cygwin)
20356 extra_ldflags_libjava=-liconv
20358 esac
20366 # Allow the GC to be disabled. Can be useful when debugging.
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20368 $as_echo_n "checking for garbage collector to use... " >&6; }
20369 # Check whether --enable-java-gc was given.
20370 if test "${enable_java_gc+set}" = set; then :
20371 enableval=$enable_java_gc; GC=$enableval
20372 else
20373 GC=boehm
20376 GCLIBS=
20377 GCINCS=
20378 GCDEPS=
20379 GCSPEC=
20380 JC1GCSPEC=
20381 GCTESTSPEC=
20382 case "$GC" in
20383 boehm)
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20385 $as_echo "boehm" >&6; }
20386 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20387 JC1GCSPEC='-fuse-boehm-gc'
20388 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20389 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20390 GCOBJS=boehm.lo
20391 GCHDR=boehm-gc.h
20392 # The POSIX thread support needs to know this.
20394 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20399 $as_echo "none" >&6; }
20400 GCHDR=no-gc.h
20403 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20405 esac
20412 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20414 if test "$GC" = boehm; then
20415 USING_BOEHMGC_TRUE=
20416 USING_BOEHMGC_FALSE='#'
20417 else
20418 USING_BOEHMGC_TRUE='#'
20419 USING_BOEHMGC_FALSE=
20422 if test "$GC" = no; then
20423 USING_NOGC_TRUE=
20424 USING_NOGC_FALSE='#'
20425 else
20426 USING_NOGC_TRUE='#'
20427 USING_NOGC_FALSE=
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20433 $as_echo_n "checking for thread model used by GCC... " >&6; }
20434 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20436 $as_echo "$THREADS" >&6; }
20438 case "$THREADS" in
20439 no | none | single)
20440 THREADS=none
20442 aix | posix | posix95 | pthreads)
20443 THREADS=posix
20444 case "$host" in
20445 *-*-linux*)
20447 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20450 esac
20452 win32)
20454 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20455 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20458 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20460 esac
20462 THREADCXXFLAGS=
20463 THREADLDFLAGS=
20464 THREADLIBS=
20465 THREADINCS=
20466 THREADDEPS=
20467 THREADH=
20468 THREADSPEC=
20469 THREADSTARTFILESPEC=
20470 case "$THREADS" in
20471 posix)
20472 case "$host" in
20473 *-*-cygwin*)
20474 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20476 *-*-freebsd[1234]*)
20477 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20478 # merely adds pthread_* functions) but it does have a -pthread switch
20479 # which is required at link-time to select -lc_r *instead* of -lc.
20480 THREADLDFLAGS=-pthread
20481 # Don't set THREADSPEC here as might be expected since -pthread is
20482 # not processed when found within a spec file, it must come from
20483 # the command line. For now, the user must provide the -pthread
20484 # switch to link code compiled with gcj. In future, consider adding
20485 # support for weak references to pthread_* functions ala gthr.h API.
20486 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20488 *-*-freebsd*)
20489 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20490 # systems which support threads and -lpthread.
20491 THREADLDFLAGS=-pthread
20492 THREADSPEC=-lpthread
20494 alpha*-dec-osf* | hppa*-hp-hpux*)
20495 THREADCXXFLAGS=-pthread
20496 # boehm-gc needs some functions from librt, so link that too.
20497 THREADLIBS='-lpthread -lrt'
20498 THREADSPEC='-lpthread -lrt'
20501 THREADLIBS=-lpthread
20502 THREADSPEC=-lpthread
20504 esac
20505 THREADH=posix-threads.h
20506 # MIT pthreads doesn't seem to have the mutexattr functions.
20507 # But for now we don't check for it. We just assume you aren't
20508 # using MIT pthreads.
20510 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20513 # If we're using the Boehm GC, then we happen to know that it
20514 # defines _REENTRANT, so we don't bother. Eww.
20515 if test "$GC" != boehm; then
20517 $as_echo "#define _REENTRANT 1" >>confdefs.h
20521 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20525 win32)
20526 THREADH=win32-threads.h
20527 THREADCXXFLAGS=-mthreads
20528 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20529 # But we do not want the executables created to be dependent on
20530 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20531 # exception handling contexts. The following kludge achieves this effect
20532 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20533 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20534 # A workaround is to explicitly use -mthreads while linking Java programs.
20535 # See PR libgcj/28263.
20537 # FIXME: In Java we are able to detect thread death at the end of
20538 # Thread.run() so we should be able to clean up the exception handling
20539 # contexts ourselves.
20540 THREADSTARTFILESPEC='crtmt%O%s'
20543 none)
20544 THREADH=no-threads.h
20546 esac
20547 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20556 if test "$THREADS" = posix; then
20557 USING_POSIX_THREADS_TRUE=
20558 USING_POSIX_THREADS_FALSE='#'
20559 else
20560 USING_POSIX_THREADS_TRUE='#'
20561 USING_POSIX_THREADS_FALSE=
20564 if test "$THREADS" = win32; then
20565 USING_WIN32_THREADS_TRUE=
20566 USING_WIN32_THREADS_FALSE='#'
20567 else
20568 USING_WIN32_THREADS_TRUE='#'
20569 USING_WIN32_THREADS_FALSE=
20572 if test "$THREADS" = none; then
20573 USING_NO_THREADS_TRUE=
20574 USING_NO_THREADS_FALSE='#'
20575 else
20576 USING_NO_THREADS_TRUE='#'
20577 USING_NO_THREADS_FALSE=
20580 if test "$enable_shared" != yes; then
20581 use_libgcj_bc=no
20583 if test "$use_libgcj_bc" = yes; then
20584 USE_LIBGCJ_BC_TRUE=
20585 USE_LIBGCJ_BC_FALSE='#'
20586 else
20587 USE_LIBGCJ_BC_TRUE='#'
20588 USE_LIBGCJ_BC_FALSE=
20592 if test -d sysdep; then true; else mkdir sysdep; fi
20593 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20595 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20597 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20600 LIBGCJ_SPEC_LGCJ=-lgcj
20601 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20602 if test x"$libgcj_spec_lgcj_override" != x ; then
20603 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20605 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20606 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20608 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20609 if test "$use_libgcj_bc" = yes; then
20610 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20611 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20616 HASH_SYNC_SPEC=
20617 # Hash synchronization is only useful with posix threads right now.
20618 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20619 HASH_SYNC_SPEC=-fhash-synchronization
20621 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20626 if test "$GCC" = yes; then
20627 USING_GCC_TRUE=
20628 USING_GCC_FALSE='#'
20629 else
20630 USING_GCC_TRUE='#'
20631 USING_GCC_FALSE=
20635 # We're in the tree with gcc, and need to include some of its headers.
20636 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20638 if test "x${with_newlib}" = "xyes"; then
20639 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20640 # may not work correctly, because the compiler may not be able to
20641 # link executables.
20643 # We assume newlib. This lets us hard-code the functions we know
20644 # we'll have.
20646 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20649 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20652 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20655 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20658 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20661 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20663 # This is only for POSIX threads.
20665 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20668 # Assume we do not have getuid and friends.
20670 $as_echo "#define NO_GETUID 1" >>confdefs.h
20672 PLATFORMNET=NoNet
20673 else
20674 for ac_func in strerror_r select fstat open fsync sleep opendir \
20675 localtime_r getpwuid_r getcwd \
20676 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20677 nl_langinfo setlocale \
20678 inet_pton uname inet_ntoa \
20679 getrlimit sigaction ftruncate mmap \
20680 getifaddrs
20681 do :
20682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20684 eval as_val=\$$as_ac_var
20685 if test "x$as_val" = x""yes; then :
20686 cat >>confdefs.h <<_ACEOF
20687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20688 _ACEOF
20691 done
20693 for ac_func in inet_aton inet_addr
20694 do :
20695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20697 eval as_val=\$$as_ac_var
20698 if test "x$as_val" = x""yes; then :
20699 cat >>confdefs.h <<_ACEOF
20700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20701 _ACEOF
20702 break
20704 done
20706 for ac_header in unistd.h dlfcn.h sys/resource.h
20707 do :
20708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20709 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20710 eval as_val=\$$as_ac_Header
20711 if test "x$as_val" = x""yes; then :
20712 cat >>confdefs.h <<_ACEOF
20713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20714 _ACEOF
20718 done
20720 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20722 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20723 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20724 $as_echo_n "(cached) " >&6
20725 else
20726 ac_check_lib_save_LIBS=$LIBS
20727 LIBS="-ldl $LIBS"
20728 if test x$gcc_no_link = xyes; then
20729 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20732 /* end confdefs.h. */
20734 /* Override any GCC internal prototype to avoid an error.
20735 Use char because int might match the return type of a GCC
20736 builtin and then its argument prototype would still apply. */
20737 #ifdef __cplusplus
20738 extern "C"
20739 #endif
20740 char dladdr ();
20742 main ()
20744 return dladdr ();
20746 return 0;
20748 _ACEOF
20749 if ac_fn_c_try_link "$LINENO"; then :
20750 ac_cv_lib_dl_dladdr=yes
20751 else
20752 ac_cv_lib_dl_dladdr=no
20754 rm -f core conftest.err conftest.$ac_objext \
20755 conftest$ac_exeext conftest.$ac_ext
20756 LIBS=$ac_check_lib_save_LIBS
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20759 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20760 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20763 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20765 else
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20768 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20769 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20770 $as_echo_n "(cached) " >&6
20771 else
20772 ac_check_lib_save_LIBS=$LIBS
20773 LIBS="-ldld $LIBS"
20774 if test x$gcc_no_link = xyes; then
20775 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20780 /* Override any GCC internal prototype to avoid an error.
20781 Use char because int might match the return type of a GCC
20782 builtin and then its argument prototype would still apply. */
20783 #ifdef __cplusplus
20784 extern "C"
20785 #endif
20786 char dladdr ();
20788 main ()
20790 return dladdr ();
20792 return 0;
20794 _ACEOF
20795 if ac_fn_c_try_link "$LINENO"; then :
20796 ac_cv_lib_dld_dladdr=yes
20797 else
20798 ac_cv_lib_dld_dladdr=no
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20805 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20806 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20809 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20816 if test x"$cross_compiling" = x"no"; then
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20818 $as_echo_n "checking for /proc/self/exe... " >&6; }
20819 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20821 else
20822 test "$cross_compiling" = yes &&
20823 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20824 if test -r "/proc/self/exe"; then
20825 ac_cv_file__proc_self_exe=yes
20826 else
20827 ac_cv_file__proc_self_exe=no
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20831 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20832 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20834 cat >>confdefs.h <<_ACEOF
20835 #define HAVE__PROC_SELF_EXE 1
20836 _ACEOF
20839 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20844 $as_echo_n "checking for /proc/self/maps... " >&6; }
20845 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20846 $as_echo_n "(cached) " >&6
20847 else
20848 test "$cross_compiling" = yes &&
20849 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20850 if test -r "/proc/self/maps"; then
20851 ac_cv_file__proc_self_maps=yes
20852 else
20853 ac_cv_file__proc_self_maps=no
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20857 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20858 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20860 cat >>confdefs.h <<_ACEOF
20861 #define HAVE__PROC_SELF_MAPS 1
20862 _ACEOF
20865 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20869 else
20870 case $host in
20871 *-linux*)
20873 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20876 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20879 esac
20883 if test "X$prefix" = "XNONE"; then
20884 acl_final_prefix="$ac_default_prefix"
20885 else
20886 acl_final_prefix="$prefix"
20888 if test "X$exec_prefix" = "XNONE"; then
20889 acl_final_exec_prefix='${prefix}'
20890 else
20891 acl_final_exec_prefix="$exec_prefix"
20893 acl_save_prefix="$prefix"
20894 prefix="$acl_final_prefix"
20895 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20896 prefix="$acl_save_prefix"
20899 # Check whether --with-gnu-ld was given.
20900 if test "${with_gnu_ld+set}" = set; then :
20901 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20902 else
20903 with_gnu_ld=no
20906 # Prepare PATH_SEPARATOR.
20907 # The user is always right.
20908 if test "${PATH_SEPARATOR+set}" != set; then
20909 echo "#! /bin/sh" >conf$$.sh
20910 echo "exit 0" >>conf$$.sh
20911 chmod +x conf$$.sh
20912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20913 PATH_SEPARATOR=';'
20914 else
20915 PATH_SEPARATOR=:
20917 rm -f conf$$.sh
20919 ac_prog=ld
20920 if test "$GCC" = yes; then
20921 # Check if gcc -print-prog-name=ld gives a path.
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20923 $as_echo_n "checking for ld used by GCC... " >&6; }
20924 case $host in
20925 *-*-mingw*)
20926 # gcc leaves a trailing carriage return which upsets mingw
20927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20930 esac
20931 case $ac_prog in
20932 # Accept absolute paths.
20933 [\\/]* | [A-Za-z]:[\\/]*)
20934 re_direlt='/[^/][^/]*/\.\./'
20935 # Canonicalize the path of ld
20936 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20938 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20939 done
20940 test -z "$LD" && LD="$ac_prog"
20943 # If it fails, then pretend we aren't using GCC.
20944 ac_prog=ld
20947 # If it is relative, then search for the first ld in PATH.
20948 with_gnu_ld=unknown
20950 esac
20951 elif test "$with_gnu_ld" = yes; then
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20953 $as_echo_n "checking for GNU ld... " >&6; }
20954 else
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20956 $as_echo_n "checking for non-GNU ld... " >&6; }
20958 if test "${acl_cv_path_LD+set}" = set; then :
20959 $as_echo_n "(cached) " >&6
20960 else
20961 if test -z "$LD"; then
20962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20963 for ac_dir in $PATH; do
20964 test -z "$ac_dir" && ac_dir=.
20965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20966 acl_cv_path_LD="$ac_dir/$ac_prog"
20967 # Check to see if the program is GNU ld. I'd rather use --version,
20968 # but apparently some GNU ld's only accept -v.
20969 # Break only if it was the GNU/non-GNU ld that we prefer.
20970 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20971 test "$with_gnu_ld" != no && break
20972 else
20973 test "$with_gnu_ld" != yes && break
20976 done
20977 IFS="$ac_save_ifs"
20978 else
20979 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20983 LD="$acl_cv_path_LD"
20984 if test -n "$LD"; then
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20986 $as_echo "$LD" >&6; }
20987 else
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20989 $as_echo "no" >&6; }
20991 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20994 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20995 $as_echo_n "(cached) " >&6
20996 else
20997 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20998 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20999 acl_cv_prog_gnu_ld=yes
21000 else
21001 acl_cv_prog_gnu_ld=no
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21005 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21006 with_gnu_ld=$acl_cv_prog_gnu_ld
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21011 $as_echo_n "checking for shared library run path origin... " >&6; }
21012 if test "${acl_cv_rpath+set}" = set; then :
21013 $as_echo_n "(cached) " >&6
21014 else
21016 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21017 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21018 . ./conftest.sh
21019 rm -f ./conftest.sh
21020 acl_cv_rpath=done
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21024 $as_echo "$acl_cv_rpath" >&6; }
21025 wl="$acl_cv_wl"
21026 libext="$acl_cv_libext"
21027 shlibext="$acl_cv_shlibext"
21028 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21029 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21030 hardcode_direct="$acl_cv_hardcode_direct"
21031 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21032 # Check whether --enable-rpath was given.
21033 if test "${enable_rpath+set}" = set; then :
21034 enableval=$enable_rpath; :
21035 else
21036 enable_rpath=yes
21046 use_additional=yes
21048 acl_save_prefix="$prefix"
21049 prefix="$acl_final_prefix"
21050 acl_save_exec_prefix="$exec_prefix"
21051 exec_prefix="$acl_final_exec_prefix"
21053 eval additional_includedir=\"$includedir\"
21054 eval additional_libdir=\"$libdir\"
21056 exec_prefix="$acl_save_exec_prefix"
21057 prefix="$acl_save_prefix"
21060 # Check whether --with-libiconv-prefix was given.
21061 if test "${with_libiconv_prefix+set}" = set; then :
21062 withval=$with_libiconv_prefix;
21063 if test "X$withval" = "Xno"; then
21064 use_additional=no
21065 else
21066 if test "X$withval" = "X"; then
21068 acl_save_prefix="$prefix"
21069 prefix="$acl_final_prefix"
21070 acl_save_exec_prefix="$exec_prefix"
21071 exec_prefix="$acl_final_exec_prefix"
21073 eval additional_includedir=\"$includedir\"
21074 eval additional_libdir=\"$libdir\"
21076 exec_prefix="$acl_save_exec_prefix"
21077 prefix="$acl_save_prefix"
21079 else
21080 additional_includedir="$withval/include"
21081 additional_libdir="$withval/lib"
21087 LIBICONV=
21088 LTLIBICONV=
21089 INCICONV=
21090 rpathdirs=
21091 ltrpathdirs=
21092 names_already_handled=
21093 names_next_round='iconv '
21094 while test -n "$names_next_round"; do
21095 names_this_round="$names_next_round"
21096 names_next_round=
21097 for name in $names_this_round; do
21098 already_handled=
21099 for n in $names_already_handled; do
21100 if test "$n" = "$name"; then
21101 already_handled=yes
21102 break
21104 done
21105 if test -z "$already_handled"; then
21106 names_already_handled="$names_already_handled $name"
21107 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21108 eval value=\"\$HAVE_LIB$uppername\"
21109 if test -n "$value"; then
21110 if test "$value" = yes; then
21111 eval value=\"\$LIB$uppername\"
21112 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21113 eval value=\"\$LTLIB$uppername\"
21114 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21115 else
21118 else
21119 found_dir=
21120 found_la=
21121 found_so=
21122 found_a=
21123 if test $use_additional = yes; then
21124 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21125 found_dir="$additional_libdir"
21126 found_so="$additional_libdir/lib$name.$shlibext"
21127 if test -f "$additional_libdir/lib$name.la"; then
21128 found_la="$additional_libdir/lib$name.la"
21130 else
21131 if test -f "$additional_libdir/lib$name.$libext"; then
21132 found_dir="$additional_libdir"
21133 found_a="$additional_libdir/lib$name.$libext"
21134 if test -f "$additional_libdir/lib$name.la"; then
21135 found_la="$additional_libdir/lib$name.la"
21140 if test "X$found_dir" = "X"; then
21141 for x in $LDFLAGS $LTLIBICONV; do
21143 acl_save_prefix="$prefix"
21144 prefix="$acl_final_prefix"
21145 acl_save_exec_prefix="$exec_prefix"
21146 exec_prefix="$acl_final_exec_prefix"
21147 eval x=\"$x\"
21148 exec_prefix="$acl_save_exec_prefix"
21149 prefix="$acl_save_prefix"
21151 case "$x" in
21152 -L*)
21153 dir=`echo "X$x" | sed -e 's/^X-L//'`
21154 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21155 found_dir="$dir"
21156 found_so="$dir/lib$name.$shlibext"
21157 if test -f "$dir/lib$name.la"; then
21158 found_la="$dir/lib$name.la"
21160 else
21161 if test -f "$dir/lib$name.$libext"; then
21162 found_dir="$dir"
21163 found_a="$dir/lib$name.$libext"
21164 if test -f "$dir/lib$name.la"; then
21165 found_la="$dir/lib$name.la"
21170 esac
21171 if test "X$found_dir" != "X"; then
21172 break
21174 done
21176 if test "X$found_dir" != "X"; then
21177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21178 if test "X$found_so" != "X"; then
21179 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21180 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21181 else
21182 haveit=
21183 for x in $ltrpathdirs; do
21184 if test "X$x" = "X$found_dir"; then
21185 haveit=yes
21186 break
21188 done
21189 if test -z "$haveit"; then
21190 ltrpathdirs="$ltrpathdirs $found_dir"
21192 if test "$hardcode_direct" = yes; then
21193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21194 else
21195 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21196 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21197 haveit=
21198 for x in $rpathdirs; do
21199 if test "X$x" = "X$found_dir"; then
21200 haveit=yes
21201 break
21203 done
21204 if test -z "$haveit"; then
21205 rpathdirs="$rpathdirs $found_dir"
21207 else
21208 haveit=
21209 for x in $LDFLAGS $LIBICONV; do
21211 acl_save_prefix="$prefix"
21212 prefix="$acl_final_prefix"
21213 acl_save_exec_prefix="$exec_prefix"
21214 exec_prefix="$acl_final_exec_prefix"
21215 eval x=\"$x\"
21216 exec_prefix="$acl_save_exec_prefix"
21217 prefix="$acl_save_prefix"
21219 if test "X$x" = "X-L$found_dir"; then
21220 haveit=yes
21221 break
21223 done
21224 if test -z "$haveit"; then
21225 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21227 if test "$hardcode_minus_L" != no; then
21228 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21229 else
21230 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21235 else
21236 if test "X$found_a" != "X"; then
21237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21238 else
21239 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21242 additional_includedir=
21243 case "$found_dir" in
21244 */lib | */lib/)
21245 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21246 additional_includedir="$basedir/include"
21248 esac
21249 if test "X$additional_includedir" != "X"; then
21250 if test "X$additional_includedir" != "X/usr/include"; then
21251 haveit=
21252 if test "X$additional_includedir" = "X/usr/local/include"; then
21253 if test -n "$GCC"; then
21254 case $host_os in
21255 linux*) haveit=yes;;
21256 esac
21259 if test -z "$haveit"; then
21260 for x in $CPPFLAGS $INCICONV; do
21262 acl_save_prefix="$prefix"
21263 prefix="$acl_final_prefix"
21264 acl_save_exec_prefix="$exec_prefix"
21265 exec_prefix="$acl_final_exec_prefix"
21266 eval x=\"$x\"
21267 exec_prefix="$acl_save_exec_prefix"
21268 prefix="$acl_save_prefix"
21270 if test "X$x" = "X-I$additional_includedir"; then
21271 haveit=yes
21272 break
21274 done
21275 if test -z "$haveit"; then
21276 if test -d "$additional_includedir"; then
21277 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21283 if test -n "$found_la"; then
21284 save_libdir="$libdir"
21285 case "$found_la" in
21286 */* | *\\*) . "$found_la" ;;
21287 *) . "./$found_la" ;;
21288 esac
21289 libdir="$save_libdir"
21290 for dep in $dependency_libs; do
21291 case "$dep" in
21292 -L*)
21293 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21294 if test "X$additional_libdir" != "X/usr/lib"; then
21295 haveit=
21296 if test "X$additional_libdir" = "X/usr/local/lib"; then
21297 if test -n "$GCC"; then
21298 case $host_os in
21299 linux*) haveit=yes;;
21300 esac
21303 if test -z "$haveit"; then
21304 haveit=
21305 for x in $LDFLAGS $LIBICONV; do
21307 acl_save_prefix="$prefix"
21308 prefix="$acl_final_prefix"
21309 acl_save_exec_prefix="$exec_prefix"
21310 exec_prefix="$acl_final_exec_prefix"
21311 eval x=\"$x\"
21312 exec_prefix="$acl_save_exec_prefix"
21313 prefix="$acl_save_prefix"
21315 if test "X$x" = "X-L$additional_libdir"; then
21316 haveit=yes
21317 break
21319 done
21320 if test -z "$haveit"; then
21321 if test -d "$additional_libdir"; then
21322 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21325 haveit=
21326 for x in $LDFLAGS $LTLIBICONV; do
21328 acl_save_prefix="$prefix"
21329 prefix="$acl_final_prefix"
21330 acl_save_exec_prefix="$exec_prefix"
21331 exec_prefix="$acl_final_exec_prefix"
21332 eval x=\"$x\"
21333 exec_prefix="$acl_save_exec_prefix"
21334 prefix="$acl_save_prefix"
21336 if test "X$x" = "X-L$additional_libdir"; then
21337 haveit=yes
21338 break
21340 done
21341 if test -z "$haveit"; then
21342 if test -d "$additional_libdir"; then
21343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21349 -R*)
21350 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21351 if test "$enable_rpath" != no; then
21352 haveit=
21353 for x in $rpathdirs; do
21354 if test "X$x" = "X$dir"; then
21355 haveit=yes
21356 break
21358 done
21359 if test -z "$haveit"; then
21360 rpathdirs="$rpathdirs $dir"
21362 haveit=
21363 for x in $ltrpathdirs; do
21364 if test "X$x" = "X$dir"; then
21365 haveit=yes
21366 break
21368 done
21369 if test -z "$haveit"; then
21370 ltrpathdirs="$ltrpathdirs $dir"
21374 -l*)
21375 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21377 *.la)
21378 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21381 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21384 esac
21385 done
21387 else
21388 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21393 done
21394 done
21395 if test "X$rpathdirs" != "X"; then
21396 if test -n "$hardcode_libdir_separator"; then
21397 alldirs=
21398 for found_dir in $rpathdirs; do
21399 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21400 done
21401 acl_save_libdir="$libdir"
21402 libdir="$alldirs"
21403 eval flag=\"$hardcode_libdir_flag_spec\"
21404 libdir="$acl_save_libdir"
21405 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21406 else
21407 for found_dir in $rpathdirs; do
21408 acl_save_libdir="$libdir"
21409 libdir="$found_dir"
21410 eval flag=\"$hardcode_libdir_flag_spec\"
21411 libdir="$acl_save_libdir"
21412 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21413 done
21416 if test "X$ltrpathdirs" != "X"; then
21417 for found_dir in $ltrpathdirs; do
21418 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21419 done
21428 am_save_CPPFLAGS="$CPPFLAGS"
21430 for element in $INCICONV; do
21431 haveit=
21432 for x in $CPPFLAGS; do
21434 acl_save_prefix="$prefix"
21435 prefix="$acl_final_prefix"
21436 acl_save_exec_prefix="$exec_prefix"
21437 exec_prefix="$acl_final_exec_prefix"
21438 eval x=\"$x\"
21439 exec_prefix="$acl_save_exec_prefix"
21440 prefix="$acl_save_prefix"
21442 if test "X$x" = "X$element"; then
21443 haveit=yes
21444 break
21446 done
21447 if test -z "$haveit"; then
21448 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21450 done
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21454 $as_echo_n "checking for iconv... " >&6; }
21455 if test "${am_cv_func_iconv+set}" = set; then :
21456 $as_echo_n "(cached) " >&6
21457 else
21459 am_cv_func_iconv="no, consider installing GNU libiconv"
21460 am_cv_lib_iconv=no
21461 if test x$gcc_no_link = xyes; then
21462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21466 #include <stdlib.h>
21467 #include <iconv.h>
21469 main ()
21471 iconv_t cd = iconv_open("","");
21472 iconv(cd,NULL,NULL,NULL,NULL);
21473 iconv_close(cd);
21475 return 0;
21477 _ACEOF
21478 if ac_fn_c_try_link "$LINENO"; then :
21479 am_cv_func_iconv=yes
21481 rm -f core conftest.err conftest.$ac_objext \
21482 conftest$ac_exeext conftest.$ac_ext
21483 if test "$am_cv_func_iconv" != yes; then
21484 am_save_LIBS="$LIBS"
21485 LIBS="$LIBS $LIBICONV"
21486 if test x$gcc_no_link = xyes; then
21487 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21490 /* end confdefs.h. */
21491 #include <stdlib.h>
21492 #include <iconv.h>
21494 main ()
21496 iconv_t cd = iconv_open("","");
21497 iconv(cd,NULL,NULL,NULL,NULL);
21498 iconv_close(cd);
21500 return 0;
21502 _ACEOF
21503 if ac_fn_c_try_link "$LINENO"; then :
21504 am_cv_lib_iconv=yes
21505 am_cv_func_iconv=yes
21507 rm -f core conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
21509 LIBS="$am_save_LIBS"
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21514 $as_echo "$am_cv_func_iconv" >&6; }
21515 if test "$am_cv_func_iconv" = yes; then
21517 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21520 if test "$am_cv_lib_iconv" = yes; then
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21522 $as_echo_n "checking how to link with libiconv... " >&6; }
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21524 $as_echo "$LIBICONV" >&6; }
21525 else
21526 CPPFLAGS="$am_save_CPPFLAGS"
21527 LIBICONV=
21528 LTLIBICONV=
21533 if test "$am_cv_func_iconv" = yes; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21535 $as_echo_n "checking for iconv declaration... " >&6; }
21536 if test "${am_cv_proto_iconv+set}" = set; then :
21537 $as_echo_n "(cached) " >&6
21538 else
21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h. */
21543 #include <stdlib.h>
21544 #include <iconv.h>
21545 extern
21546 #ifdef __cplusplus
21548 #endif
21549 #if defined(__STDC__) || defined(__cplusplus)
21550 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21551 #else
21552 size_t iconv();
21553 #endif
21556 main ()
21560 return 0;
21562 _ACEOF
21563 if ac_fn_c_try_compile "$LINENO"; then :
21564 am_cv_proto_iconv_arg1=""
21565 else
21566 am_cv_proto_iconv_arg1="const"
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 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);"
21572 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21574 }$am_cv_proto_iconv" >&5
21575 $as_echo "${ac_t:-
21576 }$am_cv_proto_iconv" >&6; }
21578 cat >>confdefs.h <<_ACEOF
21579 #define ICONV_CONST $am_cv_proto_iconv_arg1
21580 _ACEOF
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21586 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21587 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21588 $as_echo_n "(cached) " >&6
21589 else
21590 if test x$gcc_no_link = xyes; then
21591 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h. */
21595 #include <locale.h>
21597 main ()
21599 return LC_MESSAGES
21601 return 0;
21603 _ACEOF
21604 if ac_fn_c_try_link "$LINENO"; then :
21605 am_cv_val_LC_MESSAGES=yes
21606 else
21607 am_cv_val_LC_MESSAGES=no
21609 rm -f core conftest.err conftest.$ac_objext \
21610 conftest$ac_exeext conftest.$ac_ext
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21613 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21614 if test $am_cv_val_LC_MESSAGES = yes; then
21616 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21621 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21622 if test "${ac_cv_struct_tm+set}" = set; then :
21623 $as_echo_n "(cached) " >&6
21624 else
21625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21626 /* end confdefs.h. */
21627 #include <sys/types.h>
21628 #include <time.h>
21631 main ()
21633 struct tm tm;
21634 int *p = &tm.tm_sec;
21635 return !p;
21637 return 0;
21639 _ACEOF
21640 if ac_fn_c_try_compile "$LINENO"; then :
21641 ac_cv_struct_tm=time.h
21642 else
21643 ac_cv_struct_tm=sys/time.h
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21648 $as_echo "$ac_cv_struct_tm" >&6; }
21649 if test $ac_cv_struct_tm = sys/time.h; then
21651 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21655 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21656 #include <$ac_cv_struct_tm>
21659 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21661 cat >>confdefs.h <<_ACEOF
21662 #define HAVE_STRUCT_TM_TM_ZONE 1
21663 _ACEOF
21668 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21670 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21672 else
21673 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21675 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21676 ac_have_decl=1
21677 else
21678 ac_have_decl=0
21681 cat >>confdefs.h <<_ACEOF
21682 #define HAVE_DECL_TZNAME $ac_have_decl
21683 _ACEOF
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21686 $as_echo_n "checking for tzname... " >&6; }
21687 if test "${ac_cv_var_tzname+set}" = set; then :
21688 $as_echo_n "(cached) " >&6
21689 else
21690 if test x$gcc_no_link = xyes; then
21691 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21694 /* end confdefs.h. */
21695 #include <time.h>
21696 #if !HAVE_DECL_TZNAME
21697 extern char *tzname[];
21698 #endif
21701 main ()
21703 return tzname[0][0];
21705 return 0;
21707 _ACEOF
21708 if ac_fn_c_try_link "$LINENO"; then :
21709 ac_cv_var_tzname=yes
21710 else
21711 ac_cv_var_tzname=no
21713 rm -f core conftest.err conftest.$ac_objext \
21714 conftest$ac_exeext conftest.$ac_ext
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21717 $as_echo "$ac_cv_var_tzname" >&6; }
21718 if test $ac_cv_var_tzname = yes; then
21720 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21726 for ac_func in gethostbyname_r
21727 do :
21728 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21729 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21730 cat >>confdefs.h <<_ACEOF
21731 #define HAVE_GETHOSTBYNAME_R 1
21732 _ACEOF
21735 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21737 # There are two different kinds of gethostbyname_r.
21738 # We look for the one that returns `int'.
21739 # Hopefully this check is robust enough.
21740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21741 /* end confdefs.h. */
21742 #include <netdb.h>
21744 _ACEOF
21745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21746 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21749 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21752 rm -f conftest*
21755 case " $GCINCS " in
21756 *" -D_REENTRANT "*) ;;
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21759 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21760 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21761 $as_echo_n "(cached) " >&6
21762 else
21763 ac_ext=cpp
21764 ac_cpp='$CXXCPP $CPPFLAGS'
21765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21770 /* end confdefs.h. */
21771 #include <netdb.h>
21773 main ()
21775 gethostbyname_r("", 0, 0);
21777 return 0;
21779 _ACEOF
21780 if ac_fn_cxx_try_compile "$LINENO"; then :
21781 libjava_cv_gethostbyname_r_needs_reentrant=no
21782 else
21783 CPPFLAGS_SAVE="$CPPFLAGS"
21784 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h. */
21787 #include <netdb.h>
21789 main ()
21791 gethostbyname_r("", 0, 0);
21793 return 0;
21795 _ACEOF
21796 if ac_fn_cxx_try_compile "$LINENO"; then :
21797 libjava_cv_gethostbyname_r_needs_reentrant=yes
21798 else
21799 libjava_cv_gethostbyname_r_needs_reentrant=fail
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802 CPPFLAGS="$CPPFLAGS_SAVE"
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 ac_ext=c
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21815 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21816 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21818 $as_echo "#define _REENTRANT 1" >>confdefs.h
21822 esac
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21825 $as_echo_n "checking for struct hostent_data... " >&6; }
21826 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21832 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21833 # define _REENTRANT 1
21834 #endif
21835 #include <netdb.h>
21837 main ()
21839 struct hostent_data data;
21841 return 0;
21843 _ACEOF
21844 if ac_fn_c_try_compile "$LINENO"; then :
21845 libjava_cv_struct_hostent_data=yes
21846 else
21847 libjava_cv_struct_hostent_data=no
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21852 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21853 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21855 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21860 done
21863 # FIXME: libjava source code expects to find a prototype for
21864 # gethostbyaddr_r in netdb.h. The outer check ensures that
21865 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21866 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21867 # linkage check is enough, yet C++ code requires proper prototypes.)
21868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21869 /* end confdefs.h. */
21870 #include <netdb.h>
21872 _ACEOF
21873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21874 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21876 for ac_func in gethostbyaddr_r
21877 do :
21878 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21879 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21880 cat >>confdefs.h <<_ACEOF
21881 #define HAVE_GETHOSTBYADDR_R 1
21882 _ACEOF
21885 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21887 # There are two different kinds of gethostbyaddr_r.
21888 # We look for the one that returns `int'.
21889 # Hopefully this check is robust enough.
21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h. */
21892 #include <netdb.h>
21894 _ACEOF
21895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21896 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21899 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21902 rm -f conftest*
21905 done
21908 rm -f conftest*
21911 for ac_func in gethostname
21912 do :
21913 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21914 if test "x$ac_cv_func_gethostname" = x""yes; then :
21915 cat >>confdefs.h <<_ACEOF
21916 #define HAVE_GETHOSTNAME 1
21917 _ACEOF
21920 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21923 /* end confdefs.h. */
21924 #include <unistd.h>
21926 _ACEOF
21927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21928 $EGREP "gethostname" >/dev/null 2>&1; then :
21931 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21934 rm -f conftest*
21937 done
21940 for ac_func in usleep
21941 do :
21942 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21943 if test "x$ac_cv_func_usleep" = x""yes; then :
21944 cat >>confdefs.h <<_ACEOF
21945 #define HAVE_USLEEP 1
21946 _ACEOF
21948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21949 /* end confdefs.h. */
21950 #include <unistd.h>
21952 _ACEOF
21953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21954 $EGREP "usleep" >/dev/null 2>&1; then :
21957 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21960 rm -f conftest*
21963 done
21966 # Look for these functions in the thread library, but only bother
21967 # if using POSIX threads.
21968 if test "$THREADS" = posix; then
21969 save_LIBS="$LIBS"
21970 LIBS="$LIBS $THREADLIBS"
21972 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21973 # Solaris 7 the name librt is preferred.
21974 for ac_func in sched_yield
21975 do :
21976 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21977 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_SCHED_YIELD 1
21980 _ACEOF
21982 else
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21985 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21986 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 ac_check_lib_save_LIBS=$LIBS
21990 LIBS="-lrt $LIBS"
21991 if test x$gcc_no_link = xyes; then
21992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h. */
21997 /* Override any GCC internal prototype to avoid an error.
21998 Use char because int might match the return type of a GCC
21999 builtin and then its argument prototype would still apply. */
22000 #ifdef __cplusplus
22001 extern "C"
22002 #endif
22003 char sched_yield ();
22005 main ()
22007 return sched_yield ();
22009 return 0;
22011 _ACEOF
22012 if ac_fn_c_try_link "$LINENO"; then :
22013 ac_cv_lib_rt_sched_yield=yes
22014 else
22015 ac_cv_lib_rt_sched_yield=no
22017 rm -f core conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22019 LIBS=$ac_check_lib_save_LIBS
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22022 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22023 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22025 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22027 THREADLIBS="$THREADLIBS -lrt"
22028 THREADSPEC="$THREADSPEC -lrt"
22029 else
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22032 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22033 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lposix4 $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
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
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 sched_yield ();
22052 main ()
22054 return sched_yield ();
22056 return 0;
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 ac_cv_lib_posix4_sched_yield=yes
22061 else
22062 ac_cv_lib_posix4_sched_yield=no
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22069 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22070 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22072 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22074 THREADLIBS="$THREADLIBS -lposix4"
22075 THREADSPEC="$THREADSPEC -lposix4"
22081 done
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22085 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22086 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22088 else
22089 ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-lrt $LIBS"
22091 if test x$gcc_no_link = xyes; then
22092 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22097 /* Override any GCC internal prototype to avoid an error.
22098 Use char because int might match the return type of a GCC
22099 builtin and then its argument prototype would still apply. */
22100 #ifdef __cplusplus
22101 extern "C"
22102 #endif
22103 char clock_gettime ();
22105 main ()
22107 return clock_gettime ();
22109 return 0;
22111 _ACEOF
22112 if ac_fn_c_try_link "$LINENO"; then :
22113 ac_cv_lib_rt_clock_gettime=yes
22114 else
22115 ac_cv_lib_rt_clock_gettime=no
22117 rm -f core conftest.err conftest.$ac_objext \
22118 conftest$ac_exeext conftest.$ac_ext
22119 LIBS=$ac_check_lib_save_LIBS
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22122 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22123 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22126 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22128 case "$THREADSPEC" in
22129 *-lrt*) ;;
22131 THREADSPEC="$THREADSPEC -lrt"
22132 THREADLIBS="$THREADLIBS -lrt"
22134 esac
22138 LIBS="$save_LIBS"
22140 # We can save a little space at runtime if the mutex has m_count
22141 # or __m_count. This is a nice hack for Linux.
22142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h. */
22144 #include <pthread.h>
22146 main ()
22149 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22152 return 0;
22154 _ACEOF
22155 if ac_fn_c_try_compile "$LINENO"; then :
22157 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22159 else
22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h. */
22163 #include <pthread.h>
22165 main ()
22168 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22171 return 0;
22173 _ACEOF
22174 if ac_fn_c_try_compile "$LINENO"; then :
22176 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 # We require a way to get the time.
22185 time_found=no
22186 for ac_func in gettimeofday time ftime
22187 do :
22188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22190 eval as_val=\$$as_ac_var
22191 if test "x$as_val" = x""yes; then :
22192 cat >>confdefs.h <<_ACEOF
22193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22194 _ACEOF
22195 time_found=yes
22197 done
22199 if test "$time_found" = no; then
22200 as_fn_error "no function found to get the time" "$LINENO" 5
22203 for ac_func in memmove
22204 do :
22205 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22206 if test "x$ac_cv_func_memmove" = x""yes; then :
22207 cat >>confdefs.h <<_ACEOF
22208 #define HAVE_MEMMOVE 1
22209 _ACEOF
22212 done
22215 # We require memcpy.
22216 memcpy_found=no
22217 for ac_func in memcpy
22218 do :
22219 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22220 if test "x$ac_cv_func_memcpy" = x""yes; then :
22221 cat >>confdefs.h <<_ACEOF
22222 #define HAVE_MEMCPY 1
22223 _ACEOF
22224 memcpy_found=yes
22226 done
22228 if test "$memcpy_found" = no; then
22229 as_fn_error "memcpy is required" "$LINENO" 5
22231 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22235 $as_echo_n "(cached) " >&6
22236 else
22237 ac_check_lib_save_LIBS=$LIBS
22238 LIBS="-ldl $LIBS"
22239 if test x$gcc_no_link = xyes; then
22240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22243 /* end confdefs.h. */
22245 /* Override any GCC internal prototype to avoid an error.
22246 Use char because int might match the return type of a GCC
22247 builtin and then its argument prototype would still apply. */
22248 #ifdef __cplusplus
22249 extern "C"
22250 #endif
22251 char dlopen ();
22253 main ()
22255 return dlopen ();
22257 return 0;
22259 _ACEOF
22260 if ac_fn_c_try_link "$LINENO"; then :
22261 ac_cv_lib_dl_dlopen=yes
22262 else
22263 ac_cv_lib_dl_dlopen=no
22265 rm -f core conftest.err conftest.$ac_objext \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22271 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22274 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22276 else
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22279 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22280 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-ldld $LIBS"
22285 if test x$gcc_no_link = xyes; then
22286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h. */
22291 /* Override any GCC internal prototype to avoid an error.
22292 Use char because int might match the return type of a GCC
22293 builtin and then its argument prototype would still apply. */
22294 #ifdef __cplusplus
22295 extern "C"
22296 #endif
22297 char dlopen ();
22299 main ()
22301 return dlopen ();
22303 return 0;
22305 _ACEOF
22306 if ac_fn_c_try_link "$LINENO"; then :
22307 ac_cv_lib_dld_dlopen=yes
22308 else
22309 ac_cv_lib_dld_dlopen=no
22311 rm -f core conftest.err conftest.$ac_objext \
22312 conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22316 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22317 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22320 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22327 # Some library-finding code we stole from Tcl.
22328 #--------------------------------------------------------------------
22329 # Check for the existence of the -lsocket and -lnsl libraries.
22330 # The order here is important, so that they end up in the right
22331 # order in the command line generated by make. Here are some
22332 # special considerations:
22333 # 1. Use "connect" and "accept" to check for -lsocket, and
22334 # "gethostbyname" to check for -lnsl.
22335 # 2. Use each function name only once: can't redo a check because
22336 # autoconf caches the results of the last check and won't redo it.
22337 # 3. Use -lnsl and -lsocket only if they supply procedures that
22338 # aren't already present in the normal libraries. This is because
22339 # IRIX 5.2 has libraries, but they aren't needed and they're
22340 # bogus: they goof up name resolution if used.
22341 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22342 # To get around this problem, check for both libraries together
22343 # if -lsocket doesn't work by itself.
22344 #--------------------------------------------------------------------
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22347 $as_echo_n "checking for socket libraries... " >&6; }
22348 if test "${gcj_cv_lib_sockets+set}" = set; then :
22349 $as_echo_n "(cached) " >&6
22350 else
22351 gcj_cv_lib_sockets=
22352 gcj_checkBoth=0
22353 unset ac_cv_func_connect
22354 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22355 if test "x$ac_cv_func_connect" = x""yes; then :
22356 gcj_checkSocket=0
22357 else
22358 gcj_checkSocket=1
22361 if test "$gcj_checkSocket" = 1; then
22362 unset ac_cv_func_connect
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22364 $as_echo_n "checking for main in -lsocket... " >&6; }
22365 if test "${ac_cv_lib_socket_main+set}" = set; then :
22366 $as_echo_n "(cached) " >&6
22367 else
22368 ac_check_lib_save_LIBS=$LIBS
22369 LIBS="-lsocket $LIBS"
22370 if test x$gcc_no_link = xyes; then
22371 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22374 /* end confdefs.h. */
22378 main ()
22380 return main ();
22382 return 0;
22384 _ACEOF
22385 if ac_fn_c_try_link "$LINENO"; then :
22386 ac_cv_lib_socket_main=yes
22387 else
22388 ac_cv_lib_socket_main=no
22390 rm -f core conftest.err conftest.$ac_objext \
22391 conftest$ac_exeext conftest.$ac_ext
22392 LIBS=$ac_check_lib_save_LIBS
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22395 $as_echo "$ac_cv_lib_socket_main" >&6; }
22396 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22397 gcj_cv_lib_sockets="-lsocket"
22398 else
22399 gcj_checkBoth=1
22403 if test "$gcj_checkBoth" = 1; then
22404 gcj_oldLibs=$LIBS
22405 LIBS="$LIBS -lsocket -lnsl"
22406 unset ac_cv_func_accept
22407 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22408 if test "x$ac_cv_func_accept" = x""yes; then :
22409 gcj_checkNsl=0
22410 gcj_cv_lib_sockets="-lsocket -lnsl"
22413 unset ac_cv_func_accept
22414 LIBS=$gcj_oldLibs
22416 unset ac_cv_func_gethostbyname
22417 gcj_oldLibs=$LIBS
22418 LIBS="$LIBS $gcj_cv_lib_sockets"
22419 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22420 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22422 else
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22424 $as_echo_n "checking for main in -lnsl... " >&6; }
22425 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22427 else
22428 ac_check_lib_save_LIBS=$LIBS
22429 LIBS="-lnsl $LIBS"
22430 if test x$gcc_no_link = xyes; then
22431 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22438 main ()
22440 return main ();
22442 return 0;
22444 _ACEOF
22445 if ac_fn_c_try_link "$LINENO"; then :
22446 ac_cv_lib_nsl_main=yes
22447 else
22448 ac_cv_lib_nsl_main=no
22450 rm -f core conftest.err conftest.$ac_objext \
22451 conftest$ac_exeext conftest.$ac_ext
22452 LIBS=$ac_check_lib_save_LIBS
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22455 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22456 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22457 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22462 unset ac_cv_func_gethostbyname
22463 LIBS=$gcj_oldLIBS
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22467 $as_echo "$gcj_cv_lib_sockets" >&6; }
22468 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22470 if test "$with_system_zlib" = yes; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22472 $as_echo_n "checking for deflate in -lz... " >&6; }
22473 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 ac_check_lib_save_LIBS=$LIBS
22477 LIBS="-lz $LIBS"
22478 if test x$gcc_no_link = xyes; then
22479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h. */
22484 /* Override any GCC internal prototype to avoid an error.
22485 Use char because int might match the return type of a GCC
22486 builtin and then its argument prototype would still apply. */
22487 #ifdef __cplusplus
22488 extern "C"
22489 #endif
22490 char deflate ();
22492 main ()
22494 return deflate ();
22496 return 0;
22498 _ACEOF
22499 if ac_fn_c_try_link "$LINENO"; then :
22500 ac_cv_lib_z_deflate=yes
22501 else
22502 ac_cv_lib_z_deflate=no
22504 rm -f core conftest.err conftest.$ac_objext \
22505 conftest$ac_exeext conftest.$ac_ext
22506 LIBS=$ac_check_lib_save_LIBS
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22509 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22510 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22511 ZLIBSPEC=-lz
22512 else
22513 ZLIBSPEC=
22518 # Test for Gtk stuff, if asked for.
22519 if test "$use_gtk_awt" = yes; then
22521 succeeded=no
22523 if test -z "$PKG_CONFIG"; then
22524 # Extract the first word of "pkg-config", so it can be a program name with args.
22525 set dummy pkg-config; ac_word=$2
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22527 $as_echo_n "checking for $ac_word... " >&6; }
22528 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22530 else
22531 case $PKG_CONFIG in
22532 [\\/]* | ?:[\\/]*)
22533 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22537 for as_dir in $PATH
22539 IFS=$as_save_IFS
22540 test -z "$as_dir" && as_dir=.
22541 for ac_exec_ext in '' $ac_executable_extensions; do
22542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22543 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22545 break 2
22547 done
22548 done
22549 IFS=$as_save_IFS
22551 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22553 esac
22555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22556 if test -n "$PKG_CONFIG"; then
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22558 $as_echo "$PKG_CONFIG" >&6; }
22559 else
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22561 $as_echo "no" >&6; }
22567 if test "$PKG_CONFIG" = "no" ; then
22568 echo "*** The pkg-config script could not be found. Make sure it is"
22569 echo "*** in your path, or set the PKG_CONFIG environment variable"
22570 echo "*** to the full path to pkg-config."
22571 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22572 else
22573 PKG_CONFIG_MIN_VERSION=0.9.0
22574 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22576 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22578 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22580 $as_echo "yes" >&6; }
22581 succeeded=yes
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22584 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22585 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22587 $as_echo "$GTK_CFLAGS" >&6; }
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22590 $as_echo_n "checking GTK_LIBS... " >&6; }
22591 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22593 $as_echo "$GTK_LIBS" >&6; }
22594 else
22595 GTK_CFLAGS=""
22596 GTK_LIBS=""
22597 ## If we have a custom action on failure, don't print errors, but
22598 ## do set a variable so people can do so.
22599 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22600 echo $GTK_PKG_ERRORS
22605 else
22606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22611 if test $succeeded = yes; then
22613 else
22614 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
22621 succeeded=no
22623 if test -z "$PKG_CONFIG"; then
22624 # Extract the first word of "pkg-config", so it can be a program name with args.
22625 set dummy pkg-config; ac_word=$2
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22627 $as_echo_n "checking for $ac_word... " >&6; }
22628 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22629 $as_echo_n "(cached) " >&6
22630 else
22631 case $PKG_CONFIG in
22632 [\\/]* | ?:[\\/]*)
22633 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22637 for as_dir in $PATH
22639 IFS=$as_save_IFS
22640 test -z "$as_dir" && as_dir=.
22641 for ac_exec_ext in '' $ac_executable_extensions; do
22642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22643 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22645 break 2
22647 done
22648 done
22649 IFS=$as_save_IFS
22651 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22653 esac
22655 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22656 if test -n "$PKG_CONFIG"; then
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22658 $as_echo "$PKG_CONFIG" >&6; }
22659 else
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22661 $as_echo "no" >&6; }
22667 if test "$PKG_CONFIG" = "no" ; then
22668 echo "*** The pkg-config script could not be found. Make sure it is"
22669 echo "*** in your path, or set the PKG_CONFIG environment variable"
22670 echo "*** to the full path to pkg-config."
22671 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22672 else
22673 PKG_CONFIG_MIN_VERSION=0.9.0
22674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22676 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22678 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22680 $as_echo "yes" >&6; }
22681 succeeded=yes
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22684 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22685 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22687 $as_echo "$GLIB_CFLAGS" >&6; }
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22690 $as_echo_n "checking GLIB_LIBS... " >&6; }
22691 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22693 $as_echo "$GLIB_LIBS" >&6; }
22694 else
22695 GLIB_CFLAGS=""
22696 GLIB_LIBS=""
22697 ## If we have a custom action on failure, don't print errors, but
22698 ## do set a variable so people can do so.
22699 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22700 echo $GLIB_PKG_ERRORS
22705 else
22706 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22707 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22711 if test $succeeded = yes; then
22713 else
22714 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
22721 succeeded=no
22723 if test -z "$PKG_CONFIG"; then
22724 # Extract the first word of "pkg-config", so it can be a program name with args.
22725 set dummy pkg-config; ac_word=$2
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22727 $as_echo_n "checking for $ac_word... " >&6; }
22728 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22729 $as_echo_n "(cached) " >&6
22730 else
22731 case $PKG_CONFIG in
22732 [\\/]* | ?:[\\/]*)
22733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22737 for as_dir in $PATH
22739 IFS=$as_save_IFS
22740 test -z "$as_dir" && as_dir=.
22741 for ac_exec_ext in '' $ac_executable_extensions; do
22742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22745 break 2
22747 done
22748 done
22749 IFS=$as_save_IFS
22751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22753 esac
22755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22756 if test -n "$PKG_CONFIG"; then
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22758 $as_echo "$PKG_CONFIG" >&6; }
22759 else
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22767 if test "$PKG_CONFIG" = "no" ; then
22768 echo "*** The pkg-config script could not be found. Make sure it is"
22769 echo "*** in your path, or set the PKG_CONFIG environment variable"
22770 echo "*** to the full path to pkg-config."
22771 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22772 else
22773 PKG_CONFIG_MIN_VERSION=0.9.0
22774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22776 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22778 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22780 $as_echo "yes" >&6; }
22781 succeeded=yes
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22784 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22785 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22787 $as_echo "$LIBART_CFLAGS" >&6; }
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22790 $as_echo_n "checking LIBART_LIBS... " >&6; }
22791 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22793 $as_echo "$LIBART_LIBS" >&6; }
22794 else
22795 LIBART_CFLAGS=""
22796 LIBART_LIBS=""
22797 ## If we have a custom action on failure, don't print errors, but
22798 ## do set a variable so people can do so.
22799 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22800 echo $LIBART_PKG_ERRORS
22805 else
22806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22811 if test $succeeded = yes; then
22813 else
22814 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
22820 # We require the XTest Extension to support java.awt.Robot.
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22822 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22823 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22825 else
22826 ac_check_lib_save_LIBS=$LIBS
22827 LIBS="-lXtst ${X_LIBS} $LIBS"
22828 if test x$gcc_no_link = xyes; then
22829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832 /* end confdefs.h. */
22834 /* Override any GCC internal prototype to avoid an error.
22835 Use char because int might match the return type of a GCC
22836 builtin and then its argument prototype would still apply. */
22837 #ifdef __cplusplus
22838 extern "C"
22839 #endif
22840 char XTestQueryExtension ();
22842 main ()
22844 return XTestQueryExtension ();
22846 return 0;
22848 _ACEOF
22849 if ac_fn_c_try_link "$LINENO"; then :
22850 ac_cv_lib_Xtst_XTestQueryExtension=yes
22851 else
22852 ac_cv_lib_Xtst_XTestQueryExtension=no
22854 rm -f core conftest.err conftest.$ac_objext \
22855 conftest$ac_exeext conftest.$ac_ext
22856 LIBS=$ac_check_lib_save_LIBS
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22859 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22860 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22861 true
22862 else
22863 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22868 # On Solaris, and maybe other architectures, the Boehm collector
22869 # requires -ldl.
22870 if test "$GC" = boehm; then
22871 case "${host}" in
22872 mips-sgi-irix6*)
22873 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22874 # libgcj.spec is used, so override here
22875 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22879 $as_echo_n "checking for main in -ldl... " >&6; }
22880 if test "${ac_cv_lib_dl_main+set}" = set; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 ac_check_lib_save_LIBS=$LIBS
22884 LIBS="-ldl $LIBS"
22885 if test x$gcc_no_link = xyes; then
22886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22889 /* end confdefs.h. */
22893 main ()
22895 return main ();
22897 return 0;
22899 _ACEOF
22900 if ac_fn_c_try_link "$LINENO"; then :
22901 ac_cv_lib_dl_main=yes
22902 else
22903 ac_cv_lib_dl_main=no
22905 rm -f core conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
22907 LIBS=$ac_check_lib_save_LIBS
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22910 $as_echo "$ac_cv_lib_dl_main" >&6; }
22911 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22912 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22916 esac
22920 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22921 case $build in
22922 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22923 *) CLASSPATH_SEPARATOR=':' ;;
22924 esac
22927 # We must search the source tree for java.lang, since we still don't
22928 # have libgcj.jar nor java/lang/*.class
22929 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22930 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22932 # Since some classes depend on this one, we need its source available
22933 # before we can do any GCJ compilation test :-(
22934 if test ! -f gnu/classpath/Configuration.java; then
22935 test -d gnu || mkdir gnu
22936 test -d gnu/classpath || mkdir gnu/classpath
22937 # Note that it is not crucial that all the values here be correct.
22938 sed -e "s,@prefix@,$prefix," \
22939 -e "s,@VERSION@,$VERSION," \
22940 -e "s,@LIBDEBUG@,false," \
22941 -e "s,@INIT_LOAD_LIBRARY@,false," \
22942 -e "s,@@,$LIBGCJDEBUG," \
22943 -e "s,@default_toolkit@,$TOOLKIT," \
22944 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22945 -e "s,@GTK_CAIRO_ENABLED@,false," \
22946 -e "s,@ECJ_JAR@,," \
22947 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22948 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22949 > gnu/classpath/Configuration.java
22950 # We do not want to redirect the output of the grep below to /dev/null,
22951 # but we add /dev/null to the input list so that grep will print the
22952 # filename of Configuration.java in case it finds any matches.
22953 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22954 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22959 for ac_prog in gcj
22961 # Extract the first word of "$ac_prog", so it can be a program name with args.
22962 set dummy $ac_prog; ac_word=$2
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22964 $as_echo_n "checking for $ac_word... " >&6; }
22965 if test "${ac_cv_prog_GCJ+set}" = set; then :
22966 $as_echo_n "(cached) " >&6
22967 else
22968 if test -n "$GCJ"; then
22969 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22970 else
22971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22972 for as_dir in $PATH
22974 IFS=$as_save_IFS
22975 test -z "$as_dir" && as_dir=.
22976 for ac_exec_ext in '' $ac_executable_extensions; do
22977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22978 ac_cv_prog_GCJ="$ac_prog"
22979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22980 break 2
22982 done
22983 done
22984 IFS=$as_save_IFS
22988 GCJ=$ac_cv_prog_GCJ
22989 if test -n "$GCJ"; then
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22991 $as_echo "$GCJ" >&6; }
22992 else
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22994 $as_echo "no" >&6; }
22998 test -n "$GCJ" && break
22999 done
23000 test -n "$GCJ" || GCJ="gcj"
23002 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23003 if test "x${GCJFLAGS-unset}" = xunset; then
23004 GCJFLAGS="-g -O2"
23008 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23011 $as_echo_n "checking dependency style of $depcc... " >&6; }
23012 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23016 # We make a subdir and do the tests there. Otherwise we can end up
23017 # making bogus files that we don't know about and never remove. For
23018 # instance it was reported that on HP-UX the gcc test will end up
23019 # making a dummy file named `D' -- because `-MD' means `put the output
23020 # in D'.
23021 mkdir conftest.dir
23022 # Copy depcomp to subdir because otherwise we won't find it if we're
23023 # using a relative directory.
23024 cp "$am_depcomp" conftest.dir
23025 cd conftest.dir
23026 # We will build objects and dependencies in a subdirectory because
23027 # it helps to detect inapplicable dependency modes. For instance
23028 # both Tru64's cc and ICC support -MD to output dependencies as a
23029 # side effect of compilation, but ICC will put the dependencies in
23030 # the current directory while Tru64 will put them in the object
23031 # directory.
23032 mkdir sub
23034 am_cv_GCJ_dependencies_compiler_type=none
23035 if test "$am_compiler_list" = ""; then
23036 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23038 am__universal=false
23041 for depmode in $am_compiler_list; do
23042 # Setup a source with many dependencies, because some compilers
23043 # like to wrap large dependency lists on column 80 (with \), and
23044 # we should not choose a depcomp mode which is confused by this.
23046 # We need to recreate these files for each test, as the compiler may
23047 # overwrite some of them when testing with obscure command lines.
23048 # This happens at least with the AIX C compiler.
23049 : > sub/conftest.c
23050 for i in 1 2 3 4 5 6; do
23051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23053 # Solaris 8's {/usr,}/bin/sh.
23054 touch sub/conftst$i.h
23055 done
23056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23059 # mode. It turns out that the SunPro C++ compiler does not properly
23060 # handle `-M -o', and we need to detect this. Also, some Intel
23061 # versions had trouble with output in subdirs
23062 am__obj=sub/conftest.${OBJEXT-o}
23063 am__minus_obj="-o $am__obj"
23064 case $depmode in
23065 gcc)
23066 # This depmode causes a compiler race in universal mode.
23067 test "$am__universal" = false || continue
23069 nosideeffect)
23070 # after this tag, mechanisms are not by side-effect, so they'll
23071 # only be used when explicitly requested
23072 if test "x$enable_dependency_tracking" = xyes; then
23073 continue
23074 else
23075 break
23078 msvisualcpp | msvcmsys)
23079 # This compiler won't grok `-c -o', but also, the minuso test has
23080 # not run yet. These depmodes are late enough in the game, and
23081 # so weak that their functioning should not be impacted.
23082 am__obj=conftest.${OBJEXT-o}
23083 am__minus_obj=
23085 none) break ;;
23086 esac
23087 if depmode=$depmode \
23088 source=sub/conftest.c object=$am__obj \
23089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23091 >/dev/null 2>conftest.err &&
23092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23096 # icc doesn't choke on unknown options, it will just issue warnings
23097 # or remarks (even with -Werror). So we grep stderr for any message
23098 # that says an option was ignored or not supported.
23099 # When given -MP, icc 7.0 and 7.1 complain thusly:
23100 # icc: Command line warning: ignoring option '-M'; no argument required
23101 # The diagnosis changed in icc 8.0:
23102 # icc: Command line remark: option '-MP' not supported
23103 if (grep 'ignoring option' conftest.err ||
23104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23105 am_cv_GCJ_dependencies_compiler_type=$depmode
23106 break
23109 done
23111 cd ..
23112 rm -rf conftest.dir
23113 else
23114 am_cv_GCJ_dependencies_compiler_type=none
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23119 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23120 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23123 test "x$enable_dependency_tracking" != xno \
23124 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23125 am__fastdepGCJ_TRUE=
23126 am__fastdepGCJ_FALSE='#'
23127 else
23128 am__fastdepGCJ_TRUE='#'
23129 am__fastdepGCJ_FALSE=
23135 # Now remove it.
23136 rm -f gnu/classpath/Configuration.java
23138 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23140 # The cast to long int works around a bug in the HP C Compiler
23141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23143 # This bug is HP SR number 8606223364.
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23145 $as_echo_n "checking size of void *... " >&6; }
23146 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23147 $as_echo_n "(cached) " >&6
23148 else
23149 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23151 else
23152 if test "$ac_cv_type_void_p" = yes; then
23153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23155 { as_fn_set_status 77
23156 as_fn_error "cannot compute sizeof (void *)
23157 See \`config.log' for more details." "$LINENO" 5; }; }
23158 else
23159 ac_cv_sizeof_void_p=0
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23165 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23169 cat >>confdefs.h <<_ACEOF
23170 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23171 _ACEOF
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23176 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23177 if test "${ac_cv_c_bigendian+set}" = set; then :
23178 $as_echo_n "(cached) " >&6
23179 else
23180 ac_cv_c_bigendian=unknown
23181 # See if we're dealing with a universal compiler.
23182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h. */
23184 #ifndef __APPLE_CC__
23185 not a universal capable compiler
23186 #endif
23187 typedef int dummy;
23189 _ACEOF
23190 if ac_fn_c_try_compile "$LINENO"; then :
23192 # Check for potential -arch flags. It is not universal unless
23193 # there are at least two -arch flags with different values.
23194 ac_arch=
23195 ac_prev=
23196 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23197 if test -n "$ac_prev"; then
23198 case $ac_word in
23199 i?86 | x86_64 | ppc | ppc64)
23200 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23201 ac_arch=$ac_word
23202 else
23203 ac_cv_c_bigendian=universal
23204 break
23207 esac
23208 ac_prev=
23209 elif test "x$ac_word" = "x-arch"; then
23210 ac_prev=arch
23212 done
23214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215 if test $ac_cv_c_bigendian = unknown; then
23216 # See if sys/param.h defines the BYTE_ORDER macro.
23217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h. */
23219 #include <sys/types.h>
23220 #include <sys/param.h>
23223 main ()
23225 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23226 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23227 && LITTLE_ENDIAN)
23228 bogus endian macros
23229 #endif
23232 return 0;
23234 _ACEOF
23235 if ac_fn_c_try_compile "$LINENO"; then :
23236 # It does; now see whether it defined to BIG_ENDIAN or not.
23237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23238 /* end confdefs.h. */
23239 #include <sys/types.h>
23240 #include <sys/param.h>
23243 main ()
23245 #if BYTE_ORDER != BIG_ENDIAN
23246 not big endian
23247 #endif
23250 return 0;
23252 _ACEOF
23253 if ac_fn_c_try_compile "$LINENO"; then :
23254 ac_cv_c_bigendian=yes
23255 else
23256 ac_cv_c_bigendian=no
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 if test $ac_cv_c_bigendian = unknown; then
23263 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h. */
23266 #include <limits.h>
23269 main ()
23271 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23272 bogus endian macros
23273 #endif
23276 return 0;
23278 _ACEOF
23279 if ac_fn_c_try_compile "$LINENO"; then :
23280 # It does; now see whether it defined to _BIG_ENDIAN or not.
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282 /* end confdefs.h. */
23283 #include <limits.h>
23286 main ()
23288 #ifndef _BIG_ENDIAN
23289 not big endian
23290 #endif
23293 return 0;
23295 _ACEOF
23296 if ac_fn_c_try_compile "$LINENO"; then :
23297 ac_cv_c_bigendian=yes
23298 else
23299 ac_cv_c_bigendian=no
23301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305 if test $ac_cv_c_bigendian = unknown; then
23306 # Compile a test program.
23307 if test "$cross_compiling" = yes; then :
23308 # Try to guess by grepping values from an object file.
23309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23310 /* end confdefs.h. */
23311 short int ascii_mm[] =
23312 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23313 short int ascii_ii[] =
23314 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23315 int use_ascii (int i) {
23316 return ascii_mm[i] + ascii_ii[i];
23318 short int ebcdic_ii[] =
23319 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23320 short int ebcdic_mm[] =
23321 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23322 int use_ebcdic (int i) {
23323 return ebcdic_mm[i] + ebcdic_ii[i];
23325 extern int foo;
23328 main ()
23330 return use_ascii (foo) == use_ebcdic (foo);
23332 return 0;
23334 _ACEOF
23335 if ac_fn_c_try_compile "$LINENO"; then :
23336 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23337 ac_cv_c_bigendian=yes
23339 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23340 if test "$ac_cv_c_bigendian" = unknown; then
23341 ac_cv_c_bigendian=no
23342 else
23343 # finding both strings is unlikely to happen, but who knows?
23344 ac_cv_c_bigendian=unknown
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 else
23350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23351 /* end confdefs.h. */
23352 $ac_includes_default
23354 main ()
23357 /* Are we little or big endian? From Harbison&Steele. */
23358 union
23360 long int l;
23361 char c[sizeof (long int)];
23362 } u;
23363 u.l = 1;
23364 return u.c[sizeof (long int) - 1] == 1;
23367 return 0;
23369 _ACEOF
23370 if ac_fn_c_try_run "$LINENO"; then :
23371 ac_cv_c_bigendian=no
23372 else
23373 ac_cv_c_bigendian=yes
23375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23376 conftest.$ac_objext conftest.beam conftest.$ac_ext
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23382 $as_echo "$ac_cv_c_bigendian" >&6; }
23383 case $ac_cv_c_bigendian in #(
23384 yes)
23385 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23386 ;; #(
23388 ;; #(
23389 universal)
23391 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23393 ;; #(
23395 as_fn_error "unknown endianness
23396 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23397 esac
23400 ZLIBS=
23401 SYS_ZLIBS=
23402 ZINCS=
23404 if test -z "$ZLIBSPEC"; then
23405 # Use zlib from the GCC tree.
23406 ZINCS='-I$(top_srcdir)/../zlib'
23407 ZLIBS=../zlib/libzgcj_convenience.la
23408 else
23409 # System's zlib.
23410 SYS_ZLIBS="$ZLIBSPEC"
23422 if test "$NATIVE" = yes; then
23423 NATIVE_TRUE=
23424 NATIVE_FALSE='#'
23425 else
23426 NATIVE_TRUE='#'
23427 NATIVE_FALSE=
23430 if test "$enable_shared" = yes; then
23431 ENABLE_SHARED_TRUE=
23432 ENABLE_SHARED_FALSE='#'
23433 else
23434 ENABLE_SHARED_TRUE='#'
23435 ENABLE_SHARED_FALSE=
23438 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23439 NEEDS_DATA_START_TRUE=
23440 NEEDS_DATA_START_FALSE='#'
23441 else
23442 NEEDS_DATA_START_TRUE='#'
23443 NEEDS_DATA_START_FALSE=
23446 if test -z "${with_multisubdir}"; then
23447 INSTALL_BINARIES_TRUE=
23448 INSTALL_BINARIES_FALSE='#'
23449 else
23450 INSTALL_BINARIES_TRUE='#'
23451 INSTALL_BINARIES_FALSE=
23456 # Process the option "--enable-version-specific-runtime-libs"
23457 # Calculate toolexeclibdir
23458 case ${version_specific_libs} in
23459 yes)
23460 # Need the gcc compiler version to know where to install libraries
23461 # and header files if --enable-version-specific-runtime-libs option
23462 # is selected.
23463 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23464 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23465 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23466 toolexeclibdir=$toolexecmainlibdir
23469 if test -n "$with_cross_host" &&
23470 test x"$with_cross_host" != x"no"; then
23471 # Install a library built with a cross compiler in tooldir, not libdir.
23472 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23473 toolexecmainlibdir='$(toolexecdir)/lib'
23474 else
23475 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23476 toolexecmainlibdir='$(libdir)'
23478 multi_os_directory=`$CC -print-multi-os-directory`
23479 case $multi_os_directory in
23480 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23481 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23482 esac
23484 esac
23489 # Determine gcj and libgcj version number.
23490 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23491 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23492 GCJVERSION=$gcjversion
23495 cat >>confdefs.h <<_ACEOF
23496 #define GCJVERSION "$GCJVERSION"
23497 _ACEOF
23500 # Determine where the standard .db file and GNU Classpath JNI
23501 # libraries are found.
23502 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23503 multi_os_directory=`$CC -print-multi-os-directory`
23504 case $multi_os_directory in
23506 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23509 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23511 esac
23516 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23519 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23523 case "${with_gxx_include_dir}" in
23524 yes)
23525 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23527 no | "")
23528 case "${enable_version_specific_runtime_libs}" in
23529 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23531 libstdcxx_incdir='c++/$(gcc_version)'
23532 gxx_include_dir='include/$(libstdcxx_incdir)'
23533 if test -n "$with_cross_host" &&
23534 test x"$with_cross_host" != x"no"; then
23535 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23536 else
23537 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23538 fi;;
23539 esac ;;
23540 *) gxx_include_dir=${with_gxx_include_dir} ;;
23541 esac
23546 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23547 # On that system, sys/ioctl.h will not include sys/filio.h unless
23548 # BSD_COMP is defined; just including sys/filio.h is simpler.
23549 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23550 # for now. If you change this, you also must update natFile.cc.
23551 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23552 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23553 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23554 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23555 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23556 do :
23557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23559 eval as_val=\$$as_ac_Header
23560 if test "x$as_val" = x""yes; then :
23561 cat >>confdefs.h <<_ACEOF
23562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23563 _ACEOF
23567 done
23569 for ac_header in inttypes.h
23570 do :
23571 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23572 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23573 cat >>confdefs.h <<_ACEOF
23574 #define HAVE_INTTYPES_H 1
23575 _ACEOF
23578 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23581 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23586 done
23589 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23590 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23592 else
23594 cat >>confdefs.h <<_ACEOF
23595 #define ssize_t int
23596 _ACEOF
23600 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23601 #ifdef HAVE_MAGIC_H
23602 #include <magic.h>
23603 #endif
23605 if test "x$ac_cv_type_magic_t" = x""yes; then :
23608 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23614 $as_echo_n "checking for in_addr_t... " >&6; }
23615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23616 /* end confdefs.h. */
23617 #include <sys/types.h>
23618 #if STDC_HEADERS
23619 #include <stdlib.h>
23620 #include <stddef.h>
23621 #endif
23622 #if HAVE_NETINET_IN_H
23623 #include <netinet/in.h>
23624 #endif
23626 main ()
23628 in_addr_t foo;
23630 return 0;
23632 _ACEOF
23633 if ac_fn_c_try_compile "$LINENO"; then :
23635 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23638 $as_echo "yes" >&6; }
23639 else
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23641 $as_echo "no" >&6; }
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23646 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23649 #include <netinet/in.h>
23651 main ()
23653 struct ip_mreq mreq;
23655 return 0;
23657 _ACEOF
23658 if ac_fn_c_try_compile "$LINENO"; then :
23660 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23663 $as_echo "yes" >&6; }
23664 else
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23666 $as_echo "no" >&6; }
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23671 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23673 /* end confdefs.h. */
23674 #include <netinet/in.h>
23676 main ()
23678 struct ipv6_mreq mreq6;
23680 return 0;
23682 _ACEOF
23683 if ac_fn_c_try_compile "$LINENO"; then :
23685 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23688 $as_echo "yes" >&6; }
23689 else
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23691 $as_echo "no" >&6; }
23693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23696 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699 #include <netinet/in.h>
23701 main ()
23703 struct sockaddr_in6 addr6;
23705 return 0;
23707 _ACEOF
23708 if ac_fn_c_try_compile "$LINENO"; then :
23710 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23713 $as_echo "yes" >&6; }
23714 else
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23716 $as_echo "no" >&6; }
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23721 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23724 #define _POSIX_PII_SOCKET
23725 #include <sys/types.h>
23726 #include <sys/socket.h>
23728 main ()
23730 socklen_t x = 5;
23732 return 0;
23734 _ACEOF
23735 if ac_fn_c_try_compile "$LINENO"; then :
23737 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23740 $as_echo "yes" >&6; }
23741 else
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23743 $as_echo "no" >&6; }
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23748 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23750 /* end confdefs.h. */
23751 #include <time.h>
23753 main ()
23755 struct tm tim; tim.tm_gmtoff = 0;
23757 return 0;
23759 _ACEOF
23760 if ac_fn_c_try_compile "$LINENO"; then :
23762 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23765 $as_echo "yes" >&6; }
23766 else
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768 $as_echo "no" >&6; }
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23770 $as_echo_n "checking for global timezone variable... " >&6; }
23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772 /* end confdefs.h. */
23773 #include <time.h>
23775 main ()
23777 void i(){long z2 = 2*timezone;}
23779 return 0;
23781 _ACEOF
23782 if ac_fn_c_try_compile "$LINENO"; then :
23784 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23787 $as_echo "yes" >&6; }
23788 else
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23790 $as_echo "no" >&6; }
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23792 $as_echo_n "checking for global _timezone variable... " >&6; }
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23795 #include <time.h>
23797 main ()
23799 long z2 = _timezone;
23801 return 0;
23803 _ACEOF
23804 if ac_fn_c_try_compile "$LINENO"; then :
23806 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23809 $as_echo "yes" >&6; }
23810 else
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23812 $as_echo "no" >&6; }
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 for ac_prog in perl
23822 # Extract the first word of "$ac_prog", so it can be a program name with args.
23823 set dummy $ac_prog; ac_word=$2
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23825 $as_echo_n "checking for $ac_word... " >&6; }
23826 if test "${ac_cv_prog_PERL+set}" = set; then :
23827 $as_echo_n "(cached) " >&6
23828 else
23829 if test -n "$PERL"; then
23830 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23831 else
23832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23833 for as_dir in $PATH
23835 IFS=$as_save_IFS
23836 test -z "$as_dir" && as_dir=.
23837 for ac_exec_ext in '' $ac_executable_extensions; do
23838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23839 ac_cv_prog_PERL="$ac_prog"
23840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23841 break 2
23843 done
23844 done
23845 IFS=$as_save_IFS
23849 PERL=$ac_cv_prog_PERL
23850 if test -n "$PERL"; then
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23852 $as_echo "$PERL" >&6; }
23853 else
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855 $as_echo "no" >&6; }
23859 test -n "$PERL" && break
23860 done
23861 test -n "$PERL" || PERL="false"
23864 SYSDEP_SOURCES=
23865 SIGNAL_HANDLER_AUX=
23867 case "${host}" in
23868 i?86-*-linux*)
23869 SIGNAL_HANDLER=include/i386-signal.h
23871 sparc*-sun-solaris*)
23872 SIGNAL_HANDLER=include/sparc-signal.h
23874 # ia64-*)
23875 # SYSDEP_SOURCES=sysdep/ia64.c
23876 # test -d sysdep || mkdir sysdep
23877 # ;;
23878 hppa*-*-linux*)
23879 SIGNAL_HANDLER=include/pa-signal.h
23881 hppa*-hp-hpux*)
23882 SIGNAL_HANDLER=include/hppa-signal.h
23884 ia64-*-linux*)
23885 SIGNAL_HANDLER=include/dwarf2-signal.h
23887 powerpc*-*-linux*)
23888 SIGNAL_HANDLER=include/powerpc-signal.h
23890 alpha*-*-linux*)
23891 SIGNAL_HANDLER=include/dwarf2-signal.h
23893 s390*-*-linux*)
23894 SIGNAL_HANDLER=include/s390-signal.h
23896 x86_64*-*-linux*)
23897 SIGNAL_HANDLER=include/x86_64-signal.h
23898 SIGNAL_HANDLER_AUX=include/i386-signal.h
23900 sparc*-*-linux*)
23901 SIGNAL_HANDLER=include/dwarf2-signal.h
23903 sh*-*-linux*)
23904 SIGNAL_HANDLER=include/sh-signal.h
23906 *mingw*)
23907 SIGNAL_HANDLER=include/win32-signal.h
23909 mips*-*-linux*)
23910 SIGNAL_HANDLER=include/mips-signal.h
23912 m68*-*-linux*)
23913 SIGNAL_HANDLER=include/dwarf2-signal.h
23915 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23916 SIGNAL_HANDLER=include/darwin-signal.h
23918 powerpc*-*-aix*)
23919 SIGNAL_HANDLER=include/aix-signal.h
23922 SIGNAL_HANDLER=include/default-signal.h
23924 esac
23926 # If we're using sjlj exceptions, forget what we just learned.
23927 if test "$enable_sjlj_exceptions" = yes; then
23928 SIGNAL_HANDLER=include/default-signal.h
23929 SIGNAL_HANDLER_AUX=
23934 if test -z "$SIGNAL_HANDLER_AUX"; then
23935 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23938 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23941 if test "${multilib}" = "yes"; then
23942 multilib_arg="--enable-multilib"
23943 else
23944 multilib_arg=
23947 # See if we support thread-local storage.
23950 # Check whether --enable-tls was given.
23951 if test "${enable_tls+set}" = set; then :
23952 enableval=$enable_tls;
23953 case "$enableval" in
23954 yes|no) ;;
23955 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23956 esac
23958 else
23959 enable_tls=yes
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23964 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23965 if test "${gcc_cv_have_tls+set}" = set; then :
23966 $as_echo_n "(cached) " >&6
23967 else
23969 if test "$cross_compiling" = yes; then :
23970 if test x$gcc_no_link = xyes; then
23971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h. */
23975 __thread int a; int b; int main() { return a = b; }
23976 _ACEOF
23977 if ac_fn_c_try_link "$LINENO"; then :
23978 chktls_save_LDFLAGS="$LDFLAGS"
23979 case $host in
23980 *-*-linux*)
23981 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23983 esac
23984 chktls_save_CFLAGS="$CFLAGS"
23985 CFLAGS="-fPIC $CFLAGS"
23986 if test x$gcc_no_link = xyes; then
23987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h. */
23991 int f() { return 0; }
23992 _ACEOF
23993 if ac_fn_c_try_link "$LINENO"; then :
23994 if test x$gcc_no_link = xyes; then
23995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998 /* end confdefs.h. */
23999 __thread int a; int b; int f() { return a = b; }
24000 _ACEOF
24001 if ac_fn_c_try_link "$LINENO"; then :
24002 gcc_cv_have_tls=yes
24003 else
24004 gcc_cv_have_tls=no
24006 rm -f core conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
24008 else
24009 gcc_cv_have_tls=yes
24011 rm -f core conftest.err conftest.$ac_objext \
24012 conftest$ac_exeext conftest.$ac_ext
24013 CFLAGS="$chktls_save_CFLAGS"
24014 LDFLAGS="$chktls_save_LDFLAGS"
24015 else
24016 gcc_cv_have_tls=no
24018 rm -f core conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext conftest.$ac_ext
24022 else
24023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24024 /* end confdefs.h. */
24025 __thread int a; int b; int main() { return a = b; }
24026 _ACEOF
24027 if ac_fn_c_try_run "$LINENO"; then :
24028 chktls_save_LDFLAGS="$LDFLAGS"
24029 LDFLAGS="-static $LDFLAGS"
24030 if test x$gcc_no_link = xyes; then
24031 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24034 /* end confdefs.h. */
24035 int main() { return 0; }
24036 _ACEOF
24037 if ac_fn_c_try_link "$LINENO"; then :
24038 if test "$cross_compiling" = yes; then :
24039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24041 as_fn_error "cannot run test program while cross compiling
24042 See \`config.log' for more details." "$LINENO" 5; }
24043 else
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24046 __thread int a; int b; int main() { return a = b; }
24047 _ACEOF
24048 if ac_fn_c_try_run "$LINENO"; then :
24049 gcc_cv_have_tls=yes
24050 else
24051 gcc_cv_have_tls=no
24053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24054 conftest.$ac_objext conftest.beam conftest.$ac_ext
24057 else
24058 gcc_cv_have_tls=yes
24060 rm -f core conftest.err conftest.$ac_objext \
24061 conftest$ac_exeext conftest.$ac_ext
24062 LDFLAGS="$chktls_save_LDFLAGS"
24063 if test $gcc_cv_have_tls = yes; then
24064 chktls_save_CFLAGS="$CFLAGS"
24065 thread_CFLAGS=failed
24066 for flag in '' '-pthread' '-lpthread'; do
24067 CFLAGS="$flag $chktls_save_CFLAGS"
24068 if test x$gcc_no_link = xyes; then
24069 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24072 /* end confdefs.h. */
24073 #include <pthread.h>
24074 void *g(void *d) { return NULL; }
24076 main ()
24078 pthread_t t; pthread_create(&t,NULL,g,NULL);
24080 return 0;
24082 _ACEOF
24083 if ac_fn_c_try_link "$LINENO"; then :
24084 thread_CFLAGS="$flag"
24086 rm -f core conftest.err conftest.$ac_objext \
24087 conftest$ac_exeext conftest.$ac_ext
24088 if test "X$thread_CFLAGS" != Xfailed; then
24089 break
24091 done
24092 CFLAGS="$chktls_save_CFLAGS"
24093 if test "X$thread_CFLAGS" != Xfailed; then
24094 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24095 if test "$cross_compiling" = yes; then :
24096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24098 as_fn_error "cannot run test program while cross compiling
24099 See \`config.log' for more details." "$LINENO" 5; }
24100 else
24101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102 /* end confdefs.h. */
24103 #include <pthread.h>
24104 __thread int a;
24105 static int *a_in_other_thread;
24106 static void *
24107 thread_func (void *arg)
24109 a_in_other_thread = &a;
24110 return (void *)0;
24113 main ()
24115 pthread_t thread;
24116 void *thread_retval;
24117 int *a_in_main_thread;
24118 if (pthread_create (&thread, (pthread_attr_t *)0,
24119 thread_func, (void *)0))
24120 return 0;
24121 a_in_main_thread = &a;
24122 if (pthread_join (thread, &thread_retval))
24123 return 0;
24124 return (a_in_other_thread == a_in_main_thread);
24126 return 0;
24128 _ACEOF
24129 if ac_fn_c_try_run "$LINENO"; then :
24130 gcc_cv_have_tls=yes
24131 else
24132 gcc_cv_have_tls=no
24134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24135 conftest.$ac_objext conftest.beam conftest.$ac_ext
24138 CFLAGS="$chktls_save_CFLAGS"
24141 else
24142 gcc_cv_have_tls=no
24144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24145 conftest.$ac_objext conftest.beam conftest.$ac_ext
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24150 $as_echo "$gcc_cv_have_tls" >&6; }
24151 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24153 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24157 # For _Unwind_GetIPInfo.
24160 # Check whether --with-system-libunwind was given.
24161 if test "${with_system_libunwind+set}" = set; then :
24162 withval=$with_system_libunwind;
24165 # If system-libunwind was not specifically set, pick a default setting.
24166 if test x$with_system_libunwind = x; then
24167 case ${target} in
24168 ia64-*-hpux*) with_system_libunwind=yes ;;
24169 *) with_system_libunwind=no ;;
24170 esac
24172 # Based on system-libunwind and target, do we have ipinfo?
24173 if test x$with_system_libunwind = xyes; then
24174 case ${target} in
24175 ia64-*-*) have_unwind_getipinfo=no ;;
24176 *) have_unwind_getipinfo=yes ;;
24177 esac
24178 else
24179 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24181 case ${target} in
24182 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24183 *) have_unwind_getipinfo=yes ;;
24184 esac
24188 if test x$have_unwind_getipinfo = xyes; then
24190 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24195 # See if linker supports anonymous version scripts.
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24197 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24198 if test "${libjava_cv_anon_version_script+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24201 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24202 libjava_cv_anon_version_script=no
24203 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24204 echo '{ global: globalsymb*; local: *; };' > conftest.map
24205 if test x$gcc_no_link = xyes; then
24206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24209 /* end confdefs.h. */
24210 void globalsymbol (void) {} void localsymbol (void) {}
24212 main ()
24216 return 0;
24218 _ACEOF
24219 if ac_fn_c_try_link "$LINENO"; then :
24220 libjava_cv_anon_version_script=yes
24222 rm -f core conftest.err conftest.$ac_objext \
24223 conftest$ac_exeext conftest.$ac_ext
24224 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24228 $as_echo "$libjava_cv_anon_version_script" >&6; }
24229 if test "$libjava_cv_anon_version_script" = yes; then
24230 ANONVERSCRIPT_TRUE=
24231 ANONVERSCRIPT_FALSE='#'
24232 else
24233 ANONVERSCRIPT_TRUE='#'
24234 ANONVERSCRIPT_FALSE=
24238 # Check if linker supports static linking on a per library basis
24239 LD_START_STATIC_SPEC=
24240 LD_FINISH_STATIC_SPEC=
24241 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24242 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24243 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24244 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24250 here=`${PWDCMD-pwd}`
24253 # We get this from the environment.
24257 # Check whether --with-python-dir was given.
24258 if test "${with_python_dir+set}" = set; then :
24259 withval=$with_python_dir; with_python_dir=$withval
24260 else
24261 with_python_dir=""
24265 if test "x${with_python_dir}" = "x"
24266 then
24267 # Needed for installing Python modules during make install.
24268 python_mod_dir="\${prefix}/share/python"
24269 # Needed for substituting into aot-compile*
24270 python_mod_dir_expanded="${prefix}/share/python"
24271 else
24272 python_mod_dir="\${prefix}${with_python_dir}"
24273 python_mod_dir_expanded="${prefix}${with_python_dir}"
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24276 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24280 # needed for aot-compile-rpm
24281 MAKE=`which make`
24284 # Check whether --enable-aot-compile-rpm was given.
24285 if test "${enable_aot_compile_rpm+set}" = set; then :
24286 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24287 yes) AOT_RPM_ENABLED=yes ;;
24288 no) AOT_RPM_ENABLED=no ;;
24289 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24290 esac
24291 else
24292 AOT_RPM_ENABLED=no
24296 if test "x${AOT_RPM_ENABLED}" = xyes; then
24297 INSTALL_AOT_RPM_TRUE=
24298 INSTALL_AOT_RPM_FALSE='#'
24299 else
24300 INSTALL_AOT_RPM_TRUE='#'
24301 INSTALL_AOT_RPM_FALSE=
24305 # Check whether --enable-java-home was given.
24306 if test "${enable_java_home+set}" = set; then :
24307 enableval=$enable_java_home; case "${enableval}" in
24308 yes) JAVA_HOME_ENABLED=yes ;;
24309 no) JAVA_HOME_ENABLED=no ;;
24310 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24311 esac
24312 else
24313 JAVA_HOME_ENABLED=no
24317 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24318 CREATE_JAVA_HOME_TRUE=
24319 CREATE_JAVA_HOME_FALSE='#'
24320 else
24321 CREATE_JAVA_HOME_TRUE='#'
24322 CREATE_JAVA_HOME_FALSE=
24326 # Only do these checks if java-home above is enabled.
24327 if test "x${JAVA_HOME_ENABLED}" = xyes
24328 then
24331 # Check whether --with-gcc-suffix was given.
24332 if test "${with_gcc_suffix+set}" = set; then :
24333 withval=$with_gcc_suffix; gcc_suffix=$withval
24334 else
24335 gcc_suffix=""
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24339 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24343 # Check whether --with-arch-directory was given.
24344 if test "${with_arch_directory+set}" = set; then :
24345 withval=$with_arch_directory; host_cpu=$withval
24346 else
24347 host_cpu=""
24352 # Check whether --with-os-directory was given.
24353 if test "${with_os_directory+set}" = set; then :
24354 withval=$with_os_directory; host_os=$withval
24355 else
24356 host_os=""
24361 # Check whether --with-origin-name was given.
24362 if test "${with_origin_name+set}" = set; then :
24363 withval=$with_origin_name; origin_name=$withval
24364 else
24365 origin_name=gcj${gcc_suffix}
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24369 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24372 # Check whether --with-arch-suffix was given.
24373 if test "${with_arch_suffix+set}" = set; then :
24374 withval=$with_arch_suffix; arch_suffix=$withval
24375 else
24376 arch_suffix=""
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24380 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24383 # Check whether --with-jvm-root-dir was given.
24384 if test "${with_jvm_root_dir+set}" = set; then :
24385 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24386 else
24387 jvm_root_dir="\${prefix}/lib/jvm"
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24391 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24394 # Check whether --with-jvm-jar-dir was given.
24395 if test "${with_jvm_jar_dir+set}" = set; then :
24396 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24397 else
24398 jvm_jar_dir=\${prefix}/lib/jvm-exports
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24402 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24404 JAVA_VERSION=1.5.0
24405 BUILD_VERSION=0
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24409 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24411 jre_dir=jre
24412 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24413 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24415 JVM_ROOT_DIR=${jvm_root_dir}
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24418 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24420 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24423 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24425 JVM_JAR_DIR=${jvm_jar_dir}
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24428 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24430 JRE_DIR=${jre_dir}
24433 JRE_LNK=${jre_lnk}
24436 SDK_LNK=${sdk_lnk}
24439 SDK_BIN_DIR=${jvm_root_dir}/bin
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24442 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24444 SDK_LIB_DIR=${jvm_root_dir}/lib
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24447 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24449 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24452 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24454 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24457 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24459 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24462 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24464 # Find gcj prefix using gcj found in PATH.
24465 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24467 # Where do the gcj binaries live?
24468 # For jhbuild based builds, they all live in a sibling of bin called
24469 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24470 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24473 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24476 $as_echo "host is ${host}" >&6; }
24477 if test "x${host_cpu}" = "x"
24478 then
24479 case ${host} in
24480 *-mingw* | *-cygwin*)
24481 host_cpu=x86;;
24482 i486-* | i586-* | i686-*)
24483 host_cpu=i386;;
24484 x86_64-*)
24485 host_cpu=amd64;;
24487 host_cpu=${host_cpu};;
24488 esac
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24491 $as_echo "arch directory: ${host_cpu}" >&6; }
24492 CPU=${host_cpu}
24495 if test "x${host_os}" = "x"
24496 then
24497 case ${host} in
24498 *-mingw* | *-cygwin*)
24499 host_os=win32;;
24500 *-linux*)
24501 host_os=linux;;
24503 host_os=${host_os};;
24504 esac
24506 echo os directory: ${host_os}
24507 OS=${host_os}
24510 # make an expanded $libdir, for substituting into
24511 # scripts (and other non-Makefile things).
24512 LIBDIR=$libdir
24513 if test "x${exec_prefix}" = "xNONE"
24514 then
24515 lib_exec_prefix=$prefix
24516 else
24517 lib_exec_prefix=$exec_prefix
24519 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24523 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"
24526 if test ${multilib} = yes; then
24527 multilib_arg="--enable-multilib"
24528 else
24529 multilib_arg=
24532 ac_config_files="$ac_config_files scripts/jar"
24534 cat >confcache <<\_ACEOF
24535 # This file is a shell script that caches the results of configure
24536 # tests run on this system so they can be shared between configure
24537 # scripts and configure runs, see configure's option --config-cache.
24538 # It is not useful on other systems. If it contains results you don't
24539 # want to keep, you may remove or edit it.
24541 # config.status only pays attention to the cache file if you give it
24542 # the --recheck option to rerun configure.
24544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24546 # following values.
24548 _ACEOF
24550 # The following way of writing the cache mishandles newlines in values,
24551 # but we know of no workaround that is simple, portable, and efficient.
24552 # So, we kill variables containing newlines.
24553 # Ultrix sh set writes to stderr and can't be redirected directly,
24554 # and sets the high bit in the cache file unless we assign to the vars.
24556 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24557 eval ac_val=\$$ac_var
24558 case $ac_val in #(
24559 *${as_nl}*)
24560 case $ac_var in #(
24561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24563 esac
24564 case $ac_var in #(
24565 _ | IFS | as_nl) ;; #(
24566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24567 *) { eval $ac_var=; unset $ac_var;} ;;
24568 esac ;;
24569 esac
24570 done
24572 (set) 2>&1 |
24573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24574 *${as_nl}ac_space=\ *)
24575 # `set' does not quote correctly, so add quotes: double-quote
24576 # substitution turns \\\\ into \\, and sed turns \\ into \.
24577 sed -n \
24578 "s/'/'\\\\''/g;
24579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24580 ;; #(
24582 # `set' quotes correctly as required by POSIX, so do not add quotes.
24583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24585 esac |
24586 sort
24588 sed '
24589 /^ac_cv_env_/b end
24590 t clear
24591 :clear
24592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24593 t end
24594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24595 :end' >>confcache
24596 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24597 if test -w "$cache_file"; then
24598 test "x$cache_file" != "x/dev/null" &&
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24600 $as_echo "$as_me: updating cache $cache_file" >&6;}
24601 cat confcache >$cache_file
24602 else
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24607 rm -f confcache
24609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24610 # Let make expand exec_prefix.
24611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24613 DEFS=-DHAVE_CONFIG_H
24615 ac_libobjs=
24616 ac_ltlibobjs=
24617 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24618 # 1. Remove the extension, and $U if already installed.
24619 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24620 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24621 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24622 # will be set to the directory where LIBOBJS objects are built.
24623 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24624 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24625 done
24626 LIBOBJS=$ac_libobjs
24628 LTLIBOBJS=$ac_ltlibobjs
24631 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24632 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24635 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24636 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24639 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24640 as_fn_error "conditional \"AMDEP\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24643 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24644 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24647 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24648 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24651 if test -n "$EXEEXT"; then
24652 am__EXEEXT_TRUE=
24653 am__EXEEXT_FALSE='#'
24654 else
24655 am__EXEEXT_TRUE='#'
24656 am__EXEEXT_FALSE=
24659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24660 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24663 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24664 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24667 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24668 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24671 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24672 as_fn_error "conditional \"X_AWT\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24675 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24676 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24679 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24680 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24683 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24684 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24687 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24688 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24691 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24692 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24695 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24696 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24699 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24700 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24703 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24704 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24707 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24708 as_fn_error "conditional \"INTERPRETER\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24711 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24712 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24716 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24719 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24720 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24723 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24724 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24727 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24728 as_fn_error "conditional \"USING_NOGC\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24731 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24732 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24735 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24736 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24739 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24740 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24743 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24744 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24747 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24748 as_fn_error "conditional \"USING_GCC\" was never defined.
24749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24751 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24752 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24756 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24757 as_fn_error "conditional \"NATIVE\" was never defined.
24758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24760 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24761 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24764 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24765 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24768 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24769 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24772 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24773 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24776 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24777 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24780 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24781 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24785 : ${CONFIG_STATUS=./config.status}
24786 ac_write_fail=0
24787 ac_clean_files_save=$ac_clean_files
24788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24790 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24791 as_write_fail=0
24792 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24793 #! $SHELL
24794 # Generated by $as_me.
24795 # Run this file to recreate the current configuration.
24796 # Compiler output produced by configure, useful for debugging
24797 # configure, is in config.log if it exists.
24799 debug=false
24800 ac_cs_recheck=false
24801 ac_cs_silent=false
24803 SHELL=\${CONFIG_SHELL-$SHELL}
24804 export SHELL
24805 _ASEOF
24806 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24807 ## -------------------- ##
24808 ## M4sh Initialization. ##
24809 ## -------------------- ##
24811 # Be more Bourne compatible
24812 DUALCASE=1; export DUALCASE # for MKS sh
24813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24814 emulate sh
24815 NULLCMD=:
24816 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24817 # is contrary to our usage. Disable this feature.
24818 alias -g '${1+"$@"}'='"$@"'
24819 setopt NO_GLOB_SUBST
24820 else
24821 case `(set -o) 2>/dev/null` in #(
24822 *posix*) :
24823 set -o posix ;; #(
24824 *) :
24826 esac
24830 as_nl='
24832 export as_nl
24833 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24834 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24836 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24837 # Prefer a ksh shell builtin over an external printf program on Solaris,
24838 # but without wasting forks for bash or zsh.
24839 if test -z "$BASH_VERSION$ZSH_VERSION" \
24840 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24841 as_echo='print -r --'
24842 as_echo_n='print -rn --'
24843 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24844 as_echo='printf %s\n'
24845 as_echo_n='printf %s'
24846 else
24847 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24848 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24849 as_echo_n='/usr/ucb/echo -n'
24850 else
24851 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24852 as_echo_n_body='eval
24853 arg=$1;
24854 case $arg in #(
24855 *"$as_nl"*)
24856 expr "X$arg" : "X\\(.*\\)$as_nl";
24857 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24858 esac;
24859 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24861 export as_echo_n_body
24862 as_echo_n='sh -c $as_echo_n_body as_echo'
24864 export as_echo_body
24865 as_echo='sh -c $as_echo_body as_echo'
24868 # The user is always right.
24869 if test "${PATH_SEPARATOR+set}" != set; then
24870 PATH_SEPARATOR=:
24871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24872 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24873 PATH_SEPARATOR=';'
24878 # IFS
24879 # We need space, tab and new line, in precisely that order. Quoting is
24880 # there to prevent editors from complaining about space-tab.
24881 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24882 # splitting by setting IFS to empty value.)
24883 IFS=" "" $as_nl"
24885 # Find who we are. Look in the path if we contain no directory separator.
24886 case $0 in #((
24887 *[\\/]* ) as_myself=$0 ;;
24888 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24889 for as_dir in $PATH
24891 IFS=$as_save_IFS
24892 test -z "$as_dir" && as_dir=.
24893 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24894 done
24895 IFS=$as_save_IFS
24898 esac
24899 # We did not find ourselves, most probably we were run as `sh COMMAND'
24900 # in which case we are not to be found in the path.
24901 if test "x$as_myself" = x; then
24902 as_myself=$0
24904 if test ! -f "$as_myself"; then
24905 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24906 exit 1
24909 # Unset variables that we do not need and which cause bugs (e.g. in
24910 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24911 # suppresses any "Segmentation fault" message there. '((' could
24912 # trigger a bug in pdksh 5.2.14.
24913 for as_var in BASH_ENV ENV MAIL MAILPATH
24914 do eval test x\${$as_var+set} = xset \
24915 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24916 done
24917 PS1='$ '
24918 PS2='> '
24919 PS4='+ '
24921 # NLS nuisances.
24922 LC_ALL=C
24923 export LC_ALL
24924 LANGUAGE=C
24925 export LANGUAGE
24927 # CDPATH.
24928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24931 # as_fn_error ERROR [LINENO LOG_FD]
24932 # ---------------------------------
24933 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24934 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24935 # script with status $?, using 1 if that was 0.
24936 as_fn_error ()
24938 as_status=$?; test $as_status -eq 0 && as_status=1
24939 if test "$3"; then
24940 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24941 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24943 $as_echo "$as_me: error: $1" >&2
24944 as_fn_exit $as_status
24945 } # as_fn_error
24948 # as_fn_set_status STATUS
24949 # -----------------------
24950 # Set $? to STATUS, without forking.
24951 as_fn_set_status ()
24953 return $1
24954 } # as_fn_set_status
24956 # as_fn_exit STATUS
24957 # -----------------
24958 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24959 as_fn_exit ()
24961 set +e
24962 as_fn_set_status $1
24963 exit $1
24964 } # as_fn_exit
24966 # as_fn_unset VAR
24967 # ---------------
24968 # Portably unset VAR.
24969 as_fn_unset ()
24971 { eval $1=; unset $1;}
24973 as_unset=as_fn_unset
24974 # as_fn_append VAR VALUE
24975 # ----------------------
24976 # Append the text in VALUE to the end of the definition contained in VAR. Take
24977 # advantage of any shell optimizations that allow amortized linear growth over
24978 # repeated appends, instead of the typical quadratic growth present in naive
24979 # implementations.
24980 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24981 eval 'as_fn_append ()
24983 eval $1+=\$2
24985 else
24986 as_fn_append ()
24988 eval $1=\$$1\$2
24990 fi # as_fn_append
24992 # as_fn_arith ARG...
24993 # ------------------
24994 # Perform arithmetic evaluation on the ARGs, and store the result in the
24995 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24996 # must be portable across $(()) and expr.
24997 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24998 eval 'as_fn_arith ()
25000 as_val=$(( $* ))
25002 else
25003 as_fn_arith ()
25005 as_val=`expr "$@" || test $? -eq 1`
25007 fi # as_fn_arith
25010 if expr a : '\(a\)' >/dev/null 2>&1 &&
25011 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25012 as_expr=expr
25013 else
25014 as_expr=false
25017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25018 as_basename=basename
25019 else
25020 as_basename=false
25023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25024 as_dirname=dirname
25025 else
25026 as_dirname=false
25029 as_me=`$as_basename -- "$0" ||
25030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25031 X"$0" : 'X\(//\)$' \| \
25032 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25033 $as_echo X/"$0" |
25034 sed '/^.*\/\([^/][^/]*\)\/*$/{
25035 s//\1/
25038 /^X\/\(\/\/\)$/{
25039 s//\1/
25042 /^X\/\(\/\).*/{
25043 s//\1/
25046 s/.*/./; q'`
25048 # Avoid depending upon Character Ranges.
25049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25052 as_cr_digits='0123456789'
25053 as_cr_alnum=$as_cr_Letters$as_cr_digits
25055 ECHO_C= ECHO_N= ECHO_T=
25056 case `echo -n x` in #(((((
25057 -n*)
25058 case `echo 'xy\c'` in
25059 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25060 xy) ECHO_C='\c';;
25061 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25062 ECHO_T=' ';;
25063 esac;;
25065 ECHO_N='-n';;
25066 esac
25068 rm -f conf$$ conf$$.exe conf$$.file
25069 if test -d conf$$.dir; then
25070 rm -f conf$$.dir/conf$$.file
25071 else
25072 rm -f conf$$.dir
25073 mkdir conf$$.dir 2>/dev/null
25075 if (echo >conf$$.file) 2>/dev/null; then
25076 if ln -s conf$$.file conf$$ 2>/dev/null; then
25077 as_ln_s='ln -s'
25078 # ... but there are two gotchas:
25079 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25080 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25081 # In both cases, we have to default to `cp -p'.
25082 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25083 as_ln_s='cp -p'
25084 elif ln conf$$.file conf$$ 2>/dev/null; then
25085 as_ln_s=ln
25086 else
25087 as_ln_s='cp -p'
25089 else
25090 as_ln_s='cp -p'
25092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25093 rmdir conf$$.dir 2>/dev/null
25096 # as_fn_mkdir_p
25097 # -------------
25098 # Create "$as_dir" as a directory, including parents if necessary.
25099 as_fn_mkdir_p ()
25102 case $as_dir in #(
25103 -*) as_dir=./$as_dir;;
25104 esac
25105 test -d "$as_dir" || eval $as_mkdir_p || {
25106 as_dirs=
25107 while :; do
25108 case $as_dir in #(
25109 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25110 *) as_qdir=$as_dir;;
25111 esac
25112 as_dirs="'$as_qdir' $as_dirs"
25113 as_dir=`$as_dirname -- "$as_dir" ||
25114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25115 X"$as_dir" : 'X\(//\)[^/]' \| \
25116 X"$as_dir" : 'X\(//\)$' \| \
25117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25118 $as_echo X"$as_dir" |
25119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25120 s//\1/
25123 /^X\(\/\/\)[^/].*/{
25124 s//\1/
25127 /^X\(\/\/\)$/{
25128 s//\1/
25131 /^X\(\/\).*/{
25132 s//\1/
25135 s/.*/./; q'`
25136 test -d "$as_dir" && break
25137 done
25138 test -z "$as_dirs" || eval "mkdir $as_dirs"
25139 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25142 } # as_fn_mkdir_p
25143 if mkdir -p . 2>/dev/null; then
25144 as_mkdir_p='mkdir -p "$as_dir"'
25145 else
25146 test -d ./-p && rmdir ./-p
25147 as_mkdir_p=false
25150 if test -x / >/dev/null 2>&1; then
25151 as_test_x='test -x'
25152 else
25153 if ls -dL / >/dev/null 2>&1; then
25154 as_ls_L_option=L
25155 else
25156 as_ls_L_option=
25158 as_test_x='
25159 eval sh -c '\''
25160 if test -d "$1"; then
25161 test -d "$1/.";
25162 else
25163 case $1 in #(
25164 -*)set "./$1";;
25165 esac;
25166 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25167 ???[sx]*):;;*)false;;esac;fi
25168 '\'' sh
25171 as_executable_p=$as_test_x
25173 # Sed expression to map a string onto a valid CPP name.
25174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25176 # Sed expression to map a string onto a valid variable name.
25177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25180 exec 6>&1
25181 ## ----------------------------------- ##
25182 ## Main body of $CONFIG_STATUS script. ##
25183 ## ----------------------------------- ##
25184 _ASEOF
25185 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25188 # Save the log message, to keep $0 and so on meaningful, and to
25189 # report actual input values of CONFIG_FILES etc. instead of their
25190 # values after options handling.
25191 ac_log="
25192 This file was extended by libjava $as_me version-unused, which was
25193 generated by GNU Autoconf 2.64. Invocation command line was
25195 CONFIG_FILES = $CONFIG_FILES
25196 CONFIG_HEADERS = $CONFIG_HEADERS
25197 CONFIG_LINKS = $CONFIG_LINKS
25198 CONFIG_COMMANDS = $CONFIG_COMMANDS
25199 $ $0 $@
25201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25204 _ACEOF
25206 case $ac_config_files in *"
25207 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25208 esac
25210 case $ac_config_headers in *"
25211 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25212 esac
25215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25216 # Files that config.status was made for.
25217 config_files="$ac_config_files"
25218 config_headers="$ac_config_headers"
25219 config_links="$ac_config_links"
25220 config_commands="$ac_config_commands"
25222 _ACEOF
25224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25225 ac_cs_usage="\
25226 \`$as_me' instantiates files and other configuration actions
25227 from templates according to the current configuration. Unless the files
25228 and actions are specified as TAGs, all are instantiated by default.
25230 Usage: $0 [OPTION]... [TAG]...
25232 -h, --help print this help, then exit
25233 -V, --version print version number and configuration settings, then exit
25234 -q, --quiet, --silent
25235 do not print progress messages
25236 -d, --debug don't remove temporary files
25237 --recheck update $as_me by reconfiguring in the same conditions
25238 --file=FILE[:TEMPLATE]
25239 instantiate the configuration file FILE
25240 --header=FILE[:TEMPLATE]
25241 instantiate the configuration header FILE
25243 Configuration files:
25244 $config_files
25246 Configuration headers:
25247 $config_headers
25249 Configuration links:
25250 $config_links
25252 Configuration commands:
25253 $config_commands
25255 Report bugs to the package provider."
25257 _ACEOF
25258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25259 ac_cs_version="\\
25260 libjava config.status version-unused
25261 configured by $0, generated by GNU Autoconf 2.64,
25262 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25264 Copyright (C) 2009 Free Software Foundation, Inc.
25265 This config.status script is free software; the Free Software Foundation
25266 gives unlimited permission to copy, distribute and modify it."
25268 ac_pwd='$ac_pwd'
25269 srcdir='$srcdir'
25270 INSTALL='$INSTALL'
25271 MKDIR_P='$MKDIR_P'
25272 AWK='$AWK'
25273 test -n "\$AWK" || AWK=awk
25274 _ACEOF
25276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25277 # The default lists apply if the user does not specify any file.
25278 ac_need_defaults=:
25279 while test $# != 0
25281 case $1 in
25282 --*=*)
25283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25284 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25285 ac_shift=:
25288 ac_option=$1
25289 ac_optarg=$2
25290 ac_shift=shift
25292 esac
25294 case $ac_option in
25295 # Handling of the options.
25296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25297 ac_cs_recheck=: ;;
25298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25299 $as_echo "$ac_cs_version"; exit ;;
25300 --debug | --debu | --deb | --de | --d | -d )
25301 debug=: ;;
25302 --file | --fil | --fi | --f )
25303 $ac_shift
25304 case $ac_optarg in
25305 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25306 esac
25307 as_fn_append CONFIG_FILES " '$ac_optarg'"
25308 ac_need_defaults=false;;
25309 --header | --heade | --head | --hea )
25310 $ac_shift
25311 case $ac_optarg in
25312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25313 esac
25314 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25315 ac_need_defaults=false;;
25316 --he | --h)
25317 # Conflict between --help and --header
25318 as_fn_error "ambiguous option: \`$1'
25319 Try \`$0 --help' for more information.";;
25320 --help | --hel | -h )
25321 $as_echo "$ac_cs_usage"; exit ;;
25322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25324 ac_cs_silent=: ;;
25326 # This is an error.
25327 -*) as_fn_error "unrecognized option: \`$1'
25328 Try \`$0 --help' for more information." ;;
25330 *) as_fn_append ac_config_targets " $1"
25331 ac_need_defaults=false ;;
25333 esac
25334 shift
25335 done
25337 ac_configure_extra_args=
25339 if $ac_cs_silent; then
25340 exec 6>/dev/null
25341 ac_configure_extra_args="$ac_configure_extra_args --silent"
25344 _ACEOF
25345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25346 if \$ac_cs_recheck; then
25347 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25348 shift
25349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25350 CONFIG_SHELL='$SHELL'
25351 export CONFIG_SHELL
25352 exec "\$@"
25355 _ACEOF
25356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25357 exec 5>>config.log
25359 echo
25360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25361 ## Running $as_me. ##
25362 _ASBOX
25363 $as_echo "$ac_log"
25364 } >&5
25366 _ACEOF
25367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25369 # INIT-COMMANDS
25372 srcdir="$srcdir"
25373 host="$host"
25374 target="$target"
25375 with_multisubdir="$with_multisubdir"
25376 with_multisrctop="$with_multisrctop"
25377 with_target_subdir="$with_target_subdir"
25378 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25379 multi_basedir="$multi_basedir"
25380 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25381 CC="$CC"
25382 CXX="$CXX"
25383 GFORTRAN="$GFORTRAN"
25384 GCJ="$GCJ"
25385 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25388 # The HP-UX ksh and POSIX shell print the target directory to stdout
25389 # if CDPATH is set.
25390 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25392 sed_quote_subst='$sed_quote_subst'
25393 double_quote_subst='$double_quote_subst'
25394 delay_variable_subst='$delay_variable_subst'
25395 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25396 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25397 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25398 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25399 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25400 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25401 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25402 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25403 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25404 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25405 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25406 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25407 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25408 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25409 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25410 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25411 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25412 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25413 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25414 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25415 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25416 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25417 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25418 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25419 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25420 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25421 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25422 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25423 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25424 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25425 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25426 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25427 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25428 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25429 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25430 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25431 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25432 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25433 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25434 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25435 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25436 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25437 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25438 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25439 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"`'
25440 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"`'
25441 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25442 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25443 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25444 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25445 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25446 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25447 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25448 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25449 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25450 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25451 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25452 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25453 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25454 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25455 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25456 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25457 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25458 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25459 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25460 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25461 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25462 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25463 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25464 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25465 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25466 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25467 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25468 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25469 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25470 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25471 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25472 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25473 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25474 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25475 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25476 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25477 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25478 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25479 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25480 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25481 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25482 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25483 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25484 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25485 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25486 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25487 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25488 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25489 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25490 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25491 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25492 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25493 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25494 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25495 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25496 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25497 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25498 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25499 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25500 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25501 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25502 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25503 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25504 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25505 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25506 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25507 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25508 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25509 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25510 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25511 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25512 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25513 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25514 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25515 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25516 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25517 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25518 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25519 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25520 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25521 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25522 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25523 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25524 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25525 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25526 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25527 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25528 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25529 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25530 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25531 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25532 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25533 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25534 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25535 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25536 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25537 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25538 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25539 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25540 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25541 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25542 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25543 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25544 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25545 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25546 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25547 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25548 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25549 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25550 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25551 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25552 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25553 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25554 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25555 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25556 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25557 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25558 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25559 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25560 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25561 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25562 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25563 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25564 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25565 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25566 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25567 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25568 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25569 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25570 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25571 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25572 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25573 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25574 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25575 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25576 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25577 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25578 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25579 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25580 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25581 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25582 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25583 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25584 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25585 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25586 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25587 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25588 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25589 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25590 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25591 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25592 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25593 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25594 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25595 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25596 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25597 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25598 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25599 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25600 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25601 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25602 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25603 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25604 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25605 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25606 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25607 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25608 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25609 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25610 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25611 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25612 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25614 LTCC='$LTCC'
25615 LTCFLAGS='$LTCFLAGS'
25616 compiler='$compiler_DEFAULT'
25618 # Quote evaled strings.
25619 for var in SED \
25620 GREP \
25621 EGREP \
25622 FGREP \
25623 LD \
25624 NM \
25625 LN_S \
25626 lt_SP2NL \
25627 lt_NL2SP \
25628 reload_flag \
25629 OBJDUMP \
25630 deplibs_check_method \
25631 file_magic_cmd \
25632 AR \
25633 AR_FLAGS \
25634 STRIP \
25635 RANLIB \
25636 CC \
25637 CFLAGS \
25638 compiler \
25639 lt_cv_sys_global_symbol_pipe \
25640 lt_cv_sys_global_symbol_to_cdecl \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25643 SHELL \
25644 ECHO \
25645 lt_prog_compiler_no_builtin_flag \
25646 lt_prog_compiler_wl \
25647 lt_prog_compiler_pic \
25648 lt_prog_compiler_static \
25649 lt_cv_prog_compiler_c_o \
25650 need_locks \
25651 DSYMUTIL \
25652 NMEDIT \
25653 LIPO \
25654 OTOOL \
25655 OTOOL64 \
25656 shrext_cmds \
25657 export_dynamic_flag_spec \
25658 whole_archive_flag_spec \
25659 compiler_needs_object \
25660 with_gnu_ld \
25661 allow_undefined_flag \
25662 no_undefined_flag \
25663 hardcode_libdir_flag_spec \
25664 hardcode_libdir_flag_spec_ld \
25665 hardcode_libdir_separator \
25666 fix_srcfile_path \
25667 exclude_expsyms \
25668 include_expsyms \
25669 file_list_spec \
25670 variables_saved_for_relink \
25671 libname_spec \
25672 library_names_spec \
25673 soname_spec \
25674 finish_eval \
25675 old_striplib \
25676 striplib \
25677 compiler_lib_search_dirs \
25678 predep_objects \
25679 postdep_objects \
25680 predeps \
25681 postdeps \
25682 compiler_lib_search_path \
25683 LD_CXX \
25684 LD_GCJ \
25685 compiler_CXX \
25686 compiler_GCJ \
25687 lt_prog_compiler_no_builtin_flag_CXX \
25688 lt_prog_compiler_no_builtin_flag_GCJ \
25689 lt_prog_compiler_wl_CXX \
25690 lt_prog_compiler_wl_GCJ \
25691 lt_prog_compiler_pic_CXX \
25692 lt_prog_compiler_pic_GCJ \
25693 lt_prog_compiler_static_CXX \
25694 lt_prog_compiler_static_GCJ \
25695 lt_cv_prog_compiler_c_o_CXX \
25696 lt_cv_prog_compiler_c_o_GCJ \
25697 export_dynamic_flag_spec_CXX \
25698 export_dynamic_flag_spec_GCJ \
25699 whole_archive_flag_spec_CXX \
25700 whole_archive_flag_spec_GCJ \
25701 compiler_needs_object_CXX \
25702 compiler_needs_object_GCJ \
25703 with_gnu_ld_CXX \
25704 with_gnu_ld_GCJ \
25705 allow_undefined_flag_CXX \
25706 allow_undefined_flag_GCJ \
25707 no_undefined_flag_CXX \
25708 no_undefined_flag_GCJ \
25709 hardcode_libdir_flag_spec_CXX \
25710 hardcode_libdir_flag_spec_GCJ \
25711 hardcode_libdir_flag_spec_ld_CXX \
25712 hardcode_libdir_flag_spec_ld_GCJ \
25713 hardcode_libdir_separator_CXX \
25714 hardcode_libdir_separator_GCJ \
25715 fix_srcfile_path_CXX \
25716 fix_srcfile_path_GCJ \
25717 exclude_expsyms_CXX \
25718 exclude_expsyms_GCJ \
25719 include_expsyms_CXX \
25720 include_expsyms_GCJ \
25721 file_list_spec_CXX \
25722 file_list_spec_GCJ \
25723 compiler_lib_search_dirs_CXX \
25724 compiler_lib_search_dirs_GCJ \
25725 predep_objects_CXX \
25726 predep_objects_GCJ \
25727 postdep_objects_CXX \
25728 postdep_objects_GCJ \
25729 predeps_CXX \
25730 predeps_GCJ \
25731 postdeps_CXX \
25732 postdeps_GCJ \
25733 compiler_lib_search_path_CXX \
25734 compiler_lib_search_path_GCJ; do
25735 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25736 *[\\\\\\\`\\"\\\$]*)
25737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25742 esac
25743 done
25745 # Double-quote double-evaled strings.
25746 for var in reload_cmds \
25747 old_postinstall_cmds \
25748 old_postuninstall_cmds \
25749 old_archive_cmds \
25750 extract_expsyms_cmds \
25751 old_archive_from_new_cmds \
25752 old_archive_from_expsyms_cmds \
25753 archive_cmds \
25754 archive_expsym_cmds \
25755 module_cmds \
25756 module_expsym_cmds \
25757 export_symbols_cmds \
25758 prelink_cmds \
25759 postinstall_cmds \
25760 postuninstall_cmds \
25761 finish_cmds \
25762 sys_lib_search_path_spec \
25763 sys_lib_dlsearch_path_spec \
25764 old_archive_cmds_CXX \
25765 old_archive_cmds_GCJ \
25766 old_archive_from_new_cmds_CXX \
25767 old_archive_from_new_cmds_GCJ \
25768 old_archive_from_expsyms_cmds_CXX \
25769 old_archive_from_expsyms_cmds_GCJ \
25770 archive_cmds_CXX \
25771 archive_cmds_GCJ \
25772 archive_expsym_cmds_CXX \
25773 archive_expsym_cmds_GCJ \
25774 module_cmds_CXX \
25775 module_cmds_GCJ \
25776 module_expsym_cmds_CXX \
25777 module_expsym_cmds_GCJ \
25778 export_symbols_cmds_CXX \
25779 export_symbols_cmds_GCJ \
25780 prelink_cmds_CXX \
25781 prelink_cmds_GCJ; do
25782 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25783 *[\\\\\\\`\\"\\\$]*)
25784 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25787 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25789 esac
25790 done
25792 # Fix-up fallback echo if it was mangled by the above quoting rules.
25793 case \$lt_ECHO in
25794 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25796 esac
25798 ac_aux_dir='$ac_aux_dir'
25799 xsi_shell='$xsi_shell'
25800 lt_shell_append='$lt_shell_append'
25802 # See if we are running on zsh, and set the options which allow our
25803 # commands through without removal of \ escapes INIT.
25804 if test -n "\${ZSH_VERSION+set}" ; then
25805 setopt NO_GLOB_SUBST
25809 PACKAGE='$PACKAGE'
25810 VERSION='$VERSION'
25811 TIMESTAMP='$TIMESTAMP'
25812 RM='$RM'
25813 ofile='$ofile'
25822 _ACEOF
25824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25826 # Handling of arguments.
25827 for ac_config_target in $ac_config_targets
25829 case $ac_config_target in
25830 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25831 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25832 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25833 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25834 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25835 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25836 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25837 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25838 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25839 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25840 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25841 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25842 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25843 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25844 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25845 "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" ;;
25846 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25847 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25848 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25849 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25850 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25851 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25852 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25854 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25855 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25856 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25857 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25858 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25859 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25860 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25861 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25862 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25863 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25864 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25865 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25867 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25868 esac
25869 done
25872 # If the user did not use the arguments to specify the items to instantiate,
25873 # then the envvar interface is used. Set only those that are not.
25874 # We use the long form for the default assignment because of an extremely
25875 # bizarre bug on SunOS 4.1.3.
25876 if $ac_need_defaults; then
25877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25879 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25883 # Have a temporary directory for convenience. Make it in the build tree
25884 # simply because there is no reason against having it here, and in addition,
25885 # creating and moving files from /tmp can sometimes cause problems.
25886 # Hook for its removal unless debugging.
25887 # Note that there is a small window in which the directory will not be cleaned:
25888 # after its creation but before its name has been assigned to `$tmp'.
25889 $debug ||
25891 tmp=
25892 trap 'exit_status=$?
25893 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25895 trap 'as_fn_exit 1' 1 2 13 15
25897 # Create a (secure) tmp directory for tmp files.
25900 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25901 test -n "$tmp" && test -d "$tmp"
25902 } ||
25904 tmp=./conf$$-$RANDOM
25905 (umask 077 && mkdir "$tmp")
25906 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25908 # Set up the scripts for CONFIG_FILES section.
25909 # No need to generate them if there are no CONFIG_FILES.
25910 # This happens for instance with `./config.status config.h'.
25911 if test -n "$CONFIG_FILES"; then
25914 ac_cr=`echo X | tr X '\015'`
25915 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25916 # But we know of no other shell where ac_cr would be empty at this
25917 # point, so we can use a bashism as a fallback.
25918 if test "x$ac_cr" = x; then
25919 eval ac_cr=\$\'\\r\'
25921 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25922 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25923 ac_cs_awk_cr='\r'
25924 else
25925 ac_cs_awk_cr=$ac_cr
25928 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25929 _ACEOF
25933 echo "cat >conf$$subs.awk <<_ACEOF" &&
25934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25935 echo "_ACEOF"
25936 } >conf$$subs.sh ||
25937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25939 ac_delim='%!_!# '
25940 for ac_last_try in false false false false false :; do
25941 . ./conf$$subs.sh ||
25942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25945 if test $ac_delim_n = $ac_delim_num; then
25946 break
25947 elif $ac_last_try; then
25948 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25949 else
25950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25952 done
25953 rm -f conf$$subs.sh
25955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25956 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25957 _ACEOF
25958 sed -n '
25960 s/^/S["/; s/!.*/"]=/
25963 s/^[^!]*!//
25964 :repl
25965 t repl
25966 s/'"$ac_delim"'$//
25967 t delim
25970 s/\(.\{148\}\).*/\1/
25971 t more1
25972 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25975 b repl
25976 :more1
25977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25980 s/.\{148\}//
25981 t nl
25982 :delim
25984 s/\(.\{148\}\).*/\1/
25985 t more2
25986 s/["\\]/\\&/g; s/^/"/; s/$/"/
25989 :more2
25990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25993 s/.\{148\}//
25994 t delim
25995 ' <conf$$subs.awk | sed '
25996 /^[^""]/{
25998 s/\n//
26000 ' >>$CONFIG_STATUS || ac_write_fail=1
26001 rm -f conf$$subs.awk
26002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26003 _ACAWK
26004 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26005 for (key in S) S_is_set[key] = 1
26006 FS = "\a"
26010 line = $ 0
26011 nfields = split(line, field, "@")
26012 substed = 0
26013 len = length(field[1])
26014 for (i = 2; i < nfields; i++) {
26015 key = field[i]
26016 keylen = length(key)
26017 if (S_is_set[key]) {
26018 value = S[key]
26019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26020 len += length(value) + length(field[++i])
26021 substed = 1
26022 } else
26023 len += 1 + keylen
26026 print line
26029 _ACAWK
26030 _ACEOF
26031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26032 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26033 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26034 else
26036 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26037 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26038 _ACEOF
26040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26042 # trailing colons and then remove the whole line if VPATH becomes empty
26043 # (actually we leave an empty line to preserve line numbers).
26044 if test "x$srcdir" = x.; then
26045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26046 s/:*\$(srcdir):*/:/
26047 s/:*\${srcdir}:*/:/
26048 s/:*@srcdir@:*/:/
26049 s/^\([^=]*=[ ]*\):*/\1/
26050 s/:*$//
26051 s/^[^=]*=[ ]*$//
26055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26056 fi # test -n "$CONFIG_FILES"
26058 # Set up the scripts for CONFIG_HEADERS section.
26059 # No need to generate them if there are no CONFIG_HEADERS.
26060 # This happens for instance with `./config.status Makefile'.
26061 if test -n "$CONFIG_HEADERS"; then
26062 cat >"$tmp/defines.awk" <<\_ACAWK ||
26063 BEGIN {
26064 _ACEOF
26066 # Transform confdefs.h into an awk script `defines.awk', embedded as
26067 # here-document in config.status, that substitutes the proper values into
26068 # config.h.in to produce config.h.
26070 # Create a delimiter string that does not exist in confdefs.h, to ease
26071 # handling of long lines.
26072 ac_delim='%!_!# '
26073 for ac_last_try in false false :; do
26074 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26075 if test -z "$ac_t"; then
26076 break
26077 elif $ac_last_try; then
26078 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26079 else
26080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26082 done
26084 # For the awk script, D is an array of macro values keyed by name,
26085 # likewise P contains macro parameters if any. Preserve backslash
26086 # newline sequences.
26088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26089 sed -n '
26090 s/.\{148\}/&'"$ac_delim"'/g
26091 t rset
26092 :rset
26093 s/^[ ]*#[ ]*define[ ][ ]*/ /
26094 t def
26096 :def
26097 s/\\$//
26098 t bsnl
26099 s/["\\]/\\&/g
26100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26101 D["\1"]=" \3"/p
26102 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26104 :bsnl
26105 s/["\\]/\\&/g
26106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26107 D["\1"]=" \3\\\\\\n"\\/p
26108 t cont
26109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26110 t cont
26112 :cont
26114 s/.\{148\}/&'"$ac_delim"'/g
26115 t clear
26116 :clear
26117 s/\\$//
26118 t bsnlc
26119 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26121 :bsnlc
26122 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26123 b cont
26124 ' <confdefs.h | sed '
26125 s/'"$ac_delim"'/"\\\
26126 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26129 for (key in D) D_is_set[key] = 1
26130 FS = "\a"
26132 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26133 line = \$ 0
26134 split(line, arg, " ")
26135 if (arg[1] == "#") {
26136 defundef = arg[2]
26137 mac1 = arg[3]
26138 } else {
26139 defundef = substr(arg[1], 2)
26140 mac1 = arg[2]
26142 split(mac1, mac2, "(") #)
26143 macro = mac2[1]
26144 prefix = substr(line, 1, index(line, defundef) - 1)
26145 if (D_is_set[macro]) {
26146 # Preserve the white space surrounding the "#".
26147 print prefix "define", macro P[macro] D[macro]
26148 next
26149 } else {
26150 # Replace #undef with comments. This is necessary, for example,
26151 # in the case of _POSIX_SOURCE, which is predefined and required
26152 # on some systems where configure will not decide to define it.
26153 if (defundef == "undef") {
26154 print "/*", prefix defundef, macro, "*/"
26155 next
26159 { print }
26160 _ACAWK
26161 _ACEOF
26162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26163 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26164 fi # test -n "$CONFIG_HEADERS"
26167 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26168 shift
26169 for ac_tag
26171 case $ac_tag in
26172 :[FHLC]) ac_mode=$ac_tag; continue;;
26173 esac
26174 case $ac_mode$ac_tag in
26175 :[FHL]*:*);;
26176 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26177 :[FH]-) ac_tag=-:-;;
26178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26179 esac
26180 ac_save_IFS=$IFS
26181 IFS=:
26182 set x $ac_tag
26183 IFS=$ac_save_IFS
26184 shift
26185 ac_file=$1
26186 shift
26188 case $ac_mode in
26189 :L) ac_source=$1;;
26190 :[FH])
26191 ac_file_inputs=
26192 for ac_f
26194 case $ac_f in
26195 -) ac_f="$tmp/stdin";;
26196 *) # Look for the file first in the build tree, then in the source tree
26197 # (if the path is not absolute). The absolute path cannot be DOS-style,
26198 # because $ac_f cannot contain `:'.
26199 test -f "$ac_f" ||
26200 case $ac_f in
26201 [\\/$]*) false;;
26202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26203 esac ||
26204 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26205 esac
26206 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26207 as_fn_append ac_file_inputs " '$ac_f'"
26208 done
26210 # Let's still pretend it is `configure' which instantiates (i.e., don't
26211 # use $as_me), people would be surprised to read:
26212 # /* config.h. Generated by config.status. */
26213 configure_input='Generated from '`
26214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26215 `' by configure.'
26216 if test x"$ac_file" != x-; then
26217 configure_input="$ac_file. $configure_input"
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26219 $as_echo "$as_me: creating $ac_file" >&6;}
26221 # Neutralize special characters interpreted by sed in replacement strings.
26222 case $configure_input in #(
26223 *\&* | *\|* | *\\* )
26224 ac_sed_conf_input=`$as_echo "$configure_input" |
26225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26226 *) ac_sed_conf_input=$configure_input;;
26227 esac
26229 case $ac_tag in
26230 *:-:* | *:-) cat >"$tmp/stdin" \
26231 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26232 esac
26234 esac
26236 ac_dir=`$as_dirname -- "$ac_file" ||
26237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26238 X"$ac_file" : 'X\(//\)[^/]' \| \
26239 X"$ac_file" : 'X\(//\)$' \| \
26240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26241 $as_echo X"$ac_file" |
26242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26243 s//\1/
26246 /^X\(\/\/\)[^/].*/{
26247 s//\1/
26250 /^X\(\/\/\)$/{
26251 s//\1/
26254 /^X\(\/\).*/{
26255 s//\1/
26258 s/.*/./; q'`
26259 as_dir="$ac_dir"; as_fn_mkdir_p
26260 ac_builddir=.
26262 case "$ac_dir" in
26263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26265 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26266 # A ".." for each directory in $ac_dir_suffix.
26267 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26268 case $ac_top_builddir_sub in
26269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26271 esac ;;
26272 esac
26273 ac_abs_top_builddir=$ac_pwd
26274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26275 # for backward compatibility:
26276 ac_top_builddir=$ac_top_build_prefix
26278 case $srcdir in
26279 .) # We are building in place.
26280 ac_srcdir=.
26281 ac_top_srcdir=$ac_top_builddir_sub
26282 ac_abs_top_srcdir=$ac_pwd ;;
26283 [\\/]* | ?:[\\/]* ) # Absolute name.
26284 ac_srcdir=$srcdir$ac_dir_suffix;
26285 ac_top_srcdir=$srcdir
26286 ac_abs_top_srcdir=$srcdir ;;
26287 *) # Relative name.
26288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26289 ac_top_srcdir=$ac_top_build_prefix$srcdir
26290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26291 esac
26292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26295 case $ac_mode in
26298 # CONFIG_FILE
26301 case $INSTALL in
26302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26304 esac
26305 ac_MKDIR_P=$MKDIR_P
26306 case $MKDIR_P in
26307 [\\/$]* | ?:[\\/]* ) ;;
26308 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26309 esac
26310 _ACEOF
26312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26313 # If the template does not know about datarootdir, expand it.
26314 # FIXME: This hack should be removed a few years after 2.60.
26315 ac_datarootdir_hack=; ac_datarootdir_seen=
26316 ac_sed_dataroot='
26317 /datarootdir/ {
26321 /@datadir@/p
26322 /@docdir@/p
26323 /@infodir@/p
26324 /@localedir@/p
26325 /@mandir@/p'
26326 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26327 *datarootdir*) ac_datarootdir_seen=yes;;
26328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26330 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26331 _ACEOF
26332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26333 ac_datarootdir_hack='
26334 s&@datadir@&$datadir&g
26335 s&@docdir@&$docdir&g
26336 s&@infodir@&$infodir&g
26337 s&@localedir@&$localedir&g
26338 s&@mandir@&$mandir&g
26339 s&\\\${datarootdir}&$datarootdir&g' ;;
26340 esac
26341 _ACEOF
26343 # Neutralize VPATH when `$srcdir' = `.'.
26344 # Shell code in configure.ac might set extrasub.
26345 # FIXME: do we really want to maintain this feature?
26346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26347 ac_sed_extra="$ac_vpsub
26348 $extrasub
26349 _ACEOF
26350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26353 s|@configure_input@|$ac_sed_conf_input|;t t
26354 s&@top_builddir@&$ac_top_builddir_sub&;t t
26355 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26356 s&@srcdir@&$ac_srcdir&;t t
26357 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26358 s&@top_srcdir@&$ac_top_srcdir&;t t
26359 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26360 s&@builddir@&$ac_builddir&;t t
26361 s&@abs_builddir@&$ac_abs_builddir&;t t
26362 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26363 s&@INSTALL@&$ac_INSTALL&;t t
26364 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26365 $ac_datarootdir_hack
26367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26368 || as_fn_error "could not create $ac_file" "$LINENO" 5
26370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26371 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26374 which seems to be undefined. Please make sure it is defined." >&5
26375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26376 which seems to be undefined. Please make sure it is defined." >&2;}
26378 rm -f "$tmp/stdin"
26379 case $ac_file in
26380 -) cat "$tmp/out" && rm -f "$tmp/out";;
26381 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26382 esac \
26383 || as_fn_error "could not create $ac_file" "$LINENO" 5
26387 # CONFIG_HEADER
26389 if test x"$ac_file" != x-; then
26391 $as_echo "/* $configure_input */" \
26392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26393 } >"$tmp/config.h" \
26394 || as_fn_error "could not create $ac_file" "$LINENO" 5
26395 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26398 else
26399 rm -f "$ac_file"
26400 mv "$tmp/config.h" "$ac_file" \
26401 || as_fn_error "could not create $ac_file" "$LINENO" 5
26403 else
26404 $as_echo "/* $configure_input */" \
26405 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26406 || as_fn_error "could not create -" "$LINENO" 5
26408 # Compute "$ac_file"'s index in $config_headers.
26409 _am_arg="$ac_file"
26410 _am_stamp_count=1
26411 for _am_header in $config_headers :; do
26412 case $_am_header in
26413 $_am_arg | $_am_arg:* )
26414 break ;;
26416 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26417 esac
26418 done
26419 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26420 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26421 X"$_am_arg" : 'X\(//\)[^/]' \| \
26422 X"$_am_arg" : 'X\(//\)$' \| \
26423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26424 $as_echo X"$_am_arg" |
26425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26426 s//\1/
26429 /^X\(\/\/\)[^/].*/{
26430 s//\1/
26433 /^X\(\/\/\)$/{
26434 s//\1/
26437 /^X\(\/\).*/{
26438 s//\1/
26441 s/.*/./; q'`/stamp-h$_am_stamp_count
26445 # CONFIG_LINK
26448 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26450 else
26451 # Prefer the file from the source tree if names are identical.
26452 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26453 ac_source=$srcdir/$ac_source
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26457 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26459 if test ! -r "$ac_source"; then
26460 as_fn_error "$ac_source: file not found" "$LINENO" 5
26462 rm -f "$ac_file"
26464 # Try a relative symlink, then a hard link, then a copy.
26465 case $srcdir in
26466 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26467 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26468 esac
26469 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26470 ln "$ac_source" "$ac_file" 2>/dev/null ||
26471 cp -p "$ac_source" "$ac_file" ||
26472 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26475 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26476 $as_echo "$as_me: executing $ac_file commands" >&6;}
26478 esac
26481 case $ac_file$ac_mode in
26482 "default-1":C)
26483 # Only add multilib support code if we just rebuilt the top-level
26484 # Makefile.
26485 case " $CONFIG_FILES " in
26486 *" Makefile "*)
26487 ac_file=Makefile . ${multi_basedir}/config-ml.in
26489 esac ;;
26490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26491 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26492 # are listed without --file. Let's play safe and only enable the eval
26493 # if we detect the quoting.
26494 case $CONFIG_FILES in
26495 *\'*) eval set x "$CONFIG_FILES" ;;
26496 *) set x $CONFIG_FILES ;;
26497 esac
26498 shift
26499 for mf
26501 # Strip MF so we end up with the name of the file.
26502 mf=`echo "$mf" | sed -e 's/:.*$//'`
26503 # Check whether this is an Automake generated Makefile or not.
26504 # We used to match only the files named `Makefile.in', but
26505 # some people rename them; so instead we look at the file content.
26506 # Grep'ing the first line is not enough: some people post-process
26507 # each Makefile.in and add a new line on top of each file to say so.
26508 # Grep'ing the whole file is not good either: AIX grep has a line
26509 # limit of 2048, but all sed's we know have understand at least 4000.
26510 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26511 dirpart=`$as_dirname -- "$mf" ||
26512 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26513 X"$mf" : 'X\(//\)[^/]' \| \
26514 X"$mf" : 'X\(//\)$' \| \
26515 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26516 $as_echo X"$mf" |
26517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26518 s//\1/
26521 /^X\(\/\/\)[^/].*/{
26522 s//\1/
26525 /^X\(\/\/\)$/{
26526 s//\1/
26529 /^X\(\/\).*/{
26530 s//\1/
26533 s/.*/./; q'`
26534 else
26535 continue
26537 # Extract the definition of DEPDIR, am__include, and am__quote
26538 # from the Makefile without running `make'.
26539 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26540 test -z "$DEPDIR" && continue
26541 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26542 test -z "am__include" && continue
26543 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26544 # When using ansi2knr, U may be empty or an underscore; expand it
26545 U=`sed -n 's/^U = //p' < "$mf"`
26546 # Find all dependency output files, they are included files with
26547 # $(DEPDIR) in their names. We invoke sed twice because it is the
26548 # simplest approach to changing $(DEPDIR) to its actual value in the
26549 # expansion.
26550 for file in `sed -n "
26551 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26552 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26553 # Make sure the directory exists.
26554 test -f "$dirpart/$file" && continue
26555 fdir=`$as_dirname -- "$file" ||
26556 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26557 X"$file" : 'X\(//\)[^/]' \| \
26558 X"$file" : 'X\(//\)$' \| \
26559 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26560 $as_echo X"$file" |
26561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26562 s//\1/
26565 /^X\(\/\/\)[^/].*/{
26566 s//\1/
26569 /^X\(\/\/\)$/{
26570 s//\1/
26573 /^X\(\/\).*/{
26574 s//\1/
26577 s/.*/./; q'`
26578 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26579 # echo "creating $dirpart/$file"
26580 echo '# dummy' > "$dirpart/$file"
26581 done
26582 done
26585 "libtool":C)
26587 # See if we are running on zsh, and set the options which allow our
26588 # commands through without removal of \ escapes.
26589 if test -n "${ZSH_VERSION+set}" ; then
26590 setopt NO_GLOB_SUBST
26593 cfgfile="${ofile}T"
26594 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26595 $RM "$cfgfile"
26597 cat <<_LT_EOF >> "$cfgfile"
26598 #! $SHELL
26600 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26601 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26602 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26603 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26605 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26606 # 2006, 2007, 2008 Free Software Foundation, Inc.
26607 # Written by Gordon Matzigkeit, 1996
26609 # This file is part of GNU Libtool.
26611 # GNU Libtool is free software; you can redistribute it and/or
26612 # modify it under the terms of the GNU General Public License as
26613 # published by the Free Software Foundation; either version 2 of
26614 # the License, or (at your option) any later version.
26616 # As a special exception to the GNU General Public License,
26617 # if you distribute this file as part of a program or library that
26618 # is built using GNU Libtool, you may include this file under the
26619 # same distribution terms that you use for the rest of that program.
26621 # GNU Libtool is distributed in the hope that it will be useful,
26622 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26624 # GNU General Public License for more details.
26626 # You should have received a copy of the GNU General Public License
26627 # along with GNU Libtool; see the file COPYING. If not, a copy
26628 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26629 # obtained by writing to the Free Software Foundation, Inc.,
26630 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26633 # The names of the tagged configurations supported by this script.
26634 available_tags="CXX GCJ "
26636 # ### BEGIN LIBTOOL CONFIG
26638 # Which release of libtool.m4 was used?
26639 macro_version=$macro_version
26640 macro_revision=$macro_revision
26642 # Whether or not to build shared libraries.
26643 build_libtool_libs=$enable_shared
26645 # Whether or not to build static libraries.
26646 build_old_libs=$enable_static
26648 # What type of objects to build.
26649 pic_mode=$pic_mode
26651 # Whether or not to optimize for fast installation.
26652 fast_install=$enable_fast_install
26654 # The host system.
26655 host_alias=$host_alias
26656 host=$host
26657 host_os=$host_os
26659 # The build system.
26660 build_alias=$build_alias
26661 build=$build
26662 build_os=$build_os
26664 # A sed program that does not truncate output.
26665 SED=$lt_SED
26667 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26668 Xsed="\$SED -e 1s/^X//"
26670 # A grep program that handles long lines.
26671 GREP=$lt_GREP
26673 # An ERE matcher.
26674 EGREP=$lt_EGREP
26676 # A literal string matcher.
26677 FGREP=$lt_FGREP
26679 # A BSD- or MS-compatible name lister.
26680 NM=$lt_NM
26682 # Whether we need soft or hard links.
26683 LN_S=$lt_LN_S
26685 # What is the maximum length of a command?
26686 max_cmd_len=$max_cmd_len
26688 # Object file suffix (normally "o").
26689 objext=$ac_objext
26691 # Executable file suffix (normally "").
26692 exeext=$exeext
26694 # whether the shell understands "unset".
26695 lt_unset=$lt_unset
26697 # turn spaces into newlines.
26698 SP2NL=$lt_lt_SP2NL
26700 # turn newlines into spaces.
26701 NL2SP=$lt_lt_NL2SP
26703 # How to create reloadable object files.
26704 reload_flag=$lt_reload_flag
26705 reload_cmds=$lt_reload_cmds
26707 # An object symbol dumper.
26708 OBJDUMP=$lt_OBJDUMP
26710 # Method to check whether dependent libraries are shared objects.
26711 deplibs_check_method=$lt_deplibs_check_method
26713 # Command to use when deplibs_check_method == "file_magic".
26714 file_magic_cmd=$lt_file_magic_cmd
26716 # The archiver.
26717 AR=$lt_AR
26718 AR_FLAGS=$lt_AR_FLAGS
26720 # A symbol stripping program.
26721 STRIP=$lt_STRIP
26723 # Commands used to install an old-style archive.
26724 RANLIB=$lt_RANLIB
26725 old_postinstall_cmds=$lt_old_postinstall_cmds
26726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26728 # A C compiler.
26729 LTCC=$lt_CC
26731 # LTCC compiler flags.
26732 LTCFLAGS=$lt_CFLAGS
26734 # Take the output of nm and produce a listing of raw symbols and C names.
26735 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26737 # Transform the output of nm in a proper C declaration.
26738 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26740 # Transform the output of nm in a C name address pair.
26741 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26743 # Transform the output of nm in a C name address pair when lib prefix is needed.
26744 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26746 # The name of the directory that contains temporary libtool files.
26747 objdir=$objdir
26749 # Shell to use when invoking shell scripts.
26750 SHELL=$lt_SHELL
26752 # An echo program that does not interpret backslashes.
26753 ECHO=$lt_ECHO
26755 # Used to examine libraries when file_magic_cmd begins with "file".
26756 MAGIC_CMD=$MAGIC_CMD
26758 # Must we lock files when doing compilation?
26759 need_locks=$lt_need_locks
26761 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26762 DSYMUTIL=$lt_DSYMUTIL
26764 # Tool to change global to local symbols on Mac OS X.
26765 NMEDIT=$lt_NMEDIT
26767 # Tool to manipulate fat objects and archives on Mac OS X.
26768 LIPO=$lt_LIPO
26770 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26771 OTOOL=$lt_OTOOL
26773 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26774 OTOOL64=$lt_OTOOL64
26776 # Old archive suffix (normally "a").
26777 libext=$libext
26779 # Shared library suffix (normally ".so").
26780 shrext_cmds=$lt_shrext_cmds
26782 # The commands to extract the exported symbol list from a shared archive.
26783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26785 # Variables whose values should be saved in libtool wrapper scripts and
26786 # restored at link time.
26787 variables_saved_for_relink=$lt_variables_saved_for_relink
26789 # Do we need the "lib" prefix for modules?
26790 need_lib_prefix=$need_lib_prefix
26792 # Do we need a version for libraries?
26793 need_version=$need_version
26795 # Library versioning type.
26796 version_type=$version_type
26798 # Shared library runtime path variable.
26799 runpath_var=$runpath_var
26801 # Shared library path variable.
26802 shlibpath_var=$shlibpath_var
26804 # Is shlibpath searched before the hard-coded library search path?
26805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26807 # Format of library name prefix.
26808 libname_spec=$lt_libname_spec
26810 # List of archive names. First name is the real one, the rest are links.
26811 # The last name is the one that the linker finds with -lNAME
26812 library_names_spec=$lt_library_names_spec
26814 # The coded name of the library, if different from the real name.
26815 soname_spec=$lt_soname_spec
26817 # Command to use after installation of a shared archive.
26818 postinstall_cmds=$lt_postinstall_cmds
26820 # Command to use after uninstallation of a shared archive.
26821 postuninstall_cmds=$lt_postuninstall_cmds
26823 # Commands used to finish a libtool library installation in a directory.
26824 finish_cmds=$lt_finish_cmds
26826 # As "finish_cmds", except a single script fragment to be evaled but
26827 # not shown.
26828 finish_eval=$lt_finish_eval
26830 # Whether we should hardcode library paths into libraries.
26831 hardcode_into_libs=$hardcode_into_libs
26833 # Compile-time system search path for libraries.
26834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26836 # Run-time system search path for libraries.
26837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26839 # Whether dlopen is supported.
26840 dlopen_support=$enable_dlopen
26842 # Whether dlopen of programs is supported.
26843 dlopen_self=$enable_dlopen_self
26845 # Whether dlopen of statically linked programs is supported.
26846 dlopen_self_static=$enable_dlopen_self_static
26848 # Commands to strip libraries.
26849 old_striplib=$lt_old_striplib
26850 striplib=$lt_striplib
26853 # The linker used to build libraries.
26854 LD=$lt_LD
26856 # Commands used to build an old-style archive.
26857 old_archive_cmds=$lt_old_archive_cmds
26859 # A language specific compiler.
26860 CC=$lt_compiler
26862 # Is the compiler the GNU compiler?
26863 with_gcc=$GCC
26865 # Compiler flag to turn off builtin functions.
26866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26868 # How to pass a linker flag through the compiler.
26869 wl=$lt_lt_prog_compiler_wl
26871 # Additional compiler flags for building library objects.
26872 pic_flag=$lt_lt_prog_compiler_pic
26874 # Compiler flag to prevent dynamic linking.
26875 link_static_flag=$lt_lt_prog_compiler_static
26877 # Does compiler simultaneously support -c and -o options?
26878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26880 # Whether or not to add -lc for building shared libraries.
26881 build_libtool_need_lc=$archive_cmds_need_lc
26883 # Whether or not to disallow shared libs when runtime libs are static.
26884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26886 # Compiler flag to allow reflexive dlopens.
26887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26889 # Compiler flag to generate shared objects directly from archives.
26890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26892 # Whether the compiler copes with passing no objects directly.
26893 compiler_needs_object=$lt_compiler_needs_object
26895 # Create an old-style archive from a shared archive.
26896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26898 # Create a temporary old-style archive to link instead of a shared archive.
26899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26901 # Commands used to build a shared archive.
26902 archive_cmds=$lt_archive_cmds
26903 archive_expsym_cmds=$lt_archive_expsym_cmds
26905 # Commands used to build a loadable module if different from building
26906 # a shared archive.
26907 module_cmds=$lt_module_cmds
26908 module_expsym_cmds=$lt_module_expsym_cmds
26910 # Whether we are building with GNU ld or not.
26911 with_gnu_ld=$lt_with_gnu_ld
26913 # Flag that allows shared libraries with undefined symbols to be built.
26914 allow_undefined_flag=$lt_allow_undefined_flag
26916 # Flag that enforces no undefined symbols.
26917 no_undefined_flag=$lt_no_undefined_flag
26919 # Flag to hardcode \$libdir into a binary during linking.
26920 # This must work even if \$libdir does not exist
26921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26923 # If ld is used when linking, flag to hardcode \$libdir into a binary
26924 # during linking. This must work even if \$libdir does not exist.
26925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26927 # Whether we need a single "-rpath" flag with a separated argument.
26928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26931 # DIR into the resulting binary.
26932 hardcode_direct=$hardcode_direct
26934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26935 # DIR into the resulting binary and the resulting library dependency is
26936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26937 # library is relocated.
26938 hardcode_direct_absolute=$hardcode_direct_absolute
26940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26941 # into the resulting binary.
26942 hardcode_minus_L=$hardcode_minus_L
26944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26945 # into the resulting binary.
26946 hardcode_shlibpath_var=$hardcode_shlibpath_var
26948 # Set to "yes" if building a shared library automatically hardcodes DIR
26949 # into the library and all subsequent libraries and executables linked
26950 # against it.
26951 hardcode_automatic=$hardcode_automatic
26953 # Set to yes if linker adds runtime paths of dependent libraries
26954 # to runtime path list.
26955 inherit_rpath=$inherit_rpath
26957 # Whether libtool must link a program against all its dependency libraries.
26958 link_all_deplibs=$link_all_deplibs
26960 # Fix the shell variable \$srcfile for the compiler.
26961 fix_srcfile_path=$lt_fix_srcfile_path
26963 # Set to "yes" if exported symbols are required.
26964 always_export_symbols=$always_export_symbols
26966 # The commands to list exported symbols.
26967 export_symbols_cmds=$lt_export_symbols_cmds
26969 # Symbols that should not be listed in the preloaded symbols.
26970 exclude_expsyms=$lt_exclude_expsyms
26972 # Symbols that must always be exported.
26973 include_expsyms=$lt_include_expsyms
26975 # Commands necessary for linking programs (against libraries) with templates.
26976 prelink_cmds=$lt_prelink_cmds
26978 # Specify filename containing input files.
26979 file_list_spec=$lt_file_list_spec
26981 # How to hardcode a shared library path into an executable.
26982 hardcode_action=$hardcode_action
26984 # The directories searched by this compiler when creating a shared library.
26985 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26987 # Dependencies to place before and after the objects being linked to
26988 # create a shared library.
26989 predep_objects=$lt_predep_objects
26990 postdep_objects=$lt_postdep_objects
26991 predeps=$lt_predeps
26992 postdeps=$lt_postdeps
26994 # The library search path used internally by the compiler when linking
26995 # a shared library.
26996 compiler_lib_search_path=$lt_compiler_lib_search_path
26998 # ### END LIBTOOL CONFIG
27000 _LT_EOF
27002 case $host_os in
27003 aix3*)
27004 cat <<\_LT_EOF >> "$cfgfile"
27005 # AIX sometimes has problems with the GCC collect2 program. For some
27006 # reason, if we set the COLLECT_NAMES environment variable, the problems
27007 # vanish in a puff of smoke.
27008 if test "X${COLLECT_NAMES+set}" != Xset; then
27009 COLLECT_NAMES=
27010 export COLLECT_NAMES
27012 _LT_EOF
27014 esac
27017 ltmain="$ac_aux_dir/ltmain.sh"
27020 # We use sed instead of cat because bash on DJGPP gets confused if
27021 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27022 # text mode, it properly converts lines to CR/LF. This bash problem
27023 # is reportedly fixed, but why not run on old versions too?
27024 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27025 || (rm -f "$cfgfile"; exit 1)
27027 case $xsi_shell in
27028 yes)
27029 cat << \_LT_EOF >> "$cfgfile"
27031 # func_dirname file append nondir_replacement
27032 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27033 # otherwise set result to NONDIR_REPLACEMENT.
27034 func_dirname ()
27036 case ${1} in
27037 */*) func_dirname_result="${1%/*}${2}" ;;
27038 * ) func_dirname_result="${3}" ;;
27039 esac
27042 # func_basename file
27043 func_basename ()
27045 func_basename_result="${1##*/}"
27048 # func_dirname_and_basename file append nondir_replacement
27049 # perform func_basename and func_dirname in a single function
27050 # call:
27051 # dirname: Compute the dirname of FILE. If nonempty,
27052 # add APPEND to the result, otherwise set result
27053 # to NONDIR_REPLACEMENT.
27054 # value returned in "$func_dirname_result"
27055 # basename: Compute filename of FILE.
27056 # value retuned in "$func_basename_result"
27057 # Implementation must be kept synchronized with func_dirname
27058 # and func_basename. For efficiency, we do not delegate to
27059 # those functions but instead duplicate the functionality here.
27060 func_dirname_and_basename ()
27062 case ${1} in
27063 */*) func_dirname_result="${1%/*}${2}" ;;
27064 * ) func_dirname_result="${3}" ;;
27065 esac
27066 func_basename_result="${1##*/}"
27069 # func_stripname prefix suffix name
27070 # strip PREFIX and SUFFIX off of NAME.
27071 # PREFIX and SUFFIX must not contain globbing or regex special
27072 # characters, hashes, percent signs, but SUFFIX may contain a leading
27073 # dot (in which case that matches only a dot).
27074 func_stripname ()
27076 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27077 # positional parameters, so assign one to ordinary parameter first.
27078 func_stripname_result=${3}
27079 func_stripname_result=${func_stripname_result#"${1}"}
27080 func_stripname_result=${func_stripname_result%"${2}"}
27083 # func_opt_split
27084 func_opt_split ()
27086 func_opt_split_opt=${1%%=*}
27087 func_opt_split_arg=${1#*=}
27090 # func_lo2o object
27091 func_lo2o ()
27093 case ${1} in
27094 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27095 *) func_lo2o_result=${1} ;;
27096 esac
27099 # func_xform libobj-or-source
27100 func_xform ()
27102 func_xform_result=${1%.*}.lo
27105 # func_arith arithmetic-term...
27106 func_arith ()
27108 func_arith_result=$(( $* ))
27111 # func_len string
27112 # STRING may not start with a hyphen.
27113 func_len ()
27115 func_len_result=${#1}
27118 _LT_EOF
27120 *) # Bourne compatible functions.
27121 cat << \_LT_EOF >> "$cfgfile"
27123 # func_dirname file append nondir_replacement
27124 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27125 # otherwise set result to NONDIR_REPLACEMENT.
27126 func_dirname ()
27128 # Extract subdirectory from the argument.
27129 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27130 if test "X$func_dirname_result" = "X${1}"; then
27131 func_dirname_result="${3}"
27132 else
27133 func_dirname_result="$func_dirname_result${2}"
27137 # func_basename file
27138 func_basename ()
27140 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27144 # func_stripname prefix suffix name
27145 # strip PREFIX and SUFFIX off of NAME.
27146 # PREFIX and SUFFIX must not contain globbing or regex special
27147 # characters, hashes, percent signs, but SUFFIX may contain a leading
27148 # dot (in which case that matches only a dot).
27149 # func_strip_suffix prefix name
27150 func_stripname ()
27152 case ${2} in
27153 .*) func_stripname_result=`$ECHO "X${3}" \
27154 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27155 *) func_stripname_result=`$ECHO "X${3}" \
27156 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27157 esac
27160 # sed scripts:
27161 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27162 my_sed_long_arg='1s/^-[^=]*=//'
27164 # func_opt_split
27165 func_opt_split ()
27167 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27168 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27171 # func_lo2o object
27172 func_lo2o ()
27174 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27177 # func_xform libobj-or-source
27178 func_xform ()
27180 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27183 # func_arith arithmetic-term...
27184 func_arith ()
27186 func_arith_result=`expr "$@"`
27189 # func_len string
27190 # STRING may not start with a hyphen.
27191 func_len ()
27193 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27196 _LT_EOF
27197 esac
27199 case $lt_shell_append in
27200 yes)
27201 cat << \_LT_EOF >> "$cfgfile"
27203 # func_append var value
27204 # Append VALUE to the end of shell variable VAR.
27205 func_append ()
27207 eval "$1+=\$2"
27209 _LT_EOF
27212 cat << \_LT_EOF >> "$cfgfile"
27214 # func_append var value
27215 # Append VALUE to the end of shell variable VAR.
27216 func_append ()
27218 eval "$1=\$$1\$2"
27221 _LT_EOF
27223 esac
27226 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27227 || (rm -f "$cfgfile"; exit 1)
27229 mv -f "$cfgfile" "$ofile" ||
27230 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27231 chmod +x "$ofile"
27234 cat <<_LT_EOF >> "$ofile"
27236 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27238 # The linker used to build libraries.
27239 LD=$lt_LD_CXX
27241 # Commands used to build an old-style archive.
27242 old_archive_cmds=$lt_old_archive_cmds_CXX
27244 # A language specific compiler.
27245 CC=$lt_compiler_CXX
27247 # Is the compiler the GNU compiler?
27248 with_gcc=$GCC_CXX
27250 # Compiler flag to turn off builtin functions.
27251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27253 # How to pass a linker flag through the compiler.
27254 wl=$lt_lt_prog_compiler_wl_CXX
27256 # Additional compiler flags for building library objects.
27257 pic_flag=$lt_lt_prog_compiler_pic_CXX
27259 # Compiler flag to prevent dynamic linking.
27260 link_static_flag=$lt_lt_prog_compiler_static_CXX
27262 # Does compiler simultaneously support -c and -o options?
27263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27265 # Whether or not to add -lc for building shared libraries.
27266 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27268 # Whether or not to disallow shared libs when runtime libs are static.
27269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27271 # Compiler flag to allow reflexive dlopens.
27272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27274 # Compiler flag to generate shared objects directly from archives.
27275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27277 # Whether the compiler copes with passing no objects directly.
27278 compiler_needs_object=$lt_compiler_needs_object_CXX
27280 # Create an old-style archive from a shared archive.
27281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27283 # Create a temporary old-style archive to link instead of a shared archive.
27284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27286 # Commands used to build a shared archive.
27287 archive_cmds=$lt_archive_cmds_CXX
27288 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27290 # Commands used to build a loadable module if different from building
27291 # a shared archive.
27292 module_cmds=$lt_module_cmds_CXX
27293 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27295 # Whether we are building with GNU ld or not.
27296 with_gnu_ld=$lt_with_gnu_ld_CXX
27298 # Flag that allows shared libraries with undefined symbols to be built.
27299 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27301 # Flag that enforces no undefined symbols.
27302 no_undefined_flag=$lt_no_undefined_flag_CXX
27304 # Flag to hardcode \$libdir into a binary during linking.
27305 # This must work even if \$libdir does not exist
27306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27308 # If ld is used when linking, flag to hardcode \$libdir into a binary
27309 # during linking. This must work even if \$libdir does not exist.
27310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27312 # Whether we need a single "-rpath" flag with a separated argument.
27313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27316 # DIR into the resulting binary.
27317 hardcode_direct=$hardcode_direct_CXX
27319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27320 # DIR into the resulting binary and the resulting library dependency is
27321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27322 # library is relocated.
27323 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27326 # into the resulting binary.
27327 hardcode_minus_L=$hardcode_minus_L_CXX
27329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27330 # into the resulting binary.
27331 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27333 # Set to "yes" if building a shared library automatically hardcodes DIR
27334 # into the library and all subsequent libraries and executables linked
27335 # against it.
27336 hardcode_automatic=$hardcode_automatic_CXX
27338 # Set to yes if linker adds runtime paths of dependent libraries
27339 # to runtime path list.
27340 inherit_rpath=$inherit_rpath_CXX
27342 # Whether libtool must link a program against all its dependency libraries.
27343 link_all_deplibs=$link_all_deplibs_CXX
27345 # Fix the shell variable \$srcfile for the compiler.
27346 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27348 # Set to "yes" if exported symbols are required.
27349 always_export_symbols=$always_export_symbols_CXX
27351 # The commands to list exported symbols.
27352 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27354 # Symbols that should not be listed in the preloaded symbols.
27355 exclude_expsyms=$lt_exclude_expsyms_CXX
27357 # Symbols that must always be exported.
27358 include_expsyms=$lt_include_expsyms_CXX
27360 # Commands necessary for linking programs (against libraries) with templates.
27361 prelink_cmds=$lt_prelink_cmds_CXX
27363 # Specify filename containing input files.
27364 file_list_spec=$lt_file_list_spec_CXX
27366 # How to hardcode a shared library path into an executable.
27367 hardcode_action=$hardcode_action_CXX
27369 # The directories searched by this compiler when creating a shared library.
27370 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27372 # Dependencies to place before and after the objects being linked to
27373 # create a shared library.
27374 predep_objects=$lt_predep_objects_CXX
27375 postdep_objects=$lt_postdep_objects_CXX
27376 predeps=$lt_predeps_CXX
27377 postdeps=$lt_postdeps_CXX
27379 # The library search path used internally by the compiler when linking
27380 # a shared library.
27381 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27383 # ### END LIBTOOL TAG CONFIG: CXX
27384 _LT_EOF
27387 cat <<_LT_EOF >> "$ofile"
27389 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27391 # The linker used to build libraries.
27392 LD=$lt_LD_GCJ
27394 # Commands used to build an old-style archive.
27395 old_archive_cmds=$lt_old_archive_cmds_GCJ
27397 # A language specific compiler.
27398 CC=$lt_compiler_GCJ
27400 # Is the compiler the GNU compiler?
27401 with_gcc=$GCC_GCJ
27403 # Compiler flag to turn off builtin functions.
27404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27406 # How to pass a linker flag through the compiler.
27407 wl=$lt_lt_prog_compiler_wl_GCJ
27409 # Additional compiler flags for building library objects.
27410 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27412 # Compiler flag to prevent dynamic linking.
27413 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27415 # Does compiler simultaneously support -c and -o options?
27416 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27418 # Whether or not to add -lc for building shared libraries.
27419 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27421 # Whether or not to disallow shared libs when runtime libs are static.
27422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27424 # Compiler flag to allow reflexive dlopens.
27425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27427 # Compiler flag to generate shared objects directly from archives.
27428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27430 # Whether the compiler copes with passing no objects directly.
27431 compiler_needs_object=$lt_compiler_needs_object_GCJ
27433 # Create an old-style archive from a shared archive.
27434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27436 # Create a temporary old-style archive to link instead of a shared archive.
27437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27439 # Commands used to build a shared archive.
27440 archive_cmds=$lt_archive_cmds_GCJ
27441 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27443 # Commands used to build a loadable module if different from building
27444 # a shared archive.
27445 module_cmds=$lt_module_cmds_GCJ
27446 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27448 # Whether we are building with GNU ld or not.
27449 with_gnu_ld=$lt_with_gnu_ld_GCJ
27451 # Flag that allows shared libraries with undefined symbols to be built.
27452 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27454 # Flag that enforces no undefined symbols.
27455 no_undefined_flag=$lt_no_undefined_flag_GCJ
27457 # Flag to hardcode \$libdir into a binary during linking.
27458 # This must work even if \$libdir does not exist
27459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27461 # If ld is used when linking, flag to hardcode \$libdir into a binary
27462 # during linking. This must work even if \$libdir does not exist.
27463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27465 # Whether we need a single "-rpath" flag with a separated argument.
27466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27469 # DIR into the resulting binary.
27470 hardcode_direct=$hardcode_direct_GCJ
27472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27473 # DIR into the resulting binary and the resulting library dependency is
27474 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27475 # library is relocated.
27476 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27478 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27479 # into the resulting binary.
27480 hardcode_minus_L=$hardcode_minus_L_GCJ
27482 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27483 # into the resulting binary.
27484 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27486 # Set to "yes" if building a shared library automatically hardcodes DIR
27487 # into the library and all subsequent libraries and executables linked
27488 # against it.
27489 hardcode_automatic=$hardcode_automatic_GCJ
27491 # Set to yes if linker adds runtime paths of dependent libraries
27492 # to runtime path list.
27493 inherit_rpath=$inherit_rpath_GCJ
27495 # Whether libtool must link a program against all its dependency libraries.
27496 link_all_deplibs=$link_all_deplibs_GCJ
27498 # Fix the shell variable \$srcfile for the compiler.
27499 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27501 # Set to "yes" if exported symbols are required.
27502 always_export_symbols=$always_export_symbols_GCJ
27504 # The commands to list exported symbols.
27505 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27507 # Symbols that should not be listed in the preloaded symbols.
27508 exclude_expsyms=$lt_exclude_expsyms_GCJ
27510 # Symbols that must always be exported.
27511 include_expsyms=$lt_include_expsyms_GCJ
27513 # Commands necessary for linking programs (against libraries) with templates.
27514 prelink_cmds=$lt_prelink_cmds_GCJ
27516 # Specify filename containing input files.
27517 file_list_spec=$lt_file_list_spec_GCJ
27519 # How to hardcode a shared library path into an executable.
27520 hardcode_action=$hardcode_action_GCJ
27522 # The directories searched by this compiler when creating a shared library.
27523 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27525 # Dependencies to place before and after the objects being linked to
27526 # create a shared library.
27527 predep_objects=$lt_predep_objects_GCJ
27528 postdep_objects=$lt_postdep_objects_GCJ
27529 predeps=$lt_predeps_GCJ
27530 postdeps=$lt_postdeps_GCJ
27532 # The library search path used internally by the compiler when linking
27533 # a shared library.
27534 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27536 # ### END LIBTOOL TAG CONFIG: GCJ
27537 _LT_EOF
27540 "scripts/jar":F) chmod +x scripts/jar ;;
27542 esac
27543 done # for ac_tag
27546 as_fn_exit 0
27547 _ACEOF
27548 ac_clean_files=$ac_clean_files_save
27550 test $ac_write_fail = 0 ||
27551 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27554 # configure is writing to config.log, and then calls config.status.
27555 # config.status does its own redirection, appending to config.log.
27556 # Unfortunately, on DOS this fails, as config.log is still kept open
27557 # by configure, so config.status won't be able to write to it; its
27558 # output is simply discarded. So we exec the FD to /dev/null,
27559 # effectively closing config.log, so it can be properly (re)opened and
27560 # appended to by config.status. When coming back to configure, we
27561 # need to make the FD available again.
27562 if test "$no_create" != yes; then
27563 ac_cs_success=:
27564 ac_config_status_args=
27565 test "$silent" = yes &&
27566 ac_config_status_args="$ac_config_status_args --quiet"
27567 exec 5>/dev/null
27568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27569 exec 5>>config.log
27570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27571 # would make configure fail if this is the last instruction.
27572 $ac_cs_success || as_fn_exit $?
27576 # CONFIG_SUBDIRS section.
27578 if test "$no_recursion" != yes; then
27580 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27581 # so they do not pile up.
27582 ac_sub_configure_args=
27583 ac_prev=
27584 eval "set x $ac_configure_args"
27585 shift
27586 for ac_arg
27588 if test -n "$ac_prev"; then
27589 ac_prev=
27590 continue
27592 case $ac_arg in
27593 -cache-file | --cache-file | --cache-fil | --cache-fi \
27594 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27595 ac_prev=cache_file ;;
27596 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27597 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27598 | --c=*)
27600 --config-cache | -C)
27602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27603 ac_prev=srcdir ;;
27604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27606 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27607 ac_prev=prefix ;;
27608 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27610 --disable-option-checking)
27613 case $ac_arg in
27614 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27615 esac
27616 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27617 esac
27618 done
27620 # Always prepend --prefix to ensure using the same prefix
27621 # in subdir configurations.
27622 ac_arg="--prefix=$prefix"
27623 case $ac_arg in
27624 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27625 esac
27626 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27628 # Pass --silent
27629 if test "$silent" = yes; then
27630 ac_sub_configure_args="--silent $ac_sub_configure_args"
27633 # Always prepend --disable-option-checking to silence warnings, since
27634 # different subdirs can have different --enable and --with options.
27635 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27637 ac_popdir=`pwd`
27638 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27640 # Do not complain, so a configure script can configure whichever
27641 # parts of a large source tree are present.
27642 test -d "$srcdir/$ac_dir" || continue
27644 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27645 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27646 $as_echo "$ac_msg" >&6
27647 as_dir="$ac_dir"; as_fn_mkdir_p
27648 ac_builddir=.
27650 case "$ac_dir" in
27651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27654 # A ".." for each directory in $ac_dir_suffix.
27655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27656 case $ac_top_builddir_sub in
27657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27659 esac ;;
27660 esac
27661 ac_abs_top_builddir=$ac_pwd
27662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27663 # for backward compatibility:
27664 ac_top_builddir=$ac_top_build_prefix
27666 case $srcdir in
27667 .) # We are building in place.
27668 ac_srcdir=.
27669 ac_top_srcdir=$ac_top_builddir_sub
27670 ac_abs_top_srcdir=$ac_pwd ;;
27671 [\\/]* | ?:[\\/]* ) # Absolute name.
27672 ac_srcdir=$srcdir$ac_dir_suffix;
27673 ac_top_srcdir=$srcdir
27674 ac_abs_top_srcdir=$srcdir ;;
27675 *) # Relative name.
27676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27677 ac_top_srcdir=$ac_top_build_prefix$srcdir
27678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27679 esac
27680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27683 cd "$ac_dir"
27685 # Check for guested configure; otherwise get Cygnus style configure.
27686 if test -f "$ac_srcdir/configure.gnu"; then
27687 ac_sub_configure=$ac_srcdir/configure.gnu
27688 elif test -f "$ac_srcdir/configure"; then
27689 ac_sub_configure=$ac_srcdir/configure
27690 elif test -f "$ac_srcdir/configure.in"; then
27691 # This should be Cygnus configure.
27692 ac_sub_configure=$ac_aux_dir/configure
27693 else
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27696 ac_sub_configure=
27699 # The recursion is here.
27700 if test -n "$ac_sub_configure"; then
27701 # Make the cache file name correct relative to the subdirectory.
27702 case $cache_file in
27703 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27704 *) # Relative name.
27705 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27706 esac
27708 { $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
27709 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27710 # The eval makes quoting arguments work.
27711 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27712 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27713 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27716 cd "$ac_popdir"
27717 done
27719 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27721 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}