* config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
[official-gcc.git] / libjava / configure
blob5eabcf573b34e5f3b86eff827e108c22ed0de853
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
6708 expanded_prefix=$prefix
6709 if test "X$prefix" = XNONE; then
6710 expanded_prefix=${ac_default_prefix}
6714 cat >>confdefs.h <<_ACEOF
6715 #define LIBGCJ_PREFIX "$expanded_prefix"
6716 _ACEOF
6719 # Create standard.omit based on decisions we just made.
6720 cp $srcdir/standard.omit.in standard.omit
6721 if test "$use_xlib_awt" != yes; then
6722 echo gnu/awt/xlib >> standard.omit
6723 echo gnu/gcj/xlib >> standard.omit
6725 if test "$use_x_awt" != yes; then
6726 echo gnu/java/awt/peer/x >> standard.omit
6729 # Tools that need to be compiled against classpath's tools classes
6730 : > vm-tools-packages
6731 for package in gnu/gcj/tools/gc_analyze ; do
6732 echo $package >> standard.omit
6733 echo $package >> vm-tools-packages
6734 done
6736 if test -z "${with_multisubdir}"; then
6737 builddotdot=.
6738 else
6739 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6742 NATIVE=yes
6744 # Which gcj and host gcj (for ecjx) do we use?
6745 which_gcj=default
6746 host_exeext=${ac_exeext}
6747 GCJ_FOR_ECJX=
6748 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6749 if test -n "${with_cross_host}"; then
6750 # We are being configured with a cross compiler. We can't
6751 # use ac_exeext, because that is for the target platform.
6752 NATIVE=no
6753 cross_host_exeext=
6754 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6755 case "${with_cross_host}" in
6756 *mingw* | *cygwin*)
6757 cross_host_exeext=.exe
6759 esac
6760 host_exeext=${cross_host_exeext}
6761 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6762 if test x"$build_noncanonical" = x"$with_cross_host"; then
6763 # Ordinary cross (host!=target and host=build)
6764 which_gcj=built
6765 else
6766 # Canadian cross (host!=target and host!=build)
6767 which_gcj=cross
6769 else
6770 which_gcj=cross
6772 else
6773 # We are being configured with a native or crossed-native compiler
6774 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6775 if test x"$build" = x"$host"; then
6776 # True native build (host=target and host=build)
6777 which_gcj=built
6778 else
6779 # Crossed-native build (host=target and host!=build)
6780 which_gcj=cross
6782 else
6783 which_gcj=path
6786 libgcjdir=`${PWDCMD-pwd}`
6787 case $GCJ in
6788 *" -B"*)
6789 # Just in case there is a comma in the build dir, quote it for the
6790 # sed command below.
6791 case $libgcjdir in
6792 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6793 *) qlibgcjdir=$libgcjdir;;
6794 esac
6795 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6798 GCJ=$GCJ" -B$libgcjdir/"
6800 esac
6801 case "${which_gcj}" in
6802 built)
6803 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6805 cross)
6806 if test "x${with_newlib}" = "xyes"; then
6807 # FIXME (comment): Why is this needed?
6808 GCC_UNWIND_INCLUDE=
6810 GCJH='$(target_noncanonical)-gcjh'
6812 path)
6813 GCJH=gcjh
6815 esac
6816 JAVAC="$GCJ -C"
6817 export JAVAC
6823 # Create it, so that compile/link tests don't fail
6824 test -f libgcj.spec || touch libgcj.spec
6828 # Set up to configure Classpath.
6829 # FIXME: no supported way to pass args in autoconf.
6830 # Disable tool wrappers to avoid ltdl.h configure check.
6831 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6832 ac_configure_args="$ac_configure_args --disable-load-library"
6833 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6834 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6835 dir1=`cd $srcdir && pwd`
6836 dir2=`pwd`
6837 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6838 ac_configure_args="$ac_configure_args --disable-core-jni"
6839 ac_configure_args="$ac_configure_args --disable-examples"
6840 ac_configure_args="$ac_configure_args --with-glibj=build"
6841 if test "$browser_plugin_enabled" != yes; then
6842 ac_configure_args="$ac_configure_args --disable-plugin"
6843 else
6844 ac_configure_args="$ac_configure_args --enable-plugin"
6846 if test "$gconf_enabled" != yes; then
6847 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6848 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6850 if test "$use_gtk_awt" != yes; then
6851 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6853 if test "$use_qt_awt" != yes; then
6854 ac_configure_args="$ac_configure_args --disable-qt-peer"
6855 else
6856 # We need this as qt is disabled by default in classpath.
6857 ac_configure_args="$ac_configure_args --enable-qt-peer"
6859 if test "$use_x_awt" != yes; then
6860 ac_configure_args="$ac_configure_args --without-escher"
6861 else
6862 # We need this as escher is disabled by default in classpath.
6863 if test "$use_escher" != true; then
6864 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6865 else
6866 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6869 if test "x$BUILD_GJDOC" = xno; then
6870 ac_configure_args="$ac_configure_args --disable-gjdoc"
6872 # -Werror causes unavoidable problems in code using alsa.
6873 ac_configure_args="$ac_configure_args --disable-regen-headers"
6874 ac_configure_args="$ac_configure_args --disable-Werror"
6876 # Only use libltdl for non-newlib builds.
6877 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6878 case $enable_ltdl_convenience in
6879 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6880 "") enable_ltdl_convenience=yes
6881 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6882 esac
6883 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6884 LTDLINCL='-I${top_srcdir}/''libltdl'
6885 # For backwards non-gettext consistent compatibility...
6886 INCLTDL="$LTDLINCL"
6888 enable_dlopen=yes
6892 DIRLTDL=libltdl
6894 $as_echo "#define USE_LTDL 1" >>confdefs.h
6896 # Sigh. Libtool's macro doesn't do the right thing.
6897 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6898 # FIXME: this is a hack.
6899 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6900 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6905 case `pwd` in
6906 *\ * | *\ *)
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6909 esac
6913 macro_version='2.2.6'
6914 macro_revision='1.3012'
6928 ltmain="$ac_aux_dir/ltmain.sh"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6931 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6932 if test "${ac_cv_path_SED+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6936 for ac_i in 1 2 3 4 5 6 7; do
6937 ac_script="$ac_script$as_nl$ac_script"
6938 done
6939 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6940 { ac_script=; unset ac_script;}
6941 if test -z "$SED"; then
6942 ac_path_SED_found=false
6943 # Loop through the user's path and test for each of PROGNAME-LIST
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_prog in sed gsed; do
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6952 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6953 # Check for GNU ac_path_SED and select it if it is found.
6954 # Check for GNU $ac_path_SED
6955 case `"$ac_path_SED" --version 2>&1` in
6956 *GNU*)
6957 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6959 ac_count=0
6960 $as_echo_n 0123456789 >"conftest.in"
6961 while :
6963 cat "conftest.in" "conftest.in" >"conftest.tmp"
6964 mv "conftest.tmp" "conftest.in"
6965 cp "conftest.in" "conftest.nl"
6966 $as_echo '' >> "conftest.nl"
6967 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6969 as_fn_arith $ac_count + 1 && ac_count=$as_val
6970 if test $ac_count -gt ${ac_path_SED_max-0}; then
6971 # Best one so far, save it but keep looking for a better one
6972 ac_cv_path_SED="$ac_path_SED"
6973 ac_path_SED_max=$ac_count
6975 # 10*(2^10) chars as input seems more than enough
6976 test $ac_count -gt 10 && break
6977 done
6978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6979 esac
6981 $ac_path_SED_found && break 3
6982 done
6983 done
6984 done
6985 IFS=$as_save_IFS
6986 if test -z "$ac_cv_path_SED"; then
6987 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6989 else
6990 ac_cv_path_SED=$SED
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6995 $as_echo "$ac_cv_path_SED" >&6; }
6996 SED="$ac_cv_path_SED"
6997 rm -f conftest.sed
6999 test -z "$SED" && SED=sed
7000 Xsed="$SED -e 1s/^X//"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7013 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7014 if test "${ac_cv_path_GREP+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -z "$GREP"; then
7018 ac_path_GREP_found=false
7019 # Loop through the user's path and test for each of PROGNAME-LIST
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_prog in grep ggrep; do
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7028 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7029 # Check for GNU ac_path_GREP and select it if it is found.
7030 # Check for GNU $ac_path_GREP
7031 case `"$ac_path_GREP" --version 2>&1` in
7032 *GNU*)
7033 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7035 ac_count=0
7036 $as_echo_n 0123456789 >"conftest.in"
7037 while :
7039 cat "conftest.in" "conftest.in" >"conftest.tmp"
7040 mv "conftest.tmp" "conftest.in"
7041 cp "conftest.in" "conftest.nl"
7042 $as_echo 'GREP' >> "conftest.nl"
7043 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7045 as_fn_arith $ac_count + 1 && ac_count=$as_val
7046 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7047 # Best one so far, save it but keep looking for a better one
7048 ac_cv_path_GREP="$ac_path_GREP"
7049 ac_path_GREP_max=$ac_count
7051 # 10*(2^10) chars as input seems more than enough
7052 test $ac_count -gt 10 && break
7053 done
7054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7055 esac
7057 $ac_path_GREP_found && break 3
7058 done
7059 done
7060 done
7061 IFS=$as_save_IFS
7062 if test -z "$ac_cv_path_GREP"; then
7063 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7065 else
7066 ac_cv_path_GREP=$GREP
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7071 $as_echo "$ac_cv_path_GREP" >&6; }
7072 GREP="$ac_cv_path_GREP"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7076 $as_echo_n "checking for egrep... " >&6; }
7077 if test "${ac_cv_path_EGREP+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7081 then ac_cv_path_EGREP="$GREP -E"
7082 else
7083 if test -z "$EGREP"; then
7084 ac_path_EGREP_found=false
7085 # Loop through the user's path and test for each of PROGNAME-LIST
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_prog in egrep; do
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7094 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7095 # Check for GNU ac_path_EGREP and select it if it is found.
7096 # Check for GNU $ac_path_EGREP
7097 case `"$ac_path_EGREP" --version 2>&1` in
7098 *GNU*)
7099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7101 ac_count=0
7102 $as_echo_n 0123456789 >"conftest.in"
7103 while :
7105 cat "conftest.in" "conftest.in" >"conftest.tmp"
7106 mv "conftest.tmp" "conftest.in"
7107 cp "conftest.in" "conftest.nl"
7108 $as_echo 'EGREP' >> "conftest.nl"
7109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7111 as_fn_arith $ac_count + 1 && ac_count=$as_val
7112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7113 # Best one so far, save it but keep looking for a better one
7114 ac_cv_path_EGREP="$ac_path_EGREP"
7115 ac_path_EGREP_max=$ac_count
7117 # 10*(2^10) chars as input seems more than enough
7118 test $ac_count -gt 10 && break
7119 done
7120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7121 esac
7123 $ac_path_EGREP_found && break 3
7124 done
7125 done
7126 done
7127 IFS=$as_save_IFS
7128 if test -z "$ac_cv_path_EGREP"; then
7129 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7131 else
7132 ac_cv_path_EGREP=$EGREP
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7138 $as_echo "$ac_cv_path_EGREP" >&6; }
7139 EGREP="$ac_cv_path_EGREP"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7143 $as_echo_n "checking for fgrep... " >&6; }
7144 if test "${ac_cv_path_FGREP+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7148 then ac_cv_path_FGREP="$GREP -F"
7149 else
7150 if test -z "$FGREP"; then
7151 ac_path_FGREP_found=false
7152 # Loop through the user's path and test for each of PROGNAME-LIST
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_prog in fgrep; do
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7161 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7162 # Check for GNU ac_path_FGREP and select it if it is found.
7163 # Check for GNU $ac_path_FGREP
7164 case `"$ac_path_FGREP" --version 2>&1` in
7165 *GNU*)
7166 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7168 ac_count=0
7169 $as_echo_n 0123456789 >"conftest.in"
7170 while :
7172 cat "conftest.in" "conftest.in" >"conftest.tmp"
7173 mv "conftest.tmp" "conftest.in"
7174 cp "conftest.in" "conftest.nl"
7175 $as_echo 'FGREP' >> "conftest.nl"
7176 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7178 as_fn_arith $ac_count + 1 && ac_count=$as_val
7179 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7180 # Best one so far, save it but keep looking for a better one
7181 ac_cv_path_FGREP="$ac_path_FGREP"
7182 ac_path_FGREP_max=$ac_count
7184 # 10*(2^10) chars as input seems more than enough
7185 test $ac_count -gt 10 && break
7186 done
7187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7188 esac
7190 $ac_path_FGREP_found && break 3
7191 done
7192 done
7193 done
7194 IFS=$as_save_IFS
7195 if test -z "$ac_cv_path_FGREP"; then
7196 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7198 else
7199 ac_cv_path_FGREP=$FGREP
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7205 $as_echo "$ac_cv_path_FGREP" >&6; }
7206 FGREP="$ac_cv_path_FGREP"
7209 test -z "$GREP" && GREP=grep
7229 # Check whether --with-gnu-ld was given.
7230 if test "${with_gnu_ld+set}" = set; then :
7231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7232 else
7233 with_gnu_ld=no
7236 ac_prog=ld
7237 if test "$GCC" = yes; then
7238 # Check if gcc -print-prog-name=ld gives a path.
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7240 $as_echo_n "checking for ld used by $CC... " >&6; }
7241 case $host in
7242 *-*-mingw*)
7243 # gcc leaves a trailing carriage return which upsets mingw
7244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7247 esac
7248 case $ac_prog in
7249 # Accept absolute paths.
7250 [\\/]* | ?:[\\/]*)
7251 re_direlt='/[^/][^/]*/\.\./'
7252 # Canonicalize the pathname of ld
7253 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7254 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7255 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7256 done
7257 test -z "$LD" && LD="$ac_prog"
7260 # If it fails, then pretend we aren't using GCC.
7261 ac_prog=ld
7264 # If it is relative, then search for the first ld in PATH.
7265 with_gnu_ld=unknown
7267 esac
7268 elif test "$with_gnu_ld" = yes; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7270 $as_echo_n "checking for GNU ld... " >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7273 $as_echo_n "checking for non-GNU ld... " >&6; }
7275 if test "${lt_cv_path_LD+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -z "$LD"; then
7279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7280 for ac_dir in $PATH; do
7281 IFS="$lt_save_ifs"
7282 test -z "$ac_dir" && ac_dir=.
7283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7284 lt_cv_path_LD="$ac_dir/$ac_prog"
7285 # Check to see if the program is GNU ld. I'd rather use --version,
7286 # but apparently some variants of GNU ld only accept -v.
7287 # Break only if it was the GNU/non-GNU ld that we prefer.
7288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7289 *GNU* | *'with BFD'*)
7290 test "$with_gnu_ld" != no && break
7293 test "$with_gnu_ld" != yes && break
7295 esac
7297 done
7298 IFS="$lt_save_ifs"
7299 else
7300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7304 LD="$lt_cv_path_LD"
7305 if test -n "$LD"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7307 $as_echo "$LD" >&6; }
7308 else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7312 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7315 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7319 case `$LD -v 2>&1 </dev/null` in
7320 *GNU* | *'with BFD'*)
7321 lt_cv_prog_gnu_ld=yes
7324 lt_cv_prog_gnu_ld=no
7326 esac
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7330 with_gnu_ld=$lt_cv_prog_gnu_ld
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7341 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7342 if test "${lt_cv_path_NM+set}" = set; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$NM"; then
7346 # Let the user override the test.
7347 lt_cv_path_NM="$NM"
7348 else
7349 lt_nm_to_check="${ac_tool_prefix}nm"
7350 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7351 lt_nm_to_check="$lt_nm_to_check nm"
7353 for lt_tmp_nm in $lt_nm_to_check; do
7354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7355 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7356 IFS="$lt_save_ifs"
7357 test -z "$ac_dir" && ac_dir=.
7358 tmp_nm="$ac_dir/$lt_tmp_nm"
7359 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7360 # Check to see if the nm accepts a BSD-compat flag.
7361 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7362 # nm: unknown option "B" ignored
7363 # Tru64's nm complains that /dev/null is an invalid object file
7364 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7365 */dev/null* | *'Invalid file or object type'*)
7366 lt_cv_path_NM="$tmp_nm -B"
7367 break
7370 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7371 */dev/null*)
7372 lt_cv_path_NM="$tmp_nm -p"
7373 break
7376 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7377 continue # so that we can try to find one that supports BSD flags
7379 esac
7381 esac
7383 done
7384 IFS="$lt_save_ifs"
7385 done
7386 : ${lt_cv_path_NM=no}
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7390 $as_echo "$lt_cv_path_NM" >&6; }
7391 if test "$lt_cv_path_NM" != "no"; then
7392 NM="$lt_cv_path_NM"
7393 else
7394 # Didn't find any BSD compatible name lister, look for dumpbin.
7395 if test -n "$ac_tool_prefix"; then
7396 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 if test -n "$DUMPBIN"; then
7406 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7419 done
7420 done
7421 IFS=$as_save_IFS
7425 DUMPBIN=$ac_cv_prog_DUMPBIN
7426 if test -n "$DUMPBIN"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7428 $as_echo "$DUMPBIN" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7435 test -n "$DUMPBIN" && break
7436 done
7438 if test -z "$DUMPBIN"; then
7439 ac_ct_DUMPBIN=$DUMPBIN
7440 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7442 # Extract the first word of "$ac_prog", so it can be a program name with args.
7443 set dummy $ac_prog; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_DUMPBIN"; then
7450 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7470 if test -n "$ac_ct_DUMPBIN"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7472 $as_echo "$ac_ct_DUMPBIN" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7479 test -n "$ac_ct_DUMPBIN" && break
7480 done
7482 if test "x$ac_ct_DUMPBIN" = x; then
7483 DUMPBIN=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 DUMPBIN=$ac_ct_DUMPBIN
7496 if test "$DUMPBIN" != ":"; then
7497 NM="$DUMPBIN"
7500 test -z "$NM" && NM=nm
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7508 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7509 if test "${lt_cv_nm_interface+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_nm_interface="BSD nm"
7513 echo "int some_variable = 0;" > conftest.$ac_ext
7514 (eval echo "\"\$as_me:7514: $ac_compile\"" >&5)
7515 (eval "$ac_compile" 2>conftest.err)
7516 cat conftest.err >&5
7517 (eval echo "\"\$as_me:7517: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7518 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7519 cat conftest.err >&5
7520 (eval echo "\"\$as_me:7520: output\"" >&5)
7521 cat conftest.out >&5
7522 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7523 lt_cv_nm_interface="MS dumpbin"
7525 rm -f conftest*
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7528 $as_echo "$lt_cv_nm_interface" >&6; }
7530 # find the maximum length of command line arguments
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7532 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7533 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7537 teststring="ABCD"
7539 case $build_os in
7540 msdosdjgpp*)
7541 # On DJGPP, this test can blow up pretty badly due to problems in libc
7542 # (any single argument exceeding 2000 bytes causes a buffer overrun
7543 # during glob expansion). Even if it were fixed, the result of this
7544 # check would be larger than it should be.
7545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7548 gnu*)
7549 # Under GNU Hurd, this test is not required because there is
7550 # no limit to the length of command line arguments.
7551 # Libtool will interpret -1 as no limit whatsoever
7552 lt_cv_sys_max_cmd_len=-1;
7555 cygwin* | mingw* | cegcc*)
7556 # On Win9x/ME, this test blows up -- it succeeds, but takes
7557 # about 5 minutes as the teststring grows exponentially.
7558 # Worse, since 9x/ME are not pre-emptively multitasking,
7559 # you end up with a "frozen" computer, even though with patience
7560 # the test eventually succeeds (with a max line length of 256k).
7561 # Instead, let's just punt: use the minimum linelength reported by
7562 # all of the supported platforms: 8192 (on NT/2K/XP).
7563 lt_cv_sys_max_cmd_len=8192;
7566 amigaos*)
7567 # On AmigaOS with pdksh, this test takes hours, literally.
7568 # So we just punt and use a minimum line length of 8192.
7569 lt_cv_sys_max_cmd_len=8192;
7572 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7573 # This has been around since 386BSD, at least. Likely further.
7574 if test -x /sbin/sysctl; then
7575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7576 elif test -x /usr/sbin/sysctl; then
7577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7578 else
7579 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7581 # And add a safety zone
7582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7586 interix*)
7587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7588 lt_cv_sys_max_cmd_len=196608
7591 osf*)
7592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7594 # nice to cause kernel panics so lets avoid the loop below.
7595 # First set a reasonable default.
7596 lt_cv_sys_max_cmd_len=16384
7598 if test -x /sbin/sysconfig; then
7599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7601 esac
7604 sco3.2v5*)
7605 lt_cv_sys_max_cmd_len=102400
7607 sysv5* | sco5v6* | sysv4.2uw2*)
7608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7609 if test -n "$kargmax"; then
7610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7611 else
7612 lt_cv_sys_max_cmd_len=32768
7616 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7617 if test -n "$lt_cv_sys_max_cmd_len"; then
7618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7620 else
7621 # Make teststring a little bigger before we do anything with it.
7622 # a 1K string should be a reasonable start.
7623 for i in 1 2 3 4 5 6 7 8 ; do
7624 teststring=$teststring$teststring
7625 done
7626 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7627 # If test is not a shell built-in, we'll probably end up computing a
7628 # maximum length that is only half of the actual maximum length, but
7629 # we can't tell.
7630 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7631 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7632 test $i != 17 # 1/2 MB should be enough
7634 i=`expr $i + 1`
7635 teststring=$teststring$teststring
7636 done
7637 # Only check the string length outside the loop.
7638 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7639 teststring=
7640 # Add a significant safety factor because C++ compilers can tack on
7641 # massive amounts of additional arguments before passing them to the
7642 # linker. It appears as though 1/2 is a usable value.
7643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7646 esac
7650 if test -n $lt_cv_sys_max_cmd_len ; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7652 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7653 else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7655 $as_echo "none" >&6; }
7657 max_cmd_len=$lt_cv_sys_max_cmd_len
7664 : ${CP="cp -f"}
7665 : ${MV="mv -f"}
7666 : ${RM="rm -f"}
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7669 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7670 # Try some XSI features
7671 xsi_shell=no
7672 ( _lt_dummy="a/b/c"
7673 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7674 = c,a/b,, \
7675 && eval 'test $(( 1 + 1 )) -eq 2 \
7676 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7677 && xsi_shell=yes
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7679 $as_echo "$xsi_shell" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7683 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7684 lt_shell_append=no
7685 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7686 >/dev/null 2>&1 \
7687 && lt_shell_append=yes
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7689 $as_echo "$lt_shell_append" >&6; }
7692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7693 lt_unset=unset
7694 else
7695 lt_unset=false
7702 # test EBCDIC or ASCII
7703 case `echo X|tr X '\101'` in
7704 A) # ASCII based system
7705 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7706 lt_SP2NL='tr \040 \012'
7707 lt_NL2SP='tr \015\012 \040\040'
7709 *) # EBCDIC based system
7710 lt_SP2NL='tr \100 \n'
7711 lt_NL2SP='tr \r\n \100\100'
7713 esac
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7724 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7725 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 lt_cv_ld_reload_flag='-r'
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7731 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7732 reload_flag=$lt_cv_ld_reload_flag
7733 case $reload_flag in
7734 "" | " "*) ;;
7735 *) reload_flag=" $reload_flag" ;;
7736 esac
7737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7738 case $host_os in
7739 darwin*)
7740 if test "$GCC" = yes; then
7741 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7742 else
7743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7746 esac
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$OBJDUMP"; then
7765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7780 IFS=$as_save_IFS
7784 OBJDUMP=$ac_cv_prog_OBJDUMP
7785 if test -n "$OBJDUMP"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7787 $as_echo "$OBJDUMP" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7795 if test -z "$ac_cv_prog_OBJDUMP"; then
7796 ac_ct_OBJDUMP=$OBJDUMP
7797 # Extract the first word of "objdump", so it can be a program name with args.
7798 set dummy objdump; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_OBJDUMP"; then
7805 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7818 done
7819 done
7820 IFS=$as_save_IFS
7824 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7825 if test -n "$ac_ct_OBJDUMP"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7827 $as_echo "$ac_ct_OBJDUMP" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7833 if test "x$ac_ct_OBJDUMP" = x; then
7834 OBJDUMP="false"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 OBJDUMP=$ac_ct_OBJDUMP
7844 else
7845 OBJDUMP="$ac_cv_prog_OBJDUMP"
7848 test -z "$OBJDUMP" && OBJDUMP=objdump
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7859 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7860 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 lt_cv_file_magic_cmd='$MAGIC_CMD'
7864 lt_cv_file_magic_test_file=
7865 lt_cv_deplibs_check_method='unknown'
7866 # Need to set the preceding variable on all platforms that support
7867 # interlibrary dependencies.
7868 # 'none' -- dependencies not supported.
7869 # `unknown' -- same as none, but documents that we really don't know.
7870 # 'pass_all' -- all dependencies passed with no checks.
7871 # 'test_compile' -- check by making test program.
7872 # 'file_magic [[regex]]' -- check by looking for files in library path
7873 # which responds to the $file_magic_cmd with a given extended regex.
7874 # If you have `file' or equivalent on your system and you're not sure
7875 # whether `pass_all' will *always* work, you probably want this one.
7877 case $host_os in
7878 aix[4-9]*)
7879 lt_cv_deplibs_check_method=pass_all
7882 beos*)
7883 lt_cv_deplibs_check_method=pass_all
7886 bsdi[45]*)
7887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7888 lt_cv_file_magic_cmd='/usr/bin/file -L'
7889 lt_cv_file_magic_test_file=/shlib/libc.so
7892 cygwin*)
7893 # func_win32_libid is a shell function defined in ltmain.sh
7894 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7895 lt_cv_file_magic_cmd='func_win32_libid'
7898 mingw* | pw32*)
7899 # Base MSYS/MinGW do not provide the 'file' command needed by
7900 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7901 # unless we find 'file', for example because we are cross-compiling.
7902 if ( file / ) >/dev/null 2>&1; then
7903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7904 lt_cv_file_magic_cmd='func_win32_libid'
7905 else
7906 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7907 lt_cv_file_magic_cmd='$OBJDUMP -f'
7911 cegcc)
7912 # use the weaker test based on 'objdump'. See mingw*.
7913 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7914 lt_cv_file_magic_cmd='$OBJDUMP -f'
7917 darwin* | rhapsody*)
7918 lt_cv_deplibs_check_method=pass_all
7921 freebsd* | dragonfly*)
7922 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7923 case $host_cpu in
7924 i*86 )
7925 # Not sure whether the presence of OpenBSD here was a mistake.
7926 # Let's accept both of them until this is cleared up.
7927 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7928 lt_cv_file_magic_cmd=/usr/bin/file
7929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7931 esac
7932 else
7933 lt_cv_deplibs_check_method=pass_all
7937 gnu*)
7938 lt_cv_deplibs_check_method=pass_all
7941 hpux10.20* | hpux11*)
7942 lt_cv_file_magic_cmd=/usr/bin/file
7943 case $host_cpu in
7944 ia64*)
7945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7946 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7948 hppa*64*)
7949 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]'
7950 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7954 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7956 esac
7959 interix[3-9]*)
7960 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7964 irix5* | irix6* | nonstopux*)
7965 case $LD in
7966 *-32|*"-32 ") libmagic=32-bit;;
7967 *-n32|*"-n32 ") libmagic=N32;;
7968 *-64|*"-64 ") libmagic=64-bit;;
7969 *) libmagic=never-match;;
7970 esac
7971 lt_cv_deplibs_check_method=pass_all
7974 # This must be Linux ELF.
7975 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7976 lt_cv_deplibs_check_method=pass_all
7979 netbsd*)
7980 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7982 else
7983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7987 newos6*)
7988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7989 lt_cv_file_magic_cmd=/usr/bin/file
7990 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7993 *nto* | *qnx*)
7994 lt_cv_deplibs_check_method=pass_all
7997 openbsd*)
7998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8000 else
8001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8005 osf3* | osf4* | osf5*)
8006 lt_cv_deplibs_check_method=pass_all
8009 rdos*)
8010 lt_cv_deplibs_check_method=pass_all
8013 solaris*)
8014 lt_cv_deplibs_check_method=pass_all
8017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8018 lt_cv_deplibs_check_method=pass_all
8021 sysv4 | sysv4.3*)
8022 case $host_vendor in
8023 motorola)
8024 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]'
8025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8027 ncr)
8028 lt_cv_deplibs_check_method=pass_all
8030 sequent)
8031 lt_cv_file_magic_cmd='/bin/file'
8032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8034 sni)
8035 lt_cv_file_magic_cmd='/bin/file'
8036 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8037 lt_cv_file_magic_test_file=/lib/libc.so
8039 siemens)
8040 lt_cv_deplibs_check_method=pass_all
8043 lt_cv_deplibs_check_method=pass_all
8045 esac
8048 tpf*)
8049 lt_cv_deplibs_check_method=pass_all
8051 esac
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8055 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8056 file_magic_cmd=$lt_cv_file_magic_cmd
8057 deplibs_check_method=$lt_cv_deplibs_check_method
8058 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}ar; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_AR+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$AR"; then
8080 ac_cv_prog_AR="$AR" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_AR="${ac_tool_prefix}ar"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8093 done
8094 done
8095 IFS=$as_save_IFS
8099 AR=$ac_cv_prog_AR
8100 if test -n "$AR"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8102 $as_echo "$AR" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8110 if test -z "$ac_cv_prog_AR"; then
8111 ac_ct_AR=$AR
8112 # Extract the first word of "ar", so it can be a program name with args.
8113 set dummy ar; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$ac_ct_AR"; then
8120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_ac_ct_AR="ar"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8140 if test -n "$ac_ct_AR"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8142 $as_echo "$ac_ct_AR" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8148 if test "x$ac_ct_AR" = x; then
8149 AR="false"
8150 else
8151 case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157 AR=$ac_ct_AR
8159 else
8160 AR="$ac_cv_prog_AR"
8163 test -z "$AR" && AR=ar
8164 test -z "$AR_FLAGS" && AR_FLAGS=cru
8176 if test -n "$ac_tool_prefix"; then
8177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8178 set dummy ${ac_tool_prefix}strip; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if test "${ac_cv_prog_STRIP+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 if test -n "$STRIP"; then
8185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8198 done
8199 done
8200 IFS=$as_save_IFS
8204 STRIP=$ac_cv_prog_STRIP
8205 if test -n "$STRIP"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8207 $as_echo "$STRIP" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8215 if test -z "$ac_cv_prog_STRIP"; then
8216 ac_ct_STRIP=$STRIP
8217 # Extract the first word of "strip", so it can be a program name with args.
8218 set dummy strip; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 if test -n "$ac_ct_STRIP"; then
8225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_prog_ac_ct_STRIP="strip"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8238 done
8239 done
8240 IFS=$as_save_IFS
8244 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8245 if test -n "$ac_ct_STRIP"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8247 $as_echo "$ac_ct_STRIP" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8253 if test "x$ac_ct_STRIP" = x; then
8254 STRIP=":"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257 yes:)
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262 STRIP=$ac_ct_STRIP
8264 else
8265 STRIP="$ac_cv_prog_STRIP"
8268 test -z "$STRIP" && STRIP=:
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 if test -n "$RANLIB"; then
8284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8303 RANLIB=$ac_cv_prog_RANLIB
8304 if test -n "$RANLIB"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8306 $as_echo "$RANLIB" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8314 if test -z "$ac_cv_prog_RANLIB"; then
8315 ac_ct_RANLIB=$RANLIB
8316 # Extract the first word of "ranlib", so it can be a program name with args.
8317 set dummy ranlib; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$ac_ct_RANLIB"; then
8324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_prog_ac_ct_RANLIB="ranlib"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8337 done
8338 done
8339 IFS=$as_save_IFS
8343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8344 if test -n "$ac_ct_RANLIB"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8346 $as_echo "$ac_ct_RANLIB" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8352 if test "x$ac_ct_RANLIB" = x; then
8353 RANLIB=":"
8354 else
8355 case $cross_compiling:$ac_tool_warned in
8356 yes:)
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8360 esac
8361 RANLIB=$ac_ct_RANLIB
8363 else
8364 RANLIB="$ac_cv_prog_RANLIB"
8367 test -z "$RANLIB" && RANLIB=:
8374 # Determine commands to create old-style static archives.
8375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8376 old_postinstall_cmds='chmod 644 $oldlib'
8377 old_postuninstall_cmds=
8379 if test -n "$RANLIB"; then
8380 case $host_os in
8381 openbsd*)
8382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8387 esac
8388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8424 # If no C compiler was specified, use CC.
8425 LTCC=${LTCC-"$CC"}
8427 # If no C compiler flags were specified, use CFLAGS.
8428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8430 # Allow CC to be a program name with arguments.
8431 compiler=$CC
8434 # Check for command to grab the raw symbol name followed by C symbol from nm.
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8436 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8437 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8441 # These are sane defaults that work on at least a few old systems.
8442 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8444 # Character class describing NM global symbol codes.
8445 symcode='[BCDEGRST]'
8447 # Regexp to match symbols that can be accessed directly from C.
8448 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8450 # Define system-specific variables.
8451 case $host_os in
8452 aix*)
8453 symcode='[BCDT]'
8455 cygwin* | mingw* | pw32* | cegcc*)
8456 symcode='[ABCDGISTW]'
8458 hpux*)
8459 if test "$host_cpu" = ia64; then
8460 symcode='[ABCDEGRST]'
8463 irix* | nonstopux*)
8464 symcode='[BCDEGRST]'
8466 osf*)
8467 symcode='[BCDEGQRST]'
8469 solaris*)
8470 symcode='[BDRT]'
8472 sco3.2v5*)
8473 symcode='[DT]'
8475 sysv4.2uw2*)
8476 symcode='[DT]'
8478 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8479 symcode='[ABDT]'
8481 sysv4)
8482 symcode='[DFNSTU]'
8484 esac
8486 # If we're using GNU nm, then use its standard symbol codes.
8487 case `$NM -V 2>&1` in
8488 *GNU* | *'with BFD'*)
8489 symcode='[ABCDGIRSTW]' ;;
8490 esac
8492 # Transform an extracted symbol line into a proper C declaration.
8493 # Some systems (esp. on ia64) link data and code symbols differently,
8494 # so use this general approach.
8495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8497 # Transform an extracted symbol line into symbol name and symbol address
8498 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8499 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'"
8501 # Handle CRLF in mingw tool chain
8502 opt_cr=
8503 case $build_os in
8504 mingw*)
8505 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8507 esac
8509 # Try without a prefix underscore, then with it.
8510 for ac_symprfx in "" "_"; do
8512 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8513 symxfrm="\\1 $ac_symprfx\\2 \\2"
8515 # Write the raw and C identifiers.
8516 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8517 # Fake it for dumpbin and say T for any non-static function
8518 # and D for any global variable.
8519 # Also find C++ and __fastcall symbols from MSVC++,
8520 # which start with @ or ?.
8521 lt_cv_sys_global_symbol_pipe="$AWK '"\
8522 " {last_section=section; section=\$ 3};"\
8523 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8524 " \$ 0!~/External *\|/{next};"\
8525 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8526 " {if(hide[section]) next};"\
8527 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8528 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8529 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8530 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8531 " ' prfx=^$ac_symprfx"
8532 else
8533 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8536 # Check to see that the pipe works correctly.
8537 pipe_works=no
8539 rm -f conftest*
8540 cat > conftest.$ac_ext <<_LT_EOF
8541 #ifdef __cplusplus
8542 extern "C" {
8543 #endif
8544 char nm_test_var;
8545 void nm_test_func(void);
8546 void nm_test_func(void){}
8547 #ifdef __cplusplus
8549 #endif
8550 int main(){nm_test_var='a';nm_test_func();return(0);}
8551 _LT_EOF
8553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8554 (eval $ac_compile) 2>&5
8555 ac_status=$?
8556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8557 test $ac_status = 0; }; then
8558 # Now try to grab the symbols.
8559 nlist=conftest.nm
8560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8561 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8562 ac_status=$?
8563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8564 test $ac_status = 0; } && test -s "$nlist"; then
8565 # Try sorting and uniquifying the output.
8566 if sort "$nlist" | uniq > "$nlist"T; then
8567 mv -f "$nlist"T "$nlist"
8568 else
8569 rm -f "$nlist"T
8572 # Make sure that we snagged all the symbols we need.
8573 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8574 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8575 cat <<_LT_EOF > conftest.$ac_ext
8576 #ifdef __cplusplus
8577 extern "C" {
8578 #endif
8580 _LT_EOF
8581 # Now generate the symbol file.
8582 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8584 cat <<_LT_EOF >> conftest.$ac_ext
8586 /* The mapping between symbol names and symbols. */
8587 const struct {
8588 const char *name;
8589 void *address;
8591 lt__PROGRAM__LTX_preloaded_symbols[] =
8593 { "@PROGRAM@", (void *) 0 },
8594 _LT_EOF
8595 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8596 cat <<\_LT_EOF >> conftest.$ac_ext
8597 {0, (void *) 0}
8600 /* This works around a problem in FreeBSD linker */
8601 #ifdef FREEBSD_WORKAROUND
8602 static const void *lt_preloaded_setup() {
8603 return lt__PROGRAM__LTX_preloaded_symbols;
8605 #endif
8607 #ifdef __cplusplus
8609 #endif
8610 _LT_EOF
8611 # Now try linking the two files.
8612 mv conftest.$ac_objext conftstm.$ac_objext
8613 lt_save_LIBS="$LIBS"
8614 lt_save_CFLAGS="$CFLAGS"
8615 LIBS="conftstm.$ac_objext"
8616 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8618 (eval $ac_link) 2>&5
8619 ac_status=$?
8620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8621 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8622 pipe_works=yes
8624 LIBS="$lt_save_LIBS"
8625 CFLAGS="$lt_save_CFLAGS"
8626 else
8627 echo "cannot find nm_test_func in $nlist" >&5
8629 else
8630 echo "cannot find nm_test_var in $nlist" >&5
8632 else
8633 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8635 else
8636 echo "$progname: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 rm -rf conftest* conftst*
8641 # Do not use the global_symbol_pipe unless it works.
8642 if test "$pipe_works" = yes; then
8643 break
8644 else
8645 lt_cv_sys_global_symbol_pipe=
8647 done
8651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8652 lt_cv_sys_global_symbol_to_cdecl=
8654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8656 $as_echo "failed" >&6; }
8657 else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8659 $as_echo "ok" >&6; }
8684 # Check whether --enable-libtool-lock was given.
8685 if test "${enable_libtool_lock+set}" = set; then :
8686 enableval=$enable_libtool_lock;
8689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8691 # Some flags need to be propagated to the compiler or linker for good
8692 # libtool support.
8693 case $host in
8694 ia64-*-hpux*)
8695 # Find out which ABI we are using.
8696 echo 'int i;' > conftest.$ac_ext
8697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8698 (eval $ac_compile) 2>&5
8699 ac_status=$?
8700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8701 test $ac_status = 0; }; then
8702 case `/usr/bin/file conftest.$ac_objext` in
8703 *ELF-32*)
8704 HPUX_IA64_MODE="32"
8706 *ELF-64*)
8707 HPUX_IA64_MODE="64"
8709 esac
8711 rm -rf conftest*
8713 *-*-irix6*)
8714 # Find out which ABI we are using.
8715 echo '#line 8715 "configure"' > conftest.$ac_ext
8716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8717 (eval $ac_compile) 2>&5
8718 ac_status=$?
8719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8720 test $ac_status = 0; }; then
8721 if test "$lt_cv_prog_gnu_ld" = yes; then
8722 case `/usr/bin/file conftest.$ac_objext` in
8723 *32-bit*)
8724 LD="${LD-ld} -melf32bsmip"
8726 *N32*)
8727 LD="${LD-ld} -melf32bmipn32"
8729 *64-bit*)
8730 LD="${LD-ld} -melf64bmip"
8732 esac
8733 else
8734 case `/usr/bin/file conftest.$ac_objext` in
8735 *32-bit*)
8736 LD="${LD-ld} -32"
8738 *N32*)
8739 LD="${LD-ld} -n32"
8741 *64-bit*)
8742 LD="${LD-ld} -64"
8744 esac
8747 rm -rf conftest*
8750 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8751 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8752 # Find out which ABI we are using.
8753 echo 'int i;' > conftest.$ac_ext
8754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8755 (eval $ac_compile) 2>&5
8756 ac_status=$?
8757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8758 test $ac_status = 0; }; then
8759 case `/usr/bin/file conftest.o` in
8760 *32-bit*)
8761 case $host in
8762 x86_64-*kfreebsd*-gnu)
8763 LD="${LD-ld} -m elf_i386_fbsd"
8765 x86_64-*linux*)
8766 LD="${LD-ld} -m elf_i386"
8768 ppc64-*linux*|powerpc64-*linux*)
8769 LD="${LD-ld} -m elf32ppclinux"
8771 s390x-*linux*)
8772 LD="${LD-ld} -m elf_s390"
8774 sparc64-*linux*)
8775 LD="${LD-ld} -m elf32_sparc"
8777 esac
8779 *64-bit*)
8780 case $host in
8781 x86_64-*kfreebsd*-gnu)
8782 LD="${LD-ld} -m elf_x86_64_fbsd"
8784 x86_64-*linux*)
8785 LD="${LD-ld} -m elf_x86_64"
8787 ppc*-*linux*|powerpc*-*linux*)
8788 LD="${LD-ld} -m elf64ppc"
8790 s390*-*linux*|s390*-*tpf*)
8791 LD="${LD-ld} -m elf64_s390"
8793 sparc*-*linux*)
8794 LD="${LD-ld} -m elf64_sparc"
8796 esac
8798 esac
8800 rm -rf conftest*
8803 *-*-sco3.2v5*)
8804 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8805 SAVE_CFLAGS="$CFLAGS"
8806 CFLAGS="$CFLAGS -belf"
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8808 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8809 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 ac_ext=c
8813 ac_cpp='$CPP $CPPFLAGS'
8814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 if test x$gcc_no_link = xyes; then
8819 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8825 main ()
8829 return 0;
8831 _ACEOF
8832 if ac_fn_c_try_link "$LINENO"; then :
8833 lt_cv_cc_needs_belf=yes
8834 else
8835 lt_cv_cc_needs_belf=no
8837 rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 ac_ext=c
8840 ac_cpp='$CPP $CPPFLAGS'
8841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8847 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8848 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8850 CFLAGS="$SAVE_CFLAGS"
8853 sparc*-*solaris*)
8854 # Find out which ABI we are using.
8855 echo 'int i;' > conftest.$ac_ext
8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860 test $ac_status = 0; }; then
8861 case `/usr/bin/file conftest.o` in
8862 *64-bit*)
8863 case $lt_cv_prog_gnu_ld in
8864 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8867 LD="${LD-ld} -64"
8870 esac
8872 esac
8874 rm -rf conftest*
8876 esac
8878 need_locks="$enable_libtool_lock"
8881 case $host_os in
8882 rhapsody* | darwin*)
8883 if test -n "$ac_tool_prefix"; then
8884 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8885 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 if test -n "$DSYMUTIL"; then
8892 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8893 else
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 break 2
8905 done
8906 done
8907 IFS=$as_save_IFS
8911 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8912 if test -n "$DSYMUTIL"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8914 $as_echo "$DSYMUTIL" >&6; }
8915 else
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8922 if test -z "$ac_cv_prog_DSYMUTIL"; then
8923 ac_ct_DSYMUTIL=$DSYMUTIL
8924 # Extract the first word of "dsymutil", so it can be a program name with args.
8925 set dummy dsymutil; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 if test -n "$ac_ct_DSYMUTIL"; then
8932 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8933 else
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8941 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 break 2
8945 done
8946 done
8947 IFS=$as_save_IFS
8951 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8952 if test -n "$ac_ct_DSYMUTIL"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8954 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8955 else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8960 if test "x$ac_ct_DSYMUTIL" = x; then
8961 DSYMUTIL=":"
8962 else
8963 case $cross_compiling:$ac_tool_warned in
8964 yes:)
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8967 ac_tool_warned=yes ;;
8968 esac
8969 DSYMUTIL=$ac_ct_DSYMUTIL
8971 else
8972 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8975 if test -n "$ac_tool_prefix"; then
8976 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 if test -n "$NMEDIT"; then
8984 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9003 NMEDIT=$ac_cv_prog_NMEDIT
9004 if test -n "$NMEDIT"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9006 $as_echo "$NMEDIT" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9014 if test -z "$ac_cv_prog_NMEDIT"; then
9015 ac_ct_NMEDIT=$NMEDIT
9016 # Extract the first word of "nmedit", so it can be a program name with args.
9017 set dummy nmedit; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 if test -n "$ac_ct_NMEDIT"; then
9024 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9029 IFS=$as_save_IFS
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9033 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 break 2
9037 done
9038 done
9039 IFS=$as_save_IFS
9043 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9044 if test -n "$ac_ct_NMEDIT"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9046 $as_echo "$ac_ct_NMEDIT" >&6; }
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9052 if test "x$ac_ct_NMEDIT" = x; then
9053 NMEDIT=":"
9054 else
9055 case $cross_compiling:$ac_tool_warned in
9056 yes:)
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059 ac_tool_warned=yes ;;
9060 esac
9061 NMEDIT=$ac_ct_NMEDIT
9063 else
9064 NMEDIT="$ac_cv_prog_NMEDIT"
9067 if test -n "$ac_tool_prefix"; then
9068 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9069 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_prog_LIPO+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 if test -n "$LIPO"; then
9076 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9095 LIPO=$ac_cv_prog_LIPO
9096 if test -n "$LIPO"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9098 $as_echo "$LIPO" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9106 if test -z "$ac_cv_prog_LIPO"; then
9107 ac_ct_LIPO=$LIPO
9108 # Extract the first word of "lipo", so it can be a program name with args.
9109 set dummy lipo; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 if test -n "$ac_ct_LIPO"; then
9116 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_ac_ct_LIPO="lipo"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9129 done
9130 done
9131 IFS=$as_save_IFS
9135 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9136 if test -n "$ac_ct_LIPO"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9138 $as_echo "$ac_ct_LIPO" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9144 if test "x$ac_ct_LIPO" = x; then
9145 LIPO=":"
9146 else
9147 case $cross_compiling:$ac_tool_warned in
9148 yes:)
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9151 ac_tool_warned=yes ;;
9152 esac
9153 LIPO=$ac_ct_LIPO
9155 else
9156 LIPO="$ac_cv_prog_LIPO"
9159 if test -n "$ac_tool_prefix"; then
9160 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9161 set dummy ${ac_tool_prefix}otool; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 if test -n "$OTOOL"; then
9168 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9169 else
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9181 done
9182 done
9183 IFS=$as_save_IFS
9187 OTOOL=$ac_cv_prog_OTOOL
9188 if test -n "$OTOOL"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9190 $as_echo "$OTOOL" >&6; }
9191 else
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9198 if test -z "$ac_cv_prog_OTOOL"; then
9199 ac_ct_OTOOL=$OTOOL
9200 # Extract the first word of "otool", so it can be a program name with args.
9201 set dummy otool; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 if test -n "$ac_ct_OTOOL"; then
9208 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_prog_ac_ct_OTOOL="otool"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9221 done
9222 done
9223 IFS=$as_save_IFS
9227 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9228 if test -n "$ac_ct_OTOOL"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9230 $as_echo "$ac_ct_OTOOL" >&6; }
9231 else
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9236 if test "x$ac_ct_OTOOL" = x; then
9237 OTOOL=":"
9238 else
9239 case $cross_compiling:$ac_tool_warned in
9240 yes:)
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9243 ac_tool_warned=yes ;;
9244 esac
9245 OTOOL=$ac_ct_OTOOL
9247 else
9248 OTOOL="$ac_cv_prog_OTOOL"
9251 if test -n "$ac_tool_prefix"; then
9252 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9253 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 $as_echo_n "checking for $ac_word... " >&6; }
9256 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 if test -n "$OTOOL64"; then
9260 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9273 done
9274 done
9275 IFS=$as_save_IFS
9279 OTOOL64=$ac_cv_prog_OTOOL64
9280 if test -n "$OTOOL64"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9282 $as_echo "$OTOOL64" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9290 if test -z "$ac_cv_prog_OTOOL64"; then
9291 ac_ct_OTOOL64=$OTOOL64
9292 # Extract the first word of "otool64", so it can be a program name with args.
9293 set dummy otool64; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 if test -n "$ac_ct_OTOOL64"; then
9300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9301 else
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_prog_ac_ct_OTOOL64="otool64"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9313 done
9314 done
9315 IFS=$as_save_IFS
9319 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9320 if test -n "$ac_ct_OTOOL64"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9322 $as_echo "$ac_ct_OTOOL64" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9328 if test "x$ac_ct_OTOOL64" = x; then
9329 OTOOL64=":"
9330 else
9331 case $cross_compiling:$ac_tool_warned in
9332 yes:)
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9335 ac_tool_warned=yes ;;
9336 esac
9337 OTOOL64=$ac_ct_OTOOL64
9339 else
9340 OTOOL64="$ac_cv_prog_OTOOL64"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9370 $as_echo_n "checking for -single_module linker flag... " >&6; }
9371 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 lt_cv_apple_cc_single_mod=no
9375 if test -z "${LT_MULTI_MODULE}"; then
9376 # By default we will add the -single_module flag. You can override
9377 # by either setting the environment variable LT_MULTI_MODULE
9378 # non-empty at configure time, or by adding -multi_module to the
9379 # link flags.
9380 rm -rf libconftest.dylib*
9381 echo "int foo(void){return 1;}" > conftest.c
9382 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9383 -dynamiclib -Wl,-single_module conftest.c" >&5
9384 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9385 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9386 _lt_result=$?
9387 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9388 lt_cv_apple_cc_single_mod=yes
9389 else
9390 cat conftest.err >&5
9392 rm -rf libconftest.dylib*
9393 rm -f conftest.*
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9397 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9399 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9400 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 lt_cv_ld_exported_symbols_list=no
9404 save_LDFLAGS=$LDFLAGS
9405 echo "_main" > conftest.sym
9406 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9407 if test x$gcc_no_link = xyes; then
9408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9414 main ()
9418 return 0;
9420 _ACEOF
9421 if ac_fn_c_try_link "$LINENO"; then :
9422 lt_cv_ld_exported_symbols_list=yes
9423 else
9424 lt_cv_ld_exported_symbols_list=no
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 LDFLAGS="$save_LDFLAGS"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9432 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9433 case $host_os in
9434 rhapsody* | darwin1.[012])
9435 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9436 darwin1.*)
9437 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9438 darwin*) # darwin 5.x on
9439 # if running on 10.5 or later, the deployment target defaults
9440 # to the OS version, if on x86, and 10.4, the deployment
9441 # target defaults to 10.4. Don't you love it?
9442 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9443 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9444 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9445 10.[012]*)
9446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9447 10.*)
9448 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9449 esac
9451 esac
9452 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9453 _lt_dar_single_mod='$single_module'
9455 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9456 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9457 else
9458 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9460 if test "$DSYMUTIL" != ":"; then
9461 _lt_dsymutil='~$DSYMUTIL $lib || :'
9462 else
9463 _lt_dsymutil=
9466 esac
9468 ac_ext=c
9469 ac_cpp='$CPP $CPPFLAGS'
9470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9475 # On Suns, sometimes $CPP names a directory.
9476 if test -n "$CPP" && test -d "$CPP"; then
9477 CPP=
9479 if test -z "$CPP"; then
9480 if test "${ac_cv_prog_CPP+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 # Double quotes because CPP needs to be expanded
9484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9486 ac_preproc_ok=false
9487 for ac_c_preproc_warn_flag in '' yes
9489 # Use a header file that comes with gcc, so configuring glibc
9490 # with a fresh cross-compiler works.
9491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492 # <limits.h> exists even on freestanding compilers.
9493 # On the NeXT, cc -E runs the code through the compiler's parser,
9494 # not just through cpp. "Syntax error" is here to catch this case.
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 #ifdef __STDC__
9498 # include <limits.h>
9499 #else
9500 # include <assert.h>
9501 #endif
9502 Syntax error
9503 _ACEOF
9504 if ac_fn_c_try_cpp "$LINENO"; then :
9506 else
9507 # Broken: fails on valid input.
9508 continue
9510 rm -f conftest.err conftest.$ac_ext
9512 # OK, works on sane cases. Now check whether nonexistent headers
9513 # can be detected and how.
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 #include <ac_nonexistent.h>
9517 _ACEOF
9518 if ac_fn_c_try_cpp "$LINENO"; then :
9519 # Broken: success on invalid input.
9520 continue
9521 else
9522 # Passes both tests.
9523 ac_preproc_ok=:
9524 break
9526 rm -f conftest.err conftest.$ac_ext
9528 done
9529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9530 rm -f conftest.err conftest.$ac_ext
9531 if $ac_preproc_ok; then :
9532 break
9535 done
9536 ac_cv_prog_CPP=$CPP
9539 CPP=$ac_cv_prog_CPP
9540 else
9541 ac_cv_prog_CPP=$CPP
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9544 $as_echo "$CPP" >&6; }
9545 ac_preproc_ok=false
9546 for ac_c_preproc_warn_flag in '' yes
9548 # Use a header file that comes with gcc, so configuring glibc
9549 # with a fresh cross-compiler works.
9550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 # <limits.h> exists even on freestanding compilers.
9552 # On the NeXT, cc -E runs the code through the compiler's parser,
9553 # not just through cpp. "Syntax error" is here to catch this case.
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #ifdef __STDC__
9557 # include <limits.h>
9558 #else
9559 # include <assert.h>
9560 #endif
9561 Syntax error
9562 _ACEOF
9563 if ac_fn_c_try_cpp "$LINENO"; then :
9565 else
9566 # Broken: fails on valid input.
9567 continue
9569 rm -f conftest.err conftest.$ac_ext
9571 # OK, works on sane cases. Now check whether nonexistent headers
9572 # can be detected and how.
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 #include <ac_nonexistent.h>
9576 _ACEOF
9577 if ac_fn_c_try_cpp "$LINENO"; then :
9578 # Broken: success on invalid input.
9579 continue
9580 else
9581 # Passes both tests.
9582 ac_preproc_ok=:
9583 break
9585 rm -f conftest.err conftest.$ac_ext
9587 done
9588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9589 rm -f conftest.err conftest.$ac_ext
9590 if $ac_preproc_ok; then :
9592 else
9593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9595 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9596 See \`config.log' for more details." "$LINENO" 5; }
9599 ac_ext=c
9600 ac_cpp='$CPP $CPPFLAGS'
9601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9607 $as_echo_n "checking for ANSI C header files... " >&6; }
9608 if test "${ac_cv_header_stdc+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 #include <stdlib.h>
9614 #include <stdarg.h>
9615 #include <string.h>
9616 #include <float.h>
9619 main ()
9623 return 0;
9625 _ACEOF
9626 if ac_fn_c_try_compile "$LINENO"; then :
9627 ac_cv_header_stdc=yes
9628 else
9629 ac_cv_header_stdc=no
9631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 if test $ac_cv_header_stdc = yes; then
9634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 #include <string.h>
9639 _ACEOF
9640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9641 $EGREP "memchr" >/dev/null 2>&1; then :
9643 else
9644 ac_cv_header_stdc=no
9646 rm -f conftest*
9650 if test $ac_cv_header_stdc = yes; then
9651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <stdlib.h>
9656 _ACEOF
9657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9658 $EGREP "free" >/dev/null 2>&1; then :
9660 else
9661 ac_cv_header_stdc=no
9663 rm -f conftest*
9667 if test $ac_cv_header_stdc = yes; then
9668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9669 if test "$cross_compiling" = yes; then :
9671 else
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 #include <ctype.h>
9675 #include <stdlib.h>
9676 #if ((' ' & 0x0FF) == 0x020)
9677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9679 #else
9680 # define ISLOWER(c) \
9681 (('a' <= (c) && (c) <= 'i') \
9682 || ('j' <= (c) && (c) <= 'r') \
9683 || ('s' <= (c) && (c) <= 'z'))
9684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9685 #endif
9687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9689 main ()
9691 int i;
9692 for (i = 0; i < 256; i++)
9693 if (XOR (islower (i), ISLOWER (i))
9694 || toupper (i) != TOUPPER (i))
9695 return 2;
9696 return 0;
9698 _ACEOF
9699 if ac_fn_c_try_run "$LINENO"; then :
9701 else
9702 ac_cv_header_stdc=no
9704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9705 conftest.$ac_objext conftest.beam conftest.$ac_ext
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9711 $as_echo "$ac_cv_header_stdc" >&6; }
9712 if test $ac_cv_header_stdc = yes; then
9714 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9720 inttypes.h stdint.h unistd.h
9721 do :
9722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9723 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9725 eval as_val=\$$as_ac_Header
9726 if test "x$as_val" = x""yes; then :
9727 cat >>confdefs.h <<_ACEOF
9728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729 _ACEOF
9733 done
9736 for ac_header in dlfcn.h
9737 do :
9738 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9740 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9741 cat >>confdefs.h <<_ACEOF
9742 #define HAVE_DLFCN_H 1
9743 _ACEOF
9747 done
9751 ac_ext=cpp
9752 ac_cpp='$CXXCPP $CPPFLAGS'
9753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9756 if test -z "$CXX"; then
9757 if test -n "$CCC"; then
9758 CXX=$CCC
9759 else
9760 if test -n "$ac_tool_prefix"; then
9761 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if test "${ac_cv_prog_CXX+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 if test -n "$CXX"; then
9771 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9784 done
9785 done
9786 IFS=$as_save_IFS
9790 CXX=$ac_cv_prog_CXX
9791 if test -n "$CXX"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9793 $as_echo "$CXX" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9800 test -n "$CXX" && break
9801 done
9803 if test -z "$CXX"; then
9804 ac_ct_CXX=$CXX
9805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9807 # Extract the first word of "$ac_prog", so it can be a program name with args.
9808 set dummy $ac_prog; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 if test -n "$ac_ct_CXX"; then
9815 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9824 ac_cv_prog_ac_ct_CXX="$ac_prog"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9828 done
9829 done
9830 IFS=$as_save_IFS
9834 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9835 if test -n "$ac_ct_CXX"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9837 $as_echo "$ac_ct_CXX" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9844 test -n "$ac_ct_CXX" && break
9845 done
9847 if test "x$ac_ct_CXX" = x; then
9848 CXX="g++"
9849 else
9850 case $cross_compiling:$ac_tool_warned in
9851 yes:)
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9854 ac_tool_warned=yes ;;
9855 esac
9856 CXX=$ac_ct_CXX
9862 # Provide some information about the compiler.
9863 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9864 set X $ac_compile
9865 ac_compiler=$2
9866 for ac_option in --version -v -V -qversion; do
9867 { { ac_try="$ac_compiler $ac_option >&5"
9868 case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9873 $as_echo "$ac_try_echo"; } >&5
9874 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9875 ac_status=$?
9876 if test -s conftest.err; then
9877 sed '10a\
9878 ... rest of stderr output deleted ...
9879 10q' conftest.err >conftest.er1
9880 cat conftest.er1 >&5
9881 rm -f conftest.er1 conftest.err
9883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9884 test $ac_status = 0; }
9885 done
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9888 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9889 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9896 main ()
9898 #ifndef __GNUC__
9899 choke me
9900 #endif
9903 return 0;
9905 _ACEOF
9906 if ac_fn_cxx_try_compile "$LINENO"; then :
9907 ac_compiler_gnu=yes
9908 else
9909 ac_compiler_gnu=no
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9916 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9917 if test $ac_compiler_gnu = yes; then
9918 GXX=yes
9919 else
9920 GXX=
9922 ac_test_CXXFLAGS=${CXXFLAGS+set}
9923 ac_save_CXXFLAGS=$CXXFLAGS
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9925 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9926 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9930 ac_cxx_werror_flag=yes
9931 ac_cv_prog_cxx_g=no
9932 CXXFLAGS="-g"
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9937 main ()
9941 return 0;
9943 _ACEOF
9944 if ac_fn_cxx_try_compile "$LINENO"; then :
9945 ac_cv_prog_cxx_g=yes
9946 else
9947 CXXFLAGS=""
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9952 main ()
9956 return 0;
9958 _ACEOF
9959 if ac_fn_cxx_try_compile "$LINENO"; then :
9961 else
9962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9963 CXXFLAGS="-g"
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9968 main ()
9972 return 0;
9974 _ACEOF
9975 if ac_fn_cxx_try_compile "$LINENO"; then :
9976 ac_cv_prog_cxx_g=yes
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9986 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9987 if test "$ac_test_CXXFLAGS" = set; then
9988 CXXFLAGS=$ac_save_CXXFLAGS
9989 elif test $ac_cv_prog_cxx_g = yes; then
9990 if test "$GXX" = yes; then
9991 CXXFLAGS="-g -O2"
9992 else
9993 CXXFLAGS="-g"
9995 else
9996 if test "$GXX" = yes; then
9997 CXXFLAGS="-O2"
9998 else
9999 CXXFLAGS=
10002 ac_ext=c
10003 ac_cpp='$CPP $CPPFLAGS'
10004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10008 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10009 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10010 (test "X$CXX" != "Xg++"))) ; then
10011 ac_ext=cpp
10012 ac_cpp='$CXXCPP $CPPFLAGS'
10013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10017 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10018 if test -z "$CXXCPP"; then
10019 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 # Double quotes because CXXCPP needs to be expanded
10023 for CXXCPP in "$CXX -E" "/lib/cpp"
10025 ac_preproc_ok=false
10026 for ac_cxx_preproc_warn_flag in '' yes
10028 # Use a header file that comes with gcc, so configuring glibc
10029 # with a fresh cross-compiler works.
10030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 # <limits.h> exists even on freestanding compilers.
10032 # On the NeXT, cc -E runs the code through the compiler's parser,
10033 # not just through cpp. "Syntax error" is here to catch this case.
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036 #ifdef __STDC__
10037 # include <limits.h>
10038 #else
10039 # include <assert.h>
10040 #endif
10041 Syntax error
10042 _ACEOF
10043 if ac_fn_cxx_try_cpp "$LINENO"; then :
10045 else
10046 # Broken: fails on valid input.
10047 continue
10049 rm -f conftest.err conftest.$ac_ext
10051 # OK, works on sane cases. Now check whether nonexistent headers
10052 # can be detected and how.
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 #include <ac_nonexistent.h>
10056 _ACEOF
10057 if ac_fn_cxx_try_cpp "$LINENO"; then :
10058 # Broken: success on invalid input.
10059 continue
10060 else
10061 # Passes both tests.
10062 ac_preproc_ok=:
10063 break
10065 rm -f conftest.err conftest.$ac_ext
10067 done
10068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10069 rm -f conftest.err conftest.$ac_ext
10070 if $ac_preproc_ok; then :
10071 break
10074 done
10075 ac_cv_prog_CXXCPP=$CXXCPP
10078 CXXCPP=$ac_cv_prog_CXXCPP
10079 else
10080 ac_cv_prog_CXXCPP=$CXXCPP
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10083 $as_echo "$CXXCPP" >&6; }
10084 ac_preproc_ok=false
10085 for ac_cxx_preproc_warn_flag in '' yes
10087 # Use a header file that comes with gcc, so configuring glibc
10088 # with a fresh cross-compiler works.
10089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10090 # <limits.h> exists even on freestanding compilers.
10091 # On the NeXT, cc -E runs the code through the compiler's parser,
10092 # not just through cpp. "Syntax error" is here to catch this case.
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 #ifdef __STDC__
10096 # include <limits.h>
10097 #else
10098 # include <assert.h>
10099 #endif
10100 Syntax error
10101 _ACEOF
10102 if ac_fn_cxx_try_cpp "$LINENO"; then :
10104 else
10105 # Broken: fails on valid input.
10106 continue
10108 rm -f conftest.err conftest.$ac_ext
10110 # OK, works on sane cases. Now check whether nonexistent headers
10111 # can be detected and how.
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 #include <ac_nonexistent.h>
10115 _ACEOF
10116 if ac_fn_cxx_try_cpp "$LINENO"; then :
10117 # Broken: success on invalid input.
10118 continue
10119 else
10120 # Passes both tests.
10121 ac_preproc_ok=:
10122 break
10124 rm -f conftest.err conftest.$ac_ext
10126 done
10127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10128 rm -f conftest.err conftest.$ac_ext
10129 if $ac_preproc_ok; then :
10131 else
10132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10134 _lt_caught_CXX_error=yes; }
10137 ac_ext=c
10138 ac_cpp='$CPP $CPPFLAGS'
10139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10143 else
10144 _lt_caught_CXX_error=yes
10151 # Set options
10156 enable_win32_dll=no
10159 # Check whether --enable-shared was given.
10160 if test "${enable_shared+set}" = set; then :
10161 enableval=$enable_shared; p=${PACKAGE-default}
10162 case $enableval in
10163 yes) enable_shared=yes ;;
10164 no) enable_shared=no ;;
10166 enable_shared=no
10167 # Look at the argument we got. We use all the common list separators.
10168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10169 for pkg in $enableval; do
10170 IFS="$lt_save_ifs"
10171 if test "X$pkg" = "X$p"; then
10172 enable_shared=yes
10174 done
10175 IFS="$lt_save_ifs"
10177 esac
10178 else
10179 enable_shared=yes
10190 # Check whether --enable-static was given.
10191 if test "${enable_static+set}" = set; then :
10192 enableval=$enable_static; p=${PACKAGE-default}
10193 case $enableval in
10194 yes) enable_static=yes ;;
10195 no) enable_static=no ;;
10197 enable_static=no
10198 # Look at the argument we got. We use all the common list separators.
10199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10200 for pkg in $enableval; do
10201 IFS="$lt_save_ifs"
10202 if test "X$pkg" = "X$p"; then
10203 enable_static=yes
10205 done
10206 IFS="$lt_save_ifs"
10208 esac
10209 else
10210 enable_static=yes
10222 # Check whether --with-pic was given.
10223 if test "${with_pic+set}" = set; then :
10224 withval=$with_pic; pic_mode="$withval"
10225 else
10226 pic_mode=default
10230 test -z "$pic_mode" && pic_mode=default
10238 # Check whether --enable-fast-install was given.
10239 if test "${enable_fast_install+set}" = set; then :
10240 enableval=$enable_fast_install; p=${PACKAGE-default}
10241 case $enableval in
10242 yes) enable_fast_install=yes ;;
10243 no) enable_fast_install=no ;;
10245 enable_fast_install=no
10246 # Look at the argument we got. We use all the common list separators.
10247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10248 for pkg in $enableval; do
10249 IFS="$lt_save_ifs"
10250 if test "X$pkg" = "X$p"; then
10251 enable_fast_install=yes
10253 done
10254 IFS="$lt_save_ifs"
10256 esac
10257 else
10258 enable_fast_install=yes
10271 # This can be used to rebuild libtool when needed
10272 LIBTOOL_DEPS="$ltmain"
10274 # Always use our own libtool.
10275 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10301 test -z "$LN_S" && LN_S="ln -s"
10316 if test -n "${ZSH_VERSION+set}" ; then
10317 setopt NO_GLOB_SUBST
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10321 $as_echo_n "checking for objdir... " >&6; }
10322 if test "${lt_cv_objdir+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 rm -f .libs 2>/dev/null
10326 mkdir .libs 2>/dev/null
10327 if test -d .libs; then
10328 lt_cv_objdir=.libs
10329 else
10330 # MS-DOS does not allow filenames that begin with a dot.
10331 lt_cv_objdir=_libs
10333 rmdir .libs 2>/dev/null
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10336 $as_echo "$lt_cv_objdir" >&6; }
10337 objdir=$lt_cv_objdir
10343 cat >>confdefs.h <<_ACEOF
10344 #define LT_OBJDIR "$lt_cv_objdir/"
10345 _ACEOF
10363 case $host_os in
10364 aix3*)
10365 # AIX sometimes has problems with the GCC collect2 program. For some
10366 # reason, if we set the COLLECT_NAMES environment variable, the problems
10367 # vanish in a puff of smoke.
10368 if test "X${COLLECT_NAMES+set}" != Xset; then
10369 COLLECT_NAMES=
10370 export COLLECT_NAMES
10373 esac
10375 # Sed substitution that helps us do robust quoting. It backslashifies
10376 # metacharacters that are still active within double-quoted strings.
10377 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10379 # Same as above, but do not quote variable references.
10380 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10382 # Sed substitution to delay expansion of an escaped shell variable in a
10383 # double_quote_subst'ed string.
10384 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10386 # Sed substitution to delay expansion of an escaped single quote.
10387 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10389 # Sed substitution to avoid accidental globbing in evaled expressions
10390 no_glob_subst='s/\*/\\\*/g'
10392 # Global variables:
10393 ofile=libtool
10394 can_build_shared=yes
10396 # All known linkers require a `.a' archive for static linking (except MSVC,
10397 # which needs '.lib').
10398 libext=a
10400 with_gnu_ld="$lt_cv_prog_gnu_ld"
10402 old_CC="$CC"
10403 old_CFLAGS="$CFLAGS"
10405 # Set sane defaults for various variables
10406 test -z "$CC" && CC=cc
10407 test -z "$LTCC" && LTCC=$CC
10408 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10409 test -z "$LD" && LD=ld
10410 test -z "$ac_objext" && ac_objext=o
10412 for cc_temp in $compiler""; do
10413 case $cc_temp in
10414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10416 \-*) ;;
10417 *) break;;
10418 esac
10419 done
10420 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10423 # Only perform the check for file, if the check method requires it
10424 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10425 case $deplibs_check_method in
10426 file_magic*)
10427 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10429 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10430 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $MAGIC_CMD in
10434 [\\/*] | ?:[\\/]*)
10435 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10438 lt_save_MAGIC_CMD="$MAGIC_CMD"
10439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10440 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10441 for ac_dir in $ac_dummy; do
10442 IFS="$lt_save_ifs"
10443 test -z "$ac_dir" && ac_dir=.
10444 if test -f $ac_dir/${ac_tool_prefix}file; then
10445 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10446 if test -n "$file_magic_test_file"; then
10447 case $deplibs_check_method in
10448 "file_magic "*)
10449 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10451 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10452 $EGREP "$file_magic_regex" > /dev/null; then
10454 else
10455 cat <<_LT_EOF 1>&2
10457 *** Warning: the command libtool uses to detect shared libraries,
10458 *** $file_magic_cmd, produces output that libtool cannot recognize.
10459 *** The result is that libtool may fail to recognize shared libraries
10460 *** as such. This will affect the creation of libtool libraries that
10461 *** depend on shared libraries, but programs linked with such libtool
10462 *** libraries will work regardless of this problem. Nevertheless, you
10463 *** may want to report the problem to your system manager and/or to
10464 *** bug-libtool@gnu.org
10466 _LT_EOF
10467 fi ;;
10468 esac
10470 break
10472 done
10473 IFS="$lt_save_ifs"
10474 MAGIC_CMD="$lt_save_MAGIC_CMD"
10476 esac
10479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10480 if test -n "$MAGIC_CMD"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10482 $as_echo "$MAGIC_CMD" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10492 if test -z "$lt_cv_path_MAGIC_CMD"; then
10493 if test -n "$ac_tool_prefix"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10495 $as_echo_n "checking for file... " >&6; }
10496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 case $MAGIC_CMD in
10500 [\\/*] | ?:[\\/]*)
10501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10504 lt_save_MAGIC_CMD="$MAGIC_CMD"
10505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10507 for ac_dir in $ac_dummy; do
10508 IFS="$lt_save_ifs"
10509 test -z "$ac_dir" && ac_dir=.
10510 if test -f $ac_dir/file; then
10511 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10512 if test -n "$file_magic_test_file"; then
10513 case $deplibs_check_method in
10514 "file_magic "*)
10515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10518 $EGREP "$file_magic_regex" > /dev/null; then
10520 else
10521 cat <<_LT_EOF 1>&2
10523 *** Warning: the command libtool uses to detect shared libraries,
10524 *** $file_magic_cmd, produces output that libtool cannot recognize.
10525 *** The result is that libtool may fail to recognize shared libraries
10526 *** as such. This will affect the creation of libtool libraries that
10527 *** depend on shared libraries, but programs linked with such libtool
10528 *** libraries will work regardless of this problem. Nevertheless, you
10529 *** may want to report the problem to your system manager and/or to
10530 *** bug-libtool@gnu.org
10532 _LT_EOF
10533 fi ;;
10534 esac
10536 break
10538 done
10539 IFS="$lt_save_ifs"
10540 MAGIC_CMD="$lt_save_MAGIC_CMD"
10542 esac
10545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10546 if test -n "$MAGIC_CMD"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10548 $as_echo "$MAGIC_CMD" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10555 else
10556 MAGIC_CMD=:
10562 esac
10564 # Use C for the default configuration in the libtool script
10566 lt_save_CC="$CC"
10567 ac_ext=c
10568 ac_cpp='$CPP $CPPFLAGS'
10569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10574 # Source file extension for C test sources.
10575 ac_ext=c
10577 # Object file extension for compiled C test sources.
10578 objext=o
10579 objext=$objext
10581 # Code to be used in simple compile tests
10582 lt_simple_compile_test_code="int some_variable = 0;"
10584 # Code to be used in simple link tests
10585 lt_simple_link_test_code='int main(){return(0);}'
10593 # If no C compiler was specified, use CC.
10594 LTCC=${LTCC-"$CC"}
10596 # If no C compiler flags were specified, use CFLAGS.
10597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10599 # Allow CC to be a program name with arguments.
10600 compiler=$CC
10602 # Save the default compiler, since it gets overwritten when the other
10603 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10604 compiler_DEFAULT=$CC
10606 # save warnings/boilerplate of simple test code
10607 ac_outfile=conftest.$ac_objext
10608 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10610 _lt_compiler_boilerplate=`cat conftest.err`
10611 $RM conftest*
10613 ac_outfile=conftest.$ac_objext
10614 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10616 _lt_linker_boilerplate=`cat conftest.err`
10617 $RM -r conftest*
10620 ## CAVEAT EMPTOR:
10621 ## There is no encapsulation within the following macros, do not change
10622 ## the running order or otherwise move them around unless you know exactly
10623 ## what you are doing...
10624 if test -n "$compiler"; then
10626 lt_prog_compiler_no_builtin_flag=
10628 if test "$GCC" = yes; then
10629 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10632 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10633 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 lt_cv_prog_compiler_rtti_exceptions=no
10637 ac_outfile=conftest.$ac_objext
10638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10639 lt_compiler_flag="-fno-rtti -fno-exceptions"
10640 # Insert the option either (1) after the last *FLAGS variable, or
10641 # (2) before a word containing "conftest.", or (3) at the end.
10642 # Note that $ac_compile itself does not contain backslashes and begins
10643 # with a dollar sign (not a hyphen), so the echo should work correctly.
10644 # The option is referenced via a variable to avoid confusing sed.
10645 lt_compile=`echo "$ac_compile" | $SED \
10646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10648 -e 's:$: $lt_compiler_flag:'`
10649 (eval echo "\"\$as_me:10649: $lt_compile\"" >&5)
10650 (eval "$lt_compile" 2>conftest.err)
10651 ac_status=$?
10652 cat conftest.err >&5
10653 echo "$as_me:10653: \$? = $ac_status" >&5
10654 if (exit $ac_status) && test -s "$ac_outfile"; then
10655 # The compiler can only warn and ignore the option if not recognized
10656 # So say no if there are warnings other than the usual output.
10657 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10660 lt_cv_prog_compiler_rtti_exceptions=yes
10663 $RM conftest*
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10667 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10669 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10670 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10671 else
10682 lt_prog_compiler_wl=
10683 lt_prog_compiler_pic=
10684 lt_prog_compiler_static=
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10687 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10689 if test "$GCC" = yes; then
10690 lt_prog_compiler_wl='-Wl,'
10691 lt_prog_compiler_static='-static'
10693 case $host_os in
10694 aix*)
10695 # All AIX code is PIC.
10696 if test "$host_cpu" = ia64; then
10697 # AIX 5 now supports IA64 processor
10698 lt_prog_compiler_static='-Bstatic'
10702 amigaos*)
10703 case $host_cpu in
10704 powerpc)
10705 # see comment about AmigaOS4 .so support
10706 lt_prog_compiler_pic='-fPIC'
10708 m68k)
10709 # FIXME: we need at least 68020 code to build shared libraries, but
10710 # adding the `-m68020' flag to GCC prevents building anything better,
10711 # like `-m68040'.
10712 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10714 esac
10717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10718 # PIC is the default for these OSes.
10721 mingw* | cygwin* | pw32* | os2* | cegcc*)
10722 # This hack is so that the source file can tell whether it is being
10723 # built for inclusion in a dll (and should export symbols for example).
10724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10725 # (--disable-auto-import) libraries
10726 lt_prog_compiler_pic='-DDLL_EXPORT'
10729 darwin* | rhapsody*)
10730 # PIC is the default on this platform
10731 # Common symbols not allowed in MH_DYLIB files
10732 lt_prog_compiler_pic='-fno-common'
10735 hpux*)
10736 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10737 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10738 # sets the default TLS model and affects inlining.
10739 case $host_cpu in
10740 hppa*64*)
10741 # +Z the default
10744 lt_prog_compiler_pic='-fPIC'
10746 esac
10749 interix[3-9]*)
10750 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10751 # Instead, we relocate shared libraries at runtime.
10754 msdosdjgpp*)
10755 # Just because we use GCC doesn't mean we suddenly get shared libraries
10756 # on systems that don't support them.
10757 lt_prog_compiler_can_build_shared=no
10758 enable_shared=no
10761 *nto* | *qnx*)
10762 # QNX uses GNU C++, but need to define -shared option too, otherwise
10763 # it will coredump.
10764 lt_prog_compiler_pic='-fPIC -shared'
10767 sysv4*MP*)
10768 if test -d /usr/nec; then
10769 lt_prog_compiler_pic=-Kconform_pic
10774 lt_prog_compiler_pic='-fPIC'
10776 esac
10777 else
10778 # PORTME Check for flag to pass linker flags through the system compiler.
10779 case $host_os in
10780 aix*)
10781 lt_prog_compiler_wl='-Wl,'
10782 if test "$host_cpu" = ia64; then
10783 # AIX 5 now supports IA64 processor
10784 lt_prog_compiler_static='-Bstatic'
10785 else
10786 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10790 mingw* | cygwin* | pw32* | os2* | cegcc*)
10791 # This hack is so that the source file can tell whether it is being
10792 # built for inclusion in a dll (and should export symbols for example).
10793 lt_prog_compiler_pic='-DDLL_EXPORT'
10796 hpux9* | hpux10* | hpux11*)
10797 lt_prog_compiler_wl='-Wl,'
10798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10799 # not for PA HP-UX.
10800 case $host_cpu in
10801 hppa*64*|ia64*)
10802 # +Z the default
10805 lt_prog_compiler_pic='+Z'
10807 esac
10808 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10809 lt_prog_compiler_static='${wl}-a ${wl}archive'
10812 irix5* | irix6* | nonstopux*)
10813 lt_prog_compiler_wl='-Wl,'
10814 # PIC (with -KPIC) is the default.
10815 lt_prog_compiler_static='-non_shared'
10818 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10819 case $cc_basename in
10820 # old Intel for x86_64 which still supported -KPIC.
10821 ecc*)
10822 lt_prog_compiler_wl='-Wl,'
10823 lt_prog_compiler_pic='-KPIC'
10824 lt_prog_compiler_static='-static'
10826 # icc used to be incompatible with GCC.
10827 # ICC 10 doesn't accept -KPIC any more.
10828 icc* | ifort*)
10829 lt_prog_compiler_wl='-Wl,'
10830 lt_prog_compiler_pic='-fPIC'
10831 lt_prog_compiler_static='-static'
10833 # Lahey Fortran 8.1.
10834 lf95*)
10835 lt_prog_compiler_wl='-Wl,'
10836 lt_prog_compiler_pic='--shared'
10837 lt_prog_compiler_static='--static'
10839 pgcc* | pgf77* | pgf90* | pgf95*)
10840 # Portland Group compilers (*not* the Pentium gcc compiler,
10841 # which looks to be a dead project)
10842 lt_prog_compiler_wl='-Wl,'
10843 lt_prog_compiler_pic='-fpic'
10844 lt_prog_compiler_static='-Bstatic'
10846 ccc*)
10847 lt_prog_compiler_wl='-Wl,'
10848 # All Alpha code is PIC.
10849 lt_prog_compiler_static='-non_shared'
10851 xl*)
10852 # IBM XL C 8.0/Fortran 10.1 on PPC
10853 lt_prog_compiler_wl='-Wl,'
10854 lt_prog_compiler_pic='-qpic'
10855 lt_prog_compiler_static='-qstaticlink'
10858 case `$CC -V 2>&1 | sed 5q` in
10859 *Sun\ C*)
10860 # Sun C 5.9
10861 lt_prog_compiler_pic='-KPIC'
10862 lt_prog_compiler_static='-Bstatic'
10863 lt_prog_compiler_wl='-Wl,'
10865 *Sun\ F*)
10866 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10867 lt_prog_compiler_pic='-KPIC'
10868 lt_prog_compiler_static='-Bstatic'
10869 lt_prog_compiler_wl=''
10871 esac
10873 esac
10876 newsos6)
10877 lt_prog_compiler_pic='-KPIC'
10878 lt_prog_compiler_static='-Bstatic'
10881 *nto* | *qnx*)
10882 # QNX uses GNU C++, but need to define -shared option too, otherwise
10883 # it will coredump.
10884 lt_prog_compiler_pic='-fPIC -shared'
10887 osf3* | osf4* | osf5*)
10888 lt_prog_compiler_wl='-Wl,'
10889 # All OSF/1 code is PIC.
10890 lt_prog_compiler_static='-non_shared'
10893 rdos*)
10894 lt_prog_compiler_static='-non_shared'
10897 solaris*)
10898 lt_prog_compiler_pic='-KPIC'
10899 lt_prog_compiler_static='-Bstatic'
10900 case $cc_basename in
10901 f77* | f90* | f95*)
10902 lt_prog_compiler_wl='-Qoption ld ';;
10904 lt_prog_compiler_wl='-Wl,';;
10905 esac
10908 sunos4*)
10909 lt_prog_compiler_wl='-Qoption ld '
10910 lt_prog_compiler_pic='-PIC'
10911 lt_prog_compiler_static='-Bstatic'
10914 sysv4 | sysv4.2uw2* | sysv4.3*)
10915 lt_prog_compiler_wl='-Wl,'
10916 lt_prog_compiler_pic='-KPIC'
10917 lt_prog_compiler_static='-Bstatic'
10920 sysv4*MP*)
10921 if test -d /usr/nec ;then
10922 lt_prog_compiler_pic='-Kconform_pic'
10923 lt_prog_compiler_static='-Bstatic'
10927 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10928 lt_prog_compiler_wl='-Wl,'
10929 lt_prog_compiler_pic='-KPIC'
10930 lt_prog_compiler_static='-Bstatic'
10933 unicos*)
10934 lt_prog_compiler_wl='-Wl,'
10935 lt_prog_compiler_can_build_shared=no
10938 uts4*)
10939 lt_prog_compiler_pic='-pic'
10940 lt_prog_compiler_static='-Bstatic'
10944 lt_prog_compiler_can_build_shared=no
10946 esac
10949 case $host_os in
10950 # For platforms which do not support PIC, -DPIC is meaningless:
10951 *djgpp*)
10952 lt_prog_compiler_pic=
10955 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10957 esac
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10959 $as_echo "$lt_prog_compiler_pic" >&6; }
10967 # Check to make sure the PIC flag actually works.
10969 if test -n "$lt_prog_compiler_pic"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10971 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10972 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 lt_cv_prog_compiler_pic_works=no
10976 ac_outfile=conftest.$ac_objext
10977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10978 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10979 # Insert the option either (1) after the last *FLAGS variable, or
10980 # (2) before a word containing "conftest.", or (3) at the end.
10981 # Note that $ac_compile itself does not contain backslashes and begins
10982 # with a dollar sign (not a hyphen), so the echo should work correctly.
10983 # The option is referenced via a variable to avoid confusing sed.
10984 lt_compile=`echo "$ac_compile" | $SED \
10985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10987 -e 's:$: $lt_compiler_flag:'`
10988 (eval echo "\"\$as_me:10988: $lt_compile\"" >&5)
10989 (eval "$lt_compile" 2>conftest.err)
10990 ac_status=$?
10991 cat conftest.err >&5
10992 echo "$as_me:10992: \$? = $ac_status" >&5
10993 if (exit $ac_status) && test -s "$ac_outfile"; then
10994 # The compiler can only warn and ignore the option if not recognized
10995 # So say no if there are warnings other than the usual output.
10996 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10999 lt_cv_prog_compiler_pic_works=yes
11002 $RM conftest*
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11006 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11008 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11009 case $lt_prog_compiler_pic in
11010 "" | " "*) ;;
11011 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11012 esac
11013 else
11014 lt_prog_compiler_pic=
11015 lt_prog_compiler_can_build_shared=no
11026 # Check to make sure the static flag actually works.
11028 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11030 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11031 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 lt_cv_prog_compiler_static_works=no
11035 save_LDFLAGS="$LDFLAGS"
11036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11039 # The linker can only warn and ignore the option if not recognized
11040 # So say no if there are warnings
11041 if test -s conftest.err; then
11042 # Append any errors to the config.log.
11043 cat conftest.err 1>&5
11044 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11046 if diff conftest.exp conftest.er2 >/dev/null; then
11047 lt_cv_prog_compiler_static_works=yes
11049 else
11050 lt_cv_prog_compiler_static_works=yes
11053 $RM -r conftest*
11054 LDFLAGS="$save_LDFLAGS"
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11058 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11060 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11062 else
11063 lt_prog_compiler_static=
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11074 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 lt_cv_prog_compiler_c_o=no
11078 $RM -r conftest 2>/dev/null
11079 mkdir conftest
11080 cd conftest
11081 mkdir out
11082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11084 lt_compiler_flag="-o out/conftest2.$ac_objext"
11085 # Insert the option either (1) after the last *FLAGS variable, or
11086 # (2) before a word containing "conftest.", or (3) at the end.
11087 # Note that $ac_compile itself does not contain backslashes and begins
11088 # with a dollar sign (not a hyphen), so the echo should work correctly.
11089 lt_compile=`echo "$ac_compile" | $SED \
11090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11092 -e 's:$: $lt_compiler_flag:'`
11093 (eval echo "\"\$as_me:11093: $lt_compile\"" >&5)
11094 (eval "$lt_compile" 2>out/conftest.err)
11095 ac_status=$?
11096 cat out/conftest.err >&5
11097 echo "$as_me:11097: \$? = $ac_status" >&5
11098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11099 then
11100 # The compiler can only warn and ignore the option if not recognized
11101 # So say no if there are warnings
11102 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11105 lt_cv_prog_compiler_c_o=yes
11108 chmod u+w . 2>&5
11109 $RM conftest*
11110 # SGI C++ compiler will create directory out/ii_files/ for
11111 # template instantiation
11112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11113 $RM out/* && rmdir out
11114 cd ..
11115 $RM -r conftest
11116 $RM conftest*
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11120 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11128 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11129 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 lt_cv_prog_compiler_c_o=no
11133 $RM -r conftest 2>/dev/null
11134 mkdir conftest
11135 cd conftest
11136 mkdir out
11137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11139 lt_compiler_flag="-o out/conftest2.$ac_objext"
11140 # Insert the option either (1) after the last *FLAGS variable, or
11141 # (2) before a word containing "conftest.", or (3) at the end.
11142 # Note that $ac_compile itself does not contain backslashes and begins
11143 # with a dollar sign (not a hyphen), so the echo should work correctly.
11144 lt_compile=`echo "$ac_compile" | $SED \
11145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11147 -e 's:$: $lt_compiler_flag:'`
11148 (eval echo "\"\$as_me:11148: $lt_compile\"" >&5)
11149 (eval "$lt_compile" 2>out/conftest.err)
11150 ac_status=$?
11151 cat out/conftest.err >&5
11152 echo "$as_me:11152: \$? = $ac_status" >&5
11153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11154 then
11155 # The compiler can only warn and ignore the option if not recognized
11156 # So say no if there are warnings
11157 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11160 lt_cv_prog_compiler_c_o=yes
11163 chmod u+w . 2>&5
11164 $RM conftest*
11165 # SGI C++ compiler will create directory out/ii_files/ for
11166 # template instantiation
11167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11168 $RM out/* && rmdir out
11169 cd ..
11170 $RM -r conftest
11171 $RM conftest*
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11175 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11180 hard_links="nottested"
11181 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11182 # do not overwrite the value of need_locks provided by the user
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11184 $as_echo_n "checking if we can lock with hard links... " >&6; }
11185 hard_links=yes
11186 $RM conftest*
11187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11188 touch conftest.a
11189 ln conftest.a conftest.b 2>&5 || hard_links=no
11190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11192 $as_echo "$hard_links" >&6; }
11193 if test "$hard_links" = no; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11195 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11196 need_locks=warn
11198 else
11199 need_locks=no
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11208 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11210 runpath_var=
11211 allow_undefined_flag=
11212 always_export_symbols=no
11213 archive_cmds=
11214 archive_expsym_cmds=
11215 compiler_needs_object=no
11216 enable_shared_with_static_runtimes=no
11217 export_dynamic_flag_spec=
11218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11219 hardcode_automatic=no
11220 hardcode_direct=no
11221 hardcode_direct_absolute=no
11222 hardcode_libdir_flag_spec=
11223 hardcode_libdir_flag_spec_ld=
11224 hardcode_libdir_separator=
11225 hardcode_minus_L=no
11226 hardcode_shlibpath_var=unsupported
11227 inherit_rpath=no
11228 link_all_deplibs=unknown
11229 module_cmds=
11230 module_expsym_cmds=
11231 old_archive_from_new_cmds=
11232 old_archive_from_expsyms_cmds=
11233 thread_safe_flag_spec=
11234 whole_archive_flag_spec=
11235 # include_expsyms should be a list of space-separated symbols to be *always*
11236 # included in the symbol list
11237 include_expsyms=
11238 # exclude_expsyms can be an extended regexp of symbols to exclude
11239 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11240 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11241 # as well as any symbol that contains `d'.
11242 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11244 # platforms (ab)use it in PIC code, but their linkers get confused if
11245 # the symbol is explicitly referenced. Since portable code cannot
11246 # rely on this symbol name, it's probably fine to never include it in
11247 # preloaded symbol tables.
11248 # Exclude shared library initialization/finalization symbols.
11249 extract_expsyms_cmds=
11251 case $host_os in
11252 cygwin* | mingw* | pw32* | cegcc*)
11253 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11254 # When not using gcc, we currently assume that we are using
11255 # Microsoft Visual C++.
11256 if test "$GCC" != yes; then
11257 with_gnu_ld=no
11260 interix*)
11261 # we just hope/assume this is gcc and not c89 (= MSVC++)
11262 with_gnu_ld=yes
11264 openbsd*)
11265 with_gnu_ld=no
11267 esac
11269 ld_shlibs=yes
11270 if test "$with_gnu_ld" = yes; then
11271 # If archive_cmds runs LD, not CC, wlarc should be empty
11272 wlarc='${wl}'
11274 # Set some defaults for GNU ld with shared library support. These
11275 # are reset later if shared libraries are not supported. Putting them
11276 # here allows them to be overridden if necessary.
11277 runpath_var=LD_RUN_PATH
11278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11279 export_dynamic_flag_spec='${wl}--export-dynamic'
11280 # ancient GNU ld didn't support --whole-archive et. al.
11281 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11282 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11283 else
11284 whole_archive_flag_spec=
11286 supports_anon_versioning=no
11287 case `$LD -v 2>&1` in
11288 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11289 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11290 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11291 *\ 2.11.*) ;; # other 2.11 versions
11292 *) supports_anon_versioning=yes ;;
11293 esac
11295 # See if GNU ld supports shared libraries.
11296 case $host_os in
11297 aix[3-9]*)
11298 # On AIX/PPC, the GNU linker is very broken
11299 if test "$host_cpu" != ia64; then
11300 ld_shlibs=no
11301 cat <<_LT_EOF 1>&2
11303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11304 *** to be unable to reliably create shared libraries on AIX.
11305 *** Therefore, libtool is disabling shared libraries support. If you
11306 *** really care for shared libraries, you may want to modify your PATH
11307 *** so that a non-GNU linker is found, and then restart.
11309 _LT_EOF
11313 amigaos*)
11314 case $host_cpu in
11315 powerpc)
11316 # see comment about AmigaOS4 .so support
11317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11318 archive_expsym_cmds=''
11320 m68k)
11321 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)'
11322 hardcode_libdir_flag_spec='-L$libdir'
11323 hardcode_minus_L=yes
11325 esac
11328 beos*)
11329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11330 allow_undefined_flag=unsupported
11331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11332 # support --undefined. This deserves some investigation. FIXME
11333 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11334 else
11335 ld_shlibs=no
11339 cygwin* | mingw* | pw32* | cegcc*)
11340 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11341 # as there is no search path for DLLs.
11342 hardcode_libdir_flag_spec='-L$libdir'
11343 allow_undefined_flag=unsupported
11344 always_export_symbols=no
11345 enable_shared_with_static_runtimes=yes
11346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11348 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11350 # If the export-symbols file already is a .def file (1st line
11351 # is EXPORTS), use it as is; otherwise, prepend...
11352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11353 cp $export_symbols $output_objdir/$soname.def;
11354 else
11355 echo EXPORTS > $output_objdir/$soname.def;
11356 cat $export_symbols >> $output_objdir/$soname.def;
11358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11359 else
11360 ld_shlibs=no
11364 interix[3-9]*)
11365 hardcode_direct=no
11366 hardcode_shlibpath_var=no
11367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11368 export_dynamic_flag_spec='${wl}-E'
11369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11370 # Instead, shared libraries are loaded at an image base (0x10000000 by
11371 # default) and relocated if they conflict, which is a slow very memory
11372 # consuming and fragmenting process. To avoid this, we pick a random,
11373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11376 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'
11379 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11380 tmp_diet=no
11381 if test "$host_os" = linux-dietlibc; then
11382 case $cc_basename in
11383 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11384 esac
11386 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11387 && test "$tmp_diet" = no
11388 then
11389 tmp_addflag=
11390 tmp_sharedflag='-shared'
11391 case $cc_basename,$host_cpu in
11392 pgcc*) # Portland Group C compiler
11393 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'
11394 tmp_addflag=' $pic_flag'
11396 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11397 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'
11398 tmp_addflag=' $pic_flag -Mnomain' ;;
11399 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11400 tmp_addflag=' -i_dynamic' ;;
11401 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11402 tmp_addflag=' -i_dynamic -nofor_main' ;;
11403 ifc* | ifort*) # Intel Fortran compiler
11404 tmp_addflag=' -nofor_main' ;;
11405 lf95*) # Lahey Fortran 8.1
11406 whole_archive_flag_spec=
11407 tmp_sharedflag='--shared' ;;
11408 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11409 tmp_sharedflag='-qmkshrobj'
11410 tmp_addflag= ;;
11411 esac
11412 case `$CC -V 2>&1 | sed 5q` in
11413 *Sun\ C*) # Sun C 5.9
11414 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'
11415 compiler_needs_object=yes
11416 tmp_sharedflag='-G' ;;
11417 *Sun\ F*) # Sun Fortran 8.3
11418 tmp_sharedflag='-G' ;;
11419 esac
11420 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11422 if test "x$supports_anon_versioning" = xyes; then
11423 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11425 echo "local: *; };" >> $output_objdir/$libname.ver~
11426 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11429 case $cc_basename in
11430 xlf*)
11431 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11432 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11433 hardcode_libdir_flag_spec=
11434 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11435 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11436 if test "x$supports_anon_versioning" = xyes; then
11437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11439 echo "local: *; };" >> $output_objdir/$libname.ver~
11440 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11443 esac
11444 else
11445 ld_shlibs=no
11449 netbsd*)
11450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11451 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11452 wlarc=
11453 else
11454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11459 solaris*)
11460 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11461 ld_shlibs=no
11462 cat <<_LT_EOF 1>&2
11464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11465 *** create shared libraries on Solaris systems. Therefore, libtool
11466 *** is disabling shared libraries support. We urge you to upgrade GNU
11467 *** binutils to release 2.9.1 or newer. Another option is to modify
11468 *** your PATH or compiler configuration so that the native linker is
11469 *** used, and then restart.
11471 _LT_EOF
11472 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11475 else
11476 ld_shlibs=no
11480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11481 case `$LD -v 2>&1` in
11482 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11483 ld_shlibs=no
11484 cat <<_LT_EOF 1>&2
11486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11487 *** reliably create shared libraries on SCO systems. Therefore, libtool
11488 *** is disabling shared libraries support. We urge you to upgrade GNU
11489 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11490 *** your PATH or compiler configuration so that the native linker is
11491 *** used, and then restart.
11493 _LT_EOF
11496 # For security reasons, it is highly recommended that you always
11497 # use absolute paths for naming shared libraries, and exclude the
11498 # DT_RUNPATH tag from executables and libraries. But doing so
11499 # requires that you compile everything twice, which is a pain.
11500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11504 else
11505 ld_shlibs=no
11508 esac
11511 sunos4*)
11512 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11513 wlarc=
11514 hardcode_direct=yes
11515 hardcode_shlibpath_var=no
11519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11522 else
11523 ld_shlibs=no
11526 esac
11528 if test "$ld_shlibs" = no; then
11529 runpath_var=
11530 hardcode_libdir_flag_spec=
11531 export_dynamic_flag_spec=
11532 whole_archive_flag_spec=
11534 else
11535 # PORTME fill in a description of your system's linker (not GNU ld)
11536 case $host_os in
11537 aix3*)
11538 allow_undefined_flag=unsupported
11539 always_export_symbols=yes
11540 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'
11541 # Note: this linker hardcodes the directories in LIBPATH if there
11542 # are no directories specified by -L.
11543 hardcode_minus_L=yes
11544 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11545 # Neither direct hardcoding nor static linking is supported with a
11546 # broken collect2.
11547 hardcode_direct=unsupported
11551 aix[4-9]*)
11552 if test "$host_cpu" = ia64; then
11553 # On IA64, the linker does run time linking by default, so we don't
11554 # have to do anything special.
11555 aix_use_runtimelinking=no
11556 exp_sym_flag='-Bexport'
11557 no_entry_flag=""
11558 else
11559 # If we're using GNU nm, then we don't want the "-C" option.
11560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11561 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11562 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'
11563 else
11564 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'
11566 aix_use_runtimelinking=no
11568 # Test if we are trying to use run time linking or normal
11569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11570 # need to do runtime linking.
11571 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11572 for ld_flag in $LDFLAGS; do
11573 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11574 aix_use_runtimelinking=yes
11575 break
11577 done
11579 esac
11581 exp_sym_flag='-bexport'
11582 no_entry_flag='-bnoentry'
11585 # When large executables or shared objects are built, AIX ld can
11586 # have problems creating the table of contents. If linking a library
11587 # or program results in "error TOC overflow" add -mminimal-toc to
11588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11591 archive_cmds=''
11592 hardcode_direct=yes
11593 hardcode_direct_absolute=yes
11594 hardcode_libdir_separator=':'
11595 link_all_deplibs=yes
11596 file_list_spec='${wl}-f,'
11598 if test "$GCC" = yes; then
11599 case $host_os in aix4.[012]|aix4.[012].*)
11600 # We only want to do this on AIX 4.2 and lower, the check
11601 # below for broken collect2 doesn't work under 4.3+
11602 collect2name=`${CC} -print-prog-name=collect2`
11603 if test -f "$collect2name" &&
11604 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11605 then
11606 # We have reworked collect2
11608 else
11609 # We have old collect2
11610 hardcode_direct=unsupported
11611 # It fails to find uninstalled libraries when the uninstalled
11612 # path is not listed in the libpath. Setting hardcode_minus_L
11613 # to unsupported forces relinking
11614 hardcode_minus_L=yes
11615 hardcode_libdir_flag_spec='-L$libdir'
11616 hardcode_libdir_separator=
11619 esac
11620 shared_flag='-shared'
11621 if test "$aix_use_runtimelinking" = yes; then
11622 shared_flag="$shared_flag "'${wl}-G'
11624 else
11625 # not using gcc
11626 if test "$host_cpu" = ia64; then
11627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11628 # chokes on -Wl,-G. The following line is correct:
11629 shared_flag='-G'
11630 else
11631 if test "$aix_use_runtimelinking" = yes; then
11632 shared_flag='${wl}-G'
11633 else
11634 shared_flag='${wl}-bM:SRE'
11639 export_dynamic_flag_spec='${wl}-bexpall'
11640 # It seems that -bexpall does not export symbols beginning with
11641 # underscore (_), so it is better to generate a list of symbols to export.
11642 always_export_symbols=yes
11643 if test "$aix_use_runtimelinking" = yes; then
11644 # Warning - without using the other runtime loading flags (-brtl),
11645 # -berok will link without error, but may produce a broken library.
11646 allow_undefined_flag='-berok'
11647 # Determine the default libpath from the value encoded in an
11648 # empty executable.
11649 if test x$gcc_no_link = xyes; then
11650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11656 main ()
11660 return 0;
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11665 lt_aix_libpath_sed='
11666 /Import File Strings/,/^$/ {
11667 /^0/ {
11668 s/^0 *\(.*\)$/\1/
11672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673 # Check for a 64-bit object if we didn't find anything.
11674 if test -z "$aix_libpath"; then
11675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11678 rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11683 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"
11684 else
11685 if test "$host_cpu" = ia64; then
11686 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11687 allow_undefined_flag="-z nodefs"
11688 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"
11689 else
11690 # Determine the default libpath from the value encoded in an
11691 # empty executable.
11692 if test x$gcc_no_link = xyes; then
11693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11699 main ()
11703 return 0;
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11708 lt_aix_libpath_sed='
11709 /Import File Strings/,/^$/ {
11710 /^0/ {
11711 s/^0 *\(.*\)$/\1/
11715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11716 # Check for a 64-bit object if we didn't find anything.
11717 if test -z "$aix_libpath"; then
11718 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11726 # Warning - without using the other run time loading flags,
11727 # -berok will link without error, but may produce a broken library.
11728 no_undefined_flag=' ${wl}-bernotok'
11729 allow_undefined_flag=' ${wl}-berok'
11730 # Exported symbols can be pulled into shared objects from archives
11731 whole_archive_flag_spec='$convenience'
11732 archive_cmds_need_lc=yes
11733 # This is similar to how AIX traditionally builds its shared libraries.
11734 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'
11739 amigaos*)
11740 case $host_cpu in
11741 powerpc)
11742 # see comment about AmigaOS4 .so support
11743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11744 archive_expsym_cmds=''
11746 m68k)
11747 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)'
11748 hardcode_libdir_flag_spec='-L$libdir'
11749 hardcode_minus_L=yes
11751 esac
11754 bsdi[45]*)
11755 export_dynamic_flag_spec=-rdynamic
11758 cygwin* | mingw* | pw32* | cegcc*)
11759 # When not using gcc, we currently assume that we are using
11760 # Microsoft Visual C++.
11761 # hardcode_libdir_flag_spec is actually meaningless, as there is
11762 # no search path for DLLs.
11763 hardcode_libdir_flag_spec=' '
11764 allow_undefined_flag=unsupported
11765 # Tell ltmain to make .lib files, not .a files.
11766 libext=lib
11767 # Tell ltmain to make .dll files, not .so files.
11768 shrext_cmds=".dll"
11769 # FIXME: Setting linknames here is a bad hack.
11770 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11771 # The linker will automatically build a .lib file if we build a DLL.
11772 old_archive_from_new_cmds='true'
11773 # FIXME: Should let the user specify the lib program.
11774 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11775 fix_srcfile_path='`cygpath -w "$srcfile"`'
11776 enable_shared_with_static_runtimes=yes
11779 darwin* | rhapsody*)
11782 archive_cmds_need_lc=no
11783 hardcode_direct=no
11784 hardcode_automatic=yes
11785 hardcode_shlibpath_var=unsupported
11786 whole_archive_flag_spec=''
11787 link_all_deplibs=yes
11788 allow_undefined_flag="$_lt_dar_allow_undefined"
11789 case $cc_basename in
11790 ifort*) _lt_dar_can_shared=yes ;;
11791 *) _lt_dar_can_shared=$GCC ;;
11792 esac
11793 if test "$_lt_dar_can_shared" = "yes"; then
11794 output_verbose_link_cmd=echo
11795 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11796 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11797 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}"
11798 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}"
11800 else
11801 ld_shlibs=no
11806 dgux*)
11807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11808 hardcode_libdir_flag_spec='-L$libdir'
11809 hardcode_shlibpath_var=no
11812 freebsd1*)
11813 ld_shlibs=no
11816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11817 # support. Future versions do this automatically, but an explicit c++rt0.o
11818 # does not break anything, and helps significantly (at the cost of a little
11819 # extra space).
11820 freebsd2.2*)
11821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11822 hardcode_libdir_flag_spec='-R$libdir'
11823 hardcode_direct=yes
11824 hardcode_shlibpath_var=no
11827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11828 freebsd2*)
11829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11830 hardcode_direct=yes
11831 hardcode_minus_L=yes
11832 hardcode_shlibpath_var=no
11835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11836 freebsd* | dragonfly*)
11837 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11838 hardcode_libdir_flag_spec='-R$libdir'
11839 hardcode_direct=yes
11840 hardcode_shlibpath_var=no
11843 hpux9*)
11844 if test "$GCC" = yes; then
11845 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'
11846 else
11847 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'
11849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11850 hardcode_libdir_separator=:
11851 hardcode_direct=yes
11853 # hardcode_minus_L: Not really in the search PATH,
11854 # but as the default location of the library.
11855 hardcode_minus_L=yes
11856 export_dynamic_flag_spec='${wl}-E'
11859 hpux10*)
11860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11862 else
11863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11865 if test "$with_gnu_ld" = no; then
11866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11867 hardcode_libdir_flag_spec_ld='+b $libdir'
11868 hardcode_libdir_separator=:
11869 hardcode_direct=yes
11870 hardcode_direct_absolute=yes
11871 export_dynamic_flag_spec='${wl}-E'
11872 # hardcode_minus_L: Not really in the search PATH,
11873 # but as the default location of the library.
11874 hardcode_minus_L=yes
11878 hpux11*)
11879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11880 case $host_cpu in
11881 hppa*64*)
11882 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11884 ia64*)
11885 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11888 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11890 esac
11891 else
11892 case $host_cpu in
11893 hppa*64*)
11894 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 ia64*)
11897 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11902 esac
11904 if test "$with_gnu_ld" = no; then
11905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11906 hardcode_libdir_separator=:
11908 case $host_cpu in
11909 hppa*64*|ia64*)
11910 hardcode_direct=no
11911 hardcode_shlibpath_var=no
11914 hardcode_direct=yes
11915 hardcode_direct_absolute=yes
11916 export_dynamic_flag_spec='${wl}-E'
11918 # hardcode_minus_L: Not really in the search PATH,
11919 # but as the default location of the library.
11920 hardcode_minus_L=yes
11922 esac
11926 irix5* | irix6* | nonstopux*)
11927 if test "$GCC" = yes; then
11928 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'
11929 # Try to use the -exported_symbol ld option, if it does not
11930 # work, assume that -exports_file does not work either and
11931 # implicitly export all symbols.
11932 save_LDFLAGS="$LDFLAGS"
11933 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11934 if test x$gcc_no_link = xyes; then
11935 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 int foo(void) {}
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942 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'
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LDFLAGS="$save_LDFLAGS"
11948 else
11949 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'
11950 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'
11952 archive_cmds_need_lc='no'
11953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11954 hardcode_libdir_separator=:
11955 inherit_rpath=yes
11956 link_all_deplibs=yes
11959 netbsd*)
11960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11962 else
11963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11965 hardcode_libdir_flag_spec='-R$libdir'
11966 hardcode_direct=yes
11967 hardcode_shlibpath_var=no
11970 newsos6)
11971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11972 hardcode_direct=yes
11973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11974 hardcode_libdir_separator=:
11975 hardcode_shlibpath_var=no
11978 *nto* | *qnx*)
11981 openbsd*)
11982 if test -f /usr/libexec/ld.so; then
11983 hardcode_direct=yes
11984 hardcode_shlibpath_var=no
11985 hardcode_direct_absolute=yes
11986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11988 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11990 export_dynamic_flag_spec='${wl}-E'
11991 else
11992 case $host_os in
11993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11995 hardcode_libdir_flag_spec='-R$libdir'
11998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12001 esac
12003 else
12004 ld_shlibs=no
12008 os2*)
12009 hardcode_libdir_flag_spec='-L$libdir'
12010 hardcode_minus_L=yes
12011 allow_undefined_flag=unsupported
12012 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'
12013 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12016 osf3*)
12017 if test "$GCC" = yes; then
12018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12019 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12020 else
12021 allow_undefined_flag=' -expect_unresolved \*'
12022 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'
12024 archive_cmds_need_lc='no'
12025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12026 hardcode_libdir_separator=:
12029 osf4* | osf5*) # as osf3* with the addition of -msym flag
12030 if test "$GCC" = yes; then
12031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12032 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'
12033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12034 else
12035 allow_undefined_flag=' -expect_unresolved \*'
12036 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'
12037 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~
12038 $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'
12040 # Both c and cxx compiler support -rpath directly
12041 hardcode_libdir_flag_spec='-rpath $libdir'
12043 archive_cmds_need_lc='no'
12044 hardcode_libdir_separator=:
12047 solaris*)
12048 no_undefined_flag=' -z defs'
12049 if test "$GCC" = yes; then
12050 wlarc='${wl}'
12051 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12054 else
12055 case `$CC -V 2>&1` in
12056 *"Compilers 5.0"*)
12057 wlarc=''
12058 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12063 wlarc='${wl}'
12064 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12066 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12068 esac
12070 hardcode_libdir_flag_spec='-R$libdir'
12071 hardcode_shlibpath_var=no
12072 case $host_os in
12073 solaris2.[0-5] | solaris2.[0-5].*) ;;
12075 # The compiler driver will combine and reorder linker options,
12076 # but understands `-z linker_flag'. GCC discards it without `$wl',
12077 # but is careful enough not to reorder.
12078 # Supported since Solaris 2.6 (maybe 2.5.1?)
12079 if test "$GCC" = yes; then
12080 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12081 else
12082 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12085 esac
12086 link_all_deplibs=yes
12089 sunos4*)
12090 if test "x$host_vendor" = xsequent; then
12091 # Use $CC to link under sequent, because it throws in some extra .o
12092 # files that make .init and .fini sections work.
12093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12094 else
12095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12097 hardcode_libdir_flag_spec='-L$libdir'
12098 hardcode_direct=yes
12099 hardcode_minus_L=yes
12100 hardcode_shlibpath_var=no
12103 sysv4)
12104 case $host_vendor in
12105 sni)
12106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12107 hardcode_direct=yes # is this really true???
12109 siemens)
12110 ## LD is ld it makes a PLAMLIB
12111 ## CC just makes a GrossModule.
12112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12113 reload_cmds='$CC -r -o $output$reload_objs'
12114 hardcode_direct=no
12116 motorola)
12117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12120 esac
12121 runpath_var='LD_RUN_PATH'
12122 hardcode_shlibpath_var=no
12125 sysv4.3*)
12126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127 hardcode_shlibpath_var=no
12128 export_dynamic_flag_spec='-Bexport'
12131 sysv4*MP*)
12132 if test -d /usr/nec; then
12133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12134 hardcode_shlibpath_var=no
12135 runpath_var=LD_RUN_PATH
12136 hardcode_runpath_var=yes
12137 ld_shlibs=yes
12141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12142 no_undefined_flag='${wl}-z,text'
12143 archive_cmds_need_lc=no
12144 hardcode_shlibpath_var=no
12145 runpath_var='LD_RUN_PATH'
12147 if test "$GCC" = yes; then
12148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150 else
12151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12156 sysv5* | sco3.2v5* | sco5v6*)
12157 # Note: We can NOT use -z defs as we might desire, because we do not
12158 # link with -lc, and that would cause any symbols used from libc to
12159 # always be unresolved, which means just about no library would
12160 # ever link correctly. If we're not using GNU ld we use -z text
12161 # though, which does catch some bad symbols but isn't as heavy-handed
12162 # as -z defs.
12163 no_undefined_flag='${wl}-z,text'
12164 allow_undefined_flag='${wl}-z,nodefs'
12165 archive_cmds_need_lc=no
12166 hardcode_shlibpath_var=no
12167 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12168 hardcode_libdir_separator=':'
12169 link_all_deplibs=yes
12170 export_dynamic_flag_spec='${wl}-Bexport'
12171 runpath_var='LD_RUN_PATH'
12173 if test "$GCC" = yes; then
12174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 else
12177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 uts4*)
12183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12184 hardcode_libdir_flag_spec='-L$libdir'
12185 hardcode_shlibpath_var=no
12189 ld_shlibs=no
12191 esac
12193 if test x$host_vendor = xsni; then
12194 case $host in
12195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12196 export_dynamic_flag_spec='${wl}-Blargedynsym'
12198 esac
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12203 $as_echo "$ld_shlibs" >&6; }
12204 test "$ld_shlibs" = no && can_build_shared=no
12206 with_gnu_ld=$with_gnu_ld
12223 # Do we need to explicitly link libc?
12225 case "x$archive_cmds_need_lc" in
12226 x|xyes)
12227 # Assume -lc should be added
12228 archive_cmds_need_lc=yes
12230 if test "$enable_shared" = yes && test "$GCC" = yes; then
12231 case $archive_cmds in
12232 *'~'*)
12233 # FIXME: we may have to deal with multi-command sequences.
12235 '$CC '*)
12236 # Test whether the compiler implicitly links with -lc since on some
12237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12238 # to ld, don't add -lc before -lgcc.
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12240 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12241 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 $RM conftest*
12245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12248 (eval $ac_compile) 2>&5
12249 ac_status=$?
12250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251 test $ac_status = 0; } 2>conftest.err; then
12252 soname=conftest
12253 lib=conftest
12254 libobjs=conftest.$ac_objext
12255 deplibs=
12256 wl=$lt_prog_compiler_wl
12257 pic_flag=$lt_prog_compiler_pic
12258 compiler_flags=-v
12259 linker_flags=-v
12260 verstring=
12261 output_objdir=.
12262 libname=conftest
12263 lt_save_allow_undefined_flag=$allow_undefined_flag
12264 allow_undefined_flag=
12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12267 ac_status=$?
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; }
12270 then
12271 lt_cv_archive_cmds_need_lc=no
12272 else
12273 lt_cv_archive_cmds_need_lc=yes
12275 allow_undefined_flag=$lt_save_allow_undefined_flag
12276 else
12277 cat conftest.err 1>&5
12279 $RM conftest*
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12283 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12284 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12286 esac
12289 esac
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12450 if test "$GCC" = yes; then
12451 case $host_os in
12452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12453 *) lt_awk_arg="/^libraries:/" ;;
12454 esac
12455 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12456 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12457 # if the path contains ";" then we assume it to be the separator
12458 # otherwise default to the standard path separator (i.e. ":") - it is
12459 # assumed that no part of a normal pathname contains ";" but that should
12460 # okay in the real world where ";" in dirpaths is itself problematic.
12461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12462 else
12463 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12465 # Ok, now we have the path, separated by spaces, we can step through it
12466 # and add multilib dir if necessary.
12467 lt_tmp_lt_search_path_spec=
12468 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12469 for lt_sys_path in $lt_search_path_spec; do
12470 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12472 else
12473 test -d "$lt_sys_path" && \
12474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12476 done
12477 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12478 BEGIN {RS=" "; FS="/|\n";} {
12479 lt_foo="";
12480 lt_count=0;
12481 for (lt_i = NF; lt_i > 0; lt_i--) {
12482 if ($lt_i != "" && $lt_i != ".") {
12483 if ($lt_i == "..") {
12484 lt_count++;
12485 } else {
12486 if (lt_count == 0) {
12487 lt_foo="/" $lt_i lt_foo;
12488 } else {
12489 lt_count--;
12494 if (lt_foo != "") { lt_freq[lt_foo]++; }
12495 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12497 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12498 else
12499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12501 library_names_spec=
12502 libname_spec='lib$name'
12503 soname_spec=
12504 shrext_cmds=".so"
12505 postinstall_cmds=
12506 postuninstall_cmds=
12507 finish_cmds=
12508 finish_eval=
12509 shlibpath_var=
12510 shlibpath_overrides_runpath=unknown
12511 version_type=none
12512 dynamic_linker="$host_os ld.so"
12513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12514 need_lib_prefix=unknown
12515 hardcode_into_libs=no
12517 # when you set need_version to no, make sure it does not cause -set_version
12518 # flags to be left without arguments
12519 need_version=unknown
12521 case $host_os in
12522 aix3*)
12523 version_type=linux
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12525 shlibpath_var=LIBPATH
12527 # AIX 3 has no versioning support, so we append a major version to the name.
12528 soname_spec='${libname}${release}${shared_ext}$major'
12531 aix[4-9]*)
12532 version_type=linux
12533 need_lib_prefix=no
12534 need_version=no
12535 hardcode_into_libs=yes
12536 if test "$host_cpu" = ia64; then
12537 # AIX 5 supports IA64
12538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 else
12541 # With GCC up to 2.95.x, collect2 would create an import file
12542 # for dependence libraries. The import file would start with
12543 # the line `#! .'. This would cause the generated library to
12544 # depend on `.', always an invalid library. This was fixed in
12545 # development snapshots of GCC prior to 3.0.
12546 case $host_os in
12547 aix4 | aix4.[01] | aix4.[01].*)
12548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12549 echo ' yes '
12550 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12552 else
12553 can_build_shared=no
12556 esac
12557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12558 # soname into executable. Probably we can add versioning support to
12559 # collect2, so additional links can be useful in future.
12560 if test "$aix_use_runtimelinking" = yes; then
12561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12562 # instead of lib<name>.a to let people know that these are not
12563 # typical AIX shared libraries.
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 else
12566 # We preserve .a as extension for shared libraries through AIX4.2
12567 # and later when we are not doing run time linking.
12568 library_names_spec='${libname}${release}.a $libname.a'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12571 shlibpath_var=LIBPATH
12575 amigaos*)
12576 case $host_cpu in
12577 powerpc)
12578 # Since July 2007 AmigaOS4 officially supports .so libraries.
12579 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582 m68k)
12583 library_names_spec='$libname.ixlibrary $libname.a'
12584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12585 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'
12587 esac
12590 beos*)
12591 library_names_spec='${libname}${shared_ext}'
12592 dynamic_linker="$host_os ld.so"
12593 shlibpath_var=LIBRARY_PATH
12596 bsdi[45]*)
12597 version_type=linux
12598 need_version=no
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12605 # the default ld.so.conf also contains /usr/contrib/lib and
12606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12607 # libtool to hard-code these into programs
12610 cygwin* | mingw* | pw32* | cegcc*)
12611 version_type=windows
12612 shrext_cmds=".dll"
12613 need_version=no
12614 need_lib_prefix=no
12616 case $GCC,$host_os in
12617 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12618 library_names_spec='$libname.dll.a'
12619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12620 postinstall_cmds='base_file=`basename \${file}`~
12621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12622 dldir=$destdir/`dirname \$dlpath`~
12623 test -d \$dldir || mkdir -p \$dldir~
12624 $install_prog $dir/$dlname \$dldir/$dlname~
12625 chmod a+x \$dldir/$dlname~
12626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12630 dlpath=$dir/\$dldll~
12631 $RM \$dlpath'
12632 shlibpath_overrides_runpath=yes
12634 case $host_os in
12635 cygwin*)
12636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12640 mingw* | cegcc*)
12641 # MinGW DLLs use traditional 'lib' prefix
12642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12643 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12644 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12645 # It is most probably a Windows format PATH printed by
12646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12647 # path with ; separators, and with drive letters. We can handle the
12648 # drive letters (cygwin fileutils understands them), so leave them,
12649 # especially as we might pass files found there to a mingw objdump,
12650 # which wouldn't understand a cygwinified path. Ahh.
12651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12652 else
12653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12656 pw32*)
12657 # pw32 DLLs use 'pw' prefix rather than 'lib'
12658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12660 esac
12664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12666 esac
12667 dynamic_linker='Win32 ld.exe'
12668 # FIXME: first we should search . and the directory the executable is in
12669 shlibpath_var=PATH
12672 darwin* | rhapsody*)
12673 dynamic_linker="$host_os dyld"
12674 version_type=darwin
12675 need_lib_prefix=no
12676 need_version=no
12677 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12678 soname_spec='${libname}${release}${major}$shared_ext'
12679 shlibpath_overrides_runpath=yes
12680 shlibpath_var=DYLD_LIBRARY_PATH
12681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12687 dgux*)
12688 version_type=linux
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12696 freebsd1*)
12697 dynamic_linker=no
12700 freebsd* | dragonfly*)
12701 # DragonFly does not have aout. When/if they implement a new
12702 # versioning mechanism, adjust this.
12703 if test -x /usr/bin/objformat; then
12704 objformat=`/usr/bin/objformat`
12705 else
12706 case $host_os in
12707 freebsd[123]*) objformat=aout ;;
12708 *) objformat=elf ;;
12709 esac
12711 version_type=freebsd-$objformat
12712 case $version_type in
12713 freebsd-elf*)
12714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12715 need_version=no
12716 need_lib_prefix=no
12718 freebsd-*)
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12720 need_version=yes
12722 esac
12723 shlibpath_var=LD_LIBRARY_PATH
12724 case $host_os in
12725 freebsd2*)
12726 shlibpath_overrides_runpath=yes
12728 freebsd3.[01]* | freebsdelf3.[01]*)
12729 shlibpath_overrides_runpath=yes
12730 hardcode_into_libs=yes
12732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12734 shlibpath_overrides_runpath=no
12735 hardcode_into_libs=yes
12737 *) # from 4.6 on, and DragonFly
12738 shlibpath_overrides_runpath=yes
12739 hardcode_into_libs=yes
12741 esac
12744 gnu*)
12745 version_type=linux
12746 need_lib_prefix=no
12747 need_version=no
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 hardcode_into_libs=yes
12754 hpux9* | hpux10* | hpux11*)
12755 # Give a soname corresponding to the major version so that dld.sl refuses to
12756 # link against other versions.
12757 version_type=sunos
12758 need_lib_prefix=no
12759 need_version=no
12760 case $host_cpu in
12761 ia64*)
12762 shrext_cmds='.so'
12763 hardcode_into_libs=yes
12764 dynamic_linker="$host_os dld.so"
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12768 soname_spec='${libname}${release}${shared_ext}$major'
12769 if test "X$HPUX_IA64_MODE" = X32; then
12770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12771 else
12772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12776 hppa*64*)
12777 shrext_cmds='.sl'
12778 hardcode_into_libs=yes
12779 dynamic_linker="$host_os dld.sl"
12780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783 soname_spec='${libname}${release}${shared_ext}$major'
12784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12788 shrext_cmds='.sl'
12789 dynamic_linker="$host_os dld.sl"
12790 shlibpath_var=SHLIB_PATH
12791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12795 esac
12796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12797 postinstall_cmds='chmod 555 $lib'
12800 interix[3-9]*)
12801 version_type=linux
12802 need_lib_prefix=no
12803 need_version=no
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12805 soname_spec='${libname}${release}${shared_ext}$major'
12806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12807 shlibpath_var=LD_LIBRARY_PATH
12808 shlibpath_overrides_runpath=no
12809 hardcode_into_libs=yes
12812 irix5* | irix6* | nonstopux*)
12813 case $host_os in
12814 nonstopux*) version_type=nonstopux ;;
12816 if test "$lt_cv_prog_gnu_ld" = yes; then
12817 version_type=linux
12818 else
12819 version_type=irix
12820 fi ;;
12821 esac
12822 need_lib_prefix=no
12823 need_version=no
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12826 case $host_os in
12827 irix5* | nonstopux*)
12828 libsuff= shlibsuff=
12831 case $LD in # libtool.m4 will add one of these switches to LD
12832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12833 libsuff= shlibsuff= libmagic=32-bit;;
12834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12835 libsuff=32 shlibsuff=N32 libmagic=N32;;
12836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12838 *) libsuff= shlibsuff= libmagic=never-match;;
12839 esac
12841 esac
12842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12843 shlibpath_overrides_runpath=no
12844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12846 hardcode_into_libs=yes
12849 # No shared lib support for Linux oldld, aout, or coff.
12850 linux*oldld* | linux*aout* | linux*coff*)
12851 dynamic_linker=no
12854 # This must be Linux ELF.
12855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12856 version_type=linux
12857 need_lib_prefix=no
12858 need_version=no
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860 soname_spec='${libname}${release}${shared_ext}$major'
12861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12862 shlibpath_var=LD_LIBRARY_PATH
12863 shlibpath_overrides_runpath=no
12865 # Some binutils ld are patched to set DT_RUNPATH
12866 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 lt_cv_shlibpath_overrides_runpath=no
12870 save_LDFLAGS=$LDFLAGS
12871 save_libdir=$libdir
12872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12874 if test x$gcc_no_link = xyes; then
12875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12881 main ()
12885 return 0;
12887 _ACEOF
12888 if ac_fn_c_try_link "$LINENO"; then :
12889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12890 lt_cv_shlibpath_overrides_runpath=yes
12893 rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LDFLAGS=$save_LDFLAGS
12896 libdir=$save_libdir
12900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12902 # This implies no fast_install, which is unacceptable.
12903 # Some rework will be needed to allow for fast_install
12904 # before this can be enabled.
12905 hardcode_into_libs=yes
12907 # Append ld.so.conf contents to the search path
12908 if test -f /etc/ld.so.conf; then
12909 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' ' '`
12910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12913 # We used to test for /lib/ld.so.1 and disable shared libraries on
12914 # powerpc, because MkLinux only supported shared libraries with the
12915 # GNU dynamic linker. Since this was broken with cross compilers,
12916 # most powerpc-linux boxes support dynamic linking these days and
12917 # people can always --disable-shared, the test was removed, and we
12918 # assume the GNU/Linux dynamic linker is in use.
12919 dynamic_linker='GNU/Linux ld.so'
12922 netbsd*)
12923 version_type=sunos
12924 need_lib_prefix=no
12925 need_version=no
12926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12929 dynamic_linker='NetBSD (a.out) ld.so'
12930 else
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 dynamic_linker='NetBSD ld.elf_so'
12935 shlibpath_var=LD_LIBRARY_PATH
12936 shlibpath_overrides_runpath=yes
12937 hardcode_into_libs=yes
12940 newsos6)
12941 version_type=linux
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 shlibpath_overrides_runpath=yes
12947 *nto* | *qnx*)
12948 version_type=qnx
12949 need_lib_prefix=no
12950 need_version=no
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12952 soname_spec='${libname}${release}${shared_ext}$major'
12953 shlibpath_var=LD_LIBRARY_PATH
12954 shlibpath_overrides_runpath=no
12955 hardcode_into_libs=yes
12956 dynamic_linker='ldqnx.so'
12959 openbsd*)
12960 version_type=sunos
12961 sys_lib_dlsearch_path_spec="/usr/lib"
12962 need_lib_prefix=no
12963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12964 case $host_os in
12965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12966 *) need_version=no ;;
12967 esac
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12972 case $host_os in
12973 openbsd2.[89] | openbsd2.[89].*)
12974 shlibpath_overrides_runpath=no
12977 shlibpath_overrides_runpath=yes
12979 esac
12980 else
12981 shlibpath_overrides_runpath=yes
12985 os2*)
12986 libname_spec='$name'
12987 shrext_cmds=".dll"
12988 need_lib_prefix=no
12989 library_names_spec='$libname${shared_ext} $libname.a'
12990 dynamic_linker='OS/2 ld.exe'
12991 shlibpath_var=LIBPATH
12994 osf3* | osf4* | osf5*)
12995 version_type=osf
12996 need_lib_prefix=no
12997 need_version=no
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13005 rdos*)
13006 dynamic_linker=no
13009 solaris*)
13010 version_type=linux
13011 need_lib_prefix=no
13012 need_version=no
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 soname_spec='${libname}${release}${shared_ext}$major'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13017 hardcode_into_libs=yes
13018 # ldd complains unless libraries are executable
13019 postinstall_cmds='chmod +x $lib'
13022 sunos4*)
13023 version_type=sunos
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 if test "$with_gnu_ld" = yes; then
13029 need_lib_prefix=no
13031 need_version=yes
13034 sysv4 | sysv4.3*)
13035 version_type=linux
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 case $host_vendor in
13040 sni)
13041 shlibpath_overrides_runpath=no
13042 need_lib_prefix=no
13043 runpath_var=LD_RUN_PATH
13045 siemens)
13046 need_lib_prefix=no
13048 motorola)
13049 need_lib_prefix=no
13050 need_version=no
13051 shlibpath_overrides_runpath=no
13052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13054 esac
13057 sysv4*MP*)
13058 if test -d /usr/nec ;then
13059 version_type=linux
13060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13061 soname_spec='$libname${shared_ext}.$major'
13062 shlibpath_var=LD_LIBRARY_PATH
13066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13067 version_type=freebsd-elf
13068 need_lib_prefix=no
13069 need_version=no
13070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13071 soname_spec='${libname}${release}${shared_ext}$major'
13072 shlibpath_var=LD_LIBRARY_PATH
13073 shlibpath_overrides_runpath=yes
13074 hardcode_into_libs=yes
13075 if test "$with_gnu_ld" = yes; then
13076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13077 else
13078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13079 case $host_os in
13080 sco3.2v5*)
13081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13083 esac
13085 sys_lib_dlsearch_path_spec='/usr/lib'
13088 tpf*)
13089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13090 version_type=linux
13091 need_lib_prefix=no
13092 need_version=no
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 shlibpath_overrides_runpath=no
13096 hardcode_into_libs=yes
13099 uts4*)
13100 version_type=linux
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
13103 shlibpath_var=LD_LIBRARY_PATH
13107 dynamic_linker=no
13109 esac
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13111 $as_echo "$dynamic_linker" >&6; }
13112 test "$dynamic_linker" = no && can_build_shared=no
13114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13115 if test "$GCC" = yes; then
13116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13213 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13214 hardcode_action=
13215 if test -n "$hardcode_libdir_flag_spec" ||
13216 test -n "$runpath_var" ||
13217 test "X$hardcode_automatic" = "Xyes" ; then
13219 # We can hardcode non-existent directories.
13220 if test "$hardcode_direct" != no &&
13221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13222 # have to relink, otherwise we might link with an installed library
13223 # when we should be linking with a yet-to-be-installed one
13224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13225 test "$hardcode_minus_L" != no; then
13226 # Linking always hardcodes the temporary library directory.
13227 hardcode_action=relink
13228 else
13229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13230 hardcode_action=immediate
13232 else
13233 # We cannot hardcode anything, or else we can only hardcode existing
13234 # directories.
13235 hardcode_action=unsupported
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13238 $as_echo "$hardcode_action" >&6; }
13240 if test "$hardcode_action" = relink ||
13241 test "$inherit_rpath" = yes; then
13242 # Fast installation is not supported
13243 enable_fast_install=no
13244 elif test "$shlibpath_overrides_runpath" = yes ||
13245 test "$enable_shared" = no; then
13246 # Fast installation is not necessary
13247 enable_fast_install=needless
13255 if test "x$enable_dlopen" != xyes; then
13256 enable_dlopen=unknown
13257 enable_dlopen_self=unknown
13258 enable_dlopen_self_static=unknown
13259 else
13260 lt_cv_dlopen=no
13261 lt_cv_dlopen_libs=
13263 case $host_os in
13264 beos*)
13265 lt_cv_dlopen="load_add_on"
13266 lt_cv_dlopen_libs=
13267 lt_cv_dlopen_self=yes
13270 mingw* | pw32* | cegcc*)
13271 lt_cv_dlopen="LoadLibrary"
13272 lt_cv_dlopen_libs=
13275 cygwin*)
13276 lt_cv_dlopen="dlopen"
13277 lt_cv_dlopen_libs=
13280 darwin*)
13281 # if libdl is installed we need to link against it
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-ldl $LIBS"
13289 if test x$gcc_no_link = xyes; then
13290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 char dlopen ();
13303 main ()
13305 return dlopen ();
13307 return 0;
13309 _ACEOF
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_dl_dlopen=yes
13312 else
13313 ac_cv_lib_dl_dlopen=no
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13320 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13321 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13322 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13323 else
13325 lt_cv_dlopen="dyld"
13326 lt_cv_dlopen_libs=
13327 lt_cv_dlopen_self=yes
13334 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13335 if test "x$ac_cv_func_shl_load" = x""yes; then :
13336 lt_cv_dlopen="shl_load"
13337 else
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13339 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13340 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 ac_check_lib_save_LIBS=$LIBS
13344 LIBS="-ldld $LIBS"
13345 if test x$gcc_no_link = xyes; then
13346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char shl_load ();
13359 main ()
13361 return shl_load ();
13363 return 0;
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 ac_cv_lib_dld_shl_load=yes
13368 else
13369 ac_cv_lib_dld_shl_load=no
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 LIBS=$ac_check_lib_save_LIBS
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13376 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13377 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13378 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13379 else
13380 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13381 if test "x$ac_cv_func_dlopen" = x""yes; then :
13382 lt_cv_dlopen="dlopen"
13383 else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13385 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13386 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 ac_check_lib_save_LIBS=$LIBS
13390 LIBS="-ldl $LIBS"
13391 if test x$gcc_no_link = xyes; then
13392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char dlopen ();
13405 main ()
13407 return dlopen ();
13409 return 0;
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_lib_dl_dlopen=yes
13414 else
13415 ac_cv_lib_dl_dlopen=no
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13423 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13427 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13428 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lsvld $LIBS"
13433 if test x$gcc_no_link = xyes; then
13434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char dlopen ();
13447 main ()
13449 return dlopen ();
13451 return 0;
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_lib_svld_dlopen=yes
13456 else
13457 ac_cv_lib_svld_dlopen=no
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13464 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13465 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13469 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13470 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 ac_check_lib_save_LIBS=$LIBS
13474 LIBS="-ldld $LIBS"
13475 if test x$gcc_no_link = xyes; then
13476 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13484 #ifdef __cplusplus
13485 extern "C"
13486 #endif
13487 char dld_link ();
13489 main ()
13491 return dld_link ();
13493 return 0;
13495 _ACEOF
13496 if ac_fn_c_try_link "$LINENO"; then :
13497 ac_cv_lib_dld_dld_link=yes
13498 else
13499 ac_cv_lib_dld_dld_link=no
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 LIBS=$ac_check_lib_save_LIBS
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13506 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13507 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13527 esac
13529 if test "x$lt_cv_dlopen" != xno; then
13530 enable_dlopen=yes
13531 else
13532 enable_dlopen=no
13535 case $lt_cv_dlopen in
13536 dlopen)
13537 save_CPPFLAGS="$CPPFLAGS"
13538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13540 save_LDFLAGS="$LDFLAGS"
13541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13543 save_LIBS="$LIBS"
13544 LIBS="$lt_cv_dlopen_libs $LIBS"
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13547 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13548 if test "${lt_cv_dlopen_self+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test "$cross_compiling" = yes; then :
13552 lt_cv_dlopen_self=cross
13553 else
13554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13555 lt_status=$lt_dlunknown
13556 cat > conftest.$ac_ext <<_LT_EOF
13557 #line 13557 "configure"
13558 #include "confdefs.h"
13560 #if HAVE_DLFCN_H
13561 #include <dlfcn.h>
13562 #endif
13564 #include <stdio.h>
13566 #ifdef RTLD_GLOBAL
13567 # define LT_DLGLOBAL RTLD_GLOBAL
13568 #else
13569 # ifdef DL_GLOBAL
13570 # define LT_DLGLOBAL DL_GLOBAL
13571 # else
13572 # define LT_DLGLOBAL 0
13573 # endif
13574 #endif
13576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13577 find out it does not work in some platform. */
13578 #ifndef LT_DLLAZY_OR_NOW
13579 # ifdef RTLD_LAZY
13580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13581 # else
13582 # ifdef DL_LAZY
13583 # define LT_DLLAZY_OR_NOW DL_LAZY
13584 # else
13585 # ifdef RTLD_NOW
13586 # define LT_DLLAZY_OR_NOW RTLD_NOW
13587 # else
13588 # ifdef DL_NOW
13589 # define LT_DLLAZY_OR_NOW DL_NOW
13590 # else
13591 # define LT_DLLAZY_OR_NOW 0
13592 # endif
13593 # endif
13594 # endif
13595 # endif
13596 #endif
13598 void fnord() { int i=42;}
13599 int main ()
13601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13602 int status = $lt_dlunknown;
13604 if (self)
13606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13607 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13608 /* dlclose (self); */
13610 else
13611 puts (dlerror ());
13613 return status;
13615 _LT_EOF
13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13617 (eval $ac_link) 2>&5
13618 ac_status=$?
13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13621 (./conftest; exit; ) >&5 2>/dev/null
13622 lt_status=$?
13623 case x$lt_status in
13624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13627 esac
13628 else :
13629 # compilation failed
13630 lt_cv_dlopen_self=no
13633 rm -fr conftest*
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13638 $as_echo "$lt_cv_dlopen_self" >&6; }
13640 if test "x$lt_cv_dlopen_self" = xyes; then
13641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13643 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13644 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 if test "$cross_compiling" = yes; then :
13648 lt_cv_dlopen_self_static=cross
13649 else
13650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13651 lt_status=$lt_dlunknown
13652 cat > conftest.$ac_ext <<_LT_EOF
13653 #line 13653 "configure"
13654 #include "confdefs.h"
13656 #if HAVE_DLFCN_H
13657 #include <dlfcn.h>
13658 #endif
13660 #include <stdio.h>
13662 #ifdef RTLD_GLOBAL
13663 # define LT_DLGLOBAL RTLD_GLOBAL
13664 #else
13665 # ifdef DL_GLOBAL
13666 # define LT_DLGLOBAL DL_GLOBAL
13667 # else
13668 # define LT_DLGLOBAL 0
13669 # endif
13670 #endif
13672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13673 find out it does not work in some platform. */
13674 #ifndef LT_DLLAZY_OR_NOW
13675 # ifdef RTLD_LAZY
13676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13677 # else
13678 # ifdef DL_LAZY
13679 # define LT_DLLAZY_OR_NOW DL_LAZY
13680 # else
13681 # ifdef RTLD_NOW
13682 # define LT_DLLAZY_OR_NOW RTLD_NOW
13683 # else
13684 # ifdef DL_NOW
13685 # define LT_DLLAZY_OR_NOW DL_NOW
13686 # else
13687 # define LT_DLLAZY_OR_NOW 0
13688 # endif
13689 # endif
13690 # endif
13691 # endif
13692 #endif
13694 void fnord() { int i=42;}
13695 int main ()
13697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13698 int status = $lt_dlunknown;
13700 if (self)
13702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13704 /* dlclose (self); */
13706 else
13707 puts (dlerror ());
13709 return status;
13711 _LT_EOF
13712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13713 (eval $ac_link) 2>&5
13714 ac_status=$?
13715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13716 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13717 (./conftest; exit; ) >&5 2>/dev/null
13718 lt_status=$?
13719 case x$lt_status in
13720 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13721 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13722 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13723 esac
13724 else :
13725 # compilation failed
13726 lt_cv_dlopen_self_static=no
13729 rm -fr conftest*
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13734 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13737 CPPFLAGS="$save_CPPFLAGS"
13738 LDFLAGS="$save_LDFLAGS"
13739 LIBS="$save_LIBS"
13741 esac
13743 case $lt_cv_dlopen_self in
13744 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13745 *) enable_dlopen_self=unknown ;;
13746 esac
13748 case $lt_cv_dlopen_self_static in
13749 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13750 *) enable_dlopen_self_static=unknown ;;
13751 esac
13770 striplib=
13771 old_striplib=
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13773 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13774 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13775 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13776 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778 $as_echo "yes" >&6; }
13779 else
13780 # FIXME - insert some real tests, host_os isn't really good enough
13781 case $host_os in
13782 darwin*)
13783 if test -n "$STRIP" ; then
13784 striplib="$STRIP -x"
13785 old_striplib="$STRIP -S"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13787 $as_echo "yes" >&6; }
13788 else
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790 $as_echo "no" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13797 esac
13811 # Report which library types will actually be built
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13813 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13815 $as_echo "$can_build_shared" >&6; }
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13818 $as_echo_n "checking whether to build shared libraries... " >&6; }
13819 test "$can_build_shared" = "no" && enable_shared=no
13821 # On AIX, shared libraries and static libraries use the same namespace, and
13822 # are all built from PIC.
13823 case $host_os in
13824 aix3*)
13825 test "$enable_shared" = yes && enable_static=no
13826 if test -n "$RANLIB"; then
13827 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13828 postinstall_cmds='$RANLIB $lib'
13832 aix[4-9]*)
13833 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13834 test "$enable_shared" = yes && enable_static=no
13837 esac
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13839 $as_echo "$enable_shared" >&6; }
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13842 $as_echo_n "checking whether to build static libraries... " >&6; }
13843 # Make sure either enable_shared or enable_static is yes.
13844 test "$enable_shared" = yes || enable_static=yes
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13846 $as_echo "$enable_static" >&6; }
13852 ac_ext=c
13853 ac_cpp='$CPP $CPPFLAGS'
13854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13858 CC="$lt_save_CC"
13861 ac_ext=cpp
13862 ac_cpp='$CXXCPP $CPPFLAGS'
13863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13867 archive_cmds_need_lc_CXX=no
13868 allow_undefined_flag_CXX=
13869 always_export_symbols_CXX=no
13870 archive_expsym_cmds_CXX=
13871 compiler_needs_object_CXX=no
13872 export_dynamic_flag_spec_CXX=
13873 hardcode_direct_CXX=no
13874 hardcode_direct_absolute_CXX=no
13875 hardcode_libdir_flag_spec_CXX=
13876 hardcode_libdir_flag_spec_ld_CXX=
13877 hardcode_libdir_separator_CXX=
13878 hardcode_minus_L_CXX=no
13879 hardcode_shlibpath_var_CXX=unsupported
13880 hardcode_automatic_CXX=no
13881 inherit_rpath_CXX=no
13882 module_cmds_CXX=
13883 module_expsym_cmds_CXX=
13884 link_all_deplibs_CXX=unknown
13885 old_archive_cmds_CXX=$old_archive_cmds
13886 no_undefined_flag_CXX=
13887 whole_archive_flag_spec_CXX=
13888 enable_shared_with_static_runtimes_CXX=no
13890 # Source file extension for C++ test sources.
13891 ac_ext=cpp
13893 # Object file extension for compiled C++ test sources.
13894 objext=o
13895 objext_CXX=$objext
13897 # No sense in running all these tests if we already determined that
13898 # the CXX compiler isn't working. Some variables (like enable_shared)
13899 # are currently assumed to apply to all compilers on this platform,
13900 # and will be corrupted by setting them based on a non-working compiler.
13901 if test "$_lt_caught_CXX_error" != yes; then
13902 # Code to be used in simple compile tests
13903 lt_simple_compile_test_code="int some_variable = 0;"
13905 # Code to be used in simple link tests
13906 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13908 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13915 # If no C compiler was specified, use CC.
13916 LTCC=${LTCC-"$CC"}
13918 # If no C compiler flags were specified, use CFLAGS.
13919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13921 # Allow CC to be a program name with arguments.
13922 compiler=$CC
13925 # save warnings/boilerplate of simple test code
13926 ac_outfile=conftest.$ac_objext
13927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13929 _lt_compiler_boilerplate=`cat conftest.err`
13930 $RM conftest*
13932 ac_outfile=conftest.$ac_objext
13933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13935 _lt_linker_boilerplate=`cat conftest.err`
13936 $RM -r conftest*
13939 # Allow CC to be a program name with arguments.
13940 lt_save_CC=$CC
13941 lt_save_LD=$LD
13942 lt_save_GCC=$GCC
13943 GCC=$GXX
13944 lt_save_with_gnu_ld=$with_gnu_ld
13945 lt_save_path_LD=$lt_cv_path_LD
13946 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13947 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13948 else
13949 $as_unset lt_cv_prog_gnu_ld
13951 if test -n "${lt_cv_path_LDCXX+set}"; then
13952 lt_cv_path_LD=$lt_cv_path_LDCXX
13953 else
13954 $as_unset lt_cv_path_LD
13956 test -z "${LDCXX+set}" || LD=$LDCXX
13957 CC=${CXX-"c++"}
13958 compiler=$CC
13959 compiler_CXX=$CC
13960 for cc_temp in $compiler""; do
13961 case $cc_temp in
13962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13964 \-*) ;;
13965 *) break;;
13966 esac
13967 done
13968 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13971 if test -n "$compiler"; then
13972 # We don't want -fno-exception when compiling C++ code, so set the
13973 # no_builtin_flag separately
13974 if test "$GXX" = yes; then
13975 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13976 else
13977 lt_prog_compiler_no_builtin_flag_CXX=
13980 if test "$GXX" = yes; then
13981 # Set up default GNU C++ configuration
13985 # Check whether --with-gnu-ld was given.
13986 if test "${with_gnu_ld+set}" = set; then :
13987 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13988 else
13989 with_gnu_ld=no
13992 ac_prog=ld
13993 if test "$GCC" = yes; then
13994 # Check if gcc -print-prog-name=ld gives a path.
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13996 $as_echo_n "checking for ld used by $CC... " >&6; }
13997 case $host in
13998 *-*-mingw*)
13999 # gcc leaves a trailing carriage return which upsets mingw
14000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14003 esac
14004 case $ac_prog in
14005 # Accept absolute paths.
14006 [\\/]* | ?:[\\/]*)
14007 re_direlt='/[^/][^/]*/\.\./'
14008 # Canonicalize the pathname of ld
14009 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14010 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14011 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14012 done
14013 test -z "$LD" && LD="$ac_prog"
14016 # If it fails, then pretend we aren't using GCC.
14017 ac_prog=ld
14020 # If it is relative, then search for the first ld in PATH.
14021 with_gnu_ld=unknown
14023 esac
14024 elif test "$with_gnu_ld" = yes; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14026 $as_echo_n "checking for GNU ld... " >&6; }
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14029 $as_echo_n "checking for non-GNU ld... " >&6; }
14031 if test "${lt_cv_path_LD+set}" = set; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 if test -z "$LD"; then
14035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14036 for ac_dir in $PATH; do
14037 IFS="$lt_save_ifs"
14038 test -z "$ac_dir" && ac_dir=.
14039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14040 lt_cv_path_LD="$ac_dir/$ac_prog"
14041 # Check to see if the program is GNU ld. I'd rather use --version,
14042 # but apparently some variants of GNU ld only accept -v.
14043 # Break only if it was the GNU/non-GNU ld that we prefer.
14044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14045 *GNU* | *'with BFD'*)
14046 test "$with_gnu_ld" != no && break
14049 test "$with_gnu_ld" != yes && break
14051 esac
14053 done
14054 IFS="$lt_save_ifs"
14055 else
14056 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14060 LD="$lt_cv_path_LD"
14061 if test -n "$LD"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14063 $as_echo "$LD" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14068 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14070 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14071 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14075 case `$LD -v 2>&1 </dev/null` in
14076 *GNU* | *'with BFD'*)
14077 lt_cv_prog_gnu_ld=yes
14080 lt_cv_prog_gnu_ld=no
14082 esac
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14085 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14086 with_gnu_ld=$lt_cv_prog_gnu_ld
14094 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14095 # archiving commands below assume that GNU ld is being used.
14096 if test "$with_gnu_ld" = yes; then
14097 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098 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'
14100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14103 # If archive_cmds runs LD, not CC, wlarc should be empty
14104 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14105 # investigate it a little bit more. (MM)
14106 wlarc='${wl}'
14108 # ancient GNU ld didn't support --whole-archive et. al.
14109 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14110 $GREP 'no-whole-archive' > /dev/null; then
14111 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14112 else
14113 whole_archive_flag_spec_CXX=
14115 else
14116 with_gnu_ld=no
14117 wlarc=
14119 # A generic and very simple default shared library creation
14120 # command for GNU C++ for the case where it uses the native
14121 # linker, instead of GNU ld. If possible, this setting should
14122 # overridden to take advantage of the native linker features on
14123 # the platform it is being used on.
14124 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14127 # Commands to make compiler produce verbose output that lists
14128 # what "hidden" libraries, object files and flags are used when
14129 # linking a shared library.
14130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14132 else
14133 GXX=no
14134 with_gnu_ld=no
14135 wlarc=
14138 # PORTME: fill in a description of your system's C++ link characteristics
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14141 ld_shlibs_CXX=yes
14142 case $host_os in
14143 aix3*)
14144 # FIXME: insert proper C++ library support
14145 ld_shlibs_CXX=no
14147 aix[4-9]*)
14148 if test "$host_cpu" = ia64; then
14149 # On IA64, the linker does run time linking by default, so we don't
14150 # have to do anything special.
14151 aix_use_runtimelinking=no
14152 exp_sym_flag='-Bexport'
14153 no_entry_flag=""
14154 else
14155 aix_use_runtimelinking=no
14157 # Test if we are trying to use run time linking or normal
14158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14159 # need to do runtime linking.
14160 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14161 for ld_flag in $LDFLAGS; do
14162 case $ld_flag in
14163 *-brtl*)
14164 aix_use_runtimelinking=yes
14165 break
14167 esac
14168 done
14170 esac
14172 exp_sym_flag='-bexport'
14173 no_entry_flag='-bnoentry'
14176 # When large executables or shared objects are built, AIX ld can
14177 # have problems creating the table of contents. If linking a library
14178 # or program results in "error TOC overflow" add -mminimal-toc to
14179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14182 archive_cmds_CXX=''
14183 hardcode_direct_CXX=yes
14184 hardcode_direct_absolute_CXX=yes
14185 hardcode_libdir_separator_CXX=':'
14186 link_all_deplibs_CXX=yes
14187 file_list_spec_CXX='${wl}-f,'
14189 if test "$GXX" = yes; then
14190 case $host_os in aix4.[012]|aix4.[012].*)
14191 # We only want to do this on AIX 4.2 and lower, the check
14192 # below for broken collect2 doesn't work under 4.3+
14193 collect2name=`${CC} -print-prog-name=collect2`
14194 if test -f "$collect2name" &&
14195 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14196 then
14197 # We have reworked collect2
14199 else
14200 # We have old collect2
14201 hardcode_direct_CXX=unsupported
14202 # It fails to find uninstalled libraries when the uninstalled
14203 # path is not listed in the libpath. Setting hardcode_minus_L
14204 # to unsupported forces relinking
14205 hardcode_minus_L_CXX=yes
14206 hardcode_libdir_flag_spec_CXX='-L$libdir'
14207 hardcode_libdir_separator_CXX=
14209 esac
14210 shared_flag='-shared'
14211 if test "$aix_use_runtimelinking" = yes; then
14212 shared_flag="$shared_flag "'${wl}-G'
14214 else
14215 # not using gcc
14216 if test "$host_cpu" = ia64; then
14217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14218 # chokes on -Wl,-G. The following line is correct:
14219 shared_flag='-G'
14220 else
14221 if test "$aix_use_runtimelinking" = yes; then
14222 shared_flag='${wl}-G'
14223 else
14224 shared_flag='${wl}-bM:SRE'
14229 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14230 # It seems that -bexpall does not export symbols beginning with
14231 # underscore (_), so it is better to generate a list of symbols to
14232 # export.
14233 always_export_symbols_CXX=yes
14234 if test "$aix_use_runtimelinking" = yes; then
14235 # Warning - without using the other runtime loading flags (-brtl),
14236 # -berok will link without error, but may produce a broken library.
14237 allow_undefined_flag_CXX='-berok'
14238 # Determine the default libpath from the value encoded in an empty
14239 # executable.
14240 if test x$gcc_no_link = xyes; then
14241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14247 main ()
14251 return 0;
14253 _ACEOF
14254 if ac_fn_cxx_try_link "$LINENO"; then :
14256 lt_aix_libpath_sed='
14257 /Import File Strings/,/^$/ {
14258 /^0/ {
14259 s/^0 *\(.*\)$/\1/
14263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264 # Check for a 64-bit object if we didn't find anything.
14265 if test -z "$aix_libpath"; then
14266 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14269 rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14275 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"
14276 else
14277 if test "$host_cpu" = ia64; then
14278 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14279 allow_undefined_flag_CXX="-z nodefs"
14280 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"
14281 else
14282 # Determine the default libpath from the value encoded in an
14283 # empty executable.
14284 if test x$gcc_no_link = xyes; then
14285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14291 main ()
14295 return 0;
14297 _ACEOF
14298 if ac_fn_cxx_try_link "$LINENO"; then :
14300 lt_aix_libpath_sed='
14301 /Import File Strings/,/^$/ {
14302 /^0/ {
14303 s/^0 *\(.*\)$/\1/
14307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14308 # Check for a 64-bit object if we didn't find anything.
14309 if test -z "$aix_libpath"; then
14310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14313 rm -f core conftest.err conftest.$ac_objext \
14314 conftest$ac_exeext conftest.$ac_ext
14315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14318 # Warning - without using the other run time loading flags,
14319 # -berok will link without error, but may produce a broken library.
14320 no_undefined_flag_CXX=' ${wl}-bernotok'
14321 allow_undefined_flag_CXX=' ${wl}-berok'
14322 # Exported symbols can be pulled into shared objects from archives
14323 whole_archive_flag_spec_CXX='$convenience'
14324 archive_cmds_need_lc_CXX=yes
14325 # This is similar to how AIX traditionally builds its shared
14326 # libraries.
14327 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'
14332 beos*)
14333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14334 allow_undefined_flag_CXX=unsupported
14335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14336 # support --undefined. This deserves some investigation. FIXME
14337 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 else
14339 ld_shlibs_CXX=no
14343 chorus*)
14344 case $cc_basename in
14346 # FIXME: insert proper C++ library support
14347 ld_shlibs_CXX=no
14349 esac
14352 cygwin* | mingw* | pw32* | cegcc*)
14353 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14354 # as there is no search path for DLLs.
14355 hardcode_libdir_flag_spec_CXX='-L$libdir'
14356 allow_undefined_flag_CXX=unsupported
14357 always_export_symbols_CXX=no
14358 enable_shared_with_static_runtimes_CXX=yes
14360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14361 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'
14362 # If the export-symbols file already is a .def file (1st line
14363 # is EXPORTS), use it as is; otherwise, prepend...
14364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14365 cp $export_symbols $output_objdir/$soname.def;
14366 else
14367 echo EXPORTS > $output_objdir/$soname.def;
14368 cat $export_symbols >> $output_objdir/$soname.def;
14370 $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'
14371 else
14372 ld_shlibs_CXX=no
14375 darwin* | rhapsody*)
14378 archive_cmds_need_lc_CXX=no
14379 hardcode_direct_CXX=no
14380 hardcode_automatic_CXX=yes
14381 hardcode_shlibpath_var_CXX=unsupported
14382 whole_archive_flag_spec_CXX=''
14383 link_all_deplibs_CXX=yes
14384 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14385 case $cc_basename in
14386 ifort*) _lt_dar_can_shared=yes ;;
14387 *) _lt_dar_can_shared=$GCC ;;
14388 esac
14389 if test "$_lt_dar_can_shared" = "yes"; then
14390 output_verbose_link_cmd=echo
14391 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}"
14392 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14393 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}"
14394 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}"
14395 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14396 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}"
14397 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}"
14400 else
14401 ld_shlibs_CXX=no
14406 dgux*)
14407 case $cc_basename in
14408 ec++*)
14409 # FIXME: insert proper C++ library support
14410 ld_shlibs_CXX=no
14412 ghcx*)
14413 # Green Hills C++ Compiler
14414 # FIXME: insert proper C++ library support
14415 ld_shlibs_CXX=no
14418 # FIXME: insert proper C++ library support
14419 ld_shlibs_CXX=no
14421 esac
14424 freebsd[12]*)
14425 # C++ shared libraries reported to be fairly broken before
14426 # switch to ELF
14427 ld_shlibs_CXX=no
14430 freebsd-elf*)
14431 archive_cmds_need_lc_CXX=no
14434 freebsd* | dragonfly*)
14435 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14436 # conventions
14437 ld_shlibs_CXX=yes
14440 gnu*)
14443 hpux9*)
14444 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14445 hardcode_libdir_separator_CXX=:
14446 export_dynamic_flag_spec_CXX='${wl}-E'
14447 hardcode_direct_CXX=yes
14448 hardcode_minus_L_CXX=yes # Not in the search PATH,
14449 # but as the default
14450 # location of the library.
14452 case $cc_basename in
14453 CC*)
14454 # FIXME: insert proper C++ library support
14455 ld_shlibs_CXX=no
14457 aCC*)
14458 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'
14459 # Commands to make compiler produce verbose output that lists
14460 # what "hidden" libraries, object files and flags are used when
14461 # linking a shared library.
14463 # There doesn't appear to be a way to prevent this compiler from
14464 # explicitly linking system object files so we need to strip them
14465 # from the output so that they don't get included in the library
14466 # dependencies.
14467 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'
14470 if test "$GXX" = yes; then
14471 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'
14472 else
14473 # FIXME: insert proper C++ library support
14474 ld_shlibs_CXX=no
14477 esac
14480 hpux10*|hpux11*)
14481 if test $with_gnu_ld = no; then
14482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14483 hardcode_libdir_separator_CXX=:
14485 case $host_cpu in
14486 hppa*64*|ia64*)
14489 export_dynamic_flag_spec_CXX='${wl}-E'
14491 esac
14493 case $host_cpu in
14494 hppa*64*|ia64*)
14495 hardcode_direct_CXX=no
14496 hardcode_shlibpath_var_CXX=no
14499 hardcode_direct_CXX=yes
14500 hardcode_direct_absolute_CXX=yes
14501 hardcode_minus_L_CXX=yes # Not in the search PATH,
14502 # but as the default
14503 # location of the library.
14505 esac
14507 case $cc_basename in
14508 CC*)
14509 # FIXME: insert proper C++ library support
14510 ld_shlibs_CXX=no
14512 aCC*)
14513 case $host_cpu in
14514 hppa*64*)
14515 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517 ia64*)
14518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14523 esac
14524 # Commands to make compiler produce verbose output that lists
14525 # what "hidden" libraries, object files and flags are used when
14526 # linking a shared library.
14528 # There doesn't appear to be a way to prevent this compiler from
14529 # explicitly linking system object files so we need to strip them
14530 # from the output so that they don't get included in the library
14531 # dependencies.
14532 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'
14535 if test "$GXX" = yes; then
14536 if test $with_gnu_ld = no; then
14537 case $host_cpu in
14538 hppa*64*)
14539 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14541 ia64*)
14542 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14545 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'
14547 esac
14549 else
14550 # FIXME: insert proper C++ library support
14551 ld_shlibs_CXX=no
14554 esac
14557 interix[3-9]*)
14558 hardcode_direct_CXX=no
14559 hardcode_shlibpath_var_CXX=no
14560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14561 export_dynamic_flag_spec_CXX='${wl}-E'
14562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14563 # Instead, shared libraries are loaded at an image base (0x10000000 by
14564 # default) and relocated if they conflict, which is a slow very memory
14565 # consuming and fragmenting process. To avoid this, we pick a random,
14566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14568 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'
14569 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'
14571 irix5* | irix6*)
14572 case $cc_basename in
14573 CC*)
14574 # SGI C++
14575 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'
14577 # Archives containing C++ object files must be created using
14578 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14579 # necessary to make sure instantiated templates are included
14580 # in the archive.
14581 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14584 if test "$GXX" = yes; then
14585 if test "$with_gnu_ld" = no; then
14586 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'
14587 else
14588 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'
14591 link_all_deplibs_CXX=yes
14593 esac
14594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14595 hardcode_libdir_separator_CXX=:
14596 inherit_rpath_CXX=yes
14599 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14600 case $cc_basename in
14601 KCC*)
14602 # Kuck and Associates, Inc. (KAI) C++ Compiler
14604 # KCC will only create a shared library if the output file
14605 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14606 # to its proper name (with version) after linking.
14607 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'
14608 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'
14609 # Commands to make compiler produce verbose output that lists
14610 # what "hidden" libraries, object files and flags are used when
14611 # linking a shared library.
14613 # There doesn't appear to be a way to prevent this compiler from
14614 # explicitly linking system object files so we need to strip them
14615 # from the output so that they don't get included in the library
14616 # dependencies.
14617 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'
14619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14622 # Archives containing C++ object files must be created using
14623 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14624 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14626 icpc* | ecpc* )
14627 # Intel C++
14628 with_gnu_ld=yes
14629 # version 8.0 and above of icpc choke on multiply defined symbols
14630 # if we add $predep_objects and $postdep_objects, however 7.1 and
14631 # earlier do not add the objects themselves.
14632 case `$CC -V 2>&1` in
14633 *"Version 7."*)
14634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14635 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'
14637 *) # Version 8.0 or newer
14638 tmp_idyn=
14639 case $host_cpu in
14640 ia64*) tmp_idyn=' -i_dynamic';;
14641 esac
14642 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643 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'
14645 esac
14646 archive_cmds_need_lc_CXX=no
14647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14649 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14651 pgCC* | pgcpp*)
14652 # Portland Group C++ compiler
14653 case `$CC -V` in
14654 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14655 prelink_cmds_CXX='tpldir=Template.dir~
14656 rm -rf $tpldir~
14657 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14658 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14659 old_archive_cmds_CXX='tpldir=Template.dir~
14660 rm -rf $tpldir~
14661 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14662 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14663 $RANLIB $oldlib'
14664 archive_cmds_CXX='tpldir=Template.dir~
14665 rm -rf $tpldir~
14666 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14667 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14668 archive_expsym_cmds_CXX='tpldir=Template.dir~
14669 rm -rf $tpldir~
14670 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14671 $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'
14673 *) # Version 6 will use weak symbols
14674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14675 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'
14677 esac
14679 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14681 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'
14683 cxx*)
14684 # Compaq C++
14685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686 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'
14688 runpath_var=LD_RUN_PATH
14689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14690 hardcode_libdir_separator_CXX=:
14692 # Commands to make compiler produce verbose output that lists
14693 # what "hidden" libraries, object files and flags are used when
14694 # linking a shared library.
14696 # There doesn't appear to be a way to prevent this compiler from
14697 # explicitly linking system object files so we need to strip them
14698 # from the output so that they don't get included in the library
14699 # dependencies.
14700 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'
14702 xl*)
14703 # IBM XL 8.0 on PPC, with GNU ld
14704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14706 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14707 if test "x$supports_anon_versioning" = xyes; then
14708 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14710 echo "local: *; };" >> $output_objdir/$libname.ver~
14711 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14715 case `$CC -V 2>&1 | sed 5q` in
14716 *Sun\ C*)
14717 # Sun C++ 5.9
14718 no_undefined_flag_CXX=' -zdefs'
14719 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14720 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'
14721 hardcode_libdir_flag_spec_CXX='-R$libdir'
14722 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'
14723 compiler_needs_object_CXX=yes
14725 # Not sure whether something based on
14726 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14727 # would be better.
14728 output_verbose_link_cmd='echo'
14730 # Archives containing C++ object files must be created using
14731 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14732 # necessary to make sure instantiated templates are included
14733 # in the archive.
14734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14736 esac
14738 esac
14741 lynxos*)
14742 # FIXME: insert proper C++ library support
14743 ld_shlibs_CXX=no
14746 m88k*)
14747 # FIXME: insert proper C++ library support
14748 ld_shlibs_CXX=no
14751 mvs*)
14752 case $cc_basename in
14753 cxx*)
14754 # FIXME: insert proper C++ library support
14755 ld_shlibs_CXX=no
14758 # FIXME: insert proper C++ library support
14759 ld_shlibs_CXX=no
14761 esac
14764 netbsd*)
14765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14767 wlarc=
14768 hardcode_libdir_flag_spec_CXX='-R$libdir'
14769 hardcode_direct_CXX=yes
14770 hardcode_shlibpath_var_CXX=no
14772 # Workaround some broken pre-1.5 toolchains
14773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14776 *nto* | *qnx*)
14777 ld_shlibs_CXX=yes
14780 openbsd2*)
14781 # C++ shared libraries are fairly broken
14782 ld_shlibs_CXX=no
14785 openbsd*)
14786 if test -f /usr/libexec/ld.so; then
14787 hardcode_direct_CXX=yes
14788 hardcode_shlibpath_var_CXX=no
14789 hardcode_direct_absolute_CXX=yes
14790 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14793 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14794 export_dynamic_flag_spec_CXX='${wl}-E'
14795 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14797 output_verbose_link_cmd=echo
14798 else
14799 ld_shlibs_CXX=no
14803 osf3* | osf4* | osf5*)
14804 case $cc_basename in
14805 KCC*)
14806 # Kuck and Associates, Inc. (KAI) C++ Compiler
14808 # KCC will only create a shared library if the output file
14809 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14810 # to its proper name (with version) after linking.
14811 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'
14813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14814 hardcode_libdir_separator_CXX=:
14816 # Archives containing C++ object files must be created using
14817 # the KAI C++ compiler.
14818 case $host in
14819 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14820 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14821 esac
14823 RCC*)
14824 # Rational C++ 2.4.1
14825 # FIXME: insert proper C++ library support
14826 ld_shlibs_CXX=no
14828 cxx*)
14829 case $host in
14830 osf3*)
14831 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14832 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'
14833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14836 allow_undefined_flag_CXX=' -expect_unresolved \*'
14837 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'
14838 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14839 echo "-hidden">> $lib.exp~
14840 $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~
14841 $RM $lib.exp'
14842 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14844 esac
14846 hardcode_libdir_separator_CXX=:
14848 # Commands to make compiler produce verbose output that lists
14849 # what "hidden" libraries, object files and flags are used when
14850 # linking a shared library.
14852 # There doesn't appear to be a way to prevent this compiler from
14853 # explicitly linking system object files so we need to strip them
14854 # from the output so that they don't get included in the library
14855 # dependencies.
14856 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'
14859 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14860 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14861 case $host in
14862 osf3*)
14863 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'
14866 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'
14868 esac
14870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14871 hardcode_libdir_separator_CXX=:
14873 # Commands to make compiler produce verbose output that lists
14874 # what "hidden" libraries, object files and flags are used when
14875 # linking a shared library.
14876 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14878 else
14879 # FIXME: insert proper C++ library support
14880 ld_shlibs_CXX=no
14883 esac
14886 psos*)
14887 # FIXME: insert proper C++ library support
14888 ld_shlibs_CXX=no
14891 sunos4*)
14892 case $cc_basename in
14893 CC*)
14894 # Sun C++ 4.x
14895 # FIXME: insert proper C++ library support
14896 ld_shlibs_CXX=no
14898 lcc*)
14899 # Lucid
14900 # FIXME: insert proper C++ library support
14901 ld_shlibs_CXX=no
14904 # FIXME: insert proper C++ library support
14905 ld_shlibs_CXX=no
14907 esac
14910 solaris*)
14911 case $cc_basename in
14912 CC*)
14913 # Sun C++ 4.2, 5.x and Centerline C++
14914 archive_cmds_need_lc_CXX=yes
14915 no_undefined_flag_CXX=' -zdefs'
14916 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14917 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14918 $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'
14920 hardcode_libdir_flag_spec_CXX='-R$libdir'
14921 hardcode_shlibpath_var_CXX=no
14922 case $host_os in
14923 solaris2.[0-5] | solaris2.[0-5].*) ;;
14925 # The compiler driver will combine and reorder linker options,
14926 # but understands `-z linker_flag'.
14927 # Supported since Solaris 2.6 (maybe 2.5.1?)
14928 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14930 esac
14931 link_all_deplibs_CXX=yes
14933 output_verbose_link_cmd='echo'
14935 # Archives containing C++ object files must be created using
14936 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14937 # necessary to make sure instantiated templates are included
14938 # in the archive.
14939 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14941 gcx*)
14942 # Green Hills C++ Compiler
14943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14945 # The C++ compiler must be used to create the archive.
14946 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14949 # GNU C++ compiler with Solaris linker
14950 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14951 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14952 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14953 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14954 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14955 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14957 # Commands to make compiler produce verbose output that lists
14958 # what "hidden" libraries, object files and flags are used when
14959 # linking a shared library.
14960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14961 else
14962 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14963 # platform.
14964 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14965 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14966 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14968 # Commands to make compiler produce verbose output that lists
14969 # what "hidden" libraries, object files and flags are used when
14970 # linking a shared library.
14971 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14974 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14975 case $host_os in
14976 solaris2.[0-5] | solaris2.[0-5].*) ;;
14978 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14980 esac
14983 esac
14986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14987 no_undefined_flag_CXX='${wl}-z,text'
14988 archive_cmds_need_lc_CXX=no
14989 hardcode_shlibpath_var_CXX=no
14990 runpath_var='LD_RUN_PATH'
14992 case $cc_basename in
14993 CC*)
14994 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14998 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 esac
15004 sysv5* | sco3.2v5* | sco5v6*)
15005 # Note: We can NOT use -z defs as we might desire, because we do not
15006 # link with -lc, and that would cause any symbols used from libc to
15007 # always be unresolved, which means just about no library would
15008 # ever link correctly. If we're not using GNU ld we use -z text
15009 # though, which does catch some bad symbols but isn't as heavy-handed
15010 # as -z defs.
15011 no_undefined_flag_CXX='${wl}-z,text'
15012 allow_undefined_flag_CXX='${wl}-z,nodefs'
15013 archive_cmds_need_lc_CXX=no
15014 hardcode_shlibpath_var_CXX=no
15015 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15016 hardcode_libdir_separator_CXX=':'
15017 link_all_deplibs_CXX=yes
15018 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15019 runpath_var='LD_RUN_PATH'
15021 case $cc_basename in
15022 CC*)
15023 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 esac
15033 tandem*)
15034 case $cc_basename in
15035 NCC*)
15036 # NonStop-UX NCC 3.20
15037 # FIXME: insert proper C++ library support
15038 ld_shlibs_CXX=no
15041 # FIXME: insert proper C++ library support
15042 ld_shlibs_CXX=no
15044 esac
15047 vxworks*)
15048 # FIXME: insert proper C++ library support
15049 ld_shlibs_CXX=no
15053 # FIXME: insert proper C++ library support
15054 ld_shlibs_CXX=no
15056 esac
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15059 $as_echo "$ld_shlibs_CXX" >&6; }
15060 test "$ld_shlibs_CXX" = no && can_build_shared=no
15062 GCC_CXX="$GXX"
15063 LD_CXX="$LD"
15065 ## CAVEAT EMPTOR:
15066 ## There is no encapsulation within the following macros, do not change
15067 ## the running order or otherwise move them around unless you know exactly
15068 ## what you are doing...
15069 # Dependencies to place before and after the object being linked:
15070 predep_objects_CXX=
15071 postdep_objects_CXX=
15072 predeps_CXX=
15073 postdeps_CXX=
15074 compiler_lib_search_path_CXX=
15076 cat > conftest.$ac_ext <<_LT_EOF
15077 class Foo
15079 public:
15080 Foo (void) { a = 0; }
15081 private:
15082 int a;
15084 _LT_EOF
15086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15087 (eval $ac_compile) 2>&5
15088 ac_status=$?
15089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15090 test $ac_status = 0; }; then
15091 # Parse the compiler output and extract the necessary
15092 # objects, libraries and library flags.
15094 # Sentinel used to keep track of whether or not we are before
15095 # the conftest object file.
15096 pre_test_object_deps_done=no
15098 for p in `eval "$output_verbose_link_cmd"`; do
15099 case $p in
15101 -L* | -R* | -l*)
15102 # Some compilers place space between "-{L,R}" and the path.
15103 # Remove the space.
15104 if test $p = "-L" ||
15105 test $p = "-R"; then
15106 prev=$p
15107 continue
15108 else
15109 prev=
15112 if test "$pre_test_object_deps_done" = no; then
15113 case $p in
15114 -L* | -R*)
15115 # Internal compiler library paths should come after those
15116 # provided the user. The postdeps already come after the
15117 # user supplied libs so there is no need to process them.
15118 if test -z "$compiler_lib_search_path_CXX"; then
15119 compiler_lib_search_path_CXX="${prev}${p}"
15120 else
15121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15124 # The "-l" case would never come before the object being
15125 # linked, so don't bother handling this case.
15126 esac
15127 else
15128 if test -z "$postdeps_CXX"; then
15129 postdeps_CXX="${prev}${p}"
15130 else
15131 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15136 *.$objext)
15137 # This assumes that the test object file only shows up
15138 # once in the compiler output.
15139 if test "$p" = "conftest.$objext"; then
15140 pre_test_object_deps_done=yes
15141 continue
15144 if test "$pre_test_object_deps_done" = no; then
15145 if test -z "$predep_objects_CXX"; then
15146 predep_objects_CXX="$p"
15147 else
15148 predep_objects_CXX="$predep_objects_CXX $p"
15150 else
15151 if test -z "$postdep_objects_CXX"; then
15152 postdep_objects_CXX="$p"
15153 else
15154 postdep_objects_CXX="$postdep_objects_CXX $p"
15159 *) ;; # Ignore the rest.
15161 esac
15162 done
15164 # Clean up.
15165 rm -f a.out a.exe
15166 else
15167 echo "libtool.m4: error: problem compiling CXX test program"
15170 $RM -f confest.$objext
15172 # PORTME: override above test on systems where it is broken
15173 case $host_os in
15174 interix[3-9]*)
15175 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15176 # hack all around it, let's just trust "g++" to DTRT.
15177 predep_objects_CXX=
15178 postdep_objects_CXX=
15179 postdeps_CXX=
15182 linux*)
15183 case `$CC -V 2>&1 | sed 5q` in
15184 *Sun\ C*)
15185 # Sun C++ 5.9
15187 # The more standards-conforming stlport4 library is
15188 # incompatible with the Cstd library. Avoid specifying
15189 # it if it's in CXXFLAGS. Ignore libCrun as
15190 # -library=stlport4 depends on it.
15191 case " $CXX $CXXFLAGS " in
15192 *" -library=stlport4 "*)
15193 solaris_use_stlport4=yes
15195 esac
15197 if test "$solaris_use_stlport4" != yes; then
15198 postdeps_CXX='-library=Cstd -library=Crun'
15201 esac
15204 solaris*)
15205 case $cc_basename in
15206 CC*)
15207 # The more standards-conforming stlport4 library is
15208 # incompatible with the Cstd library. Avoid specifying
15209 # it if it's in CXXFLAGS. Ignore libCrun as
15210 # -library=stlport4 depends on it.
15211 case " $CXX $CXXFLAGS " in
15212 *" -library=stlport4 "*)
15213 solaris_use_stlport4=yes
15215 esac
15217 # Adding this requires a known-good setup of shared libraries for
15218 # Sun compiler versions before 5.6, else PIC objects from an old
15219 # archive will be linked into the output, leading to subtle bugs.
15220 if test "$solaris_use_stlport4" != yes; then
15221 postdeps_CXX='-library=Cstd -library=Crun'
15224 esac
15226 esac
15229 case " $postdeps_CXX " in
15230 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15231 esac
15232 compiler_lib_search_dirs_CXX=
15233 if test -n "${compiler_lib_search_path_CXX}"; then
15234 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15267 lt_prog_compiler_wl_CXX=
15268 lt_prog_compiler_pic_CXX=
15269 lt_prog_compiler_static_CXX=
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15274 # C++ specific cases for pic, static, wl, etc.
15275 if test "$GXX" = yes; then
15276 lt_prog_compiler_wl_CXX='-Wl,'
15277 lt_prog_compiler_static_CXX='-static'
15279 case $host_os in
15280 aix*)
15281 # All AIX code is PIC.
15282 if test "$host_cpu" = ia64; then
15283 # AIX 5 now supports IA64 processor
15284 lt_prog_compiler_static_CXX='-Bstatic'
15288 amigaos*)
15289 case $host_cpu in
15290 powerpc)
15291 # see comment about AmigaOS4 .so support
15292 lt_prog_compiler_pic_CXX='-fPIC'
15294 m68k)
15295 # FIXME: we need at least 68020 code to build shared libraries, but
15296 # adding the `-m68020' flag to GCC prevents building anything better,
15297 # like `-m68040'.
15298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15300 esac
15303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15304 # PIC is the default for these OSes.
15306 mingw* | cygwin* | os2* | pw32* | cegcc*)
15307 # This hack is so that the source file can tell whether it is being
15308 # built for inclusion in a dll (and should export symbols for example).
15309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15310 # (--disable-auto-import) libraries
15311 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15313 darwin* | rhapsody*)
15314 # PIC is the default on this platform
15315 # Common symbols not allowed in MH_DYLIB files
15316 lt_prog_compiler_pic_CXX='-fno-common'
15318 *djgpp*)
15319 # DJGPP does not support shared libraries at all
15320 lt_prog_compiler_pic_CXX=
15322 interix[3-9]*)
15323 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15324 # Instead, we relocate shared libraries at runtime.
15326 sysv4*MP*)
15327 if test -d /usr/nec; then
15328 lt_prog_compiler_pic_CXX=-Kconform_pic
15331 hpux*)
15332 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15333 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15334 # sets the default TLS model and affects inlining.
15335 case $host_cpu in
15336 hppa*64*)
15339 lt_prog_compiler_pic_CXX='-fPIC'
15341 esac
15343 *qnx* | *nto*)
15344 # QNX uses GNU C++, but need to define -shared option too, otherwise
15345 # it will coredump.
15346 lt_prog_compiler_pic_CXX='-fPIC -shared'
15349 lt_prog_compiler_pic_CXX='-fPIC'
15351 esac
15352 else
15353 case $host_os in
15354 aix[4-9]*)
15355 # All AIX code is PIC.
15356 if test "$host_cpu" = ia64; then
15357 # AIX 5 now supports IA64 processor
15358 lt_prog_compiler_static_CXX='-Bstatic'
15359 else
15360 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15363 chorus*)
15364 case $cc_basename in
15365 cxch68*)
15366 # Green Hills C++ Compiler
15367 # _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"
15369 esac
15371 dgux*)
15372 case $cc_basename in
15373 ec++*)
15374 lt_prog_compiler_pic_CXX='-KPIC'
15376 ghcx*)
15377 # Green Hills C++ Compiler
15378 lt_prog_compiler_pic_CXX='-pic'
15382 esac
15384 freebsd* | dragonfly*)
15385 # FreeBSD uses GNU C++
15387 hpux9* | hpux10* | hpux11*)
15388 case $cc_basename in
15389 CC*)
15390 lt_prog_compiler_wl_CXX='-Wl,'
15391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15392 if test "$host_cpu" != ia64; then
15393 lt_prog_compiler_pic_CXX='+Z'
15396 aCC*)
15397 lt_prog_compiler_wl_CXX='-Wl,'
15398 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15399 case $host_cpu in
15400 hppa*64*|ia64*)
15401 # +Z the default
15404 lt_prog_compiler_pic_CXX='+Z'
15406 esac
15410 esac
15412 interix*)
15413 # This is c89, which is MS Visual C++ (no shared libs)
15414 # Anyone wants to do a port?
15416 irix5* | irix6* | nonstopux*)
15417 case $cc_basename in
15418 CC*)
15419 lt_prog_compiler_wl_CXX='-Wl,'
15420 lt_prog_compiler_static_CXX='-non_shared'
15421 # CC pic flag -KPIC is the default.
15425 esac
15427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15428 case $cc_basename in
15429 KCC*)
15430 # KAI C++ Compiler
15431 lt_prog_compiler_wl_CXX='--backend -Wl,'
15432 lt_prog_compiler_pic_CXX='-fPIC'
15434 ecpc* )
15435 # old Intel C++ for x86_64 which still supported -KPIC.
15436 lt_prog_compiler_wl_CXX='-Wl,'
15437 lt_prog_compiler_pic_CXX='-KPIC'
15438 lt_prog_compiler_static_CXX='-static'
15440 icpc* )
15441 # Intel C++, used to be incompatible with GCC.
15442 # ICC 10 doesn't accept -KPIC any more.
15443 lt_prog_compiler_wl_CXX='-Wl,'
15444 lt_prog_compiler_pic_CXX='-fPIC'
15445 lt_prog_compiler_static_CXX='-static'
15447 pgCC* | pgcpp*)
15448 # Portland Group C++ compiler
15449 lt_prog_compiler_wl_CXX='-Wl,'
15450 lt_prog_compiler_pic_CXX='-fpic'
15451 lt_prog_compiler_static_CXX='-Bstatic'
15453 cxx*)
15454 # Compaq C++
15455 # Make sure the PIC flag is empty. It appears that all Alpha
15456 # Linux and Compaq Tru64 Unix objects are PIC.
15457 lt_prog_compiler_pic_CXX=
15458 lt_prog_compiler_static_CXX='-non_shared'
15460 xlc* | xlC*)
15461 # IBM XL 8.0 on PPC
15462 lt_prog_compiler_wl_CXX='-Wl,'
15463 lt_prog_compiler_pic_CXX='-qpic'
15464 lt_prog_compiler_static_CXX='-qstaticlink'
15467 case `$CC -V 2>&1 | sed 5q` in
15468 *Sun\ C*)
15469 # Sun C++ 5.9
15470 lt_prog_compiler_pic_CXX='-KPIC'
15471 lt_prog_compiler_static_CXX='-Bstatic'
15472 lt_prog_compiler_wl_CXX='-Qoption ld '
15474 esac
15476 esac
15478 lynxos*)
15480 m88k*)
15482 mvs*)
15483 case $cc_basename in
15484 cxx*)
15485 lt_prog_compiler_pic_CXX='-W c,exportall'
15489 esac
15491 netbsd*)
15493 *qnx* | *nto*)
15494 # QNX uses GNU C++, but need to define -shared option too, otherwise
15495 # it will coredump.
15496 lt_prog_compiler_pic_CXX='-fPIC -shared'
15498 osf3* | osf4* | osf5*)
15499 case $cc_basename in
15500 KCC*)
15501 lt_prog_compiler_wl_CXX='--backend -Wl,'
15503 RCC*)
15504 # Rational C++ 2.4.1
15505 lt_prog_compiler_pic_CXX='-pic'
15507 cxx*)
15508 # Digital/Compaq C++
15509 lt_prog_compiler_wl_CXX='-Wl,'
15510 # Make sure the PIC flag is empty. It appears that all Alpha
15511 # Linux and Compaq Tru64 Unix objects are PIC.
15512 lt_prog_compiler_pic_CXX=
15513 lt_prog_compiler_static_CXX='-non_shared'
15517 esac
15519 psos*)
15521 solaris*)
15522 case $cc_basename in
15523 CC*)
15524 # Sun C++ 4.2, 5.x and Centerline C++
15525 lt_prog_compiler_pic_CXX='-KPIC'
15526 lt_prog_compiler_static_CXX='-Bstatic'
15527 lt_prog_compiler_wl_CXX='-Qoption ld '
15529 gcx*)
15530 # Green Hills C++ Compiler
15531 lt_prog_compiler_pic_CXX='-PIC'
15535 esac
15537 sunos4*)
15538 case $cc_basename in
15539 CC*)
15540 # Sun C++ 4.x
15541 lt_prog_compiler_pic_CXX='-pic'
15542 lt_prog_compiler_static_CXX='-Bstatic'
15544 lcc*)
15545 # Lucid
15546 lt_prog_compiler_pic_CXX='-pic'
15550 esac
15552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15553 case $cc_basename in
15554 CC*)
15555 lt_prog_compiler_wl_CXX='-Wl,'
15556 lt_prog_compiler_pic_CXX='-KPIC'
15557 lt_prog_compiler_static_CXX='-Bstatic'
15559 esac
15561 tandem*)
15562 case $cc_basename in
15563 NCC*)
15564 # NonStop-UX NCC 3.20
15565 lt_prog_compiler_pic_CXX='-KPIC'
15569 esac
15571 vxworks*)
15574 lt_prog_compiler_can_build_shared_CXX=no
15576 esac
15579 case $host_os in
15580 # For platforms which do not support PIC, -DPIC is meaningless:
15581 *djgpp*)
15582 lt_prog_compiler_pic_CXX=
15585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15587 esac
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15589 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15594 # Check to make sure the PIC flag actually works.
15596 if test -n "$lt_prog_compiler_pic_CXX"; then
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15599 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15600 $as_echo_n "(cached) " >&6
15601 else
15602 lt_cv_prog_compiler_pic_works_CXX=no
15603 ac_outfile=conftest.$ac_objext
15604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15605 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15606 # Insert the option either (1) after the last *FLAGS variable, or
15607 # (2) before a word containing "conftest.", or (3) at the end.
15608 # Note that $ac_compile itself does not contain backslashes and begins
15609 # with a dollar sign (not a hyphen), so the echo should work correctly.
15610 # The option is referenced via a variable to avoid confusing sed.
15611 lt_compile=`echo "$ac_compile" | $SED \
15612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15614 -e 's:$: $lt_compiler_flag:'`
15615 (eval echo "\"\$as_me:15615: $lt_compile\"" >&5)
15616 (eval "$lt_compile" 2>conftest.err)
15617 ac_status=$?
15618 cat conftest.err >&5
15619 echo "$as_me:15619: \$? = $ac_status" >&5
15620 if (exit $ac_status) && test -s "$ac_outfile"; then
15621 # The compiler can only warn and ignore the option if not recognized
15622 # So say no if there are warnings other than the usual output.
15623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15626 lt_cv_prog_compiler_pic_works_CXX=yes
15629 $RM conftest*
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15633 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15635 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15636 case $lt_prog_compiler_pic_CXX in
15637 "" | " "*) ;;
15638 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15639 esac
15640 else
15641 lt_prog_compiler_pic_CXX=
15642 lt_prog_compiler_can_build_shared_CXX=no
15650 # Check to make sure the static flag actually works.
15652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15655 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15656 $as_echo_n "(cached) " >&6
15657 else
15658 lt_cv_prog_compiler_static_works_CXX=no
15659 save_LDFLAGS="$LDFLAGS"
15660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15663 # The linker can only warn and ignore the option if not recognized
15664 # So say no if there are warnings
15665 if test -s conftest.err; then
15666 # Append any errors to the config.log.
15667 cat conftest.err 1>&5
15668 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15670 if diff conftest.exp conftest.er2 >/dev/null; then
15671 lt_cv_prog_compiler_static_works_CXX=yes
15673 else
15674 lt_cv_prog_compiler_static_works_CXX=yes
15677 $RM -r conftest*
15678 LDFLAGS="$save_LDFLAGS"
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15682 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15684 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15686 else
15687 lt_prog_compiler_static_CXX=
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15695 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 lt_cv_prog_compiler_c_o_CXX=no
15699 $RM -r conftest 2>/dev/null
15700 mkdir conftest
15701 cd conftest
15702 mkdir out
15703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15705 lt_compiler_flag="-o out/conftest2.$ac_objext"
15706 # Insert the option either (1) after the last *FLAGS variable, or
15707 # (2) before a word containing "conftest.", or (3) at the end.
15708 # Note that $ac_compile itself does not contain backslashes and begins
15709 # with a dollar sign (not a hyphen), so the echo should work correctly.
15710 lt_compile=`echo "$ac_compile" | $SED \
15711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15713 -e 's:$: $lt_compiler_flag:'`
15714 (eval echo "\"\$as_me:15714: $lt_compile\"" >&5)
15715 (eval "$lt_compile" 2>out/conftest.err)
15716 ac_status=$?
15717 cat out/conftest.err >&5
15718 echo "$as_me:15718: \$? = $ac_status" >&5
15719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15720 then
15721 # The compiler can only warn and ignore the option if not recognized
15722 # So say no if there are warnings
15723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15726 lt_cv_prog_compiler_c_o_CXX=yes
15729 chmod u+w . 2>&5
15730 $RM conftest*
15731 # SGI C++ compiler will create directory out/ii_files/ for
15732 # template instantiation
15733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15734 $RM out/* && rmdir out
15735 cd ..
15736 $RM -r conftest
15737 $RM conftest*
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15741 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15747 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15748 $as_echo_n "(cached) " >&6
15749 else
15750 lt_cv_prog_compiler_c_o_CXX=no
15751 $RM -r conftest 2>/dev/null
15752 mkdir conftest
15753 cd conftest
15754 mkdir out
15755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15757 lt_compiler_flag="-o out/conftest2.$ac_objext"
15758 # Insert the option either (1) after the last *FLAGS variable, or
15759 # (2) before a word containing "conftest.", or (3) at the end.
15760 # Note that $ac_compile itself does not contain backslashes and begins
15761 # with a dollar sign (not a hyphen), so the echo should work correctly.
15762 lt_compile=`echo "$ac_compile" | $SED \
15763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15765 -e 's:$: $lt_compiler_flag:'`
15766 (eval echo "\"\$as_me:15766: $lt_compile\"" >&5)
15767 (eval "$lt_compile" 2>out/conftest.err)
15768 ac_status=$?
15769 cat out/conftest.err >&5
15770 echo "$as_me:15770: \$? = $ac_status" >&5
15771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15772 then
15773 # The compiler can only warn and ignore the option if not recognized
15774 # So say no if there are warnings
15775 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15778 lt_cv_prog_compiler_c_o_CXX=yes
15781 chmod u+w . 2>&5
15782 $RM conftest*
15783 # SGI C++ compiler will create directory out/ii_files/ for
15784 # template instantiation
15785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15786 $RM out/* && rmdir out
15787 cd ..
15788 $RM -r conftest
15789 $RM conftest*
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15793 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15798 hard_links="nottested"
15799 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15800 # do not overwrite the value of need_locks provided by the user
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15802 $as_echo_n "checking if we can lock with hard links... " >&6; }
15803 hard_links=yes
15804 $RM conftest*
15805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15806 touch conftest.a
15807 ln conftest.a conftest.b 2>&5 || hard_links=no
15808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15810 $as_echo "$hard_links" >&6; }
15811 if test "$hard_links" = no; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15814 need_locks=warn
15816 else
15817 need_locks=no
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15826 case $host_os in
15827 aix[4-9]*)
15828 # If we're using GNU nm, then we don't want the "-C" option.
15829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15831 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'
15832 else
15833 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'
15836 pw32*)
15837 export_symbols_cmds_CXX="$ltdll_cmds"
15839 cygwin* | mingw* | cegcc*)
15840 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'
15843 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15845 esac
15846 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15849 $as_echo "$ld_shlibs_CXX" >&6; }
15850 test "$ld_shlibs_CXX" = no && can_build_shared=no
15852 with_gnu_ld_CXX=$with_gnu_ld
15860 # Do we need to explicitly link libc?
15862 case "x$archive_cmds_need_lc_CXX" in
15863 x|xyes)
15864 # Assume -lc should be added
15865 archive_cmds_need_lc_CXX=yes
15867 if test "$enable_shared" = yes && test "$GCC" = yes; then
15868 case $archive_cmds_CXX in
15869 *'~'*)
15870 # FIXME: we may have to deal with multi-command sequences.
15872 '$CC '*)
15873 # Test whether the compiler implicitly links with -lc since on some
15874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15875 # to ld, don't add -lc before -lgcc.
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15877 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15878 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 $RM conftest*
15882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15885 (eval $ac_compile) 2>&5
15886 ac_status=$?
15887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15888 test $ac_status = 0; } 2>conftest.err; then
15889 soname=conftest
15890 lib=conftest
15891 libobjs=conftest.$ac_objext
15892 deplibs=
15893 wl=$lt_prog_compiler_wl_CXX
15894 pic_flag=$lt_prog_compiler_pic_CXX
15895 compiler_flags=-v
15896 linker_flags=-v
15897 verstring=
15898 output_objdir=.
15899 libname=conftest
15900 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15901 allow_undefined_flag_CXX=
15902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15903 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15904 ac_status=$?
15905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; }
15907 then
15908 lt_cv_archive_cmds_need_lc_CXX=no
15909 else
15910 lt_cv_archive_cmds_need_lc_CXX=yes
15912 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15913 else
15914 cat conftest.err 1>&5
15916 $RM conftest*
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15920 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15921 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15923 esac
15926 esac
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15992 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15994 library_names_spec=
15995 libname_spec='lib$name'
15996 soname_spec=
15997 shrext_cmds=".so"
15998 postinstall_cmds=
15999 postuninstall_cmds=
16000 finish_cmds=
16001 finish_eval=
16002 shlibpath_var=
16003 shlibpath_overrides_runpath=unknown
16004 version_type=none
16005 dynamic_linker="$host_os ld.so"
16006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16007 need_lib_prefix=unknown
16008 hardcode_into_libs=no
16010 # when you set need_version to no, make sure it does not cause -set_version
16011 # flags to be left without arguments
16012 need_version=unknown
16014 case $host_os in
16015 aix3*)
16016 version_type=linux
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16018 shlibpath_var=LIBPATH
16020 # AIX 3 has no versioning support, so we append a major version to the name.
16021 soname_spec='${libname}${release}${shared_ext}$major'
16024 aix[4-9]*)
16025 version_type=linux
16026 need_lib_prefix=no
16027 need_version=no
16028 hardcode_into_libs=yes
16029 if test "$host_cpu" = ia64; then
16030 # AIX 5 supports IA64
16031 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16032 shlibpath_var=LD_LIBRARY_PATH
16033 else
16034 # With GCC up to 2.95.x, collect2 would create an import file
16035 # for dependence libraries. The import file would start with
16036 # the line `#! .'. This would cause the generated library to
16037 # depend on `.', always an invalid library. This was fixed in
16038 # development snapshots of GCC prior to 3.0.
16039 case $host_os in
16040 aix4 | aix4.[01] | aix4.[01].*)
16041 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16042 echo ' yes '
16043 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16045 else
16046 can_build_shared=no
16049 esac
16050 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16051 # soname into executable. Probably we can add versioning support to
16052 # collect2, so additional links can be useful in future.
16053 if test "$aix_use_runtimelinking" = yes; then
16054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16055 # instead of lib<name>.a to let people know that these are not
16056 # typical AIX shared libraries.
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 else
16059 # We preserve .a as extension for shared libraries through AIX4.2
16060 # and later when we are not doing run time linking.
16061 library_names_spec='${libname}${release}.a $libname.a'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LIBPATH
16068 amigaos*)
16069 case $host_cpu in
16070 powerpc)
16071 # Since July 2007 AmigaOS4 officially supports .so libraries.
16072 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075 m68k)
16076 library_names_spec='$libname.ixlibrary $libname.a'
16077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16078 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'
16080 esac
16083 beos*)
16084 library_names_spec='${libname}${shared_ext}'
16085 dynamic_linker="$host_os ld.so"
16086 shlibpath_var=LIBRARY_PATH
16089 bsdi[45]*)
16090 version_type=linux
16091 need_version=no
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16095 shlibpath_var=LD_LIBRARY_PATH
16096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16098 # the default ld.so.conf also contains /usr/contrib/lib and
16099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16100 # libtool to hard-code these into programs
16103 cygwin* | mingw* | pw32* | cegcc*)
16104 version_type=windows
16105 shrext_cmds=".dll"
16106 need_version=no
16107 need_lib_prefix=no
16109 case $GCC,$host_os in
16110 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16111 library_names_spec='$libname.dll.a'
16112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16113 postinstall_cmds='base_file=`basename \${file}`~
16114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16115 dldir=$destdir/`dirname \$dlpath`~
16116 test -d \$dldir || mkdir -p \$dldir~
16117 $install_prog $dir/$dlname \$dldir/$dlname~
16118 chmod a+x \$dldir/$dlname~
16119 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16120 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16123 dlpath=$dir/\$dldll~
16124 $RM \$dlpath'
16125 shlibpath_overrides_runpath=yes
16127 case $host_os in
16128 cygwin*)
16129 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16130 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16133 mingw* | cegcc*)
16134 # MinGW DLLs use traditional 'lib' prefix
16135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16136 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16137 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16138 # It is most probably a Windows format PATH printed by
16139 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16140 # path with ; separators, and with drive letters. We can handle the
16141 # drive letters (cygwin fileutils understands them), so leave them,
16142 # especially as we might pass files found there to a mingw objdump,
16143 # which wouldn't understand a cygwinified path. Ahh.
16144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16145 else
16146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16149 pw32*)
16150 # pw32 DLLs use 'pw' prefix rather than 'lib'
16151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16153 esac
16157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16159 esac
16160 dynamic_linker='Win32 ld.exe'
16161 # FIXME: first we should search . and the directory the executable is in
16162 shlibpath_var=PATH
16165 darwin* | rhapsody*)
16166 dynamic_linker="$host_os dyld"
16167 version_type=darwin
16168 need_lib_prefix=no
16169 need_version=no
16170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16171 soname_spec='${libname}${release}${major}$shared_ext'
16172 shlibpath_overrides_runpath=yes
16173 shlibpath_var=DYLD_LIBRARY_PATH
16174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16179 dgux*)
16180 version_type=linux
16181 need_lib_prefix=no
16182 need_version=no
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16188 freebsd1*)
16189 dynamic_linker=no
16192 freebsd* | dragonfly*)
16193 # DragonFly does not have aout. When/if they implement a new
16194 # versioning mechanism, adjust this.
16195 if test -x /usr/bin/objformat; then
16196 objformat=`/usr/bin/objformat`
16197 else
16198 case $host_os in
16199 freebsd[123]*) objformat=aout ;;
16200 *) objformat=elf ;;
16201 esac
16203 version_type=freebsd-$objformat
16204 case $version_type in
16205 freebsd-elf*)
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16207 need_version=no
16208 need_lib_prefix=no
16210 freebsd-*)
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16212 need_version=yes
16214 esac
16215 shlibpath_var=LD_LIBRARY_PATH
16216 case $host_os in
16217 freebsd2*)
16218 shlibpath_overrides_runpath=yes
16220 freebsd3.[01]* | freebsdelf3.[01]*)
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16226 shlibpath_overrides_runpath=no
16227 hardcode_into_libs=yes
16229 *) # from 4.6 on, and DragonFly
16230 shlibpath_overrides_runpath=yes
16231 hardcode_into_libs=yes
16233 esac
16236 gnu*)
16237 version_type=linux
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 hardcode_into_libs=yes
16246 hpux9* | hpux10* | hpux11*)
16247 # Give a soname corresponding to the major version so that dld.sl refuses to
16248 # link against other versions.
16249 version_type=sunos
16250 need_lib_prefix=no
16251 need_version=no
16252 case $host_cpu in
16253 ia64*)
16254 shrext_cmds='.so'
16255 hardcode_into_libs=yes
16256 dynamic_linker="$host_os dld.so"
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 if test "X$HPUX_IA64_MODE" = X32; then
16262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16263 else
16264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16268 hppa*64*)
16269 shrext_cmds='.sl'
16270 hardcode_into_libs=yes
16271 dynamic_linker="$host_os dld.sl"
16272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280 shrext_cmds='.sl'
16281 dynamic_linker="$host_os dld.sl"
16282 shlibpath_var=SHLIB_PATH
16283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16287 esac
16288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16289 postinstall_cmds='chmod 555 $lib'
16292 interix[3-9]*)
16293 version_type=linux
16294 need_lib_prefix=no
16295 need_version=no
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 hardcode_into_libs=yes
16304 irix5* | irix6* | nonstopux*)
16305 case $host_os in
16306 nonstopux*) version_type=nonstopux ;;
16308 if test "$lt_cv_prog_gnu_ld" = yes; then
16309 version_type=linux
16310 else
16311 version_type=irix
16312 fi ;;
16313 esac
16314 need_lib_prefix=no
16315 need_version=no
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16318 case $host_os in
16319 irix5* | nonstopux*)
16320 libsuff= shlibsuff=
16323 case $LD in # libtool.m4 will add one of these switches to LD
16324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16325 libsuff= shlibsuff= libmagic=32-bit;;
16326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16327 libsuff=32 shlibsuff=N32 libmagic=N32;;
16328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16330 *) libsuff= shlibsuff= libmagic=never-match;;
16331 esac
16333 esac
16334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16335 shlibpath_overrides_runpath=no
16336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16338 hardcode_into_libs=yes
16341 # No shared lib support for Linux oldld, aout, or coff.
16342 linux*oldld* | linux*aout* | linux*coff*)
16343 dynamic_linker=no
16346 # This must be Linux ELF.
16347 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16348 version_type=linux
16349 need_lib_prefix=no
16350 need_version=no
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=no
16357 # Some binutils ld are patched to set DT_RUNPATH
16358 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16359 $as_echo_n "(cached) " >&6
16360 else
16361 lt_cv_shlibpath_overrides_runpath=no
16362 save_LDFLAGS=$LDFLAGS
16363 save_libdir=$libdir
16364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16366 if test x$gcc_no_link = xyes; then
16367 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16373 main ()
16377 return 0;
16379 _ACEOF
16380 if ac_fn_cxx_try_link "$LINENO"; then :
16381 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16382 lt_cv_shlibpath_overrides_runpath=yes
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 LDFLAGS=$save_LDFLAGS
16388 libdir=$save_libdir
16392 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16394 # This implies no fast_install, which is unacceptable.
16395 # Some rework will be needed to allow for fast_install
16396 # before this can be enabled.
16397 hardcode_into_libs=yes
16399 # Append ld.so.conf contents to the search path
16400 if test -f /etc/ld.so.conf; then
16401 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' ' '`
16402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16405 # We used to test for /lib/ld.so.1 and disable shared libraries on
16406 # powerpc, because MkLinux only supported shared libraries with the
16407 # GNU dynamic linker. Since this was broken with cross compilers,
16408 # most powerpc-linux boxes support dynamic linking these days and
16409 # people can always --disable-shared, the test was removed, and we
16410 # assume the GNU/Linux dynamic linker is in use.
16411 dynamic_linker='GNU/Linux ld.so'
16414 netbsd*)
16415 version_type=sunos
16416 need_lib_prefix=no
16417 need_version=no
16418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16421 dynamic_linker='NetBSD (a.out) ld.so'
16422 else
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16424 soname_spec='${libname}${release}${shared_ext}$major'
16425 dynamic_linker='NetBSD ld.elf_so'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16429 hardcode_into_libs=yes
16432 newsos6)
16433 version_type=linux
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=yes
16439 *nto* | *qnx*)
16440 version_type=qnx
16441 need_lib_prefix=no
16442 need_version=no
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 shlibpath_overrides_runpath=no
16447 hardcode_into_libs=yes
16448 dynamic_linker='ldqnx.so'
16451 openbsd*)
16452 version_type=sunos
16453 sys_lib_dlsearch_path_spec="/usr/lib"
16454 need_lib_prefix=no
16455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16456 case $host_os in
16457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16458 *) need_version=no ;;
16459 esac
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16464 case $host_os in
16465 openbsd2.[89] | openbsd2.[89].*)
16466 shlibpath_overrides_runpath=no
16469 shlibpath_overrides_runpath=yes
16471 esac
16472 else
16473 shlibpath_overrides_runpath=yes
16477 os2*)
16478 libname_spec='$name'
16479 shrext_cmds=".dll"
16480 need_lib_prefix=no
16481 library_names_spec='$libname${shared_ext} $libname.a'
16482 dynamic_linker='OS/2 ld.exe'
16483 shlibpath_var=LIBPATH
16486 osf3* | osf4* | osf5*)
16487 version_type=osf
16488 need_lib_prefix=no
16489 need_version=no
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16497 rdos*)
16498 dynamic_linker=no
16501 solaris*)
16502 version_type=linux
16503 need_lib_prefix=no
16504 need_version=no
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 shlibpath_overrides_runpath=yes
16509 hardcode_into_libs=yes
16510 # ldd complains unless libraries are executable
16511 postinstall_cmds='chmod +x $lib'
16514 sunos4*)
16515 version_type=sunos
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath=yes
16520 if test "$with_gnu_ld" = yes; then
16521 need_lib_prefix=no
16523 need_version=yes
16526 sysv4 | sysv4.3*)
16527 version_type=linux
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 case $host_vendor in
16532 sni)
16533 shlibpath_overrides_runpath=no
16534 need_lib_prefix=no
16535 runpath_var=LD_RUN_PATH
16537 siemens)
16538 need_lib_prefix=no
16540 motorola)
16541 need_lib_prefix=no
16542 need_version=no
16543 shlibpath_overrides_runpath=no
16544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16546 esac
16549 sysv4*MP*)
16550 if test -d /usr/nec ;then
16551 version_type=linux
16552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16553 soname_spec='$libname${shared_ext}.$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16559 version_type=freebsd-elf
16560 need_lib_prefix=no
16561 need_version=no
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 shlibpath_var=LD_LIBRARY_PATH
16565 shlibpath_overrides_runpath=yes
16566 hardcode_into_libs=yes
16567 if test "$with_gnu_ld" = yes; then
16568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16569 else
16570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16571 case $host_os in
16572 sco3.2v5*)
16573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16575 esac
16577 sys_lib_dlsearch_path_spec='/usr/lib'
16580 tpf*)
16581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16582 version_type=linux
16583 need_lib_prefix=no
16584 need_version=no
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=no
16588 hardcode_into_libs=yes
16591 uts4*)
16592 version_type=linux
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 shlibpath_var=LD_LIBRARY_PATH
16599 dynamic_linker=no
16601 esac
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16603 $as_echo "$dynamic_linker" >&6; }
16604 test "$dynamic_linker" = no && can_build_shared=no
16606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16607 if test "$GCC" = yes; then
16608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16611 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16612 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16614 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16615 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16655 hardcode_action_CXX=
16656 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16657 test -n "$runpath_var_CXX" ||
16658 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16660 # We can hardcode non-existent directories.
16661 if test "$hardcode_direct_CXX" != no &&
16662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16663 # have to relink, otherwise we might link with an installed library
16664 # when we should be linking with a yet-to-be-installed one
16665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16666 test "$hardcode_minus_L_CXX" != no; then
16667 # Linking always hardcodes the temporary library directory.
16668 hardcode_action_CXX=relink
16669 else
16670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16671 hardcode_action_CXX=immediate
16673 else
16674 # We cannot hardcode anything, or else we can only hardcode existing
16675 # directories.
16676 hardcode_action_CXX=unsupported
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16679 $as_echo "$hardcode_action_CXX" >&6; }
16681 if test "$hardcode_action_CXX" = relink ||
16682 test "$inherit_rpath_CXX" = yes; then
16683 # Fast installation is not supported
16684 enable_fast_install=no
16685 elif test "$shlibpath_overrides_runpath" = yes ||
16686 test "$enable_shared" = no; then
16687 # Fast installation is not necessary
16688 enable_fast_install=needless
16697 fi # test -n "$compiler"
16699 CC=$lt_save_CC
16700 LDCXX=$LD
16701 LD=$lt_save_LD
16702 GCC=$lt_save_GCC
16703 with_gnu_ld=$lt_save_with_gnu_ld
16704 lt_cv_path_LDCXX=$lt_cv_path_LD
16705 lt_cv_path_LD=$lt_save_path_LD
16706 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16707 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16708 fi # test "$_lt_caught_CXX_error" != yes
16710 ac_ext=c
16711 ac_cpp='$CPP $CPPFLAGS'
16712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16728 ac_config_commands="$ac_config_commands libtool"
16733 # Only expand once:
16737 for ac_prog in gcj
16739 # Extract the first word of "$ac_prog", so it can be a program name with args.
16740 set dummy $ac_prog; ac_word=$2
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16742 $as_echo_n "checking for $ac_word... " >&6; }
16743 if test "${ac_cv_prog_GCJ+set}" = set; then :
16744 $as_echo_n "(cached) " >&6
16745 else
16746 if test -n "$GCJ"; then
16747 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16748 else
16749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16750 for as_dir in $PATH
16752 IFS=$as_save_IFS
16753 test -z "$as_dir" && as_dir=.
16754 for ac_exec_ext in '' $ac_executable_extensions; do
16755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16756 ac_cv_prog_GCJ="$ac_prog"
16757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16758 break 2
16760 done
16761 done
16762 IFS=$as_save_IFS
16766 GCJ=$ac_cv_prog_GCJ
16767 if test -n "$GCJ"; then
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16769 $as_echo "$GCJ" >&6; }
16770 else
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772 $as_echo "no" >&6; }
16776 test -n "$GCJ" && break
16777 done
16778 test -n "$GCJ" || GCJ="gcj"
16780 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16781 if test "x${GCJFLAGS-unset}" = xunset; then
16782 GCJFLAGS="-g -O2"
16786 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16789 $as_echo_n "checking dependency style of $depcc... " >&6; }
16790 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16794 # We make a subdir and do the tests there. Otherwise we can end up
16795 # making bogus files that we don't know about and never remove. For
16796 # instance it was reported that on HP-UX the gcc test will end up
16797 # making a dummy file named `D' -- because `-MD' means `put the output
16798 # in D'.
16799 mkdir conftest.dir
16800 # Copy depcomp to subdir because otherwise we won't find it if we're
16801 # using a relative directory.
16802 cp "$am_depcomp" conftest.dir
16803 cd conftest.dir
16804 # We will build objects and dependencies in a subdirectory because
16805 # it helps to detect inapplicable dependency modes. For instance
16806 # both Tru64's cc and ICC support -MD to output dependencies as a
16807 # side effect of compilation, but ICC will put the dependencies in
16808 # the current directory while Tru64 will put them in the object
16809 # directory.
16810 mkdir sub
16812 am_cv_GCJ_dependencies_compiler_type=none
16813 if test "$am_compiler_list" = ""; then
16814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16816 am__universal=false
16819 for depmode in $am_compiler_list; do
16820 # Setup a source with many dependencies, because some compilers
16821 # like to wrap large dependency lists on column 80 (with \), and
16822 # we should not choose a depcomp mode which is confused by this.
16824 # We need to recreate these files for each test, as the compiler may
16825 # overwrite some of them when testing with obscure command lines.
16826 # This happens at least with the AIX C compiler.
16827 : > sub/conftest.c
16828 for i in 1 2 3 4 5 6; do
16829 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16831 # Solaris 8's {/usr,}/bin/sh.
16832 touch sub/conftst$i.h
16833 done
16834 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16836 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16837 # mode. It turns out that the SunPro C++ compiler does not properly
16838 # handle `-M -o', and we need to detect this. Also, some Intel
16839 # versions had trouble with output in subdirs
16840 am__obj=sub/conftest.${OBJEXT-o}
16841 am__minus_obj="-o $am__obj"
16842 case $depmode in
16843 gcc)
16844 # This depmode causes a compiler race in universal mode.
16845 test "$am__universal" = false || continue
16847 nosideeffect)
16848 # after this tag, mechanisms are not by side-effect, so they'll
16849 # only be used when explicitly requested
16850 if test "x$enable_dependency_tracking" = xyes; then
16851 continue
16852 else
16853 break
16856 msvisualcpp | msvcmsys)
16857 # This compiler won't grok `-c -o', but also, the minuso test has
16858 # not run yet. These depmodes are late enough in the game, and
16859 # so weak that their functioning should not be impacted.
16860 am__obj=conftest.${OBJEXT-o}
16861 am__minus_obj=
16863 none) break ;;
16864 esac
16865 if depmode=$depmode \
16866 source=sub/conftest.c object=$am__obj \
16867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16868 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16869 >/dev/null 2>conftest.err &&
16870 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16872 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16874 # icc doesn't choke on unknown options, it will just issue warnings
16875 # or remarks (even with -Werror). So we grep stderr for any message
16876 # that says an option was ignored or not supported.
16877 # When given -MP, icc 7.0 and 7.1 complain thusly:
16878 # icc: Command line warning: ignoring option '-M'; no argument required
16879 # The diagnosis changed in icc 8.0:
16880 # icc: Command line remark: option '-MP' not supported
16881 if (grep 'ignoring option' conftest.err ||
16882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16883 am_cv_GCJ_dependencies_compiler_type=$depmode
16884 break
16887 done
16889 cd ..
16890 rm -rf conftest.dir
16891 else
16892 am_cv_GCJ_dependencies_compiler_type=none
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16897 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16898 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16901 test "x$enable_dependency_tracking" != xno \
16902 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16903 am__fastdepGCJ_TRUE=
16904 am__fastdepGCJ_FALSE='#'
16905 else
16906 am__fastdepGCJ_TRUE='#'
16907 am__fastdepGCJ_FALSE=
16912 for ac_prog in gcj
16914 # Extract the first word of "$ac_prog", so it can be a program name with args.
16915 set dummy $ac_prog; ac_word=$2
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16917 $as_echo_n "checking for $ac_word... " >&6; }
16918 if test "${ac_cv_prog_GCJ+set}" = set; then :
16919 $as_echo_n "(cached) " >&6
16920 else
16921 if test -n "$GCJ"; then
16922 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16923 else
16924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $PATH
16927 IFS=$as_save_IFS
16928 test -z "$as_dir" && as_dir=.
16929 for ac_exec_ext in '' $ac_executable_extensions; do
16930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16931 ac_cv_prog_GCJ="$ac_prog"
16932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16933 break 2
16935 done
16936 done
16937 IFS=$as_save_IFS
16941 GCJ=$ac_cv_prog_GCJ
16942 if test -n "$GCJ"; then
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16944 $as_echo "$GCJ" >&6; }
16945 else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16951 test -n "$GCJ" && break
16952 done
16953 test -n "$GCJ" || GCJ="gcj"
16955 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16956 if test "x${GCJFLAGS-unset}" = xunset; then
16957 GCJFLAGS="-g -O2"
16961 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16964 $as_echo_n "checking dependency style of $depcc... " >&6; }
16965 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16969 # We make a subdir and do the tests there. Otherwise we can end up
16970 # making bogus files that we don't know about and never remove. For
16971 # instance it was reported that on HP-UX the gcc test will end up
16972 # making a dummy file named `D' -- because `-MD' means `put the output
16973 # in D'.
16974 mkdir conftest.dir
16975 # Copy depcomp to subdir because otherwise we won't find it if we're
16976 # using a relative directory.
16977 cp "$am_depcomp" conftest.dir
16978 cd conftest.dir
16979 # We will build objects and dependencies in a subdirectory because
16980 # it helps to detect inapplicable dependency modes. For instance
16981 # both Tru64's cc and ICC support -MD to output dependencies as a
16982 # side effect of compilation, but ICC will put the dependencies in
16983 # the current directory while Tru64 will put them in the object
16984 # directory.
16985 mkdir sub
16987 am_cv_GCJ_dependencies_compiler_type=none
16988 if test "$am_compiler_list" = ""; then
16989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16991 am__universal=false
16994 for depmode in $am_compiler_list; do
16995 # Setup a source with many dependencies, because some compilers
16996 # like to wrap large dependency lists on column 80 (with \), and
16997 # we should not choose a depcomp mode which is confused by this.
16999 # We need to recreate these files for each test, as the compiler may
17000 # overwrite some of them when testing with obscure command lines.
17001 # This happens at least with the AIX C compiler.
17002 : > sub/conftest.c
17003 for i in 1 2 3 4 5 6; do
17004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17006 # Solaris 8's {/usr,}/bin/sh.
17007 touch sub/conftst$i.h
17008 done
17009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17012 # mode. It turns out that the SunPro C++ compiler does not properly
17013 # handle `-M -o', and we need to detect this. Also, some Intel
17014 # versions had trouble with output in subdirs
17015 am__obj=sub/conftest.${OBJEXT-o}
17016 am__minus_obj="-o $am__obj"
17017 case $depmode in
17018 gcc)
17019 # This depmode causes a compiler race in universal mode.
17020 test "$am__universal" = false || continue
17022 nosideeffect)
17023 # after this tag, mechanisms are not by side-effect, so they'll
17024 # only be used when explicitly requested
17025 if test "x$enable_dependency_tracking" = xyes; then
17026 continue
17027 else
17028 break
17031 msvisualcpp | msvcmsys)
17032 # This compiler won't grok `-c -o', but also, the minuso test has
17033 # not run yet. These depmodes are late enough in the game, and
17034 # so weak that their functioning should not be impacted.
17035 am__obj=conftest.${OBJEXT-o}
17036 am__minus_obj=
17038 none) break ;;
17039 esac
17040 if depmode=$depmode \
17041 source=sub/conftest.c object=$am__obj \
17042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17044 >/dev/null 2>conftest.err &&
17045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17049 # icc doesn't choke on unknown options, it will just issue warnings
17050 # or remarks (even with -Werror). So we grep stderr for any message
17051 # that says an option was ignored or not supported.
17052 # When given -MP, icc 7.0 and 7.1 complain thusly:
17053 # icc: Command line warning: ignoring option '-M'; no argument required
17054 # The diagnosis changed in icc 8.0:
17055 # icc: Command line remark: option '-MP' not supported
17056 if (grep 'ignoring option' conftest.err ||
17057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17058 am_cv_GCJ_dependencies_compiler_type=$depmode
17059 break
17062 done
17064 cd ..
17065 rm -rf conftest.dir
17066 else
17067 am_cv_GCJ_dependencies_compiler_type=none
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17072 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17073 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17076 test "x$enable_dependency_tracking" != xno \
17077 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17078 am__fastdepGCJ_TRUE=
17079 am__fastdepGCJ_FALSE='#'
17080 else
17081 am__fastdepGCJ_TRUE='#'
17082 am__fastdepGCJ_FALSE=
17089 # Source file extension for Java test sources.
17090 ac_ext=c
17092 # Object file extension for compiled Java test sources.
17093 objext=o
17094 objext_GCJ=$objext
17096 # Code to be used in simple compile tests
17097 lt_simple_compile_test_code="int some_variable = 0;"
17099 # Code to be used in simple link tests
17100 lt_simple_link_test_code='int main(){return(0);}'
17102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17109 # If no C compiler was specified, use CC.
17110 LTCC=${LTCC-"$CC"}
17112 # If no C compiler flags were specified, use CFLAGS.
17113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17115 # Allow CC to be a program name with arguments.
17116 compiler=$CC
17119 # save warnings/boilerplate of simple test code
17120 ac_outfile=conftest.$ac_objext
17121 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17122 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17123 _lt_compiler_boilerplate=`cat conftest.err`
17124 $RM conftest*
17126 ac_outfile=conftest.$ac_objext
17127 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17128 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17129 _lt_linker_boilerplate=`cat conftest.err`
17130 $RM -r conftest*
17133 # Allow CC to be a program name with arguments.
17134 GCC=yes
17135 compiler=$CC
17136 compiler_GCJ=$CC
17137 for cc_temp in $compiler""; do
17138 case $cc_temp in
17139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17141 \-*) ;;
17142 *) break;;
17143 esac
17144 done
17145 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17148 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17149 archive_cmds_need_lc_GCJ=no
17151 old_archive_cmds_GCJ=$old_archive_cmds
17153 ## CAVEAT EMPTOR:
17154 ## There is no encapsulation within the following macros, do not change
17155 ## the running order or otherwise move them around unless you know exactly
17156 ## what you are doing...
17157 if test -n "$compiler"; then
17159 lt_prog_compiler_no_builtin_flag_GCJ=
17161 if test "$GCC" = yes; then
17162 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17165 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17166 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169 lt_cv_prog_compiler_rtti_exceptions=no
17170 ac_outfile=conftest.$ac_objext
17171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17172 lt_compiler_flag="-fno-rtti -fno-exceptions"
17173 # Insert the option either (1) after the last *FLAGS variable, or
17174 # (2) before a word containing "conftest.", or (3) at the end.
17175 # Note that $ac_compile itself does not contain backslashes and begins
17176 # with a dollar sign (not a hyphen), so the echo should work correctly.
17177 # The option is referenced via a variable to avoid confusing sed.
17178 lt_compile=`echo "$ac_compile" | $SED \
17179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17181 -e 's:$: $lt_compiler_flag:'`
17182 (eval echo "\"\$as_me:17182: $lt_compile\"" >&5)
17183 (eval "$lt_compile" 2>conftest.err)
17184 ac_status=$?
17185 cat conftest.err >&5
17186 echo "$as_me:17186: \$? = $ac_status" >&5
17187 if (exit $ac_status) && test -s "$ac_outfile"; then
17188 # The compiler can only warn and ignore the option if not recognized
17189 # So say no if there are warnings other than the usual output.
17190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17193 lt_cv_prog_compiler_rtti_exceptions=yes
17196 $RM conftest*
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17200 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17202 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17203 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17204 else
17212 lt_prog_compiler_wl_GCJ=
17213 lt_prog_compiler_pic_GCJ=
17214 lt_prog_compiler_static_GCJ=
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17219 if test "$GCC" = yes; then
17220 lt_prog_compiler_wl_GCJ='-Wl,'
17221 lt_prog_compiler_static_GCJ='-static'
17223 case $host_os in
17224 aix*)
17225 # All AIX code is PIC.
17226 if test "$host_cpu" = ia64; then
17227 # AIX 5 now supports IA64 processor
17228 lt_prog_compiler_static_GCJ='-Bstatic'
17232 amigaos*)
17233 case $host_cpu in
17234 powerpc)
17235 # see comment about AmigaOS4 .so support
17236 lt_prog_compiler_pic_GCJ='-fPIC'
17238 m68k)
17239 # FIXME: we need at least 68020 code to build shared libraries, but
17240 # adding the `-m68020' flag to GCC prevents building anything better,
17241 # like `-m68040'.
17242 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17244 esac
17247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17248 # PIC is the default for these OSes.
17251 mingw* | cygwin* | pw32* | os2* | cegcc*)
17252 # This hack is so that the source file can tell whether it is being
17253 # built for inclusion in a dll (and should export symbols for example).
17254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17255 # (--disable-auto-import) libraries
17259 darwin* | rhapsody*)
17260 # PIC is the default on this platform
17261 # Common symbols not allowed in MH_DYLIB files
17262 lt_prog_compiler_pic_GCJ='-fno-common'
17265 hpux*)
17266 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17267 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17268 # sets the default TLS model and affects inlining.
17269 case $host_cpu in
17270 hppa*64*)
17271 # +Z the default
17274 lt_prog_compiler_pic_GCJ='-fPIC'
17276 esac
17279 interix[3-9]*)
17280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17281 # Instead, we relocate shared libraries at runtime.
17284 msdosdjgpp*)
17285 # Just because we use GCC doesn't mean we suddenly get shared libraries
17286 # on systems that don't support them.
17287 lt_prog_compiler_can_build_shared_GCJ=no
17288 enable_shared=no
17291 *nto* | *qnx*)
17292 # QNX uses GNU C++, but need to define -shared option too, otherwise
17293 # it will coredump.
17294 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17297 sysv4*MP*)
17298 if test -d /usr/nec; then
17299 lt_prog_compiler_pic_GCJ=-Kconform_pic
17304 lt_prog_compiler_pic_GCJ='-fPIC'
17306 esac
17307 else
17308 # PORTME Check for flag to pass linker flags through the system compiler.
17309 case $host_os in
17310 aix*)
17311 lt_prog_compiler_wl_GCJ='-Wl,'
17312 if test "$host_cpu" = ia64; then
17313 # AIX 5 now supports IA64 processor
17314 lt_prog_compiler_static_GCJ='-Bstatic'
17315 else
17316 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17320 mingw* | cygwin* | pw32* | os2* | cegcc*)
17321 # This hack is so that the source file can tell whether it is being
17322 # built for inclusion in a dll (and should export symbols for example).
17326 hpux9* | hpux10* | hpux11*)
17327 lt_prog_compiler_wl_GCJ='-Wl,'
17328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17329 # not for PA HP-UX.
17330 case $host_cpu in
17331 hppa*64*|ia64*)
17332 # +Z the default
17335 lt_prog_compiler_pic_GCJ='+Z'
17337 esac
17338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17339 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17342 irix5* | irix6* | nonstopux*)
17343 lt_prog_compiler_wl_GCJ='-Wl,'
17344 # PIC (with -KPIC) is the default.
17345 lt_prog_compiler_static_GCJ='-non_shared'
17348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17349 case $cc_basename in
17350 # old Intel for x86_64 which still supported -KPIC.
17351 ecc*)
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17353 lt_prog_compiler_pic_GCJ='-KPIC'
17354 lt_prog_compiler_static_GCJ='-static'
17356 # icc used to be incompatible with GCC.
17357 # ICC 10 doesn't accept -KPIC any more.
17358 icc* | ifort*)
17359 lt_prog_compiler_wl_GCJ='-Wl,'
17360 lt_prog_compiler_pic_GCJ='-fPIC'
17361 lt_prog_compiler_static_GCJ='-static'
17363 # Lahey Fortran 8.1.
17364 lf95*)
17365 lt_prog_compiler_wl_GCJ='-Wl,'
17366 lt_prog_compiler_pic_GCJ='--shared'
17367 lt_prog_compiler_static_GCJ='--static'
17369 pgcc* | pgf77* | pgf90* | pgf95*)
17370 # Portland Group compilers (*not* the Pentium gcc compiler,
17371 # which looks to be a dead project)
17372 lt_prog_compiler_wl_GCJ='-Wl,'
17373 lt_prog_compiler_pic_GCJ='-fpic'
17374 lt_prog_compiler_static_GCJ='-Bstatic'
17376 ccc*)
17377 lt_prog_compiler_wl_GCJ='-Wl,'
17378 # All Alpha code is PIC.
17379 lt_prog_compiler_static_GCJ='-non_shared'
17381 xl*)
17382 # IBM XL C 8.0/Fortran 10.1 on PPC
17383 lt_prog_compiler_wl_GCJ='-Wl,'
17384 lt_prog_compiler_pic_GCJ='-qpic'
17385 lt_prog_compiler_static_GCJ='-qstaticlink'
17388 case `$CC -V 2>&1 | sed 5q` in
17389 *Sun\ C*)
17390 # Sun C 5.9
17391 lt_prog_compiler_pic_GCJ='-KPIC'
17392 lt_prog_compiler_static_GCJ='-Bstatic'
17393 lt_prog_compiler_wl_GCJ='-Wl,'
17395 *Sun\ F*)
17396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17397 lt_prog_compiler_pic_GCJ='-KPIC'
17398 lt_prog_compiler_static_GCJ='-Bstatic'
17399 lt_prog_compiler_wl_GCJ=''
17401 esac
17403 esac
17406 newsos6)
17407 lt_prog_compiler_pic_GCJ='-KPIC'
17408 lt_prog_compiler_static_GCJ='-Bstatic'
17411 *nto* | *qnx*)
17412 # QNX uses GNU C++, but need to define -shared option too, otherwise
17413 # it will coredump.
17414 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17417 osf3* | osf4* | osf5*)
17418 lt_prog_compiler_wl_GCJ='-Wl,'
17419 # All OSF/1 code is PIC.
17420 lt_prog_compiler_static_GCJ='-non_shared'
17423 rdos*)
17424 lt_prog_compiler_static_GCJ='-non_shared'
17427 solaris*)
17428 lt_prog_compiler_pic_GCJ='-KPIC'
17429 lt_prog_compiler_static_GCJ='-Bstatic'
17430 case $cc_basename in
17431 f77* | f90* | f95*)
17432 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17434 lt_prog_compiler_wl_GCJ='-Wl,';;
17435 esac
17438 sunos4*)
17439 lt_prog_compiler_wl_GCJ='-Qoption ld '
17440 lt_prog_compiler_pic_GCJ='-PIC'
17441 lt_prog_compiler_static_GCJ='-Bstatic'
17444 sysv4 | sysv4.2uw2* | sysv4.3*)
17445 lt_prog_compiler_wl_GCJ='-Wl,'
17446 lt_prog_compiler_pic_GCJ='-KPIC'
17447 lt_prog_compiler_static_GCJ='-Bstatic'
17450 sysv4*MP*)
17451 if test -d /usr/nec ;then
17452 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17453 lt_prog_compiler_static_GCJ='-Bstatic'
17457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17458 lt_prog_compiler_wl_GCJ='-Wl,'
17459 lt_prog_compiler_pic_GCJ='-KPIC'
17460 lt_prog_compiler_static_GCJ='-Bstatic'
17463 unicos*)
17464 lt_prog_compiler_wl_GCJ='-Wl,'
17465 lt_prog_compiler_can_build_shared_GCJ=no
17468 uts4*)
17469 lt_prog_compiler_pic_GCJ='-pic'
17470 lt_prog_compiler_static_GCJ='-Bstatic'
17474 lt_prog_compiler_can_build_shared_GCJ=no
17476 esac
17479 case $host_os in
17480 # For platforms which do not support PIC, -DPIC is meaningless:
17481 *djgpp*)
17482 lt_prog_compiler_pic_GCJ=
17485 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17487 esac
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17489 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17494 # Check to make sure the PIC flag actually works.
17496 if test -n "$lt_prog_compiler_pic_GCJ"; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17498 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17499 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17502 lt_cv_prog_compiler_pic_works_GCJ=no
17503 ac_outfile=conftest.$ac_objext
17504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17505 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17506 # Insert the option either (1) after the last *FLAGS variable, or
17507 # (2) before a word containing "conftest.", or (3) at the end.
17508 # Note that $ac_compile itself does not contain backslashes and begins
17509 # with a dollar sign (not a hyphen), so the echo should work correctly.
17510 # The option is referenced via a variable to avoid confusing sed.
17511 lt_compile=`echo "$ac_compile" | $SED \
17512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17514 -e 's:$: $lt_compiler_flag:'`
17515 (eval echo "\"\$as_me:17515: $lt_compile\"" >&5)
17516 (eval "$lt_compile" 2>conftest.err)
17517 ac_status=$?
17518 cat conftest.err >&5
17519 echo "$as_me:17519: \$? = $ac_status" >&5
17520 if (exit $ac_status) && test -s "$ac_outfile"; then
17521 # The compiler can only warn and ignore the option if not recognized
17522 # So say no if there are warnings other than the usual output.
17523 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17526 lt_cv_prog_compiler_pic_works_GCJ=yes
17529 $RM conftest*
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17533 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17535 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17536 case $lt_prog_compiler_pic_GCJ in
17537 "" | " "*) ;;
17538 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17539 esac
17540 else
17541 lt_prog_compiler_pic_GCJ=
17542 lt_prog_compiler_can_build_shared_GCJ=no
17550 # Check to make sure the static flag actually works.
17552 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17554 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17555 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17556 $as_echo_n "(cached) " >&6
17557 else
17558 lt_cv_prog_compiler_static_works_GCJ=no
17559 save_LDFLAGS="$LDFLAGS"
17560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17561 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17563 # The linker can only warn and ignore the option if not recognized
17564 # So say no if there are warnings
17565 if test -s conftest.err; then
17566 # Append any errors to the config.log.
17567 cat conftest.err 1>&5
17568 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17570 if diff conftest.exp conftest.er2 >/dev/null; then
17571 lt_cv_prog_compiler_static_works_GCJ=yes
17573 else
17574 lt_cv_prog_compiler_static_works_GCJ=yes
17577 $RM -r conftest*
17578 LDFLAGS="$save_LDFLAGS"
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17582 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17584 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17586 else
17587 lt_prog_compiler_static_GCJ=
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17595 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17596 $as_echo_n "(cached) " >&6
17597 else
17598 lt_cv_prog_compiler_c_o_GCJ=no
17599 $RM -r conftest 2>/dev/null
17600 mkdir conftest
17601 cd conftest
17602 mkdir out
17603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17605 lt_compiler_flag="-o out/conftest2.$ac_objext"
17606 # Insert the option either (1) after the last *FLAGS variable, or
17607 # (2) before a word containing "conftest.", or (3) at the end.
17608 # Note that $ac_compile itself does not contain backslashes and begins
17609 # with a dollar sign (not a hyphen), so the echo should work correctly.
17610 lt_compile=`echo "$ac_compile" | $SED \
17611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17613 -e 's:$: $lt_compiler_flag:'`
17614 (eval echo "\"\$as_me:17614: $lt_compile\"" >&5)
17615 (eval "$lt_compile" 2>out/conftest.err)
17616 ac_status=$?
17617 cat out/conftest.err >&5
17618 echo "$as_me:17618: \$? = $ac_status" >&5
17619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17620 then
17621 # The compiler can only warn and ignore the option if not recognized
17622 # So say no if there are warnings
17623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17626 lt_cv_prog_compiler_c_o_GCJ=yes
17629 chmod u+w . 2>&5
17630 $RM conftest*
17631 # SGI C++ compiler will create directory out/ii_files/ for
17632 # template instantiation
17633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17634 $RM out/* && rmdir out
17635 cd ..
17636 $RM -r conftest
17637 $RM conftest*
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17641 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17647 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17649 else
17650 lt_cv_prog_compiler_c_o_GCJ=no
17651 $RM -r conftest 2>/dev/null
17652 mkdir conftest
17653 cd conftest
17654 mkdir out
17655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17657 lt_compiler_flag="-o out/conftest2.$ac_objext"
17658 # Insert the option either (1) after the last *FLAGS variable, or
17659 # (2) before a word containing "conftest.", or (3) at the end.
17660 # Note that $ac_compile itself does not contain backslashes and begins
17661 # with a dollar sign (not a hyphen), so the echo should work correctly.
17662 lt_compile=`echo "$ac_compile" | $SED \
17663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17665 -e 's:$: $lt_compiler_flag:'`
17666 (eval echo "\"\$as_me:17666: $lt_compile\"" >&5)
17667 (eval "$lt_compile" 2>out/conftest.err)
17668 ac_status=$?
17669 cat out/conftest.err >&5
17670 echo "$as_me:17670: \$? = $ac_status" >&5
17671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17672 then
17673 # The compiler can only warn and ignore the option if not recognized
17674 # So say no if there are warnings
17675 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17678 lt_cv_prog_compiler_c_o_GCJ=yes
17681 chmod u+w . 2>&5
17682 $RM conftest*
17683 # SGI C++ compiler will create directory out/ii_files/ for
17684 # template instantiation
17685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17686 $RM out/* && rmdir out
17687 cd ..
17688 $RM -r conftest
17689 $RM conftest*
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17693 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17698 hard_links="nottested"
17699 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17700 # do not overwrite the value of need_locks provided by the user
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17702 $as_echo_n "checking if we can lock with hard links... " >&6; }
17703 hard_links=yes
17704 $RM conftest*
17705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17706 touch conftest.a
17707 ln conftest.a conftest.b 2>&5 || hard_links=no
17708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17710 $as_echo "$hard_links" >&6; }
17711 if test "$hard_links" = no; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17713 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17714 need_locks=warn
17716 else
17717 need_locks=no
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17723 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17725 runpath_var=
17726 allow_undefined_flag_GCJ=
17727 always_export_symbols_GCJ=no
17728 archive_cmds_GCJ=
17729 archive_expsym_cmds_GCJ=
17730 compiler_needs_object_GCJ=no
17731 enable_shared_with_static_runtimes_GCJ=no
17732 export_dynamic_flag_spec_GCJ=
17733 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17734 hardcode_automatic_GCJ=no
17735 hardcode_direct_GCJ=no
17736 hardcode_direct_absolute_GCJ=no
17737 hardcode_libdir_flag_spec_GCJ=
17738 hardcode_libdir_flag_spec_ld_GCJ=
17739 hardcode_libdir_separator_GCJ=
17740 hardcode_minus_L_GCJ=no
17741 hardcode_shlibpath_var_GCJ=unsupported
17742 inherit_rpath_GCJ=no
17743 link_all_deplibs_GCJ=unknown
17744 module_cmds_GCJ=
17745 module_expsym_cmds_GCJ=
17746 old_archive_from_new_cmds_GCJ=
17747 old_archive_from_expsyms_cmds_GCJ=
17748 thread_safe_flag_spec_GCJ=
17749 whole_archive_flag_spec_GCJ=
17750 # include_expsyms should be a list of space-separated symbols to be *always*
17751 # included in the symbol list
17752 include_expsyms_GCJ=
17753 # exclude_expsyms can be an extended regexp of symbols to exclude
17754 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17756 # as well as any symbol that contains `d'.
17757 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17759 # platforms (ab)use it in PIC code, but their linkers get confused if
17760 # the symbol is explicitly referenced. Since portable code cannot
17761 # rely on this symbol name, it's probably fine to never include it in
17762 # preloaded symbol tables.
17763 # Exclude shared library initialization/finalization symbols.
17764 extract_expsyms_cmds=
17766 case $host_os in
17767 cygwin* | mingw* | pw32* | cegcc*)
17768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17769 # When not using gcc, we currently assume that we are using
17770 # Microsoft Visual C++.
17771 if test "$GCC" != yes; then
17772 with_gnu_ld=no
17775 interix*)
17776 # we just hope/assume this is gcc and not c89 (= MSVC++)
17777 with_gnu_ld=yes
17779 openbsd*)
17780 with_gnu_ld=no
17782 esac
17784 ld_shlibs_GCJ=yes
17785 if test "$with_gnu_ld" = yes; then
17786 # If archive_cmds runs LD, not CC, wlarc should be empty
17787 wlarc='${wl}'
17789 # Set some defaults for GNU ld with shared library support. These
17790 # are reset later if shared libraries are not supported. Putting them
17791 # here allows them to be overridden if necessary.
17792 runpath_var=LD_RUN_PATH
17793 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17794 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17795 # ancient GNU ld didn't support --whole-archive et. al.
17796 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17797 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17798 else
17799 whole_archive_flag_spec_GCJ=
17801 supports_anon_versioning=no
17802 case `$LD -v 2>&1` in
17803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17806 *\ 2.11.*) ;; # other 2.11 versions
17807 *) supports_anon_versioning=yes ;;
17808 esac
17810 # See if GNU ld supports shared libraries.
17811 case $host_os in
17812 aix[3-9]*)
17813 # On AIX/PPC, the GNU linker is very broken
17814 if test "$host_cpu" != ia64; then
17815 ld_shlibs_GCJ=no
17816 cat <<_LT_EOF 1>&2
17818 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17819 *** to be unable to reliably create shared libraries on AIX.
17820 *** Therefore, libtool is disabling shared libraries support. If you
17821 *** really care for shared libraries, you may want to modify your PATH
17822 *** so that a non-GNU linker is found, and then restart.
17824 _LT_EOF
17828 amigaos*)
17829 case $host_cpu in
17830 powerpc)
17831 # see comment about AmigaOS4 .so support
17832 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17833 archive_expsym_cmds_GCJ=''
17835 m68k)
17836 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)'
17837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17838 hardcode_minus_L_GCJ=yes
17840 esac
17843 beos*)
17844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17845 allow_undefined_flag_GCJ=unsupported
17846 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17847 # support --undefined. This deserves some investigation. FIXME
17848 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17849 else
17850 ld_shlibs_GCJ=no
17854 cygwin* | mingw* | pw32* | cegcc*)
17855 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17856 # as there is no search path for DLLs.
17857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17858 allow_undefined_flag_GCJ=unsupported
17859 always_export_symbols_GCJ=no
17860 enable_shared_with_static_runtimes_GCJ=yes
17861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17863 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17864 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17865 # If the export-symbols file already is a .def file (1st line
17866 # is EXPORTS), use it as is; otherwise, prepend...
17867 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17868 cp $export_symbols $output_objdir/$soname.def;
17869 else
17870 echo EXPORTS > $output_objdir/$soname.def;
17871 cat $export_symbols >> $output_objdir/$soname.def;
17873 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17874 else
17875 ld_shlibs_GCJ=no
17879 interix[3-9]*)
17880 hardcode_direct_GCJ=no
17881 hardcode_shlibpath_var_GCJ=no
17882 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17883 export_dynamic_flag_spec_GCJ='${wl}-E'
17884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17885 # Instead, shared libraries are loaded at an image base (0x10000000 by
17886 # default) and relocated if they conflict, which is a slow very memory
17887 # consuming and fragmenting process. To avoid this, we pick a random,
17888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17890 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'
17891 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'
17894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17895 tmp_diet=no
17896 if test "$host_os" = linux-dietlibc; then
17897 case $cc_basename in
17898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17899 esac
17901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17902 && test "$tmp_diet" = no
17903 then
17904 tmp_addflag=
17905 tmp_sharedflag='-shared'
17906 case $cc_basename,$host_cpu in
17907 pgcc*) # Portland Group C compiler
17908 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'
17909 tmp_addflag=' $pic_flag'
17911 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17912 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'
17913 tmp_addflag=' $pic_flag -Mnomain' ;;
17914 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17915 tmp_addflag=' -i_dynamic' ;;
17916 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17917 tmp_addflag=' -i_dynamic -nofor_main' ;;
17918 ifc* | ifort*) # Intel Fortran compiler
17919 tmp_addflag=' -nofor_main' ;;
17920 lf95*) # Lahey Fortran 8.1
17921 whole_archive_flag_spec_GCJ=
17922 tmp_sharedflag='--shared' ;;
17923 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17924 tmp_sharedflag='-qmkshrobj'
17925 tmp_addflag= ;;
17926 esac
17927 case `$CC -V 2>&1 | sed 5q` in
17928 *Sun\ C*) # Sun C 5.9
17929 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'
17930 compiler_needs_object_GCJ=yes
17931 tmp_sharedflag='-G' ;;
17932 *Sun\ F*) # Sun Fortran 8.3
17933 tmp_sharedflag='-G' ;;
17934 esac
17935 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937 if test "x$supports_anon_versioning" = xyes; then
17938 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17940 echo "local: *; };" >> $output_objdir/$libname.ver~
17941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17944 case $cc_basename in
17945 xlf*)
17946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17947 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17948 hardcode_libdir_flag_spec_GCJ=
17949 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17950 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17951 if test "x$supports_anon_versioning" = xyes; then
17952 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17954 echo "local: *; };" >> $output_objdir/$libname.ver~
17955 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17958 esac
17959 else
17960 ld_shlibs_GCJ=no
17964 netbsd*)
17965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17966 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17967 wlarc=
17968 else
17969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17974 solaris*)
17975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17976 ld_shlibs_GCJ=no
17977 cat <<_LT_EOF 1>&2
17979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17980 *** create shared libraries on Solaris systems. Therefore, libtool
17981 *** is disabling shared libraries support. We urge you to upgrade GNU
17982 *** binutils to release 2.9.1 or newer. Another option is to modify
17983 *** your PATH or compiler configuration so that the native linker is
17984 *** used, and then restart.
17986 _LT_EOF
17987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17990 else
17991 ld_shlibs_GCJ=no
17995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17996 case `$LD -v 2>&1` in
17997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17998 ld_shlibs_GCJ=no
17999 cat <<_LT_EOF 1>&2
18001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18002 *** reliably create shared libraries on SCO systems. Therefore, libtool
18003 *** is disabling shared libraries support. We urge you to upgrade GNU
18004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18005 *** your PATH or compiler configuration so that the native linker is
18006 *** used, and then restart.
18008 _LT_EOF
18011 # For security reasons, it is highly recommended that you always
18012 # use absolute paths for naming shared libraries, and exclude the
18013 # DT_RUNPATH tag from executables and libraries. But doing so
18014 # requires that you compile everything twice, which is a pain.
18015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18019 else
18020 ld_shlibs_GCJ=no
18023 esac
18026 sunos4*)
18027 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18028 wlarc=
18029 hardcode_direct_GCJ=yes
18030 hardcode_shlibpath_var_GCJ=no
18034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18035 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18037 else
18038 ld_shlibs_GCJ=no
18041 esac
18043 if test "$ld_shlibs_GCJ" = no; then
18044 runpath_var=
18045 hardcode_libdir_flag_spec_GCJ=
18046 export_dynamic_flag_spec_GCJ=
18047 whole_archive_flag_spec_GCJ=
18049 else
18050 # PORTME fill in a description of your system's linker (not GNU ld)
18051 case $host_os in
18052 aix3*)
18053 allow_undefined_flag_GCJ=unsupported
18054 always_export_symbols_GCJ=yes
18055 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'
18056 # Note: this linker hardcodes the directories in LIBPATH if there
18057 # are no directories specified by -L.
18058 hardcode_minus_L_GCJ=yes
18059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18060 # Neither direct hardcoding nor static linking is supported with a
18061 # broken collect2.
18062 hardcode_direct_GCJ=unsupported
18066 aix[4-9]*)
18067 if test "$host_cpu" = ia64; then
18068 # On IA64, the linker does run time linking by default, so we don't
18069 # have to do anything special.
18070 aix_use_runtimelinking=no
18071 exp_sym_flag='-Bexport'
18072 no_entry_flag=""
18073 else
18074 # If we're using GNU nm, then we don't want the "-C" option.
18075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18077 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'
18078 else
18079 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'
18081 aix_use_runtimelinking=no
18083 # Test if we are trying to use run time linking or normal
18084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18085 # need to do runtime linking.
18086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18087 for ld_flag in $LDFLAGS; do
18088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18089 aix_use_runtimelinking=yes
18090 break
18092 done
18094 esac
18096 exp_sym_flag='-bexport'
18097 no_entry_flag='-bnoentry'
18100 # When large executables or shared objects are built, AIX ld can
18101 # have problems creating the table of contents. If linking a library
18102 # or program results in "error TOC overflow" add -mminimal-toc to
18103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18106 archive_cmds_GCJ=''
18107 hardcode_direct_GCJ=yes
18108 hardcode_direct_absolute_GCJ=yes
18109 hardcode_libdir_separator_GCJ=':'
18110 link_all_deplibs_GCJ=yes
18111 file_list_spec_GCJ='${wl}-f,'
18113 if test "$GCC" = yes; then
18114 case $host_os in aix4.[012]|aix4.[012].*)
18115 # We only want to do this on AIX 4.2 and lower, the check
18116 # below for broken collect2 doesn't work under 4.3+
18117 collect2name=`${CC} -print-prog-name=collect2`
18118 if test -f "$collect2name" &&
18119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18120 then
18121 # We have reworked collect2
18123 else
18124 # We have old collect2
18125 hardcode_direct_GCJ=unsupported
18126 # It fails to find uninstalled libraries when the uninstalled
18127 # path is not listed in the libpath. Setting hardcode_minus_L
18128 # to unsupported forces relinking
18129 hardcode_minus_L_GCJ=yes
18130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131 hardcode_libdir_separator_GCJ=
18134 esac
18135 shared_flag='-shared'
18136 if test "$aix_use_runtimelinking" = yes; then
18137 shared_flag="$shared_flag "'${wl}-G'
18139 else
18140 # not using gcc
18141 if test "$host_cpu" = ia64; then
18142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18143 # chokes on -Wl,-G. The following line is correct:
18144 shared_flag='-G'
18145 else
18146 if test "$aix_use_runtimelinking" = yes; then
18147 shared_flag='${wl}-G'
18148 else
18149 shared_flag='${wl}-bM:SRE'
18154 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18155 # It seems that -bexpall does not export symbols beginning with
18156 # underscore (_), so it is better to generate a list of symbols to export.
18157 always_export_symbols_GCJ=yes
18158 if test "$aix_use_runtimelinking" = yes; then
18159 # Warning - without using the other runtime loading flags (-brtl),
18160 # -berok will link without error, but may produce a broken library.
18161 allow_undefined_flag_GCJ='-berok'
18162 # Determine the default libpath from the value encoded in an
18163 # empty executable.
18164 if test x$gcc_no_link = xyes; then
18165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18171 main ()
18175 return 0;
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"; then :
18180 lt_aix_libpath_sed='
18181 /Import File Strings/,/^$/ {
18182 /^0/ {
18183 s/^0 *\(.*\)$/\1/
18187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18188 # Check for a 64-bit object if we didn't find anything.
18189 if test -z "$aix_libpath"; then
18190 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18197 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18198 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"
18199 else
18200 if test "$host_cpu" = ia64; then
18201 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18202 allow_undefined_flag_GCJ="-z nodefs"
18203 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"
18204 else
18205 # Determine the default libpath from the value encoded in an
18206 # empty executable.
18207 if test x$gcc_no_link = xyes; then
18208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18214 main ()
18218 return 0;
18220 _ACEOF
18221 if ac_fn_c_try_link "$LINENO"; then :
18223 lt_aix_libpath_sed='
18224 /Import File Strings/,/^$/ {
18225 /^0/ {
18226 s/^0 *\(.*\)$/\1/
18230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18231 # Check for a 64-bit object if we didn't find anything.
18232 if test -z "$aix_libpath"; then
18233 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18240 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18241 # Warning - without using the other run time loading flags,
18242 # -berok will link without error, but may produce a broken library.
18243 no_undefined_flag_GCJ=' ${wl}-bernotok'
18244 allow_undefined_flag_GCJ=' ${wl}-berok'
18245 # Exported symbols can be pulled into shared objects from archives
18246 whole_archive_flag_spec_GCJ='$convenience'
18247 archive_cmds_need_lc_GCJ=yes
18248 # This is similar to how AIX traditionally builds its shared libraries.
18249 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'
18254 amigaos*)
18255 case $host_cpu in
18256 powerpc)
18257 # see comment about AmigaOS4 .so support
18258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18259 archive_expsym_cmds_GCJ=''
18261 m68k)
18262 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)'
18263 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18264 hardcode_minus_L_GCJ=yes
18266 esac
18269 bsdi[45]*)
18270 export_dynamic_flag_spec_GCJ=-rdynamic
18273 cygwin* | mingw* | pw32* | cegcc*)
18274 # When not using gcc, we currently assume that we are using
18275 # Microsoft Visual C++.
18276 # hardcode_libdir_flag_spec is actually meaningless, as there is
18277 # no search path for DLLs.
18278 hardcode_libdir_flag_spec_GCJ=' '
18279 allow_undefined_flag_GCJ=unsupported
18280 # Tell ltmain to make .lib files, not .a files.
18281 libext=lib
18282 # Tell ltmain to make .dll files, not .so files.
18283 shrext_cmds=".dll"
18284 # FIXME: Setting linknames here is a bad hack.
18285 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18286 # The linker will automatically build a .lib file if we build a DLL.
18287 old_archive_from_new_cmds_GCJ='true'
18288 # FIXME: Should let the user specify the lib program.
18289 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18290 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18291 enable_shared_with_static_runtimes_GCJ=yes
18294 darwin* | rhapsody*)
18297 archive_cmds_need_lc_GCJ=no
18298 hardcode_direct_GCJ=no
18299 hardcode_automatic_GCJ=yes
18300 hardcode_shlibpath_var_GCJ=unsupported
18301 whole_archive_flag_spec_GCJ=''
18302 link_all_deplibs_GCJ=yes
18303 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18304 case $cc_basename in
18305 ifort*) _lt_dar_can_shared=yes ;;
18306 *) _lt_dar_can_shared=$GCC ;;
18307 esac
18308 if test "$_lt_dar_can_shared" = "yes"; then
18309 output_verbose_link_cmd=echo
18310 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}"
18311 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18312 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}"
18313 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}"
18315 else
18316 ld_shlibs_GCJ=no
18321 dgux*)
18322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18324 hardcode_shlibpath_var_GCJ=no
18327 freebsd1*)
18328 ld_shlibs_GCJ=no
18331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18332 # support. Future versions do this automatically, but an explicit c++rt0.o
18333 # does not break anything, and helps significantly (at the cost of a little
18334 # extra space).
18335 freebsd2.2*)
18336 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18337 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18338 hardcode_direct_GCJ=yes
18339 hardcode_shlibpath_var_GCJ=no
18342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18343 freebsd2*)
18344 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18345 hardcode_direct_GCJ=yes
18346 hardcode_minus_L_GCJ=yes
18347 hardcode_shlibpath_var_GCJ=no
18350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18351 freebsd* | dragonfly*)
18352 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18353 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18354 hardcode_direct_GCJ=yes
18355 hardcode_shlibpath_var_GCJ=no
18358 hpux9*)
18359 if test "$GCC" = yes; then
18360 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'
18361 else
18362 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'
18364 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18365 hardcode_libdir_separator_GCJ=:
18366 hardcode_direct_GCJ=yes
18368 # hardcode_minus_L: Not really in the search PATH,
18369 # but as the default location of the library.
18370 hardcode_minus_L_GCJ=yes
18371 export_dynamic_flag_spec_GCJ='${wl}-E'
18374 hpux10*)
18375 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18376 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18377 else
18378 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18380 if test "$with_gnu_ld" = no; then
18381 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18382 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18383 hardcode_libdir_separator_GCJ=:
18384 hardcode_direct_GCJ=yes
18385 hardcode_direct_absolute_GCJ=yes
18386 export_dynamic_flag_spec_GCJ='${wl}-E'
18387 # hardcode_minus_L: Not really in the search PATH,
18388 # but as the default location of the library.
18389 hardcode_minus_L_GCJ=yes
18393 hpux11*)
18394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18395 case $host_cpu in
18396 hppa*64*)
18397 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18399 ia64*)
18400 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18403 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18405 esac
18406 else
18407 case $host_cpu in
18408 hppa*64*)
18409 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18411 ia64*)
18412 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18415 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18417 esac
18419 if test "$with_gnu_ld" = no; then
18420 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18421 hardcode_libdir_separator_GCJ=:
18423 case $host_cpu in
18424 hppa*64*|ia64*)
18425 hardcode_direct_GCJ=no
18426 hardcode_shlibpath_var_GCJ=no
18429 hardcode_direct_GCJ=yes
18430 hardcode_direct_absolute_GCJ=yes
18431 export_dynamic_flag_spec_GCJ='${wl}-E'
18433 # hardcode_minus_L: Not really in the search PATH,
18434 # but as the default location of the library.
18435 hardcode_minus_L_GCJ=yes
18437 esac
18441 irix5* | irix6* | nonstopux*)
18442 if test "$GCC" = yes; then
18443 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'
18444 # Try to use the -exported_symbol ld option, if it does not
18445 # work, assume that -exports_file does not work either and
18446 # implicitly export all symbols.
18447 save_LDFLAGS="$LDFLAGS"
18448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18449 if test x$gcc_no_link = xyes; then
18450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18454 int foo(void) {}
18455 _ACEOF
18456 if ac_fn_c_try_link "$LINENO"; then :
18457 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'
18460 rm -f core conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18462 LDFLAGS="$save_LDFLAGS"
18463 else
18464 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'
18465 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'
18467 archive_cmds_need_lc_GCJ='no'
18468 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18469 hardcode_libdir_separator_GCJ=:
18470 inherit_rpath_GCJ=yes
18471 link_all_deplibs_GCJ=yes
18474 netbsd*)
18475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18476 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18477 else
18478 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18481 hardcode_direct_GCJ=yes
18482 hardcode_shlibpath_var_GCJ=no
18485 newsos6)
18486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18487 hardcode_direct_GCJ=yes
18488 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18489 hardcode_libdir_separator_GCJ=:
18490 hardcode_shlibpath_var_GCJ=no
18493 *nto* | *qnx*)
18496 openbsd*)
18497 if test -f /usr/libexec/ld.so; then
18498 hardcode_direct_GCJ=yes
18499 hardcode_shlibpath_var_GCJ=no
18500 hardcode_direct_absolute_GCJ=yes
18501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18502 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18503 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18505 export_dynamic_flag_spec_GCJ='${wl}-E'
18506 else
18507 case $host_os in
18508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18513 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18514 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18516 esac
18518 else
18519 ld_shlibs_GCJ=no
18523 os2*)
18524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525 hardcode_minus_L_GCJ=yes
18526 allow_undefined_flag_GCJ=unsupported
18527 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'
18528 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18531 osf3*)
18532 if test "$GCC" = yes; then
18533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18534 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18535 else
18536 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18537 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'
18539 archive_cmds_need_lc_GCJ='no'
18540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18541 hardcode_libdir_separator_GCJ=:
18544 osf4* | osf5*) # as osf3* with the addition of -msym flag
18545 if test "$GCC" = yes; then
18546 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18547 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'
18548 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18549 else
18550 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18551 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'
18552 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~
18553 $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'
18555 # Both c and cxx compiler support -rpath directly
18556 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18558 archive_cmds_need_lc_GCJ='no'
18559 hardcode_libdir_separator_GCJ=:
18562 solaris*)
18563 no_undefined_flag_GCJ=' -z defs'
18564 if test "$GCC" = yes; then
18565 wlarc='${wl}'
18566 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18567 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18568 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18569 else
18570 case `$CC -V 2>&1` in
18571 *"Compilers 5.0"*)
18572 wlarc=''
18573 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18578 wlarc='${wl}'
18579 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18580 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18583 esac
18585 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18586 hardcode_shlibpath_var_GCJ=no
18587 case $host_os in
18588 solaris2.[0-5] | solaris2.[0-5].*) ;;
18590 # The compiler driver will combine and reorder linker options,
18591 # but understands `-z linker_flag'. GCC discards it without `$wl',
18592 # but is careful enough not to reorder.
18593 # Supported since Solaris 2.6 (maybe 2.5.1?)
18594 if test "$GCC" = yes; then
18595 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18596 else
18597 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18600 esac
18601 link_all_deplibs_GCJ=yes
18604 sunos4*)
18605 if test "x$host_vendor" = xsequent; then
18606 # Use $CC to link under sequent, because it throws in some extra .o
18607 # files that make .init and .fini sections work.
18608 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18609 else
18610 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18612 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18613 hardcode_direct_GCJ=yes
18614 hardcode_minus_L_GCJ=yes
18615 hardcode_shlibpath_var_GCJ=no
18618 sysv4)
18619 case $host_vendor in
18620 sni)
18621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18622 hardcode_direct_GCJ=yes # is this really true???
18624 siemens)
18625 ## LD is ld it makes a PLAMLIB
18626 ## CC just makes a GrossModule.
18627 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18628 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18629 hardcode_direct_GCJ=no
18631 motorola)
18632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18633 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18635 esac
18636 runpath_var='LD_RUN_PATH'
18637 hardcode_shlibpath_var_GCJ=no
18640 sysv4.3*)
18641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642 hardcode_shlibpath_var_GCJ=no
18643 export_dynamic_flag_spec_GCJ='-Bexport'
18646 sysv4*MP*)
18647 if test -d /usr/nec; then
18648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18649 hardcode_shlibpath_var_GCJ=no
18650 runpath_var=LD_RUN_PATH
18651 hardcode_runpath_var=yes
18652 ld_shlibs_GCJ=yes
18656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18657 no_undefined_flag_GCJ='${wl}-z,text'
18658 archive_cmds_need_lc_GCJ=no
18659 hardcode_shlibpath_var_GCJ=no
18660 runpath_var='LD_RUN_PATH'
18662 if test "$GCC" = yes; then
18663 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18664 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18665 else
18666 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18667 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18671 sysv5* | sco3.2v5* | sco5v6*)
18672 # Note: We can NOT use -z defs as we might desire, because we do not
18673 # link with -lc, and that would cause any symbols used from libc to
18674 # always be unresolved, which means just about no library would
18675 # ever link correctly. If we're not using GNU ld we use -z text
18676 # though, which does catch some bad symbols but isn't as heavy-handed
18677 # as -z defs.
18678 no_undefined_flag_GCJ='${wl}-z,text'
18679 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18680 archive_cmds_need_lc_GCJ=no
18681 hardcode_shlibpath_var_GCJ=no
18682 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18683 hardcode_libdir_separator_GCJ=':'
18684 link_all_deplibs_GCJ=yes
18685 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18686 runpath_var='LD_RUN_PATH'
18688 if test "$GCC" = yes; then
18689 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18690 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18691 else
18692 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18693 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18697 uts4*)
18698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18699 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18700 hardcode_shlibpath_var_GCJ=no
18704 ld_shlibs_GCJ=no
18706 esac
18708 if test x$host_vendor = xsni; then
18709 case $host in
18710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18711 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18713 esac
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18718 $as_echo "$ld_shlibs_GCJ" >&6; }
18719 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18721 with_gnu_ld_GCJ=$with_gnu_ld
18729 # Do we need to explicitly link libc?
18731 case "x$archive_cmds_need_lc_GCJ" in
18732 x|xyes)
18733 # Assume -lc should be added
18734 archive_cmds_need_lc_GCJ=yes
18736 if test "$enable_shared" = yes && test "$GCC" = yes; then
18737 case $archive_cmds_GCJ in
18738 *'~'*)
18739 # FIXME: we may have to deal with multi-command sequences.
18741 '$CC '*)
18742 # Test whether the compiler implicitly links with -lc since on some
18743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18744 # to ld, don't add -lc before -lgcc.
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18746 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18747 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18748 $as_echo_n "(cached) " >&6
18749 else
18750 $RM conftest*
18751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18754 (eval $ac_compile) 2>&5
18755 ac_status=$?
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; } 2>conftest.err; then
18758 soname=conftest
18759 lib=conftest
18760 libobjs=conftest.$ac_objext
18761 deplibs=
18762 wl=$lt_prog_compiler_wl_GCJ
18763 pic_flag=$lt_prog_compiler_pic_GCJ
18764 compiler_flags=-v
18765 linker_flags=-v
18766 verstring=
18767 output_objdir=.
18768 libname=conftest
18769 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18770 allow_undefined_flag_GCJ=
18771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18772 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18773 ac_status=$?
18774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18775 test $ac_status = 0; }
18776 then
18777 lt_cv_archive_cmds_need_lc_GCJ=no
18778 else
18779 lt_cv_archive_cmds_need_lc_GCJ=yes
18781 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18782 else
18783 cat conftest.err 1>&5
18785 $RM conftest*
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18789 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18790 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18792 esac
18795 esac
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18861 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18862 hardcode_action_GCJ=
18863 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18864 test -n "$runpath_var_GCJ" ||
18865 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18867 # We can hardcode non-existent directories.
18868 if test "$hardcode_direct_GCJ" != no &&
18869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18870 # have to relink, otherwise we might link with an installed library
18871 # when we should be linking with a yet-to-be-installed one
18872 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18873 test "$hardcode_minus_L_GCJ" != no; then
18874 # Linking always hardcodes the temporary library directory.
18875 hardcode_action_GCJ=relink
18876 else
18877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18878 hardcode_action_GCJ=immediate
18880 else
18881 # We cannot hardcode anything, or else we can only hardcode existing
18882 # directories.
18883 hardcode_action_GCJ=unsupported
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18886 $as_echo "$hardcode_action_GCJ" >&6; }
18888 if test "$hardcode_action_GCJ" = relink ||
18889 test "$inherit_rpath_GCJ" = yes; then
18890 # Fast installation is not supported
18891 enable_fast_install=no
18892 elif test "$shlibpath_overrides_runpath" = yes ||
18893 test "$enable_shared" = no; then
18894 # Fast installation is not necessary
18895 enable_fast_install=needless
18906 compiler_GCJ=${GCJ-gcj}
18907 ac_ext=c
18908 ac_cpp='$CPP $CPPFLAGS'
18909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18914 if test "x$CC" != xcc; then
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18916 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18917 else
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18919 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18921 set dummy $CC; ac_cc=`$as_echo "$2" |
18922 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18923 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18924 $as_echo_n "(cached) " >&6
18925 else
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18930 main ()
18934 return 0;
18936 _ACEOF
18937 # Make sure it works both with $CC and with simple cc.
18938 # We do the test twice because some compilers refuse to overwrite an
18939 # existing .o file with -o, though they will create one.
18940 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18941 rm -f conftest2.*
18942 if { { case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945 esac
18946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18947 $as_echo "$ac_try_echo"; } >&5
18948 (eval "$ac_try") 2>&5
18949 ac_status=$?
18950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18951 test $ac_status = 0; } &&
18952 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955 esac
18956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18957 $as_echo "$ac_try_echo"; } >&5
18958 (eval "$ac_try") 2>&5
18959 ac_status=$?
18960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18961 test $ac_status = 0; };
18962 then
18963 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18964 if test "x$CC" != xcc; then
18965 # Test first that cc exists at all.
18966 if { ac_try='cc -c conftest.$ac_ext >&5'
18967 { { case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18970 esac
18971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18972 $as_echo "$ac_try_echo"; } >&5
18973 (eval "$ac_try") 2>&5
18974 ac_status=$?
18975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18976 test $ac_status = 0; }; }; then
18977 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18978 rm -f conftest2.*
18979 if { { case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18982 esac
18983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18984 $as_echo "$ac_try_echo"; } >&5
18985 (eval "$ac_try") 2>&5
18986 ac_status=$?
18987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18988 test $ac_status = 0; } &&
18989 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992 esac
18993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18994 $as_echo "$ac_try_echo"; } >&5
18995 (eval "$ac_try") 2>&5
18996 ac_status=$?
18997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18998 test $ac_status = 0; };
18999 then
19000 # cc works too.
19002 else
19003 # cc exists but doesn't like -o.
19004 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19008 else
19009 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19011 rm -f core conftest*
19014 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19016 $as_echo "yes" >&6; }
19017 else
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19019 $as_echo "no" >&6; }
19021 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19025 # FIXME: we rely on the cache variable name because
19026 # there is no other way.
19027 set dummy $CC
19028 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19029 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19030 if test "$am_t" != yes; then
19031 # Losing compiler, so override with the script.
19032 # FIXME: It is wrong to rewrite CC.
19033 # But if we don't then we get into trouble of one sort or another.
19034 # A longer-term fix would be to have automake use am__CC in this case,
19035 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19036 CC="$am_aux_dir/compile $CC"
19043 subdirs="$subdirs classpath libltdl"
19046 # The -no-testsuite modules omit the test subdir.
19047 if test -d $srcdir/testsuite; then
19048 TESTSUBDIR_TRUE=
19049 TESTSUBDIR_FALSE='#'
19050 else
19051 TESTSUBDIR_TRUE='#'
19052 TESTSUBDIR_FALSE=
19056 # Should the runtime set system properties by examining the
19057 # environment variable GCJ_PROPERTIES?
19058 # Check whether --enable-getenv-properties was given.
19059 if test "${enable_getenv_properties+set}" = set; then :
19060 enableval=$enable_getenv_properties;
19064 # Whether GCJ_PROPERTIES is used depends on the target.
19065 if test -z "$enable_getenv_properties"; then
19066 enable_getenv_properties=${enable_getenv_properties_default-yes}
19068 if test "$enable_getenv_properties" = no; then
19070 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19074 # Whether we should use arguments to main()
19075 if test -z "$enable_main_args"; then
19076 enable_main_args=${enable_main_args_default-yes}
19078 if test "$enable_main_args" = no; then
19080 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19085 # Should we use hashtable-based synchronization?
19086 # Currently works only for Linux X86/ia64
19087 # Typically faster and more space-efficient
19088 # Check whether --enable-hash-synchronization was given.
19089 if test "${enable_hash_synchronization+set}" = set; then :
19090 enableval=$enable_hash_synchronization;
19094 if test -z "$enable_hash_synchronization"; then
19095 enable_hash_synchronization=$enable_hash_synchronization_default
19099 install_ecj_jar=no
19100 ECJ_BUILD_JAR=
19101 ECJ_JAR=
19103 # Check whether --with-ecj-jar was given.
19104 if test "${with_ecj_jar+set}" = set; then :
19105 withval=$with_ecj_jar; ECJ_JAR=$withval
19106 else
19107 if test -f $multi_basedir/ecj.jar; then
19108 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19109 ECJ_JAR='$(jardir)/ecj.jar'
19110 install_ecj_jar=yes
19116 if test "$ECJ_JAR" != ""; then
19117 BUILD_ECJ1_TRUE=
19118 BUILD_ECJ1_FALSE='#'
19119 else
19120 BUILD_ECJ1_TRUE='#'
19121 BUILD_ECJ1_FALSE=
19124 if test $install_ecj_jar = yes; then
19125 INSTALL_ECJ_JAR_TRUE=
19126 INSTALL_ECJ_JAR_FALSE='#'
19127 else
19128 INSTALL_ECJ_JAR_TRUE='#'
19129 INSTALL_ECJ_JAR_FALSE=
19134 # Check whether --with-java-home was given.
19135 if test "${with_java_home+set}" = set; then :
19136 withval=$with_java_home; JAVA_HOME="${withval}"
19137 else
19138 JAVA_HOME=""
19141 if test ! -z "$JAVA_HOME"; then
19142 JAVA_HOME_SET_TRUE=
19143 JAVA_HOME_SET_FALSE='#'
19144 else
19145 JAVA_HOME_SET_TRUE='#'
19146 JAVA_HOME_SET_FALSE=
19151 suppress_libgcj_bc=no
19152 # Check whether --enable-libgcj-bc was given.
19153 if test "${enable_libgcj_bc+set}" = set; then :
19154 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19155 suppress_libgcj_bc=yes
19159 if test "$suppress_libgcj_bc" = "yes"; then
19160 SUPPRESS_LIBGCJ_BC_TRUE=
19161 SUPPRESS_LIBGCJ_BC_FALSE='#'
19162 else
19163 SUPPRESS_LIBGCJ_BC_TRUE='#'
19164 SUPPRESS_LIBGCJ_BC_FALSE=
19168 build_libgcj_reduced_reflection=no
19169 # Check whether --enable-reduced-reflection was given.
19170 if test "${enable_reduced_reflection+set}" = set; then :
19171 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19172 build_libgcj_reduced_reflection=yes
19176 if test "$build_libgcj_reduced_reflection" = "yes"; then
19177 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19178 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19179 else
19180 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19181 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19185 # What is the native OS API for MinGW?
19187 # Check whether --with-win32-nlsapi was given.
19188 if test "${with_win32_nlsapi+set}" = set; then :
19189 withval=$with_win32_nlsapi; case "${withval}" in
19190 ansi) with_win32_nlsapi=ansi ;;
19191 unicows) with_win32_nlsapi=unicows ;;
19192 unicode) with_win32_nlsapi=unicode ;;
19193 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19194 esac
19195 else
19196 with_win32_nlsapi=ansi
19200 case "${with_win32_nlsapi}" in
19201 unicows | unicode)
19203 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19206 esac
19208 # configure.host sets slow_pthread_self if the synchronization code should
19209 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19210 if test "${slow_pthread_self}" = "yes"; then
19212 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19216 # Check for gc debugging. This option is handled both here and in the GC.
19217 # Check whether --enable-gc-debug was given.
19218 if test "${enable_gc_debug+set}" = set; then :
19219 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19221 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19227 # See if the user has the interpreter included.
19228 # Check whether --enable-interpreter was given.
19229 if test "${enable_interpreter+set}" = set; then :
19230 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19231 # This can also be set in configure.host.
19232 libgcj_interpreter=yes
19233 elif test "$enable_interpreter" = no; then
19234 libgcj_interpreter=no
19239 if test "$libgcj_interpreter" = yes; then
19241 $as_echo "#define INTERPRETER 1" >>confdefs.h
19244 INTERPRETER="$libgcj_interpreter"
19246 if test "$libgcj_interpreter" = yes; then
19247 INTERPRETER_TRUE=
19248 INTERPRETER_FALSE='#'
19249 else
19250 INTERPRETER_TRUE='#'
19251 INTERPRETER_FALSE=
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19256 $as_echo_n "checking for exception model to use... " >&6; }
19257 ac_ext=cpp
19258 ac_cpp='$CXXCPP $CPPFLAGS'
19259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19263 # Check whether --enable-sjlj-exceptions was given.
19264 if test "${enable_sjlj_exceptions+set}" = set; then :
19265 enableval=$enable_sjlj_exceptions; :
19266 else
19267 cat > conftest.$ac_ext << EOF
19268 #line 19268 "configure"
19269 struct S { ~S(); };
19270 void bar();
19271 void foo()
19273 S s;
19274 bar();
19277 old_CXXFLAGS="$CXXFLAGS"
19278 CXXFLAGS=-S
19279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19280 (eval $ac_compile) 2>&5
19281 ac_status=$?
19282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19283 test $ac_status = 0; }; then
19284 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19285 enable_sjlj_exceptions=yes
19286 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19287 enable_sjlj_exceptions=no
19288 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19289 # ARM EH ABI.
19290 enable_sjlj_exceptions=no
19293 CXXFLAGS="$old_CXXFLAGS"
19294 rm -f conftest*
19297 if test x$enable_sjlj_exceptions = xyes; then
19299 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19301 ac_exception_model_name=sjlj
19302 elif test x$enable_sjlj_exceptions = xno; then
19303 ac_exception_model_name="call frame"
19304 else
19305 as_fn_error "unable to detect exception model" "$LINENO" 5
19307 ac_ext=c
19308 ac_cpp='$CPP $CPPFLAGS'
19309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19314 $as_echo "$ac_exception_model_name" >&6; }
19316 # If we are non using SJLJ exceptions, and this host does not have support
19317 # for unwinding from a signal handler, enable checked dereferences and divides.
19318 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19319 CHECKREFSPEC=-fcheck-references
19320 DIVIDESPEC=-fuse-divide-subroutine
19321 EXCEPTIONSPEC=
19324 # See if the user wants to disable java.net. This is the mildly
19325 # ugly way that we admit that target-side configuration sucks.
19326 # Check whether --enable-java-net was given.
19327 if test "${enable_java_net+set}" = set; then :
19328 enableval=$enable_java_net;
19332 # Whether java.net is built by default can depend on the target.
19333 if test -z "$enable_java_net"; then
19334 enable_java_net=${enable_java_net_default-yes}
19336 if test "$enable_java_net" = no; then
19338 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19342 # See if the user wants to configure without libffi. Some
19343 # architectures don't support it, and default values are set in
19344 # configure.host.
19346 # Check whether --with-libffi was given.
19347 if test "${with_libffi+set}" = set; then :
19348 withval=$with_libffi; :
19349 else
19350 with_libffi=${with_libffi_default-yes}
19354 LIBFFI=
19355 LIBFFIINCS=
19356 if test "$with_libffi" != no; then
19358 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19360 LIBFFI=../libffi/libffi_convenience.la
19361 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19366 # See if the user wants to disable JVMPI support.
19367 # Check whether --enable-jvmpi was given.
19368 if test "${enable_jvmpi+set}" = set; then :
19369 enableval=$enable_jvmpi;
19373 if test "$enable_jvmpi" != no; then
19375 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19379 # If the target is an eCos system, use the appropriate eCos
19380 # I/O routines.
19381 # FIXME: this should not be a local option but a global target
19382 # system; at present there is no eCos target.
19383 TARGET_ECOS=${PROCESS-"no"}
19385 # Check whether --with-ecos was given.
19386 if test "${with_ecos+set}" = set; then :
19387 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19392 case "$TARGET_ECOS" in
19393 no) case "$host" in
19394 *mingw*)
19395 PLATFORM=Win32
19396 PLATFORMNET=Win32
19397 PLATFORMH=win32.h
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19400 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19401 LD_PROG=`$CC --print-prog-name=ld`
19402 LD_VERSION=`$LD_PROG --version`
19403 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19404 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19405 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19406 LD_OK="ok"
19407 else
19408 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19409 LD_OK="ok"
19412 if test "x$LD_OK" != x; then
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19414 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19415 else
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19417 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19419 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19421 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19426 PLATFORM=Posix
19427 PLATFORMNET=Posix
19428 PLATFORMH=posix.h
19430 esac
19433 PLATFORM=Ecos
19434 PLATFORMNET=NoNet
19436 $as_echo "#define ECOS 1" >>confdefs.h
19438 PLATFORMH=posix.h
19440 esac
19442 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h. */
19447 #include <stdint.h>
19449 _ACEOF
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "uint32_t" >/dev/null 2>&1; then :
19453 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19456 rm -f conftest*
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19460 #include <inttypes.h>
19462 _ACEOF
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464 $EGREP "uint32_t" >/dev/null 2>&1; then :
19466 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19469 rm -f conftest*
19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h. */
19473 #include <sys/types.h>
19475 _ACEOF
19476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19477 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19479 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19482 rm -f conftest*
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 #include <sys/config.h>
19488 _ACEOF
19489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19490 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19492 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19495 rm -f conftest*
19498 if test "$PLATFORM" = Win32; then
19499 USING_WIN32_PLATFORM_TRUE=
19500 USING_WIN32_PLATFORM_FALSE='#'
19501 else
19502 USING_WIN32_PLATFORM_TRUE='#'
19503 USING_WIN32_PLATFORM_FALSE=
19506 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19507 USING_POSIX_PLATFORM_TRUE=
19508 USING_POSIX_PLATFORM_FALSE='#'
19509 else
19510 USING_POSIX_PLATFORM_TRUE='#'
19511 USING_POSIX_PLATFORM_FALSE=
19515 case "$host" in
19516 *-darwin*) DARWIN_CRT=true ;;
19517 *) DARWIN_CRT=false ;;
19518 esac
19519 if $DARWIN_CRT; then
19520 USING_DARWIN_CRT_TRUE=
19521 USING_DARWIN_CRT_FALSE='#'
19522 else
19523 USING_DARWIN_CRT_TRUE='#'
19524 USING_DARWIN_CRT_FALSE=
19528 # This may not be defined in a non-ANS conformant embedded system.
19529 # FIXME: Should these case a runtime exception in that case?
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19532 #include <time.h>
19534 _ACEOF
19535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19536 $EGREP "localtime" >/dev/null 2>&1; then :
19538 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19541 rm -f conftest*
19544 # Create the subdirectory for natFile.cc, or the attempt
19545 # to create the link will fail.
19546 test -d java || mkdir java
19547 test -d java/io || mkdir java/io
19548 test -d gnu || mkdir gnu
19549 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19552 # Likewise for natConcreteProcess.cc.
19553 test -d java/lang || mkdir java/lang
19554 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19557 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19558 test -d java/net || mkdir java/net
19559 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19561 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19564 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19565 test -d gnu/java || mkdir gnu/java
19566 test -d gnu/java/net || mkdir gnu/java/net
19567 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19569 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19572 # Likewise for natVMPipe.cc and natVMSelector.cc.
19573 test -d gnu/java/nio || mkdir gnu/java/nio
19574 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19576 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19579 # Likewise for natFileChannelImpl.cc
19580 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19581 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19584 # Likewise for natVMSecureRandom.cc
19585 test -d gnu/java/security || mkdir gnu/java/security
19586 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19587 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19588 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19591 case "${host}" in
19592 *mingw*)
19593 SYSTEMSPEC="-lgdi32 -lws2_32"
19594 if test "${with_win32_nlsapi}" = "unicows"; then
19595 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19599 SYSTEMSPEC=
19601 esac
19605 # Check whether --with-system-zlib was given.
19606 if test "${with_system_zlib+set}" = set; then :
19607 withval=$with_system_zlib;
19610 ZLIBSPEC=
19612 ZLIBTESTSPEC=
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19616 $as_echo_n "checking for X... " >&6; }
19619 # Check whether --with-x was given.
19620 if test "${with_x+set}" = set; then :
19621 withval=$with_x;
19624 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19625 if test "x$with_x" = xno; then
19626 # The user explicitly disabled X.
19627 have_x=disabled
19628 else
19629 case $x_includes,$x_libraries in #(
19630 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19631 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19632 $as_echo_n "(cached) " >&6
19633 else
19634 # One or both of the vars are not set, and there is no cached value.
19635 ac_x_includes=no ac_x_libraries=no
19636 rm -f -r conftest.dir
19637 if mkdir conftest.dir; then
19638 cd conftest.dir
19639 cat >Imakefile <<'_ACEOF'
19640 incroot:
19641 @echo incroot='${INCROOT}'
19642 usrlibdir:
19643 @echo usrlibdir='${USRLIBDIR}'
19644 libdir:
19645 @echo libdir='${LIBDIR}'
19646 _ACEOF
19647 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19649 for ac_var in incroot usrlibdir libdir; do
19650 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19651 done
19652 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19653 for ac_extension in a so sl dylib la dll; do
19654 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19655 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19656 ac_im_usrlibdir=$ac_im_libdir; break
19658 done
19659 # Screen out bogus values from the imake configuration. They are
19660 # bogus both because they are the default anyway, and because
19661 # using them would break gcc on systems where it needs fixed includes.
19662 case $ac_im_incroot in
19663 /usr/include) ac_x_includes= ;;
19664 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19665 esac
19666 case $ac_im_usrlibdir in
19667 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19668 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19669 esac
19671 cd ..
19672 rm -f -r conftest.dir
19675 # Standard set of common directories for X headers.
19676 # Check X11 before X11Rn because it is often a symlink to the current release.
19677 ac_x_header_dirs='
19678 /usr/X11/include
19679 /usr/X11R7/include
19680 /usr/X11R6/include
19681 /usr/X11R5/include
19682 /usr/X11R4/include
19684 /usr/include/X11
19685 /usr/include/X11R7
19686 /usr/include/X11R6
19687 /usr/include/X11R5
19688 /usr/include/X11R4
19690 /usr/local/X11/include
19691 /usr/local/X11R7/include
19692 /usr/local/X11R6/include
19693 /usr/local/X11R5/include
19694 /usr/local/X11R4/include
19696 /usr/local/include/X11
19697 /usr/local/include/X11R7
19698 /usr/local/include/X11R6
19699 /usr/local/include/X11R5
19700 /usr/local/include/X11R4
19702 /usr/X386/include
19703 /usr/x386/include
19704 /usr/XFree86/include/X11
19706 /usr/include
19707 /usr/local/include
19708 /usr/unsupported/include
19709 /usr/athena/include
19710 /usr/local/x11r5/include
19711 /usr/lpp/Xamples/include
19713 /usr/openwin/include
19714 /usr/openwin/share/include'
19716 if test "$ac_x_includes" = no; then
19717 # Guess where to find include files, by looking for Xlib.h.
19718 # First, try using that file with no special directory specified.
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19721 #include <X11/Xlib.h>
19722 _ACEOF
19723 if ac_fn_c_try_cpp "$LINENO"; then :
19724 # We can compile using X headers with no special include directory.
19725 ac_x_includes=
19726 else
19727 for ac_dir in $ac_x_header_dirs; do
19728 if test -r "$ac_dir/X11/Xlib.h"; then
19729 ac_x_includes=$ac_dir
19730 break
19732 done
19734 rm -f conftest.err conftest.$ac_ext
19735 fi # $ac_x_includes = no
19737 if test "$ac_x_libraries" = no; then
19738 # Check for the libraries.
19739 # See if we find them without any special options.
19740 # Don't add to $LIBS permanently.
19741 ac_save_LIBS=$LIBS
19742 LIBS="-lX11 $LIBS"
19743 if test x$gcc_no_link = xyes; then
19744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747 /* end confdefs.h. */
19748 #include <X11/Xlib.h>
19750 main ()
19752 XrmInitialize ()
19754 return 0;
19756 _ACEOF
19757 if ac_fn_c_try_link "$LINENO"; then :
19758 LIBS=$ac_save_LIBS
19759 # We can link X programs with no special library path.
19760 ac_x_libraries=
19761 else
19762 LIBS=$ac_save_LIBS
19763 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19765 # Don't even attempt the hair of trying to link an X program!
19766 for ac_extension in a so sl dylib la dll; do
19767 if test -r "$ac_dir/libX11.$ac_extension"; then
19768 ac_x_libraries=$ac_dir
19769 break 2
19771 done
19772 done
19774 rm -f core conftest.err conftest.$ac_objext \
19775 conftest$ac_exeext conftest.$ac_ext
19776 fi # $ac_x_libraries = no
19778 case $ac_x_includes,$ac_x_libraries in #(
19779 no,* | *,no | *\'*)
19780 # Didn't find X, or a directory has "'" in its name.
19781 ac_cv_have_x="have_x=no";; #(
19783 # Record where we found X for the cache.
19784 ac_cv_have_x="have_x=yes\
19785 ac_x_includes='$ac_x_includes'\
19786 ac_x_libraries='$ac_x_libraries'"
19787 esac
19789 ;; #(
19790 *) have_x=yes;;
19791 esac
19792 eval "$ac_cv_have_x"
19793 fi # $with_x != no
19795 if test "$have_x" != yes; then
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19797 $as_echo "$have_x" >&6; }
19798 no_x=yes
19799 else
19800 # If each of the values was on the command line, it overrides each guess.
19801 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19802 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19803 # Update the cache value to reflect the command line values.
19804 ac_cv_have_x="have_x=yes\
19805 ac_x_includes='$x_includes'\
19806 ac_x_libraries='$x_libraries'"
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19808 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19811 if test "$no_x" = yes; then
19812 # Not all programs may use this symbol, but it does not hurt to define it.
19814 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19816 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19817 else
19818 if test -n "$x_includes"; then
19819 X_CFLAGS="$X_CFLAGS -I$x_includes"
19822 # It would also be nice to do this for all -L options, not just this one.
19823 if test -n "$x_libraries"; then
19824 X_LIBS="$X_LIBS -L$x_libraries"
19825 # For Solaris; some versions of Sun CC require a space after -R and
19826 # others require no space. Words are not sufficient . . . .
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19828 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19829 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19830 ac_xsave_c_werror_flag=$ac_c_werror_flag
19831 ac_c_werror_flag=yes
19832 if test x$gcc_no_link = xyes; then
19833 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19839 main ()
19843 return 0;
19845 _ACEOF
19846 if ac_fn_c_try_link "$LINENO"; then :
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19848 $as_echo "no" >&6; }
19849 X_LIBS="$X_LIBS -R$x_libraries"
19850 else
19851 LIBS="$ac_xsave_LIBS -R $x_libraries"
19852 if test x$gcc_no_link = xyes; then
19853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19859 main ()
19863 return 0;
19865 _ACEOF
19866 if ac_fn_c_try_link "$LINENO"; then :
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19868 $as_echo "yes" >&6; }
19869 X_LIBS="$X_LIBS -R $x_libraries"
19870 else
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19872 $as_echo "neither works" >&6; }
19874 rm -f core conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext conftest.$ac_ext
19877 rm -f core conftest.err conftest.$ac_objext \
19878 conftest$ac_exeext conftest.$ac_ext
19879 ac_c_werror_flag=$ac_xsave_c_werror_flag
19880 LIBS=$ac_xsave_LIBS
19883 # Check for system-dependent libraries X programs must link with.
19884 # Do this before checking for the system-independent R6 libraries
19885 # (-lICE), since we may need -lsocket or whatever for X linking.
19887 if test "$ISC" = yes; then
19888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19889 else
19890 # Martyn Johnson says this is needed for Ultrix, if the X
19891 # libraries were built with DECnet support. And Karl Berry says
19892 # the Alpha needs dnet_stub (dnet does not exist).
19893 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19894 if test x$gcc_no_link = xyes; then
19895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19900 /* Override any GCC internal prototype to avoid an error.
19901 Use char because int might match the return type of a GCC
19902 builtin and then its argument prototype would still apply. */
19903 #ifdef __cplusplus
19904 extern "C"
19905 #endif
19906 char XOpenDisplay ();
19908 main ()
19910 return XOpenDisplay ();
19912 return 0;
19914 _ACEOF
19915 if ac_fn_c_try_link "$LINENO"; then :
19917 else
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19919 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19920 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19921 $as_echo_n "(cached) " >&6
19922 else
19923 ac_check_lib_save_LIBS=$LIBS
19924 LIBS="-ldnet $LIBS"
19925 if test x$gcc_no_link = xyes; then
19926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19931 /* Override any GCC internal prototype to avoid an error.
19932 Use char because int might match the return type of a GCC
19933 builtin and then its argument prototype would still apply. */
19934 #ifdef __cplusplus
19935 extern "C"
19936 #endif
19937 char dnet_ntoa ();
19939 main ()
19941 return dnet_ntoa ();
19943 return 0;
19945 _ACEOF
19946 if ac_fn_c_try_link "$LINENO"; then :
19947 ac_cv_lib_dnet_dnet_ntoa=yes
19948 else
19949 ac_cv_lib_dnet_dnet_ntoa=no
19951 rm -f core conftest.err conftest.$ac_objext \
19952 conftest$ac_exeext conftest.$ac_ext
19953 LIBS=$ac_check_lib_save_LIBS
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19956 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19957 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19958 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19961 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19963 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19964 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19965 $as_echo_n "(cached) " >&6
19966 else
19967 ac_check_lib_save_LIBS=$LIBS
19968 LIBS="-ldnet_stub $LIBS"
19969 if test x$gcc_no_link = xyes; then
19970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19975 /* Override any GCC internal prototype to avoid an error.
19976 Use char because int might match the return type of a GCC
19977 builtin and then its argument prototype would still apply. */
19978 #ifdef __cplusplus
19979 extern "C"
19980 #endif
19981 char dnet_ntoa ();
19983 main ()
19985 return dnet_ntoa ();
19987 return 0;
19989 _ACEOF
19990 if ac_fn_c_try_link "$LINENO"; then :
19991 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19992 else
19993 ac_cv_lib_dnet_stub_dnet_ntoa=no
19995 rm -f core conftest.err conftest.$ac_objext \
19996 conftest$ac_exeext conftest.$ac_ext
19997 LIBS=$ac_check_lib_save_LIBS
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20000 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20001 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20002 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS="$ac_xsave_LIBS"
20011 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20012 # to get the SysV transport functions.
20013 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20014 # needs -lnsl.
20015 # The nsl library prevents programs from opening the X display
20016 # on Irix 5.2, according to T.E. Dickey.
20017 # The functions gethostbyname, getservbyname, and inet_addr are
20018 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20019 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20020 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20024 if test $ac_cv_func_gethostbyname = no; then
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20026 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20027 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20028 $as_echo_n "(cached) " >&6
20029 else
20030 ac_check_lib_save_LIBS=$LIBS
20031 LIBS="-lnsl $LIBS"
20032 if test x$gcc_no_link = xyes; then
20033 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20038 /* Override any GCC internal prototype to avoid an error.
20039 Use char because int might match the return type of a GCC
20040 builtin and then its argument prototype would still apply. */
20041 #ifdef __cplusplus
20042 extern "C"
20043 #endif
20044 char gethostbyname ();
20046 main ()
20048 return gethostbyname ();
20050 return 0;
20052 _ACEOF
20053 if ac_fn_c_try_link "$LINENO"; then :
20054 ac_cv_lib_nsl_gethostbyname=yes
20055 else
20056 ac_cv_lib_nsl_gethostbyname=no
20058 rm -f core conftest.err conftest.$ac_objext \
20059 conftest$ac_exeext conftest.$ac_ext
20060 LIBS=$ac_check_lib_save_LIBS
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20063 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20064 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20068 if test $ac_cv_lib_nsl_gethostbyname = no; then
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20070 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20071 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20072 $as_echo_n "(cached) " >&6
20073 else
20074 ac_check_lib_save_LIBS=$LIBS
20075 LIBS="-lbsd $LIBS"
20076 if test x$gcc_no_link = xyes; then
20077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h. */
20082 /* Override any GCC internal prototype to avoid an error.
20083 Use char because int might match the return type of a GCC
20084 builtin and then its argument prototype would still apply. */
20085 #ifdef __cplusplus
20086 extern "C"
20087 #endif
20088 char gethostbyname ();
20090 main ()
20092 return gethostbyname ();
20094 return 0;
20096 _ACEOF
20097 if ac_fn_c_try_link "$LINENO"; then :
20098 ac_cv_lib_bsd_gethostbyname=yes
20099 else
20100 ac_cv_lib_bsd_gethostbyname=no
20102 rm -f core conftest.err conftest.$ac_objext \
20103 conftest$ac_exeext conftest.$ac_ext
20104 LIBS=$ac_check_lib_save_LIBS
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20107 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20108 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20115 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20116 # socket/setsockopt and other routines are undefined under SCO ODT
20117 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20118 # on later versions), says Simon Leinen: it contains gethostby*
20119 # variants that don't use the name server (or something). -lsocket
20120 # must be given before -lnsl if both are needed. We assume that
20121 # if connect needs -lnsl, so does gethostbyname.
20122 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20123 if test "x$ac_cv_func_connect" = x""yes; then :
20127 if test $ac_cv_func_connect = no; then
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20129 $as_echo_n "checking for connect in -lsocket... " >&6; }
20130 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20131 $as_echo_n "(cached) " >&6
20132 else
20133 ac_check_lib_save_LIBS=$LIBS
20134 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20135 if test x$gcc_no_link = xyes; then
20136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20141 /* Override any GCC internal prototype to avoid an error.
20142 Use char because int might match the return type of a GCC
20143 builtin and then its argument prototype would still apply. */
20144 #ifdef __cplusplus
20145 extern "C"
20146 #endif
20147 char connect ();
20149 main ()
20151 return connect ();
20153 return 0;
20155 _ACEOF
20156 if ac_fn_c_try_link "$LINENO"; then :
20157 ac_cv_lib_socket_connect=yes
20158 else
20159 ac_cv_lib_socket_connect=no
20161 rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20163 LIBS=$ac_check_lib_save_LIBS
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20166 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20167 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20168 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20173 # Guillermo Gomez says -lposix is necessary on A/UX.
20174 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20175 if test "x$ac_cv_func_remove" = x""yes; then :
20179 if test $ac_cv_func_remove = no; then
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20181 $as_echo_n "checking for remove in -lposix... " >&6; }
20182 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20183 $as_echo_n "(cached) " >&6
20184 else
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lposix $LIBS"
20187 if test x$gcc_no_link = xyes; then
20188 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20193 /* Override any GCC internal prototype to avoid an error.
20194 Use char because int might match the return type of a GCC
20195 builtin and then its argument prototype would still apply. */
20196 #ifdef __cplusplus
20197 extern "C"
20198 #endif
20199 char remove ();
20201 main ()
20203 return remove ();
20205 return 0;
20207 _ACEOF
20208 if ac_fn_c_try_link "$LINENO"; then :
20209 ac_cv_lib_posix_remove=yes
20210 else
20211 ac_cv_lib_posix_remove=no
20213 rm -f core conftest.err conftest.$ac_objext \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20218 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20219 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20225 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20226 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20227 if test "x$ac_cv_func_shmat" = x""yes; then :
20231 if test $ac_cv_func_shmat = no; then
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20233 $as_echo_n "checking for shmat in -lipc... " >&6; }
20234 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20236 else
20237 ac_check_lib_save_LIBS=$LIBS
20238 LIBS="-lipc $LIBS"
20239 if test x$gcc_no_link = xyes; then
20240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char shmat ();
20253 main ()
20255 return shmat ();
20257 return 0;
20259 _ACEOF
20260 if ac_fn_c_try_link "$LINENO"; then :
20261 ac_cv_lib_ipc_shmat=yes
20262 else
20263 ac_cv_lib_ipc_shmat=no
20265 rm -f core conftest.err conftest.$ac_objext \
20266 conftest$ac_exeext conftest.$ac_ext
20267 LIBS=$ac_check_lib_save_LIBS
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20270 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20271 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20278 # Check for libraries that X11R6 Xt/Xaw programs need.
20279 ac_save_LDFLAGS=$LDFLAGS
20280 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20281 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20282 # check for ICE first), but we must link in the order -lSM -lICE or
20283 # we get undefined symbols. So assume we have SM if we have ICE.
20284 # These have to be linked with before -lX11, unlike the other
20285 # libraries we check for below, so use a different variable.
20286 # John Interrante, Karl Berry
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20288 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20289 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20291 else
20292 ac_check_lib_save_LIBS=$LIBS
20293 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20294 if test x$gcc_no_link = xyes; then
20295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20300 /* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20303 #ifdef __cplusplus
20304 extern "C"
20305 #endif
20306 char IceConnectionNumber ();
20308 main ()
20310 return IceConnectionNumber ();
20312 return 0;
20314 _ACEOF
20315 if ac_fn_c_try_link "$LINENO"; then :
20316 ac_cv_lib_ICE_IceConnectionNumber=yes
20317 else
20318 ac_cv_lib_ICE_IceConnectionNumber=no
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20325 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20326 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20327 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20330 LDFLAGS=$ac_save_LDFLAGS
20335 # FIXME: this should be _libs on some hosts.
20336 libsubdir=.libs
20338 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20340 LIBSTDCXXSPEC=
20341 # extra LD Flags which are required for targets
20342 case "${host}" in
20343 *-*-darwin[0-7].*)
20344 # For now we have to disable it on darwin[8-9] because it slows down
20345 # the linking phase. A possible bug in ld?
20346 # on Darwin -single_module speeds up loading of the dynamic libraries.
20347 extra_ldflags_libjava=-Wl,-single_module
20349 *-*-darwin[912]*)
20350 extra_gij_ldflags=-Wl,-allow_stack_execute
20352 arm*linux*eabi)
20353 # Some of the ARM unwinder code is actually in libstdc++. We
20354 # could in principle replicate it in libgcj, but it's better to
20355 # have a dependency on libstdc++.
20356 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20357 LIBSTDCXXSPEC=-lstdc++
20358 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20360 *-*-cygwin)
20361 extra_ldflags_libjava=-liconv
20363 esac
20371 # Allow the GC to be disabled. Can be useful when debugging.
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20373 $as_echo_n "checking for garbage collector to use... " >&6; }
20374 # Check whether --enable-java-gc was given.
20375 if test "${enable_java_gc+set}" = set; then :
20376 enableval=$enable_java_gc; GC=$enableval
20377 else
20378 GC=boehm
20381 GCLIBS=
20382 GCINCS=
20383 GCDEPS=
20384 GCSPEC=
20385 JC1GCSPEC=
20386 GCTESTSPEC=
20387 case "$GC" in
20388 boehm)
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20390 $as_echo "boehm" >&6; }
20391 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20392 JC1GCSPEC='-fuse-boehm-gc'
20393 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20394 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20395 GCOBJS=boehm.lo
20396 GCHDR=boehm-gc.h
20397 # The POSIX thread support needs to know this.
20399 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20404 $as_echo "none" >&6; }
20405 GCHDR=no-gc.h
20408 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20410 esac
20417 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20419 if test "$GC" = boehm; then
20420 USING_BOEHMGC_TRUE=
20421 USING_BOEHMGC_FALSE='#'
20422 else
20423 USING_BOEHMGC_TRUE='#'
20424 USING_BOEHMGC_FALSE=
20427 if test "$GC" = no; then
20428 USING_NOGC_TRUE=
20429 USING_NOGC_FALSE='#'
20430 else
20431 USING_NOGC_TRUE='#'
20432 USING_NOGC_FALSE=
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20438 $as_echo_n "checking for thread model used by GCC... " >&6; }
20439 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20441 $as_echo "$THREADS" >&6; }
20443 case "$THREADS" in
20444 no | none | single)
20445 THREADS=none
20447 aix | posix | posix95 | pthreads)
20448 THREADS=posix
20449 case "$host" in
20450 *-*-linux*)
20452 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20455 esac
20457 win32)
20459 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20460 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20463 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20465 esac
20467 THREADCXXFLAGS=
20468 THREADLDFLAGS=
20469 THREADLIBS=
20470 THREADINCS=
20471 THREADDEPS=
20472 THREADH=
20473 THREADSPEC=
20474 THREADSTARTFILESPEC=
20475 case "$THREADS" in
20476 posix)
20477 case "$host" in
20478 *-*-cygwin*)
20479 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20481 *-*-freebsd[1234]*)
20482 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20483 # merely adds pthread_* functions) but it does have a -pthread switch
20484 # which is required at link-time to select -lc_r *instead* of -lc.
20485 THREADLDFLAGS=-pthread
20486 # Don't set THREADSPEC here as might be expected since -pthread is
20487 # not processed when found within a spec file, it must come from
20488 # the command line. For now, the user must provide the -pthread
20489 # switch to link code compiled with gcj. In future, consider adding
20490 # support for weak references to pthread_* functions ala gthr.h API.
20491 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20493 *-*-freebsd*)
20494 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20495 # systems which support threads and -lpthread.
20496 THREADLDFLAGS=-pthread
20497 THREADSPEC=-lpthread
20499 alpha*-dec-osf* | hppa*-hp-hpux*)
20500 THREADCXXFLAGS=-pthread
20501 # boehm-gc needs some functions from librt, so link that too.
20502 THREADLIBS='-lpthread -lrt'
20503 THREADSPEC='-lpthread -lrt'
20506 THREADLIBS=-lpthread
20507 THREADSPEC=-lpthread
20509 esac
20510 THREADH=posix-threads.h
20511 # MIT pthreads doesn't seem to have the mutexattr functions.
20512 # But for now we don't check for it. We just assume you aren't
20513 # using MIT pthreads.
20515 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20518 # If we're using the Boehm GC, then we happen to know that it
20519 # defines _REENTRANT, so we don't bother. Eww.
20520 if test "$GC" != boehm; then
20522 $as_echo "#define _REENTRANT 1" >>confdefs.h
20526 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20530 win32)
20531 THREADH=win32-threads.h
20532 THREADCXXFLAGS=-mthreads
20533 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20534 # But we do not want the executables created to be dependent on
20535 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20536 # exception handling contexts. The following kludge achieves this effect
20537 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20538 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20539 # A workaround is to explicitly use -mthreads while linking Java programs.
20540 # See PR libgcj/28263.
20542 # FIXME: In Java we are able to detect thread death at the end of
20543 # Thread.run() so we should be able to clean up the exception handling
20544 # contexts ourselves.
20545 THREADSTARTFILESPEC='crtmt%O%s'
20548 none)
20549 THREADH=no-threads.h
20551 esac
20552 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20561 if test "$THREADS" = posix; then
20562 USING_POSIX_THREADS_TRUE=
20563 USING_POSIX_THREADS_FALSE='#'
20564 else
20565 USING_POSIX_THREADS_TRUE='#'
20566 USING_POSIX_THREADS_FALSE=
20569 if test "$THREADS" = win32; then
20570 USING_WIN32_THREADS_TRUE=
20571 USING_WIN32_THREADS_FALSE='#'
20572 else
20573 USING_WIN32_THREADS_TRUE='#'
20574 USING_WIN32_THREADS_FALSE=
20577 if test "$THREADS" = none; then
20578 USING_NO_THREADS_TRUE=
20579 USING_NO_THREADS_FALSE='#'
20580 else
20581 USING_NO_THREADS_TRUE='#'
20582 USING_NO_THREADS_FALSE=
20585 if test "$enable_shared" != yes; then
20586 use_libgcj_bc=no
20588 if test "$use_libgcj_bc" = yes; then
20589 USE_LIBGCJ_BC_TRUE=
20590 USE_LIBGCJ_BC_FALSE='#'
20591 else
20592 USE_LIBGCJ_BC_TRUE='#'
20593 USE_LIBGCJ_BC_FALSE=
20597 if test -d sysdep; then true; else mkdir sysdep; fi
20598 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20600 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20602 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20605 LIBGCJ_SPEC_LGCJ=-lgcj
20606 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20607 if test x"$libgcj_spec_lgcj_override" != x ; then
20608 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20610 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20611 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20613 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20614 if test "$use_libgcj_bc" = yes; then
20615 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20616 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20621 HASH_SYNC_SPEC=
20622 # Hash synchronization is only useful with posix threads right now.
20623 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20624 HASH_SYNC_SPEC=-fhash-synchronization
20626 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20631 if test "$GCC" = yes; then
20632 USING_GCC_TRUE=
20633 USING_GCC_FALSE='#'
20634 else
20635 USING_GCC_TRUE='#'
20636 USING_GCC_FALSE=
20640 # We're in the tree with gcc, and need to include some of its headers.
20641 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20643 if test "x${with_newlib}" = "xyes"; then
20644 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20645 # may not work correctly, because the compiler may not be able to
20646 # link executables.
20648 # We assume newlib. This lets us hard-code the functions we know
20649 # we'll have.
20651 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20654 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20657 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20660 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20663 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20666 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20668 # This is only for POSIX threads.
20670 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20673 # Assume we do not have getuid and friends.
20675 $as_echo "#define NO_GETUID 1" >>confdefs.h
20677 PLATFORMNET=NoNet
20678 else
20679 for ac_func in strerror_r select fstat open fsync sleep opendir \
20680 localtime_r getpwuid_r getcwd \
20681 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20682 nl_langinfo setlocale \
20683 inet_pton uname inet_ntoa \
20684 getrlimit sigaction ftruncate mmap \
20685 getifaddrs
20686 do :
20687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20689 eval as_val=\$$as_ac_var
20690 if test "x$as_val" = x""yes; then :
20691 cat >>confdefs.h <<_ACEOF
20692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20693 _ACEOF
20696 done
20698 for ac_func in inet_aton inet_addr
20699 do :
20700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20702 eval as_val=\$$as_ac_var
20703 if test "x$as_val" = x""yes; then :
20704 cat >>confdefs.h <<_ACEOF
20705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20706 _ACEOF
20707 break
20709 done
20711 for ac_header in unistd.h dlfcn.h sys/resource.h
20712 do :
20713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20715 eval as_val=\$$as_ac_Header
20716 if test "x$as_val" = x""yes; then :
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20719 _ACEOF
20723 done
20725 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20727 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20728 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20729 $as_echo_n "(cached) " >&6
20730 else
20731 ac_check_lib_save_LIBS=$LIBS
20732 LIBS="-ldl $LIBS"
20733 if test x$gcc_no_link = xyes; then
20734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20739 /* Override any GCC internal prototype to avoid an error.
20740 Use char because int might match the return type of a GCC
20741 builtin and then its argument prototype would still apply. */
20742 #ifdef __cplusplus
20743 extern "C"
20744 #endif
20745 char dladdr ();
20747 main ()
20749 return dladdr ();
20751 return 0;
20753 _ACEOF
20754 if ac_fn_c_try_link "$LINENO"; then :
20755 ac_cv_lib_dl_dladdr=yes
20756 else
20757 ac_cv_lib_dl_dladdr=no
20759 rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20761 LIBS=$ac_check_lib_save_LIBS
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20764 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20765 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20768 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20770 else
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20773 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20774 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20775 $as_echo_n "(cached) " >&6
20776 else
20777 ac_check_lib_save_LIBS=$LIBS
20778 LIBS="-ldld $LIBS"
20779 if test x$gcc_no_link = xyes; then
20780 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20783 /* end confdefs.h. */
20785 /* Override any GCC internal prototype to avoid an error.
20786 Use char because int might match the return type of a GCC
20787 builtin and then its argument prototype would still apply. */
20788 #ifdef __cplusplus
20789 extern "C"
20790 #endif
20791 char dladdr ();
20793 main ()
20795 return dladdr ();
20797 return 0;
20799 _ACEOF
20800 if ac_fn_c_try_link "$LINENO"; then :
20801 ac_cv_lib_dld_dladdr=yes
20802 else
20803 ac_cv_lib_dld_dladdr=no
20805 rm -f core conftest.err conftest.$ac_objext \
20806 conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20810 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20811 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20814 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20821 if test x"$cross_compiling" = x"no"; then
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20823 $as_echo_n "checking for /proc/self/exe... " >&6; }
20824 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20825 $as_echo_n "(cached) " >&6
20826 else
20827 test "$cross_compiling" = yes &&
20828 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20829 if test -r "/proc/self/exe"; then
20830 ac_cv_file__proc_self_exe=yes
20831 else
20832 ac_cv_file__proc_self_exe=no
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20836 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20837 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20839 cat >>confdefs.h <<_ACEOF
20840 #define HAVE__PROC_SELF_EXE 1
20841 _ACEOF
20844 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20849 $as_echo_n "checking for /proc/self/maps... " >&6; }
20850 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20851 $as_echo_n "(cached) " >&6
20852 else
20853 test "$cross_compiling" = yes &&
20854 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20855 if test -r "/proc/self/maps"; then
20856 ac_cv_file__proc_self_maps=yes
20857 else
20858 ac_cv_file__proc_self_maps=no
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20862 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20863 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20865 cat >>confdefs.h <<_ACEOF
20866 #define HAVE__PROC_SELF_MAPS 1
20867 _ACEOF
20870 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20874 else
20875 case $host in
20876 *-linux*)
20878 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20881 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20884 esac
20888 if test "X$prefix" = "XNONE"; then
20889 acl_final_prefix="$ac_default_prefix"
20890 else
20891 acl_final_prefix="$prefix"
20893 if test "X$exec_prefix" = "XNONE"; then
20894 acl_final_exec_prefix='${prefix}'
20895 else
20896 acl_final_exec_prefix="$exec_prefix"
20898 acl_save_prefix="$prefix"
20899 prefix="$acl_final_prefix"
20900 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20901 prefix="$acl_save_prefix"
20904 # Check whether --with-gnu-ld was given.
20905 if test "${with_gnu_ld+set}" = set; then :
20906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20907 else
20908 with_gnu_ld=no
20911 # Prepare PATH_SEPARATOR.
20912 # The user is always right.
20913 if test "${PATH_SEPARATOR+set}" != set; then
20914 echo "#! /bin/sh" >conf$$.sh
20915 echo "exit 0" >>conf$$.sh
20916 chmod +x conf$$.sh
20917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20918 PATH_SEPARATOR=';'
20919 else
20920 PATH_SEPARATOR=:
20922 rm -f conf$$.sh
20924 ac_prog=ld
20925 if test "$GCC" = yes; then
20926 # Check if gcc -print-prog-name=ld gives a path.
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20928 $as_echo_n "checking for ld used by GCC... " >&6; }
20929 case $host in
20930 *-*-mingw*)
20931 # gcc leaves a trailing carriage return which upsets mingw
20932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20935 esac
20936 case $ac_prog in
20937 # Accept absolute paths.
20938 [\\/]* | [A-Za-z]:[\\/]*)
20939 re_direlt='/[^/][^/]*/\.\./'
20940 # Canonicalize the path of ld
20941 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20943 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20944 done
20945 test -z "$LD" && LD="$ac_prog"
20948 # If it fails, then pretend we aren't using GCC.
20949 ac_prog=ld
20952 # If it is relative, then search for the first ld in PATH.
20953 with_gnu_ld=unknown
20955 esac
20956 elif test "$with_gnu_ld" = yes; then
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20958 $as_echo_n "checking for GNU ld... " >&6; }
20959 else
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20961 $as_echo_n "checking for non-GNU ld... " >&6; }
20963 if test "${acl_cv_path_LD+set}" = set; then :
20964 $as_echo_n "(cached) " >&6
20965 else
20966 if test -z "$LD"; then
20967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20968 for ac_dir in $PATH; do
20969 test -z "$ac_dir" && ac_dir=.
20970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20971 acl_cv_path_LD="$ac_dir/$ac_prog"
20972 # Check to see if the program is GNU ld. I'd rather use --version,
20973 # but apparently some GNU ld's only accept -v.
20974 # Break only if it was the GNU/non-GNU ld that we prefer.
20975 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20976 test "$with_gnu_ld" != no && break
20977 else
20978 test "$with_gnu_ld" != yes && break
20981 done
20982 IFS="$ac_save_ifs"
20983 else
20984 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20988 LD="$acl_cv_path_LD"
20989 if test -n "$LD"; then
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20991 $as_echo "$LD" >&6; }
20992 else
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20994 $as_echo "no" >&6; }
20996 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20998 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20999 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21000 $as_echo_n "(cached) " >&6
21001 else
21002 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21003 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21004 acl_cv_prog_gnu_ld=yes
21005 else
21006 acl_cv_prog_gnu_ld=no
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21010 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21011 with_gnu_ld=$acl_cv_prog_gnu_ld
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21016 $as_echo_n "checking for shared library run path origin... " >&6; }
21017 if test "${acl_cv_rpath+set}" = set; then :
21018 $as_echo_n "(cached) " >&6
21019 else
21021 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21022 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21023 . ./conftest.sh
21024 rm -f ./conftest.sh
21025 acl_cv_rpath=done
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21029 $as_echo "$acl_cv_rpath" >&6; }
21030 wl="$acl_cv_wl"
21031 libext="$acl_cv_libext"
21032 shlibext="$acl_cv_shlibext"
21033 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21034 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21035 hardcode_direct="$acl_cv_hardcode_direct"
21036 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21037 # Check whether --enable-rpath was given.
21038 if test "${enable_rpath+set}" = set; then :
21039 enableval=$enable_rpath; :
21040 else
21041 enable_rpath=yes
21051 use_additional=yes
21053 acl_save_prefix="$prefix"
21054 prefix="$acl_final_prefix"
21055 acl_save_exec_prefix="$exec_prefix"
21056 exec_prefix="$acl_final_exec_prefix"
21058 eval additional_includedir=\"$includedir\"
21059 eval additional_libdir=\"$libdir\"
21061 exec_prefix="$acl_save_exec_prefix"
21062 prefix="$acl_save_prefix"
21065 # Check whether --with-libiconv-prefix was given.
21066 if test "${with_libiconv_prefix+set}" = set; then :
21067 withval=$with_libiconv_prefix;
21068 if test "X$withval" = "Xno"; then
21069 use_additional=no
21070 else
21071 if test "X$withval" = "X"; then
21073 acl_save_prefix="$prefix"
21074 prefix="$acl_final_prefix"
21075 acl_save_exec_prefix="$exec_prefix"
21076 exec_prefix="$acl_final_exec_prefix"
21078 eval additional_includedir=\"$includedir\"
21079 eval additional_libdir=\"$libdir\"
21081 exec_prefix="$acl_save_exec_prefix"
21082 prefix="$acl_save_prefix"
21084 else
21085 additional_includedir="$withval/include"
21086 additional_libdir="$withval/lib"
21092 LIBICONV=
21093 LTLIBICONV=
21094 INCICONV=
21095 rpathdirs=
21096 ltrpathdirs=
21097 names_already_handled=
21098 names_next_round='iconv '
21099 while test -n "$names_next_round"; do
21100 names_this_round="$names_next_round"
21101 names_next_round=
21102 for name in $names_this_round; do
21103 already_handled=
21104 for n in $names_already_handled; do
21105 if test "$n" = "$name"; then
21106 already_handled=yes
21107 break
21109 done
21110 if test -z "$already_handled"; then
21111 names_already_handled="$names_already_handled $name"
21112 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21113 eval value=\"\$HAVE_LIB$uppername\"
21114 if test -n "$value"; then
21115 if test "$value" = yes; then
21116 eval value=\"\$LIB$uppername\"
21117 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21118 eval value=\"\$LTLIB$uppername\"
21119 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21120 else
21123 else
21124 found_dir=
21125 found_la=
21126 found_so=
21127 found_a=
21128 if test $use_additional = yes; then
21129 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21130 found_dir="$additional_libdir"
21131 found_so="$additional_libdir/lib$name.$shlibext"
21132 if test -f "$additional_libdir/lib$name.la"; then
21133 found_la="$additional_libdir/lib$name.la"
21135 else
21136 if test -f "$additional_libdir/lib$name.$libext"; then
21137 found_dir="$additional_libdir"
21138 found_a="$additional_libdir/lib$name.$libext"
21139 if test -f "$additional_libdir/lib$name.la"; then
21140 found_la="$additional_libdir/lib$name.la"
21145 if test "X$found_dir" = "X"; then
21146 for x in $LDFLAGS $LTLIBICONV; do
21148 acl_save_prefix="$prefix"
21149 prefix="$acl_final_prefix"
21150 acl_save_exec_prefix="$exec_prefix"
21151 exec_prefix="$acl_final_exec_prefix"
21152 eval x=\"$x\"
21153 exec_prefix="$acl_save_exec_prefix"
21154 prefix="$acl_save_prefix"
21156 case "$x" in
21157 -L*)
21158 dir=`echo "X$x" | sed -e 's/^X-L//'`
21159 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21160 found_dir="$dir"
21161 found_so="$dir/lib$name.$shlibext"
21162 if test -f "$dir/lib$name.la"; then
21163 found_la="$dir/lib$name.la"
21165 else
21166 if test -f "$dir/lib$name.$libext"; then
21167 found_dir="$dir"
21168 found_a="$dir/lib$name.$libext"
21169 if test -f "$dir/lib$name.la"; then
21170 found_la="$dir/lib$name.la"
21175 esac
21176 if test "X$found_dir" != "X"; then
21177 break
21179 done
21181 if test "X$found_dir" != "X"; then
21182 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21183 if test "X$found_so" != "X"; then
21184 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21186 else
21187 haveit=
21188 for x in $ltrpathdirs; do
21189 if test "X$x" = "X$found_dir"; then
21190 haveit=yes
21191 break
21193 done
21194 if test -z "$haveit"; then
21195 ltrpathdirs="$ltrpathdirs $found_dir"
21197 if test "$hardcode_direct" = yes; then
21198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21199 else
21200 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21202 haveit=
21203 for x in $rpathdirs; do
21204 if test "X$x" = "X$found_dir"; then
21205 haveit=yes
21206 break
21208 done
21209 if test -z "$haveit"; then
21210 rpathdirs="$rpathdirs $found_dir"
21212 else
21213 haveit=
21214 for x in $LDFLAGS $LIBICONV; do
21216 acl_save_prefix="$prefix"
21217 prefix="$acl_final_prefix"
21218 acl_save_exec_prefix="$exec_prefix"
21219 exec_prefix="$acl_final_exec_prefix"
21220 eval x=\"$x\"
21221 exec_prefix="$acl_save_exec_prefix"
21222 prefix="$acl_save_prefix"
21224 if test "X$x" = "X-L$found_dir"; then
21225 haveit=yes
21226 break
21228 done
21229 if test -z "$haveit"; then
21230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21232 if test "$hardcode_minus_L" != no; then
21233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21234 else
21235 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21240 else
21241 if test "X$found_a" != "X"; then
21242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21243 else
21244 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21247 additional_includedir=
21248 case "$found_dir" in
21249 */lib | */lib/)
21250 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21251 additional_includedir="$basedir/include"
21253 esac
21254 if test "X$additional_includedir" != "X"; then
21255 if test "X$additional_includedir" != "X/usr/include"; then
21256 haveit=
21257 if test "X$additional_includedir" = "X/usr/local/include"; then
21258 if test -n "$GCC"; then
21259 case $host_os in
21260 linux*) haveit=yes;;
21261 esac
21264 if test -z "$haveit"; then
21265 for x in $CPPFLAGS $INCICONV; do
21267 acl_save_prefix="$prefix"
21268 prefix="$acl_final_prefix"
21269 acl_save_exec_prefix="$exec_prefix"
21270 exec_prefix="$acl_final_exec_prefix"
21271 eval x=\"$x\"
21272 exec_prefix="$acl_save_exec_prefix"
21273 prefix="$acl_save_prefix"
21275 if test "X$x" = "X-I$additional_includedir"; then
21276 haveit=yes
21277 break
21279 done
21280 if test -z "$haveit"; then
21281 if test -d "$additional_includedir"; then
21282 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21288 if test -n "$found_la"; then
21289 save_libdir="$libdir"
21290 case "$found_la" in
21291 */* | *\\*) . "$found_la" ;;
21292 *) . "./$found_la" ;;
21293 esac
21294 libdir="$save_libdir"
21295 for dep in $dependency_libs; do
21296 case "$dep" in
21297 -L*)
21298 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21299 if test "X$additional_libdir" != "X/usr/lib"; then
21300 haveit=
21301 if test "X$additional_libdir" = "X/usr/local/lib"; then
21302 if test -n "$GCC"; then
21303 case $host_os in
21304 linux*) haveit=yes;;
21305 esac
21308 if test -z "$haveit"; then
21309 haveit=
21310 for x in $LDFLAGS $LIBICONV; do
21312 acl_save_prefix="$prefix"
21313 prefix="$acl_final_prefix"
21314 acl_save_exec_prefix="$exec_prefix"
21315 exec_prefix="$acl_final_exec_prefix"
21316 eval x=\"$x\"
21317 exec_prefix="$acl_save_exec_prefix"
21318 prefix="$acl_save_prefix"
21320 if test "X$x" = "X-L$additional_libdir"; then
21321 haveit=yes
21322 break
21324 done
21325 if test -z "$haveit"; then
21326 if test -d "$additional_libdir"; then
21327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21330 haveit=
21331 for x in $LDFLAGS $LTLIBICONV; do
21333 acl_save_prefix="$prefix"
21334 prefix="$acl_final_prefix"
21335 acl_save_exec_prefix="$exec_prefix"
21336 exec_prefix="$acl_final_exec_prefix"
21337 eval x=\"$x\"
21338 exec_prefix="$acl_save_exec_prefix"
21339 prefix="$acl_save_prefix"
21341 if test "X$x" = "X-L$additional_libdir"; then
21342 haveit=yes
21343 break
21345 done
21346 if test -z "$haveit"; then
21347 if test -d "$additional_libdir"; then
21348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21354 -R*)
21355 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21356 if test "$enable_rpath" != no; then
21357 haveit=
21358 for x in $rpathdirs; do
21359 if test "X$x" = "X$dir"; then
21360 haveit=yes
21361 break
21363 done
21364 if test -z "$haveit"; then
21365 rpathdirs="$rpathdirs $dir"
21367 haveit=
21368 for x in $ltrpathdirs; do
21369 if test "X$x" = "X$dir"; then
21370 haveit=yes
21371 break
21373 done
21374 if test -z "$haveit"; then
21375 ltrpathdirs="$ltrpathdirs $dir"
21379 -l*)
21380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21382 *.la)
21383 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21386 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21389 esac
21390 done
21392 else
21393 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21398 done
21399 done
21400 if test "X$rpathdirs" != "X"; then
21401 if test -n "$hardcode_libdir_separator"; then
21402 alldirs=
21403 for found_dir in $rpathdirs; do
21404 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21405 done
21406 acl_save_libdir="$libdir"
21407 libdir="$alldirs"
21408 eval flag=\"$hardcode_libdir_flag_spec\"
21409 libdir="$acl_save_libdir"
21410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21411 else
21412 for found_dir in $rpathdirs; do
21413 acl_save_libdir="$libdir"
21414 libdir="$found_dir"
21415 eval flag=\"$hardcode_libdir_flag_spec\"
21416 libdir="$acl_save_libdir"
21417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21418 done
21421 if test "X$ltrpathdirs" != "X"; then
21422 for found_dir in $ltrpathdirs; do
21423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21424 done
21433 am_save_CPPFLAGS="$CPPFLAGS"
21435 for element in $INCICONV; do
21436 haveit=
21437 for x in $CPPFLAGS; do
21439 acl_save_prefix="$prefix"
21440 prefix="$acl_final_prefix"
21441 acl_save_exec_prefix="$exec_prefix"
21442 exec_prefix="$acl_final_exec_prefix"
21443 eval x=\"$x\"
21444 exec_prefix="$acl_save_exec_prefix"
21445 prefix="$acl_save_prefix"
21447 if test "X$x" = "X$element"; then
21448 haveit=yes
21449 break
21451 done
21452 if test -z "$haveit"; then
21453 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21455 done
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21459 $as_echo_n "checking for iconv... " >&6; }
21460 if test "${am_cv_func_iconv+set}" = set; then :
21461 $as_echo_n "(cached) " >&6
21462 else
21464 am_cv_func_iconv="no, consider installing GNU libiconv"
21465 am_cv_lib_iconv=no
21466 if test x$gcc_no_link = xyes; then
21467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21471 #include <stdlib.h>
21472 #include <iconv.h>
21474 main ()
21476 iconv_t cd = iconv_open("","");
21477 iconv(cd,NULL,NULL,NULL,NULL);
21478 iconv_close(cd);
21480 return 0;
21482 _ACEOF
21483 if ac_fn_c_try_link "$LINENO"; then :
21484 am_cv_func_iconv=yes
21486 rm -f core conftest.err conftest.$ac_objext \
21487 conftest$ac_exeext conftest.$ac_ext
21488 if test "$am_cv_func_iconv" != yes; then
21489 am_save_LIBS="$LIBS"
21490 LIBS="$LIBS $LIBICONV"
21491 if test x$gcc_no_link = xyes; then
21492 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21495 /* end confdefs.h. */
21496 #include <stdlib.h>
21497 #include <iconv.h>
21499 main ()
21501 iconv_t cd = iconv_open("","");
21502 iconv(cd,NULL,NULL,NULL,NULL);
21503 iconv_close(cd);
21505 return 0;
21507 _ACEOF
21508 if ac_fn_c_try_link "$LINENO"; then :
21509 am_cv_lib_iconv=yes
21510 am_cv_func_iconv=yes
21512 rm -f core conftest.err conftest.$ac_objext \
21513 conftest$ac_exeext conftest.$ac_ext
21514 LIBS="$am_save_LIBS"
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21519 $as_echo "$am_cv_func_iconv" >&6; }
21520 if test "$am_cv_func_iconv" = yes; then
21522 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21525 if test "$am_cv_lib_iconv" = yes; then
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21527 $as_echo_n "checking how to link with libiconv... " >&6; }
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21529 $as_echo "$LIBICONV" >&6; }
21530 else
21531 CPPFLAGS="$am_save_CPPFLAGS"
21532 LIBICONV=
21533 LTLIBICONV=
21538 if test "$am_cv_func_iconv" = yes; then
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21540 $as_echo_n "checking for iconv declaration... " >&6; }
21541 if test "${am_cv_proto_iconv+set}" = set; then :
21542 $as_echo_n "(cached) " >&6
21543 else
21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h. */
21548 #include <stdlib.h>
21549 #include <iconv.h>
21550 extern
21551 #ifdef __cplusplus
21553 #endif
21554 #if defined(__STDC__) || defined(__cplusplus)
21555 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21556 #else
21557 size_t iconv();
21558 #endif
21561 main ()
21565 return 0;
21567 _ACEOF
21568 if ac_fn_c_try_compile "$LINENO"; then :
21569 am_cv_proto_iconv_arg1=""
21570 else
21571 am_cv_proto_iconv_arg1="const"
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574 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);"
21577 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21579 }$am_cv_proto_iconv" >&5
21580 $as_echo "${ac_t:-
21581 }$am_cv_proto_iconv" >&6; }
21583 cat >>confdefs.h <<_ACEOF
21584 #define ICONV_CONST $am_cv_proto_iconv_arg1
21585 _ACEOF
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21591 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21592 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21594 else
21595 if test x$gcc_no_link = xyes; then
21596 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21599 /* end confdefs.h. */
21600 #include <locale.h>
21602 main ()
21604 return LC_MESSAGES
21606 return 0;
21608 _ACEOF
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 am_cv_val_LC_MESSAGES=yes
21611 else
21612 am_cv_val_LC_MESSAGES=no
21614 rm -f core conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21618 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21619 if test $am_cv_val_LC_MESSAGES = yes; then
21621 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21626 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21627 if test "${ac_cv_struct_tm+set}" = set; then :
21628 $as_echo_n "(cached) " >&6
21629 else
21630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h. */
21632 #include <sys/types.h>
21633 #include <time.h>
21636 main ()
21638 struct tm tm;
21639 int *p = &tm.tm_sec;
21640 return !p;
21642 return 0;
21644 _ACEOF
21645 if ac_fn_c_try_compile "$LINENO"; then :
21646 ac_cv_struct_tm=time.h
21647 else
21648 ac_cv_struct_tm=sys/time.h
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21653 $as_echo "$ac_cv_struct_tm" >&6; }
21654 if test $ac_cv_struct_tm = sys/time.h; then
21656 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21660 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21661 #include <$ac_cv_struct_tm>
21664 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21666 cat >>confdefs.h <<_ACEOF
21667 #define HAVE_STRUCT_TM_TM_ZONE 1
21668 _ACEOF
21673 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21675 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21677 else
21678 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21680 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21681 ac_have_decl=1
21682 else
21683 ac_have_decl=0
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_DECL_TZNAME $ac_have_decl
21688 _ACEOF
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21691 $as_echo_n "checking for tzname... " >&6; }
21692 if test "${ac_cv_var_tzname+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 if test x$gcc_no_link = xyes; then
21696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699 /* end confdefs.h. */
21700 #include <time.h>
21701 #if !HAVE_DECL_TZNAME
21702 extern char *tzname[];
21703 #endif
21706 main ()
21708 return tzname[0][0];
21710 return 0;
21712 _ACEOF
21713 if ac_fn_c_try_link "$LINENO"; then :
21714 ac_cv_var_tzname=yes
21715 else
21716 ac_cv_var_tzname=no
21718 rm -f core conftest.err conftest.$ac_objext \
21719 conftest$ac_exeext conftest.$ac_ext
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21722 $as_echo "$ac_cv_var_tzname" >&6; }
21723 if test $ac_cv_var_tzname = yes; then
21725 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21731 for ac_func in gethostbyname_r
21732 do :
21733 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21734 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_GETHOSTBYNAME_R 1
21737 _ACEOF
21740 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21742 # There are two different kinds of gethostbyname_r.
21743 # We look for the one that returns `int'.
21744 # Hopefully this check is robust enough.
21745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21746 /* end confdefs.h. */
21747 #include <netdb.h>
21749 _ACEOF
21750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21751 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21754 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21757 rm -f conftest*
21760 case " $GCINCS " in
21761 *" -D_REENTRANT "*) ;;
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21764 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21765 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21767 else
21768 ac_ext=cpp
21769 ac_cpp='$CXXCPP $CPPFLAGS'
21770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21775 /* end confdefs.h. */
21776 #include <netdb.h>
21778 main ()
21780 gethostbyname_r("", 0, 0);
21782 return 0;
21784 _ACEOF
21785 if ac_fn_cxx_try_compile "$LINENO"; then :
21786 libjava_cv_gethostbyname_r_needs_reentrant=no
21787 else
21788 CPPFLAGS_SAVE="$CPPFLAGS"
21789 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21791 /* end confdefs.h. */
21792 #include <netdb.h>
21794 main ()
21796 gethostbyname_r("", 0, 0);
21798 return 0;
21800 _ACEOF
21801 if ac_fn_cxx_try_compile "$LINENO"; then :
21802 libjava_cv_gethostbyname_r_needs_reentrant=yes
21803 else
21804 libjava_cv_gethostbyname_r_needs_reentrant=fail
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 CPPFLAGS="$CPPFLAGS_SAVE"
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 ac_ext=c
21812 ac_cpp='$CPP $CPPFLAGS'
21813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21820 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21821 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21823 $as_echo "#define _REENTRANT 1" >>confdefs.h
21827 esac
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21830 $as_echo_n "checking for struct hostent_data... " >&6; }
21831 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21832 $as_echo_n "(cached) " >&6
21833 else
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21837 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21838 # define _REENTRANT 1
21839 #endif
21840 #include <netdb.h>
21842 main ()
21844 struct hostent_data data;
21846 return 0;
21848 _ACEOF
21849 if ac_fn_c_try_compile "$LINENO"; then :
21850 libjava_cv_struct_hostent_data=yes
21851 else
21852 libjava_cv_struct_hostent_data=no
21854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21857 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21858 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21860 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21865 done
21868 # FIXME: libjava source code expects to find a prototype for
21869 # gethostbyaddr_r in netdb.h. The outer check ensures that
21870 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21871 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21872 # linkage check is enough, yet C++ code requires proper prototypes.)
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21875 #include <netdb.h>
21877 _ACEOF
21878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21879 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21881 for ac_func in gethostbyaddr_r
21882 do :
21883 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21884 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21885 cat >>confdefs.h <<_ACEOF
21886 #define HAVE_GETHOSTBYADDR_R 1
21887 _ACEOF
21890 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21892 # There are two different kinds of gethostbyaddr_r.
21893 # We look for the one that returns `int'.
21894 # Hopefully this check is robust enough.
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21897 #include <netdb.h>
21899 _ACEOF
21900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21901 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21904 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21907 rm -f conftest*
21910 done
21913 rm -f conftest*
21916 for ac_func in gethostname
21917 do :
21918 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21919 if test "x$ac_cv_func_gethostname" = x""yes; then :
21920 cat >>confdefs.h <<_ACEOF
21921 #define HAVE_GETHOSTNAME 1
21922 _ACEOF
21925 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21929 #include <unistd.h>
21931 _ACEOF
21932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21933 $EGREP "gethostname" >/dev/null 2>&1; then :
21936 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21939 rm -f conftest*
21942 done
21945 for ac_func in usleep
21946 do :
21947 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21948 if test "x$ac_cv_func_usleep" = x""yes; then :
21949 cat >>confdefs.h <<_ACEOF
21950 #define HAVE_USLEEP 1
21951 _ACEOF
21953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21955 #include <unistd.h>
21957 _ACEOF
21958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21959 $EGREP "usleep" >/dev/null 2>&1; then :
21962 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21965 rm -f conftest*
21968 done
21971 # Look for these functions in the thread library, but only bother
21972 # if using POSIX threads.
21973 if test "$THREADS" = posix; then
21974 save_LIBS="$LIBS"
21975 LIBS="$LIBS $THREADLIBS"
21977 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21978 # Solaris 7 the name librt is preferred.
21979 for ac_func in sched_yield
21980 do :
21981 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21982 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21983 cat >>confdefs.h <<_ACEOF
21984 #define HAVE_SCHED_YIELD 1
21985 _ACEOF
21987 else
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21990 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21991 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21992 $as_echo_n "(cached) " >&6
21993 else
21994 ac_check_lib_save_LIBS=$LIBS
21995 LIBS="-lrt $LIBS"
21996 if test x$gcc_no_link = xyes; then
21997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22002 /* Override any GCC internal prototype to avoid an error.
22003 Use char because int might match the return type of a GCC
22004 builtin and then its argument prototype would still apply. */
22005 #ifdef __cplusplus
22006 extern "C"
22007 #endif
22008 char sched_yield ();
22010 main ()
22012 return sched_yield ();
22014 return 0;
22016 _ACEOF
22017 if ac_fn_c_try_link "$LINENO"; then :
22018 ac_cv_lib_rt_sched_yield=yes
22019 else
22020 ac_cv_lib_rt_sched_yield=no
22022 rm -f core conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024 LIBS=$ac_check_lib_save_LIBS
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22027 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22028 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22030 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22032 THREADLIBS="$THREADLIBS -lrt"
22033 THREADSPEC="$THREADSPEC -lrt"
22034 else
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22037 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22038 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22039 $as_echo_n "(cached) " >&6
22040 else
22041 ac_check_lib_save_LIBS=$LIBS
22042 LIBS="-lposix4 $LIBS"
22043 if test x$gcc_no_link = xyes; then
22044 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22049 /* Override any GCC internal prototype to avoid an error.
22050 Use char because int might match the return type of a GCC
22051 builtin and then its argument prototype would still apply. */
22052 #ifdef __cplusplus
22053 extern "C"
22054 #endif
22055 char sched_yield ();
22057 main ()
22059 return sched_yield ();
22061 return 0;
22063 _ACEOF
22064 if ac_fn_c_try_link "$LINENO"; then :
22065 ac_cv_lib_posix4_sched_yield=yes
22066 else
22067 ac_cv_lib_posix4_sched_yield=no
22069 rm -f core conftest.err conftest.$ac_objext \
22070 conftest$ac_exeext conftest.$ac_ext
22071 LIBS=$ac_check_lib_save_LIBS
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22074 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22075 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22077 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22079 THREADLIBS="$THREADLIBS -lposix4"
22080 THREADSPEC="$THREADSPEC -lposix4"
22086 done
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22090 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22091 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22092 $as_echo_n "(cached) " >&6
22093 else
22094 ac_check_lib_save_LIBS=$LIBS
22095 LIBS="-lrt $LIBS"
22096 if test x$gcc_no_link = xyes; then
22097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22100 /* end confdefs.h. */
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22105 #ifdef __cplusplus
22106 extern "C"
22107 #endif
22108 char clock_gettime ();
22110 main ()
22112 return clock_gettime ();
22114 return 0;
22116 _ACEOF
22117 if ac_fn_c_try_link "$LINENO"; then :
22118 ac_cv_lib_rt_clock_gettime=yes
22119 else
22120 ac_cv_lib_rt_clock_gettime=no
22122 rm -f core conftest.err conftest.$ac_objext \
22123 conftest$ac_exeext conftest.$ac_ext
22124 LIBS=$ac_check_lib_save_LIBS
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22127 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22128 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22131 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22133 case "$THREADSPEC" in
22134 *-lrt*) ;;
22136 THREADSPEC="$THREADSPEC -lrt"
22137 THREADLIBS="$THREADLIBS -lrt"
22139 esac
22143 LIBS="$save_LIBS"
22145 # We can save a little space at runtime if the mutex has m_count
22146 # or __m_count. This is a nice hack for Linux.
22147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22148 /* end confdefs.h. */
22149 #include <pthread.h>
22151 main ()
22154 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22157 return 0;
22159 _ACEOF
22160 if ac_fn_c_try_compile "$LINENO"; then :
22162 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22164 else
22166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* end confdefs.h. */
22168 #include <pthread.h>
22170 main ()
22173 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22176 return 0;
22178 _ACEOF
22179 if ac_fn_c_try_compile "$LINENO"; then :
22181 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189 # We require a way to get the time.
22190 time_found=no
22191 for ac_func in gettimeofday time ftime
22192 do :
22193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22194 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22195 eval as_val=\$$as_ac_var
22196 if test "x$as_val" = x""yes; then :
22197 cat >>confdefs.h <<_ACEOF
22198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22199 _ACEOF
22200 time_found=yes
22202 done
22204 if test "$time_found" = no; then
22205 as_fn_error "no function found to get the time" "$LINENO" 5
22208 for ac_func in memmove
22209 do :
22210 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22211 if test "x$ac_cv_func_memmove" = x""yes; then :
22212 cat >>confdefs.h <<_ACEOF
22213 #define HAVE_MEMMOVE 1
22214 _ACEOF
22217 done
22220 # We require memcpy.
22221 memcpy_found=no
22222 for ac_func in memcpy
22223 do :
22224 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22225 if test "x$ac_cv_func_memcpy" = x""yes; then :
22226 cat >>confdefs.h <<_ACEOF
22227 #define HAVE_MEMCPY 1
22228 _ACEOF
22229 memcpy_found=yes
22231 done
22233 if test "$memcpy_found" = no; then
22234 as_fn_error "memcpy is required" "$LINENO" 5
22236 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22241 else
22242 ac_check_lib_save_LIBS=$LIBS
22243 LIBS="-ldl $LIBS"
22244 if test x$gcc_no_link = xyes; then
22245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22248 /* end confdefs.h. */
22250 /* Override any GCC internal prototype to avoid an error.
22251 Use char because int might match the return type of a GCC
22252 builtin and then its argument prototype would still apply. */
22253 #ifdef __cplusplus
22254 extern "C"
22255 #endif
22256 char dlopen ();
22258 main ()
22260 return dlopen ();
22262 return 0;
22264 _ACEOF
22265 if ac_fn_c_try_link "$LINENO"; then :
22266 ac_cv_lib_dl_dlopen=yes
22267 else
22268 ac_cv_lib_dl_dlopen=no
22270 rm -f core conftest.err conftest.$ac_objext \
22271 conftest$ac_exeext conftest.$ac_ext
22272 LIBS=$ac_check_lib_save_LIBS
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22275 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22276 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22279 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22281 else
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22284 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22285 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22286 $as_echo_n "(cached) " >&6
22287 else
22288 ac_check_lib_save_LIBS=$LIBS
22289 LIBS="-ldld $LIBS"
22290 if test x$gcc_no_link = xyes; then
22291 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22294 /* end confdefs.h. */
22296 /* Override any GCC internal prototype to avoid an error.
22297 Use char because int might match the return type of a GCC
22298 builtin and then its argument prototype would still apply. */
22299 #ifdef __cplusplus
22300 extern "C"
22301 #endif
22302 char dlopen ();
22304 main ()
22306 return dlopen ();
22308 return 0;
22310 _ACEOF
22311 if ac_fn_c_try_link "$LINENO"; then :
22312 ac_cv_lib_dld_dlopen=yes
22313 else
22314 ac_cv_lib_dld_dlopen=no
22316 rm -f core conftest.err conftest.$ac_objext \
22317 conftest$ac_exeext conftest.$ac_ext
22318 LIBS=$ac_check_lib_save_LIBS
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22321 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22322 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22325 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22332 # Some library-finding code we stole from Tcl.
22333 #--------------------------------------------------------------------
22334 # Check for the existence of the -lsocket and -lnsl libraries.
22335 # The order here is important, so that they end up in the right
22336 # order in the command line generated by make. Here are some
22337 # special considerations:
22338 # 1. Use "connect" and "accept" to check for -lsocket, and
22339 # "gethostbyname" to check for -lnsl.
22340 # 2. Use each function name only once: can't redo a check because
22341 # autoconf caches the results of the last check and won't redo it.
22342 # 3. Use -lnsl and -lsocket only if they supply procedures that
22343 # aren't already present in the normal libraries. This is because
22344 # IRIX 5.2 has libraries, but they aren't needed and they're
22345 # bogus: they goof up name resolution if used.
22346 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22347 # To get around this problem, check for both libraries together
22348 # if -lsocket doesn't work by itself.
22349 #--------------------------------------------------------------------
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22352 $as_echo_n "checking for socket libraries... " >&6; }
22353 if test "${gcj_cv_lib_sockets+set}" = set; then :
22354 $as_echo_n "(cached) " >&6
22355 else
22356 gcj_cv_lib_sockets=
22357 gcj_checkBoth=0
22358 unset ac_cv_func_connect
22359 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22360 if test "x$ac_cv_func_connect" = x""yes; then :
22361 gcj_checkSocket=0
22362 else
22363 gcj_checkSocket=1
22366 if test "$gcj_checkSocket" = 1; then
22367 unset ac_cv_func_connect
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22369 $as_echo_n "checking for main in -lsocket... " >&6; }
22370 if test "${ac_cv_lib_socket_main+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22372 else
22373 ac_check_lib_save_LIBS=$LIBS
22374 LIBS="-lsocket $LIBS"
22375 if test x$gcc_no_link = xyes; then
22376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22383 main ()
22385 return main ();
22387 return 0;
22389 _ACEOF
22390 if ac_fn_c_try_link "$LINENO"; then :
22391 ac_cv_lib_socket_main=yes
22392 else
22393 ac_cv_lib_socket_main=no
22395 rm -f core conftest.err conftest.$ac_objext \
22396 conftest$ac_exeext conftest.$ac_ext
22397 LIBS=$ac_check_lib_save_LIBS
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22400 $as_echo "$ac_cv_lib_socket_main" >&6; }
22401 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22402 gcj_cv_lib_sockets="-lsocket"
22403 else
22404 gcj_checkBoth=1
22408 if test "$gcj_checkBoth" = 1; then
22409 gcj_oldLibs=$LIBS
22410 LIBS="$LIBS -lsocket -lnsl"
22411 unset ac_cv_func_accept
22412 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22413 if test "x$ac_cv_func_accept" = x""yes; then :
22414 gcj_checkNsl=0
22415 gcj_cv_lib_sockets="-lsocket -lnsl"
22418 unset ac_cv_func_accept
22419 LIBS=$gcj_oldLibs
22421 unset ac_cv_func_gethostbyname
22422 gcj_oldLibs=$LIBS
22423 LIBS="$LIBS $gcj_cv_lib_sockets"
22424 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22425 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22427 else
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22429 $as_echo_n "checking for main in -lnsl... " >&6; }
22430 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 ac_check_lib_save_LIBS=$LIBS
22434 LIBS="-lnsl $LIBS"
22435 if test x$gcc_no_link = xyes; then
22436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22439 /* end confdefs.h. */
22443 main ()
22445 return main ();
22447 return 0;
22449 _ACEOF
22450 if ac_fn_c_try_link "$LINENO"; then :
22451 ac_cv_lib_nsl_main=yes
22452 else
22453 ac_cv_lib_nsl_main=no
22455 rm -f core conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22457 LIBS=$ac_check_lib_save_LIBS
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22460 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22461 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22462 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22467 unset ac_cv_func_gethostbyname
22468 LIBS=$gcj_oldLIBS
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22472 $as_echo "$gcj_cv_lib_sockets" >&6; }
22473 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22475 if test "$with_system_zlib" = yes; then
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22477 $as_echo_n "checking for deflate in -lz... " >&6; }
22478 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22480 else
22481 ac_check_lib_save_LIBS=$LIBS
22482 LIBS="-lz $LIBS"
22483 if test x$gcc_no_link = xyes; then
22484 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h. */
22489 /* Override any GCC internal prototype to avoid an error.
22490 Use char because int might match the return type of a GCC
22491 builtin and then its argument prototype would still apply. */
22492 #ifdef __cplusplus
22493 extern "C"
22494 #endif
22495 char deflate ();
22497 main ()
22499 return deflate ();
22501 return 0;
22503 _ACEOF
22504 if ac_fn_c_try_link "$LINENO"; then :
22505 ac_cv_lib_z_deflate=yes
22506 else
22507 ac_cv_lib_z_deflate=no
22509 rm -f core conftest.err conftest.$ac_objext \
22510 conftest$ac_exeext conftest.$ac_ext
22511 LIBS=$ac_check_lib_save_LIBS
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22514 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22515 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22516 ZLIBSPEC=-lz
22517 else
22518 ZLIBSPEC=
22523 # Test for Gtk stuff, if asked for.
22524 if test "$use_gtk_awt" = yes; then
22526 succeeded=no
22528 if test -z "$PKG_CONFIG"; then
22529 # Extract the first word of "pkg-config", so it can be a program name with args.
22530 set dummy pkg-config; ac_word=$2
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22532 $as_echo_n "checking for $ac_word... " >&6; }
22533 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22535 else
22536 case $PKG_CONFIG in
22537 [\\/]* | ?:[\\/]*)
22538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22542 for as_dir in $PATH
22544 IFS=$as_save_IFS
22545 test -z "$as_dir" && as_dir=.
22546 for ac_exec_ext in '' $ac_executable_extensions; do
22547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22550 break 2
22552 done
22553 done
22554 IFS=$as_save_IFS
22556 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22558 esac
22560 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22561 if test -n "$PKG_CONFIG"; then
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22563 $as_echo "$PKG_CONFIG" >&6; }
22564 else
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22566 $as_echo "no" >&6; }
22572 if test "$PKG_CONFIG" = "no" ; then
22573 echo "*** The pkg-config script could not be found. Make sure it is"
22574 echo "*** in your path, or set the PKG_CONFIG environment variable"
22575 echo "*** to the full path to pkg-config."
22576 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22577 else
22578 PKG_CONFIG_MIN_VERSION=0.9.0
22579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22581 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22583 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22585 $as_echo "yes" >&6; }
22586 succeeded=yes
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22589 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22590 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22592 $as_echo "$GTK_CFLAGS" >&6; }
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22595 $as_echo_n "checking GTK_LIBS... " >&6; }
22596 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22598 $as_echo "$GTK_LIBS" >&6; }
22599 else
22600 GTK_CFLAGS=""
22601 GTK_LIBS=""
22602 ## If we have a custom action on failure, don't print errors, but
22603 ## do set a variable so people can do so.
22604 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22605 echo $GTK_PKG_ERRORS
22610 else
22611 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22612 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22616 if test $succeeded = yes; then
22618 else
22619 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
22626 succeeded=no
22628 if test -z "$PKG_CONFIG"; then
22629 # Extract the first word of "pkg-config", so it can be a program name with args.
22630 set dummy pkg-config; ac_word=$2
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22632 $as_echo_n "checking for $ac_word... " >&6; }
22633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22635 else
22636 case $PKG_CONFIG in
22637 [\\/]* | ?:[\\/]*)
22638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22642 for as_dir in $PATH
22644 IFS=$as_save_IFS
22645 test -z "$as_dir" && as_dir=.
22646 for ac_exec_ext in '' $ac_executable_extensions; do
22647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22650 break 2
22652 done
22653 done
22654 IFS=$as_save_IFS
22656 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22658 esac
22660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22661 if test -n "$PKG_CONFIG"; then
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22663 $as_echo "$PKG_CONFIG" >&6; }
22664 else
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22666 $as_echo "no" >&6; }
22672 if test "$PKG_CONFIG" = "no" ; then
22673 echo "*** The pkg-config script could not be found. Make sure it is"
22674 echo "*** in your path, or set the PKG_CONFIG environment variable"
22675 echo "*** to the full path to pkg-config."
22676 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22677 else
22678 PKG_CONFIG_MIN_VERSION=0.9.0
22679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22681 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22683 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22685 $as_echo "yes" >&6; }
22686 succeeded=yes
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22689 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22690 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22692 $as_echo "$GLIB_CFLAGS" >&6; }
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22695 $as_echo_n "checking GLIB_LIBS... " >&6; }
22696 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22698 $as_echo "$GLIB_LIBS" >&6; }
22699 else
22700 GLIB_CFLAGS=""
22701 GLIB_LIBS=""
22702 ## If we have a custom action on failure, don't print errors, but
22703 ## do set a variable so people can do so.
22704 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22705 echo $GLIB_PKG_ERRORS
22710 else
22711 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22712 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22716 if test $succeeded = yes; then
22718 else
22719 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
22726 succeeded=no
22728 if test -z "$PKG_CONFIG"; then
22729 # Extract the first word of "pkg-config", so it can be a program name with args.
22730 set dummy pkg-config; ac_word=$2
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22732 $as_echo_n "checking for $ac_word... " >&6; }
22733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22734 $as_echo_n "(cached) " >&6
22735 else
22736 case $PKG_CONFIG in
22737 [\\/]* | ?:[\\/]*)
22738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22742 for as_dir in $PATH
22744 IFS=$as_save_IFS
22745 test -z "$as_dir" && as_dir=.
22746 for ac_exec_ext in '' $ac_executable_extensions; do
22747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22750 break 2
22752 done
22753 done
22754 IFS=$as_save_IFS
22756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22758 esac
22760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22761 if test -n "$PKG_CONFIG"; then
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22763 $as_echo "$PKG_CONFIG" >&6; }
22764 else
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22766 $as_echo "no" >&6; }
22772 if test "$PKG_CONFIG" = "no" ; then
22773 echo "*** The pkg-config script could not be found. Make sure it is"
22774 echo "*** in your path, or set the PKG_CONFIG environment variable"
22775 echo "*** to the full path to pkg-config."
22776 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22777 else
22778 PKG_CONFIG_MIN_VERSION=0.9.0
22779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22781 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22783 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22785 $as_echo "yes" >&6; }
22786 succeeded=yes
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22789 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22790 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22792 $as_echo "$LIBART_CFLAGS" >&6; }
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22795 $as_echo_n "checking LIBART_LIBS... " >&6; }
22796 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22798 $as_echo "$LIBART_LIBS" >&6; }
22799 else
22800 LIBART_CFLAGS=""
22801 LIBART_LIBS=""
22802 ## If we have a custom action on failure, don't print errors, but
22803 ## do set a variable so people can do so.
22804 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22805 echo $LIBART_PKG_ERRORS
22810 else
22811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22816 if test $succeeded = yes; then
22818 else
22819 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
22825 # We require the XTest Extension to support java.awt.Robot.
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22827 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22828 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22831 ac_check_lib_save_LIBS=$LIBS
22832 LIBS="-lXtst ${X_LIBS} $LIBS"
22833 if test x$gcc_no_link = xyes; then
22834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22839 /* Override any GCC internal prototype to avoid an error.
22840 Use char because int might match the return type of a GCC
22841 builtin and then its argument prototype would still apply. */
22842 #ifdef __cplusplus
22843 extern "C"
22844 #endif
22845 char XTestQueryExtension ();
22847 main ()
22849 return XTestQueryExtension ();
22851 return 0;
22853 _ACEOF
22854 if ac_fn_c_try_link "$LINENO"; then :
22855 ac_cv_lib_Xtst_XTestQueryExtension=yes
22856 else
22857 ac_cv_lib_Xtst_XTestQueryExtension=no
22859 rm -f core conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22861 LIBS=$ac_check_lib_save_LIBS
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22864 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22865 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22866 true
22867 else
22868 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22873 # On Solaris, and maybe other architectures, the Boehm collector
22874 # requires -ldl.
22875 if test "$GC" = boehm; then
22876 case "${host}" in
22877 mips-sgi-irix6*)
22878 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22879 # libgcj.spec is used, so override here
22880 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22884 $as_echo_n "checking for main in -ldl... " >&6; }
22885 if test "${ac_cv_lib_dl_main+set}" = set; then :
22886 $as_echo_n "(cached) " >&6
22887 else
22888 ac_check_lib_save_LIBS=$LIBS
22889 LIBS="-ldl $LIBS"
22890 if test x$gcc_no_link = xyes; then
22891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22894 /* end confdefs.h. */
22898 main ()
22900 return main ();
22902 return 0;
22904 _ACEOF
22905 if ac_fn_c_try_link "$LINENO"; then :
22906 ac_cv_lib_dl_main=yes
22907 else
22908 ac_cv_lib_dl_main=no
22910 rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22915 $as_echo "$ac_cv_lib_dl_main" >&6; }
22916 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22917 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22921 esac
22925 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22926 case $build in
22927 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22928 *) CLASSPATH_SEPARATOR=':' ;;
22929 esac
22932 # We must search the source tree for java.lang, since we still don't
22933 # have libgcj.jar nor java/lang/*.class
22934 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22935 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22937 # Since some classes depend on this one, we need its source available
22938 # before we can do any GCJ compilation test :-(
22939 if test ! -f gnu/classpath/Configuration.java; then
22940 test -d gnu || mkdir gnu
22941 test -d gnu/classpath || mkdir gnu/classpath
22942 # Note that it is not crucial that all the values here be correct.
22943 sed -e "s,@prefix@,$expanded_prefix," \
22944 -e "s,@VERSION@,$VERSION," \
22945 -e "s,@LIBDEBUG@,false," \
22946 -e "s,@INIT_LOAD_LIBRARY@,false," \
22947 -e "s,@@,$LIBGCJDEBUG," \
22948 -e "s,@default_toolkit@,$TOOLKIT," \
22949 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22950 -e "s,@GTK_CAIRO_ENABLED@,false," \
22951 -e "s,@ECJ_JAR@,," \
22952 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22953 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22954 > gnu/classpath/Configuration.java
22955 # We do not want to redirect the output of the grep below to /dev/null,
22956 # but we add /dev/null to the input list so that grep will print the
22957 # filename of Configuration.java in case it finds any matches.
22958 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22959 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22964 for ac_prog in gcj
22966 # Extract the first word of "$ac_prog", so it can be a program name with args.
22967 set dummy $ac_prog; ac_word=$2
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22969 $as_echo_n "checking for $ac_word... " >&6; }
22970 if test "${ac_cv_prog_GCJ+set}" = set; then :
22971 $as_echo_n "(cached) " >&6
22972 else
22973 if test -n "$GCJ"; then
22974 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22975 else
22976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22977 for as_dir in $PATH
22979 IFS=$as_save_IFS
22980 test -z "$as_dir" && as_dir=.
22981 for ac_exec_ext in '' $ac_executable_extensions; do
22982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22983 ac_cv_prog_GCJ="$ac_prog"
22984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22985 break 2
22987 done
22988 done
22989 IFS=$as_save_IFS
22993 GCJ=$ac_cv_prog_GCJ
22994 if test -n "$GCJ"; then
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22996 $as_echo "$GCJ" >&6; }
22997 else
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22999 $as_echo "no" >&6; }
23003 test -n "$GCJ" && break
23004 done
23005 test -n "$GCJ" || GCJ="gcj"
23007 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23008 if test "x${GCJFLAGS-unset}" = xunset; then
23009 GCJFLAGS="-g -O2"
23013 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23016 $as_echo_n "checking dependency style of $depcc... " >&6; }
23017 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23018 $as_echo_n "(cached) " >&6
23019 else
23020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23021 # We make a subdir and do the tests there. Otherwise we can end up
23022 # making bogus files that we don't know about and never remove. For
23023 # instance it was reported that on HP-UX the gcc test will end up
23024 # making a dummy file named `D' -- because `-MD' means `put the output
23025 # in D'.
23026 mkdir conftest.dir
23027 # Copy depcomp to subdir because otherwise we won't find it if we're
23028 # using a relative directory.
23029 cp "$am_depcomp" conftest.dir
23030 cd conftest.dir
23031 # We will build objects and dependencies in a subdirectory because
23032 # it helps to detect inapplicable dependency modes. For instance
23033 # both Tru64's cc and ICC support -MD to output dependencies as a
23034 # side effect of compilation, but ICC will put the dependencies in
23035 # the current directory while Tru64 will put them in the object
23036 # directory.
23037 mkdir sub
23039 am_cv_GCJ_dependencies_compiler_type=none
23040 if test "$am_compiler_list" = ""; then
23041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23043 am__universal=false
23046 for depmode in $am_compiler_list; do
23047 # Setup a source with many dependencies, because some compilers
23048 # like to wrap large dependency lists on column 80 (with \), and
23049 # we should not choose a depcomp mode which is confused by this.
23051 # We need to recreate these files for each test, as the compiler may
23052 # overwrite some of them when testing with obscure command lines.
23053 # This happens at least with the AIX C compiler.
23054 : > sub/conftest.c
23055 for i in 1 2 3 4 5 6; do
23056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23058 # Solaris 8's {/usr,}/bin/sh.
23059 touch sub/conftst$i.h
23060 done
23061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23064 # mode. It turns out that the SunPro C++ compiler does not properly
23065 # handle `-M -o', and we need to detect this. Also, some Intel
23066 # versions had trouble with output in subdirs
23067 am__obj=sub/conftest.${OBJEXT-o}
23068 am__minus_obj="-o $am__obj"
23069 case $depmode in
23070 gcc)
23071 # This depmode causes a compiler race in universal mode.
23072 test "$am__universal" = false || continue
23074 nosideeffect)
23075 # after this tag, mechanisms are not by side-effect, so they'll
23076 # only be used when explicitly requested
23077 if test "x$enable_dependency_tracking" = xyes; then
23078 continue
23079 else
23080 break
23083 msvisualcpp | msvcmsys)
23084 # This compiler won't grok `-c -o', but also, the minuso test has
23085 # not run yet. These depmodes are late enough in the game, and
23086 # so weak that their functioning should not be impacted.
23087 am__obj=conftest.${OBJEXT-o}
23088 am__minus_obj=
23090 none) break ;;
23091 esac
23092 if depmode=$depmode \
23093 source=sub/conftest.c object=$am__obj \
23094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23096 >/dev/null 2>conftest.err &&
23097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23101 # icc doesn't choke on unknown options, it will just issue warnings
23102 # or remarks (even with -Werror). So we grep stderr for any message
23103 # that says an option was ignored or not supported.
23104 # When given -MP, icc 7.0 and 7.1 complain thusly:
23105 # icc: Command line warning: ignoring option '-M'; no argument required
23106 # The diagnosis changed in icc 8.0:
23107 # icc: Command line remark: option '-MP' not supported
23108 if (grep 'ignoring option' conftest.err ||
23109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23110 am_cv_GCJ_dependencies_compiler_type=$depmode
23111 break
23114 done
23116 cd ..
23117 rm -rf conftest.dir
23118 else
23119 am_cv_GCJ_dependencies_compiler_type=none
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23124 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23125 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23128 test "x$enable_dependency_tracking" != xno \
23129 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23130 am__fastdepGCJ_TRUE=
23131 am__fastdepGCJ_FALSE='#'
23132 else
23133 am__fastdepGCJ_TRUE='#'
23134 am__fastdepGCJ_FALSE=
23140 # Now remove it.
23141 rm -f gnu/classpath/Configuration.java
23143 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23145 # The cast to long int works around a bug in the HP C Compiler
23146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23148 # This bug is HP SR number 8606223364.
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23150 $as_echo_n "checking size of void *... " >&6; }
23151 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23152 $as_echo_n "(cached) " >&6
23153 else
23154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23156 else
23157 if test "$ac_cv_type_void_p" = yes; then
23158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23160 { as_fn_set_status 77
23161 as_fn_error "cannot compute sizeof (void *)
23162 See \`config.log' for more details." "$LINENO" 5; }; }
23163 else
23164 ac_cv_sizeof_void_p=0
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23170 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23174 cat >>confdefs.h <<_ACEOF
23175 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23176 _ACEOF
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23181 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23182 if test "${ac_cv_c_bigendian+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23184 else
23185 ac_cv_c_bigendian=unknown
23186 # See if we're dealing with a universal compiler.
23187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h. */
23189 #ifndef __APPLE_CC__
23190 not a universal capable compiler
23191 #endif
23192 typedef int dummy;
23194 _ACEOF
23195 if ac_fn_c_try_compile "$LINENO"; then :
23197 # Check for potential -arch flags. It is not universal unless
23198 # there are at least two -arch flags with different values.
23199 ac_arch=
23200 ac_prev=
23201 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23202 if test -n "$ac_prev"; then
23203 case $ac_word in
23204 i?86 | x86_64 | ppc | ppc64)
23205 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23206 ac_arch=$ac_word
23207 else
23208 ac_cv_c_bigendian=universal
23209 break
23212 esac
23213 ac_prev=
23214 elif test "x$ac_word" = "x-arch"; then
23215 ac_prev=arch
23217 done
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 if test $ac_cv_c_bigendian = unknown; then
23221 # See if sys/param.h defines the BYTE_ORDER macro.
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224 #include <sys/types.h>
23225 #include <sys/param.h>
23228 main ()
23230 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23231 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23232 && LITTLE_ENDIAN)
23233 bogus endian macros
23234 #endif
23237 return 0;
23239 _ACEOF
23240 if ac_fn_c_try_compile "$LINENO"; then :
23241 # It does; now see whether it defined to BIG_ENDIAN or not.
23242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23243 /* end confdefs.h. */
23244 #include <sys/types.h>
23245 #include <sys/param.h>
23248 main ()
23250 #if BYTE_ORDER != BIG_ENDIAN
23251 not big endian
23252 #endif
23255 return 0;
23257 _ACEOF
23258 if ac_fn_c_try_compile "$LINENO"; then :
23259 ac_cv_c_bigendian=yes
23260 else
23261 ac_cv_c_bigendian=no
23263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23267 if test $ac_cv_c_bigendian = unknown; then
23268 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23270 /* end confdefs.h. */
23271 #include <limits.h>
23274 main ()
23276 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23277 bogus endian macros
23278 #endif
23281 return 0;
23283 _ACEOF
23284 if ac_fn_c_try_compile "$LINENO"; then :
23285 # It does; now see whether it defined to _BIG_ENDIAN or not.
23286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23288 #include <limits.h>
23291 main ()
23293 #ifndef _BIG_ENDIAN
23294 not big endian
23295 #endif
23298 return 0;
23300 _ACEOF
23301 if ac_fn_c_try_compile "$LINENO"; then :
23302 ac_cv_c_bigendian=yes
23303 else
23304 ac_cv_c_bigendian=no
23306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23310 if test $ac_cv_c_bigendian = unknown; then
23311 # Compile a test program.
23312 if test "$cross_compiling" = yes; then :
23313 # Try to guess by grepping values from an object file.
23314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23315 /* end confdefs.h. */
23316 short int ascii_mm[] =
23317 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23318 short int ascii_ii[] =
23319 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23320 int use_ascii (int i) {
23321 return ascii_mm[i] + ascii_ii[i];
23323 short int ebcdic_ii[] =
23324 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23325 short int ebcdic_mm[] =
23326 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23327 int use_ebcdic (int i) {
23328 return ebcdic_mm[i] + ebcdic_ii[i];
23330 extern int foo;
23333 main ()
23335 return use_ascii (foo) == use_ebcdic (foo);
23337 return 0;
23339 _ACEOF
23340 if ac_fn_c_try_compile "$LINENO"; then :
23341 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23342 ac_cv_c_bigendian=yes
23344 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23345 if test "$ac_cv_c_bigendian" = unknown; then
23346 ac_cv_c_bigendian=no
23347 else
23348 # finding both strings is unlikely to happen, but who knows?
23349 ac_cv_c_bigendian=unknown
23353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 else
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23357 $ac_includes_default
23359 main ()
23362 /* Are we little or big endian? From Harbison&Steele. */
23363 union
23365 long int l;
23366 char c[sizeof (long int)];
23367 } u;
23368 u.l = 1;
23369 return u.c[sizeof (long int) - 1] == 1;
23372 return 0;
23374 _ACEOF
23375 if ac_fn_c_try_run "$LINENO"; then :
23376 ac_cv_c_bigendian=no
23377 else
23378 ac_cv_c_bigendian=yes
23380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23381 conftest.$ac_objext conftest.beam conftest.$ac_ext
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23387 $as_echo "$ac_cv_c_bigendian" >&6; }
23388 case $ac_cv_c_bigendian in #(
23389 yes)
23390 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23391 ;; #(
23393 ;; #(
23394 universal)
23396 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23398 ;; #(
23400 as_fn_error "unknown endianness
23401 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23402 esac
23405 ZLIBS=
23406 SYS_ZLIBS=
23407 ZINCS=
23409 if test -z "$ZLIBSPEC"; then
23410 # Use zlib from the GCC tree.
23411 ZINCS='-I$(top_srcdir)/../zlib'
23412 ZLIBS=../zlib/libzgcj_convenience.la
23413 else
23414 # System's zlib.
23415 SYS_ZLIBS="$ZLIBSPEC"
23427 if test "$NATIVE" = yes; then
23428 NATIVE_TRUE=
23429 NATIVE_FALSE='#'
23430 else
23431 NATIVE_TRUE='#'
23432 NATIVE_FALSE=
23435 if test "$enable_shared" = yes; then
23436 ENABLE_SHARED_TRUE=
23437 ENABLE_SHARED_FALSE='#'
23438 else
23439 ENABLE_SHARED_TRUE='#'
23440 ENABLE_SHARED_FALSE=
23443 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23444 NEEDS_DATA_START_TRUE=
23445 NEEDS_DATA_START_FALSE='#'
23446 else
23447 NEEDS_DATA_START_TRUE='#'
23448 NEEDS_DATA_START_FALSE=
23451 if test -z "${with_multisubdir}"; then
23452 INSTALL_BINARIES_TRUE=
23453 INSTALL_BINARIES_FALSE='#'
23454 else
23455 INSTALL_BINARIES_TRUE='#'
23456 INSTALL_BINARIES_FALSE=
23461 # Process the option "--enable-version-specific-runtime-libs"
23462 # Calculate toolexeclibdir
23463 case ${version_specific_libs} in
23464 yes)
23465 # Need the gcc compiler version to know where to install libraries
23466 # and header files if --enable-version-specific-runtime-libs option
23467 # is selected.
23468 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23469 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23470 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23471 toolexeclibdir=$toolexecmainlibdir
23474 if test -n "$with_cross_host" &&
23475 test x"$with_cross_host" != x"no"; then
23476 # Install a library built with a cross compiler in tooldir, not libdir.
23477 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23478 toolexecmainlibdir='$(toolexecdir)/lib'
23479 else
23480 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23481 toolexecmainlibdir='$(libdir)'
23483 multi_os_directory=`$CC -print-multi-os-directory`
23484 case $multi_os_directory in
23485 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23486 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23487 esac
23489 esac
23494 # Determine gcj and libgcj version number.
23495 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23496 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23497 GCJVERSION=$gcjversion
23500 cat >>confdefs.h <<_ACEOF
23501 #define GCJVERSION "$GCJVERSION"
23502 _ACEOF
23505 # Determine where the standard .db file and GNU Classpath JNI
23506 # libraries are found.
23507 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23508 multi_os_directory=`$CC -print-multi-os-directory`
23509 case $multi_os_directory in
23511 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23514 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23516 esac
23521 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23524 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23528 case "${with_gxx_include_dir}" in
23529 yes)
23530 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23532 no | "")
23533 case "${enable_version_specific_runtime_libs}" in
23534 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23536 libstdcxx_incdir='c++/$(gcc_version)'
23537 gxx_include_dir='include/$(libstdcxx_incdir)'
23538 if test -n "$with_cross_host" &&
23539 test x"$with_cross_host" != x"no"; then
23540 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23541 else
23542 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23543 fi;;
23544 esac ;;
23545 *) gxx_include_dir=${with_gxx_include_dir} ;;
23546 esac
23551 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23552 # On that system, sys/ioctl.h will not include sys/filio.h unless
23553 # BSD_COMP is defined; just including sys/filio.h is simpler.
23554 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23555 # for now. If you change this, you also must update natFile.cc.
23556 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23557 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23558 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23559 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23560 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23561 do :
23562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23563 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23564 eval as_val=\$$as_ac_Header
23565 if test "x$as_val" = x""yes; then :
23566 cat >>confdefs.h <<_ACEOF
23567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23568 _ACEOF
23572 done
23574 for ac_header in inttypes.h
23575 do :
23576 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23577 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23578 cat >>confdefs.h <<_ACEOF
23579 #define HAVE_INTTYPES_H 1
23580 _ACEOF
23583 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23586 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23591 done
23594 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23595 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23597 else
23599 cat >>confdefs.h <<_ACEOF
23600 #define ssize_t int
23601 _ACEOF
23605 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23606 #ifdef HAVE_MAGIC_H
23607 #include <magic.h>
23608 #endif
23610 if test "x$ac_cv_type_magic_t" = x""yes; then :
23613 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23619 $as_echo_n "checking for in_addr_t... " >&6; }
23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23621 /* end confdefs.h. */
23622 #include <sys/types.h>
23623 #if STDC_HEADERS
23624 #include <stdlib.h>
23625 #include <stddef.h>
23626 #endif
23627 #if HAVE_NETINET_IN_H
23628 #include <netinet/in.h>
23629 #endif
23631 main ()
23633 in_addr_t foo;
23635 return 0;
23637 _ACEOF
23638 if ac_fn_c_try_compile "$LINENO"; then :
23640 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23643 $as_echo "yes" >&6; }
23644 else
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23646 $as_echo "no" >&6; }
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23651 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23653 /* end confdefs.h. */
23654 #include <netinet/in.h>
23656 main ()
23658 struct ip_mreq mreq;
23660 return 0;
23662 _ACEOF
23663 if ac_fn_c_try_compile "$LINENO"; then :
23665 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23668 $as_echo "yes" >&6; }
23669 else
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23671 $as_echo "no" >&6; }
23673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23676 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23678 /* end confdefs.h. */
23679 #include <netinet/in.h>
23681 main ()
23683 struct ipv6_mreq mreq6;
23685 return 0;
23687 _ACEOF
23688 if ac_fn_c_try_compile "$LINENO"; then :
23690 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23693 $as_echo "yes" >&6; }
23694 else
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23696 $as_echo "no" >&6; }
23698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23701 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23704 #include <netinet/in.h>
23706 main ()
23708 struct sockaddr_in6 addr6;
23710 return 0;
23712 _ACEOF
23713 if ac_fn_c_try_compile "$LINENO"; then :
23715 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23718 $as_echo "yes" >&6; }
23719 else
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23721 $as_echo "no" >&6; }
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23726 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h. */
23729 #define _POSIX_PII_SOCKET
23730 #include <sys/types.h>
23731 #include <sys/socket.h>
23733 main ()
23735 socklen_t x = 5;
23737 return 0;
23739 _ACEOF
23740 if ac_fn_c_try_compile "$LINENO"; then :
23742 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23745 $as_echo "yes" >&6; }
23746 else
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23748 $as_echo "no" >&6; }
23750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23753 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756 #include <time.h>
23758 main ()
23760 struct tm tim; tim.tm_gmtoff = 0;
23762 return 0;
23764 _ACEOF
23765 if ac_fn_c_try_compile "$LINENO"; then :
23767 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23770 $as_echo "yes" >&6; }
23771 else
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23775 $as_echo_n "checking for global timezone variable... " >&6; }
23776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777 /* end confdefs.h. */
23778 #include <time.h>
23780 main ()
23782 void i(){long z2 = 2*timezone;}
23784 return 0;
23786 _ACEOF
23787 if ac_fn_c_try_compile "$LINENO"; then :
23789 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23792 $as_echo "yes" >&6; }
23793 else
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23797 $as_echo_n "checking for global _timezone variable... " >&6; }
23798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23800 #include <time.h>
23802 main ()
23804 long z2 = _timezone;
23806 return 0;
23808 _ACEOF
23809 if ac_fn_c_try_compile "$LINENO"; then :
23811 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23814 $as_echo "yes" >&6; }
23815 else
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23825 for ac_prog in perl
23827 # Extract the first word of "$ac_prog", so it can be a program name with args.
23828 set dummy $ac_prog; ac_word=$2
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23830 $as_echo_n "checking for $ac_word... " >&6; }
23831 if test "${ac_cv_prog_PERL+set}" = set; then :
23832 $as_echo_n "(cached) " >&6
23833 else
23834 if test -n "$PERL"; then
23835 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23836 else
23837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23838 for as_dir in $PATH
23840 IFS=$as_save_IFS
23841 test -z "$as_dir" && as_dir=.
23842 for ac_exec_ext in '' $ac_executable_extensions; do
23843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23844 ac_cv_prog_PERL="$ac_prog"
23845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23846 break 2
23848 done
23849 done
23850 IFS=$as_save_IFS
23854 PERL=$ac_cv_prog_PERL
23855 if test -n "$PERL"; then
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23857 $as_echo "$PERL" >&6; }
23858 else
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23860 $as_echo "no" >&6; }
23864 test -n "$PERL" && break
23865 done
23866 test -n "$PERL" || PERL="false"
23869 SYSDEP_SOURCES=
23870 SIGNAL_HANDLER_AUX=
23872 case "${host}" in
23873 i?86-*-linux*)
23874 SIGNAL_HANDLER=include/i386-signal.h
23876 sparc*-sun-solaris*)
23877 SIGNAL_HANDLER=include/sparc-signal.h
23879 # ia64-*)
23880 # SYSDEP_SOURCES=sysdep/ia64.c
23881 # test -d sysdep || mkdir sysdep
23882 # ;;
23883 hppa*-*-linux*)
23884 SIGNAL_HANDLER=include/pa-signal.h
23886 hppa*-hp-hpux*)
23887 SIGNAL_HANDLER=include/hppa-signal.h
23889 ia64-*-linux*)
23890 SIGNAL_HANDLER=include/dwarf2-signal.h
23892 powerpc*-*-linux*)
23893 SIGNAL_HANDLER=include/powerpc-signal.h
23895 alpha*-*-linux*)
23896 SIGNAL_HANDLER=include/dwarf2-signal.h
23898 s390*-*-linux*)
23899 SIGNAL_HANDLER=include/s390-signal.h
23901 x86_64*-*-linux*)
23902 SIGNAL_HANDLER=include/x86_64-signal.h
23903 SIGNAL_HANDLER_AUX=include/i386-signal.h
23905 sparc*-*-linux*)
23906 SIGNAL_HANDLER=include/dwarf2-signal.h
23908 sh*-*-linux*)
23909 SIGNAL_HANDLER=include/sh-signal.h
23911 *mingw*)
23912 SIGNAL_HANDLER=include/win32-signal.h
23914 mips*-*-linux*)
23915 SIGNAL_HANDLER=include/mips-signal.h
23917 m68*-*-linux*)
23918 SIGNAL_HANDLER=include/dwarf2-signal.h
23920 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23921 SIGNAL_HANDLER=include/darwin-signal.h
23923 powerpc*-*-aix*)
23924 SIGNAL_HANDLER=include/aix-signal.h
23927 SIGNAL_HANDLER=include/default-signal.h
23929 esac
23931 # If we're using sjlj exceptions, forget what we just learned.
23932 if test "$enable_sjlj_exceptions" = yes; then
23933 SIGNAL_HANDLER=include/default-signal.h
23934 SIGNAL_HANDLER_AUX=
23939 if test -z "$SIGNAL_HANDLER_AUX"; then
23940 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23943 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23946 if test "${multilib}" = "yes"; then
23947 multilib_arg="--enable-multilib"
23948 else
23949 multilib_arg=
23952 # See if we support thread-local storage.
23955 # Check whether --enable-tls was given.
23956 if test "${enable_tls+set}" = set; then :
23957 enableval=$enable_tls;
23958 case "$enableval" in
23959 yes|no) ;;
23960 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23961 esac
23963 else
23964 enable_tls=yes
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23969 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23970 if test "${gcc_cv_have_tls+set}" = set; then :
23971 $as_echo_n "(cached) " >&6
23972 else
23974 if test "$cross_compiling" = yes; then :
23975 if test x$gcc_no_link = xyes; then
23976 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h. */
23980 __thread int a; int b; int main() { return a = b; }
23981 _ACEOF
23982 if ac_fn_c_try_link "$LINENO"; then :
23983 chktls_save_LDFLAGS="$LDFLAGS"
23984 case $host in
23985 *-*-linux*)
23986 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23988 esac
23989 chktls_save_CFLAGS="$CFLAGS"
23990 CFLAGS="-fPIC $CFLAGS"
23991 if test x$gcc_no_link = xyes; then
23992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995 /* end confdefs.h. */
23996 int f() { return 0; }
23997 _ACEOF
23998 if ac_fn_c_try_link "$LINENO"; then :
23999 if test x$gcc_no_link = xyes; then
24000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003 /* end confdefs.h. */
24004 __thread int a; int b; int f() { return a = b; }
24005 _ACEOF
24006 if ac_fn_c_try_link "$LINENO"; then :
24007 gcc_cv_have_tls=yes
24008 else
24009 gcc_cv_have_tls=no
24011 rm -f core conftest.err conftest.$ac_objext \
24012 conftest$ac_exeext conftest.$ac_ext
24013 else
24014 gcc_cv_have_tls=yes
24016 rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext conftest.$ac_ext
24018 CFLAGS="$chktls_save_CFLAGS"
24019 LDFLAGS="$chktls_save_LDFLAGS"
24020 else
24021 gcc_cv_have_tls=no
24023 rm -f core conftest.err conftest.$ac_objext \
24024 conftest$ac_exeext conftest.$ac_ext
24027 else
24028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24029 /* end confdefs.h. */
24030 __thread int a; int b; int main() { return a = b; }
24031 _ACEOF
24032 if ac_fn_c_try_run "$LINENO"; then :
24033 chktls_save_LDFLAGS="$LDFLAGS"
24034 LDFLAGS="-static $LDFLAGS"
24035 if test x$gcc_no_link = xyes; then
24036 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24039 /* end confdefs.h. */
24040 int main() { return 0; }
24041 _ACEOF
24042 if ac_fn_c_try_link "$LINENO"; then :
24043 if test "$cross_compiling" = yes; then :
24044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24046 as_fn_error "cannot run test program while cross compiling
24047 See \`config.log' for more details." "$LINENO" 5; }
24048 else
24049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h. */
24051 __thread int a; int b; int main() { return a = b; }
24052 _ACEOF
24053 if ac_fn_c_try_run "$LINENO"; then :
24054 gcc_cv_have_tls=yes
24055 else
24056 gcc_cv_have_tls=no
24058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24059 conftest.$ac_objext conftest.beam conftest.$ac_ext
24062 else
24063 gcc_cv_have_tls=yes
24065 rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
24067 LDFLAGS="$chktls_save_LDFLAGS"
24068 if test $gcc_cv_have_tls = yes; then
24069 chktls_save_CFLAGS="$CFLAGS"
24070 thread_CFLAGS=failed
24071 for flag in '' '-pthread' '-lpthread'; do
24072 CFLAGS="$flag $chktls_save_CFLAGS"
24073 if test x$gcc_no_link = xyes; then
24074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h. */
24078 #include <pthread.h>
24079 void *g(void *d) { return NULL; }
24081 main ()
24083 pthread_t t; pthread_create(&t,NULL,g,NULL);
24085 return 0;
24087 _ACEOF
24088 if ac_fn_c_try_link "$LINENO"; then :
24089 thread_CFLAGS="$flag"
24091 rm -f core conftest.err conftest.$ac_objext \
24092 conftest$ac_exeext conftest.$ac_ext
24093 if test "X$thread_CFLAGS" != Xfailed; then
24094 break
24096 done
24097 CFLAGS="$chktls_save_CFLAGS"
24098 if test "X$thread_CFLAGS" != Xfailed; then
24099 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24100 if test "$cross_compiling" = yes; then :
24101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24103 as_fn_error "cannot run test program while cross compiling
24104 See \`config.log' for more details." "$LINENO" 5; }
24105 else
24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107 /* end confdefs.h. */
24108 #include <pthread.h>
24109 __thread int a;
24110 static int *a_in_other_thread;
24111 static void *
24112 thread_func (void *arg)
24114 a_in_other_thread = &a;
24115 return (void *)0;
24118 main ()
24120 pthread_t thread;
24121 void *thread_retval;
24122 int *a_in_main_thread;
24123 if (pthread_create (&thread, (pthread_attr_t *)0,
24124 thread_func, (void *)0))
24125 return 0;
24126 a_in_main_thread = &a;
24127 if (pthread_join (thread, &thread_retval))
24128 return 0;
24129 return (a_in_other_thread == a_in_main_thread);
24131 return 0;
24133 _ACEOF
24134 if ac_fn_c_try_run "$LINENO"; then :
24135 gcc_cv_have_tls=yes
24136 else
24137 gcc_cv_have_tls=no
24139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24140 conftest.$ac_objext conftest.beam conftest.$ac_ext
24143 CFLAGS="$chktls_save_CFLAGS"
24146 else
24147 gcc_cv_have_tls=no
24149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24150 conftest.$ac_objext conftest.beam conftest.$ac_ext
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24155 $as_echo "$gcc_cv_have_tls" >&6; }
24156 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24158 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24162 # For _Unwind_GetIPInfo.
24165 # Check whether --with-system-libunwind was given.
24166 if test "${with_system_libunwind+set}" = set; then :
24167 withval=$with_system_libunwind;
24170 # If system-libunwind was not specifically set, pick a default setting.
24171 if test x$with_system_libunwind = x; then
24172 case ${target} in
24173 ia64-*-hpux*) with_system_libunwind=yes ;;
24174 *) with_system_libunwind=no ;;
24175 esac
24177 # Based on system-libunwind and target, do we have ipinfo?
24178 if test x$with_system_libunwind = xyes; then
24179 case ${target} in
24180 ia64-*-*) have_unwind_getipinfo=no ;;
24181 *) have_unwind_getipinfo=yes ;;
24182 esac
24183 else
24184 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24186 case ${target} in
24187 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24188 *) have_unwind_getipinfo=yes ;;
24189 esac
24193 if test x$have_unwind_getipinfo = xyes; then
24195 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24200 # See if linker supports anonymous version scripts.
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24202 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24203 if test "${libjava_cv_anon_version_script+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24205 else
24206 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24207 libjava_cv_anon_version_script=no
24208 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24209 echo '{ global: globalsymb*; local: *; };' > conftest.map
24210 if test x$gcc_no_link = xyes; then
24211 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24214 /* end confdefs.h. */
24215 void globalsymbol (void) {} void localsymbol (void) {}
24217 main ()
24221 return 0;
24223 _ACEOF
24224 if ac_fn_c_try_link "$LINENO"; then :
24225 libjava_cv_anon_version_script=yes
24227 rm -f core conftest.err conftest.$ac_objext \
24228 conftest$ac_exeext conftest.$ac_ext
24229 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24233 $as_echo "$libjava_cv_anon_version_script" >&6; }
24234 if test "$libjava_cv_anon_version_script" = yes; then
24235 ANONVERSCRIPT_TRUE=
24236 ANONVERSCRIPT_FALSE='#'
24237 else
24238 ANONVERSCRIPT_TRUE='#'
24239 ANONVERSCRIPT_FALSE=
24243 # Check if linker supports static linking on a per library basis
24244 LD_START_STATIC_SPEC=
24245 LD_FINISH_STATIC_SPEC=
24246 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24247 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24248 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24249 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24255 here=`${PWDCMD-pwd}`
24258 # We get this from the environment.
24262 # Check whether --with-python-dir was given.
24263 if test "${with_python_dir+set}" = set; then :
24264 withval=$with_python_dir; with_python_dir=$withval
24265 else
24266 with_python_dir=""
24270 if test "x${with_python_dir}" = "x"
24271 then
24272 # Needed for installing Python modules during make install.
24273 python_mod_dir="\${prefix}/share/python"
24274 # Needed for substituting into aot-compile*
24275 python_mod_dir_expanded="${expanded_prefix}/share/python"
24276 else
24277 python_mod_dir="\${prefix}${with_python_dir}"
24278 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24281 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24285 # needed for aot-compile-rpm
24286 MAKE=`which make`
24289 # Check whether --enable-aot-compile-rpm was given.
24290 if test "${enable_aot_compile_rpm+set}" = set; then :
24291 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24292 yes) AOT_RPM_ENABLED=yes ;;
24293 no) AOT_RPM_ENABLED=no ;;
24294 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24295 esac
24296 else
24297 AOT_RPM_ENABLED=no
24301 if test "x${AOT_RPM_ENABLED}" = xyes; then
24302 INSTALL_AOT_RPM_TRUE=
24303 INSTALL_AOT_RPM_FALSE='#'
24304 else
24305 INSTALL_AOT_RPM_TRUE='#'
24306 INSTALL_AOT_RPM_FALSE=
24310 # Check whether --enable-java-home was given.
24311 if test "${enable_java_home+set}" = set; then :
24312 enableval=$enable_java_home; case "${enableval}" in
24313 yes) JAVA_HOME_ENABLED=yes ;;
24314 no) JAVA_HOME_ENABLED=no ;;
24315 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24316 esac
24317 else
24318 JAVA_HOME_ENABLED=no
24322 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24323 CREATE_JAVA_HOME_TRUE=
24324 CREATE_JAVA_HOME_FALSE='#'
24325 else
24326 CREATE_JAVA_HOME_TRUE='#'
24327 CREATE_JAVA_HOME_FALSE=
24331 # Only do these checks if java-home above is enabled.
24332 if test "x${JAVA_HOME_ENABLED}" = xyes
24333 then
24336 # Check whether --with-gcc-suffix was given.
24337 if test "${with_gcc_suffix+set}" = set; then :
24338 withval=$with_gcc_suffix; gcc_suffix=$withval
24339 else
24340 gcc_suffix=""
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24344 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24348 # Check whether --with-arch-directory was given.
24349 if test "${with_arch_directory+set}" = set; then :
24350 withval=$with_arch_directory; host_cpu=$withval
24351 else
24352 host_cpu=""
24357 # Check whether --with-os-directory was given.
24358 if test "${with_os_directory+set}" = set; then :
24359 withval=$with_os_directory; host_os=$withval
24360 else
24361 host_os=""
24366 # Check whether --with-origin-name was given.
24367 if test "${with_origin_name+set}" = set; then :
24368 withval=$with_origin_name; origin_name=$withval
24369 else
24370 origin_name=gcj${gcc_suffix}
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24374 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24377 # Check whether --with-arch-suffix was given.
24378 if test "${with_arch_suffix+set}" = set; then :
24379 withval=$with_arch_suffix; arch_suffix=$withval
24380 else
24381 arch_suffix=""
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24385 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24388 # Check whether --with-jvm-root-dir was given.
24389 if test "${with_jvm_root_dir+set}" = set; then :
24390 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24391 else
24392 jvm_root_dir="\${prefix}/lib/jvm"
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24396 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24399 # Check whether --with-jvm-jar-dir was given.
24400 if test "${with_jvm_jar_dir+set}" = set; then :
24401 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24402 else
24403 jvm_jar_dir=\${prefix}/lib/jvm-exports
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24407 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24409 JAVA_VERSION=1.5.0
24410 BUILD_VERSION=0
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24414 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24416 jre_dir=jre
24417 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24418 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24420 JVM_ROOT_DIR=${jvm_root_dir}
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24423 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24425 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24428 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24430 JVM_JAR_DIR=${jvm_jar_dir}
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24433 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24435 JRE_DIR=${jre_dir}
24438 JRE_LNK=${jre_lnk}
24441 SDK_LNK=${sdk_lnk}
24444 SDK_BIN_DIR=${jvm_root_dir}/bin
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24447 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24449 SDK_LIB_DIR=${jvm_root_dir}/lib
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24452 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24454 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24457 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24459 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24462 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24464 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24467 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24469 # Find gcj prefix using gcj found in PATH.
24470 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24472 # Where do the gcj binaries live?
24473 # For jhbuild based builds, they all live in a sibling of bin called
24474 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24475 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24478 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24481 $as_echo "host is ${host}" >&6; }
24482 if test "x${host_cpu}" = "x"
24483 then
24484 case ${host} in
24485 *-mingw* | *-cygwin*)
24486 host_cpu=x86;;
24487 i486-* | i586-* | i686-*)
24488 host_cpu=i386;;
24489 x86_64-*)
24490 host_cpu=amd64;;
24492 host_cpu=${host_cpu};;
24493 esac
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24496 $as_echo "arch directory: ${host_cpu}" >&6; }
24497 CPU=${host_cpu}
24500 if test "x${host_os}" = "x"
24501 then
24502 case ${host} in
24503 *-mingw* | *-cygwin*)
24504 host_os=win32;;
24505 *-linux*)
24506 host_os=linux;;
24508 host_os=${host_os};;
24509 esac
24511 echo os directory: ${host_os}
24512 OS=${host_os}
24515 # make an expanded $libdir, for substituting into
24516 # scripts (and other non-Makefile things).
24517 LIBDIR=$libdir
24518 if test "x${exec_prefix}" = "xNONE"
24519 then
24520 lib_exec_prefix=$expanded_prefix
24521 else
24522 lib_exec_prefix=$exec_prefix
24524 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24528 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"
24531 if test ${multilib} = yes; then
24532 multilib_arg="--enable-multilib"
24533 else
24534 multilib_arg=
24537 ac_config_files="$ac_config_files scripts/jar"
24539 cat >confcache <<\_ACEOF
24540 # This file is a shell script that caches the results of configure
24541 # tests run on this system so they can be shared between configure
24542 # scripts and configure runs, see configure's option --config-cache.
24543 # It is not useful on other systems. If it contains results you don't
24544 # want to keep, you may remove or edit it.
24546 # config.status only pays attention to the cache file if you give it
24547 # the --recheck option to rerun configure.
24549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24551 # following values.
24553 _ACEOF
24555 # The following way of writing the cache mishandles newlines in values,
24556 # but we know of no workaround that is simple, portable, and efficient.
24557 # So, we kill variables containing newlines.
24558 # Ultrix sh set writes to stderr and can't be redirected directly,
24559 # and sets the high bit in the cache file unless we assign to the vars.
24561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24562 eval ac_val=\$$ac_var
24563 case $ac_val in #(
24564 *${as_nl}*)
24565 case $ac_var in #(
24566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24567 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24568 esac
24569 case $ac_var in #(
24570 _ | IFS | as_nl) ;; #(
24571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24572 *) { eval $ac_var=; unset $ac_var;} ;;
24573 esac ;;
24574 esac
24575 done
24577 (set) 2>&1 |
24578 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24579 *${as_nl}ac_space=\ *)
24580 # `set' does not quote correctly, so add quotes: double-quote
24581 # substitution turns \\\\ into \\, and sed turns \\ into \.
24582 sed -n \
24583 "s/'/'\\\\''/g;
24584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24585 ;; #(
24587 # `set' quotes correctly as required by POSIX, so do not add quotes.
24588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24590 esac |
24591 sort
24593 sed '
24594 /^ac_cv_env_/b end
24595 t clear
24596 :clear
24597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24598 t end
24599 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24600 :end' >>confcache
24601 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24602 if test -w "$cache_file"; then
24603 test "x$cache_file" != "x/dev/null" &&
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24605 $as_echo "$as_me: updating cache $cache_file" >&6;}
24606 cat confcache >$cache_file
24607 else
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24609 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24612 rm -f confcache
24614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24615 # Let make expand exec_prefix.
24616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24618 DEFS=-DHAVE_CONFIG_H
24620 ac_libobjs=
24621 ac_ltlibobjs=
24622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24623 # 1. Remove the extension, and $U if already installed.
24624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24627 # will be set to the directory where LIBOBJS objects are built.
24628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24630 done
24631 LIBOBJS=$ac_libobjs
24633 LTLIBOBJS=$ac_ltlibobjs
24636 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24637 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24640 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24641 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24645 as_fn_error "conditional \"AMDEP\" was never defined.
24646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24648 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24649 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24652 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24653 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24656 if test -n "$EXEEXT"; then
24657 am__EXEEXT_TRUE=
24658 am__EXEEXT_FALSE='#'
24659 else
24660 am__EXEEXT_TRUE='#'
24661 am__EXEEXT_FALSE=
24664 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24665 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24668 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24669 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24672 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24673 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24676 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24677 as_fn_error "conditional \"X_AWT\" was never defined.
24678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24680 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24681 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24684 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24685 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24688 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24689 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24692 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24693 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24696 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24697 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24700 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24701 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24704 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24705 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24708 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24709 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24712 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24713 as_fn_error "conditional \"INTERPRETER\" was never defined.
24714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24716 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24717 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24720 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24721 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24724 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24725 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24728 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24729 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24732 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24733 as_fn_error "conditional \"USING_NOGC\" was never defined.
24734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24736 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24737 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24740 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24741 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24744 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24745 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24748 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24749 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24752 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24753 as_fn_error "conditional \"USING_GCC\" was never defined.
24754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24756 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24757 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24761 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24762 as_fn_error "conditional \"NATIVE\" was never defined.
24763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24765 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24766 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24769 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24770 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24773 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24774 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24777 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24778 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24781 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24782 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24785 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24786 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24790 : ${CONFIG_STATUS=./config.status}
24791 ac_write_fail=0
24792 ac_clean_files_save=$ac_clean_files
24793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24796 as_write_fail=0
24797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24798 #! $SHELL
24799 # Generated by $as_me.
24800 # Run this file to recreate the current configuration.
24801 # Compiler output produced by configure, useful for debugging
24802 # configure, is in config.log if it exists.
24804 debug=false
24805 ac_cs_recheck=false
24806 ac_cs_silent=false
24808 SHELL=\${CONFIG_SHELL-$SHELL}
24809 export SHELL
24810 _ASEOF
24811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24812 ## -------------------- ##
24813 ## M4sh Initialization. ##
24814 ## -------------------- ##
24816 # Be more Bourne compatible
24817 DUALCASE=1; export DUALCASE # for MKS sh
24818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24819 emulate sh
24820 NULLCMD=:
24821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24822 # is contrary to our usage. Disable this feature.
24823 alias -g '${1+"$@"}'='"$@"'
24824 setopt NO_GLOB_SUBST
24825 else
24826 case `(set -o) 2>/dev/null` in #(
24827 *posix*) :
24828 set -o posix ;; #(
24829 *) :
24831 esac
24835 as_nl='
24837 export as_nl
24838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24842 # Prefer a ksh shell builtin over an external printf program on Solaris,
24843 # but without wasting forks for bash or zsh.
24844 if test -z "$BASH_VERSION$ZSH_VERSION" \
24845 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24846 as_echo='print -r --'
24847 as_echo_n='print -rn --'
24848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24849 as_echo='printf %s\n'
24850 as_echo_n='printf %s'
24851 else
24852 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24853 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24854 as_echo_n='/usr/ucb/echo -n'
24855 else
24856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24857 as_echo_n_body='eval
24858 arg=$1;
24859 case $arg in #(
24860 *"$as_nl"*)
24861 expr "X$arg" : "X\\(.*\\)$as_nl";
24862 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24863 esac;
24864 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24866 export as_echo_n_body
24867 as_echo_n='sh -c $as_echo_n_body as_echo'
24869 export as_echo_body
24870 as_echo='sh -c $as_echo_body as_echo'
24873 # The user is always right.
24874 if test "${PATH_SEPARATOR+set}" != set; then
24875 PATH_SEPARATOR=:
24876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24877 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24878 PATH_SEPARATOR=';'
24883 # IFS
24884 # We need space, tab and new line, in precisely that order. Quoting is
24885 # there to prevent editors from complaining about space-tab.
24886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24887 # splitting by setting IFS to empty value.)
24888 IFS=" "" $as_nl"
24890 # Find who we are. Look in the path if we contain no directory separator.
24891 case $0 in #((
24892 *[\\/]* ) as_myself=$0 ;;
24893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24894 for as_dir in $PATH
24896 IFS=$as_save_IFS
24897 test -z "$as_dir" && as_dir=.
24898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24899 done
24900 IFS=$as_save_IFS
24903 esac
24904 # We did not find ourselves, most probably we were run as `sh COMMAND'
24905 # in which case we are not to be found in the path.
24906 if test "x$as_myself" = x; then
24907 as_myself=$0
24909 if test ! -f "$as_myself"; then
24910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24911 exit 1
24914 # Unset variables that we do not need and which cause bugs (e.g. in
24915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24916 # suppresses any "Segmentation fault" message there. '((' could
24917 # trigger a bug in pdksh 5.2.14.
24918 for as_var in BASH_ENV ENV MAIL MAILPATH
24919 do eval test x\${$as_var+set} = xset \
24920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24921 done
24922 PS1='$ '
24923 PS2='> '
24924 PS4='+ '
24926 # NLS nuisances.
24927 LC_ALL=C
24928 export LC_ALL
24929 LANGUAGE=C
24930 export LANGUAGE
24932 # CDPATH.
24933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24936 # as_fn_error ERROR [LINENO LOG_FD]
24937 # ---------------------------------
24938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24940 # script with status $?, using 1 if that was 0.
24941 as_fn_error ()
24943 as_status=$?; test $as_status -eq 0 && as_status=1
24944 if test "$3"; then
24945 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24948 $as_echo "$as_me: error: $1" >&2
24949 as_fn_exit $as_status
24950 } # as_fn_error
24953 # as_fn_set_status STATUS
24954 # -----------------------
24955 # Set $? to STATUS, without forking.
24956 as_fn_set_status ()
24958 return $1
24959 } # as_fn_set_status
24961 # as_fn_exit STATUS
24962 # -----------------
24963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24964 as_fn_exit ()
24966 set +e
24967 as_fn_set_status $1
24968 exit $1
24969 } # as_fn_exit
24971 # as_fn_unset VAR
24972 # ---------------
24973 # Portably unset VAR.
24974 as_fn_unset ()
24976 { eval $1=; unset $1;}
24978 as_unset=as_fn_unset
24979 # as_fn_append VAR VALUE
24980 # ----------------------
24981 # Append the text in VALUE to the end of the definition contained in VAR. Take
24982 # advantage of any shell optimizations that allow amortized linear growth over
24983 # repeated appends, instead of the typical quadratic growth present in naive
24984 # implementations.
24985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24986 eval 'as_fn_append ()
24988 eval $1+=\$2
24990 else
24991 as_fn_append ()
24993 eval $1=\$$1\$2
24995 fi # as_fn_append
24997 # as_fn_arith ARG...
24998 # ------------------
24999 # Perform arithmetic evaluation on the ARGs, and store the result in the
25000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25001 # must be portable across $(()) and expr.
25002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25003 eval 'as_fn_arith ()
25005 as_val=$(( $* ))
25007 else
25008 as_fn_arith ()
25010 as_val=`expr "$@" || test $? -eq 1`
25012 fi # as_fn_arith
25015 if expr a : '\(a\)' >/dev/null 2>&1 &&
25016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25017 as_expr=expr
25018 else
25019 as_expr=false
25022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25023 as_basename=basename
25024 else
25025 as_basename=false
25028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25029 as_dirname=dirname
25030 else
25031 as_dirname=false
25034 as_me=`$as_basename -- "$0" ||
25035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25036 X"$0" : 'X\(//\)$' \| \
25037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25038 $as_echo X/"$0" |
25039 sed '/^.*\/\([^/][^/]*\)\/*$/{
25040 s//\1/
25043 /^X\/\(\/\/\)$/{
25044 s//\1/
25047 /^X\/\(\/\).*/{
25048 s//\1/
25051 s/.*/./; q'`
25053 # Avoid depending upon Character Ranges.
25054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25057 as_cr_digits='0123456789'
25058 as_cr_alnum=$as_cr_Letters$as_cr_digits
25060 ECHO_C= ECHO_N= ECHO_T=
25061 case `echo -n x` in #(((((
25062 -n*)
25063 case `echo 'xy\c'` in
25064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25065 xy) ECHO_C='\c';;
25066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25067 ECHO_T=' ';;
25068 esac;;
25070 ECHO_N='-n';;
25071 esac
25073 rm -f conf$$ conf$$.exe conf$$.file
25074 if test -d conf$$.dir; then
25075 rm -f conf$$.dir/conf$$.file
25076 else
25077 rm -f conf$$.dir
25078 mkdir conf$$.dir 2>/dev/null
25080 if (echo >conf$$.file) 2>/dev/null; then
25081 if ln -s conf$$.file conf$$ 2>/dev/null; then
25082 as_ln_s='ln -s'
25083 # ... but there are two gotchas:
25084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25086 # In both cases, we have to default to `cp -p'.
25087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25088 as_ln_s='cp -p'
25089 elif ln conf$$.file conf$$ 2>/dev/null; then
25090 as_ln_s=ln
25091 else
25092 as_ln_s='cp -p'
25094 else
25095 as_ln_s='cp -p'
25097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25098 rmdir conf$$.dir 2>/dev/null
25101 # as_fn_mkdir_p
25102 # -------------
25103 # Create "$as_dir" as a directory, including parents if necessary.
25104 as_fn_mkdir_p ()
25107 case $as_dir in #(
25108 -*) as_dir=./$as_dir;;
25109 esac
25110 test -d "$as_dir" || eval $as_mkdir_p || {
25111 as_dirs=
25112 while :; do
25113 case $as_dir in #(
25114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25115 *) as_qdir=$as_dir;;
25116 esac
25117 as_dirs="'$as_qdir' $as_dirs"
25118 as_dir=`$as_dirname -- "$as_dir" ||
25119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25120 X"$as_dir" : 'X\(//\)[^/]' \| \
25121 X"$as_dir" : 'X\(//\)$' \| \
25122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25123 $as_echo X"$as_dir" |
25124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25125 s//\1/
25128 /^X\(\/\/\)[^/].*/{
25129 s//\1/
25132 /^X\(\/\/\)$/{
25133 s//\1/
25136 /^X\(\/\).*/{
25137 s//\1/
25140 s/.*/./; q'`
25141 test -d "$as_dir" && break
25142 done
25143 test -z "$as_dirs" || eval "mkdir $as_dirs"
25144 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25147 } # as_fn_mkdir_p
25148 if mkdir -p . 2>/dev/null; then
25149 as_mkdir_p='mkdir -p "$as_dir"'
25150 else
25151 test -d ./-p && rmdir ./-p
25152 as_mkdir_p=false
25155 if test -x / >/dev/null 2>&1; then
25156 as_test_x='test -x'
25157 else
25158 if ls -dL / >/dev/null 2>&1; then
25159 as_ls_L_option=L
25160 else
25161 as_ls_L_option=
25163 as_test_x='
25164 eval sh -c '\''
25165 if test -d "$1"; then
25166 test -d "$1/.";
25167 else
25168 case $1 in #(
25169 -*)set "./$1";;
25170 esac;
25171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25172 ???[sx]*):;;*)false;;esac;fi
25173 '\'' sh
25176 as_executable_p=$as_test_x
25178 # Sed expression to map a string onto a valid CPP name.
25179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25181 # Sed expression to map a string onto a valid variable name.
25182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25185 exec 6>&1
25186 ## ----------------------------------- ##
25187 ## Main body of $CONFIG_STATUS script. ##
25188 ## ----------------------------------- ##
25189 _ASEOF
25190 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25193 # Save the log message, to keep $0 and so on meaningful, and to
25194 # report actual input values of CONFIG_FILES etc. instead of their
25195 # values after options handling.
25196 ac_log="
25197 This file was extended by libjava $as_me version-unused, which was
25198 generated by GNU Autoconf 2.64. Invocation command line was
25200 CONFIG_FILES = $CONFIG_FILES
25201 CONFIG_HEADERS = $CONFIG_HEADERS
25202 CONFIG_LINKS = $CONFIG_LINKS
25203 CONFIG_COMMANDS = $CONFIG_COMMANDS
25204 $ $0 $@
25206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25209 _ACEOF
25211 case $ac_config_files in *"
25212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25213 esac
25215 case $ac_config_headers in *"
25216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25217 esac
25220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25221 # Files that config.status was made for.
25222 config_files="$ac_config_files"
25223 config_headers="$ac_config_headers"
25224 config_links="$ac_config_links"
25225 config_commands="$ac_config_commands"
25227 _ACEOF
25229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25230 ac_cs_usage="\
25231 \`$as_me' instantiates files and other configuration actions
25232 from templates according to the current configuration. Unless the files
25233 and actions are specified as TAGs, all are instantiated by default.
25235 Usage: $0 [OPTION]... [TAG]...
25237 -h, --help print this help, then exit
25238 -V, --version print version number and configuration settings, then exit
25239 -q, --quiet, --silent
25240 do not print progress messages
25241 -d, --debug don't remove temporary files
25242 --recheck update $as_me by reconfiguring in the same conditions
25243 --file=FILE[:TEMPLATE]
25244 instantiate the configuration file FILE
25245 --header=FILE[:TEMPLATE]
25246 instantiate the configuration header FILE
25248 Configuration files:
25249 $config_files
25251 Configuration headers:
25252 $config_headers
25254 Configuration links:
25255 $config_links
25257 Configuration commands:
25258 $config_commands
25260 Report bugs to the package provider."
25262 _ACEOF
25263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25264 ac_cs_version="\\
25265 libjava config.status version-unused
25266 configured by $0, generated by GNU Autoconf 2.64,
25267 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25269 Copyright (C) 2009 Free Software Foundation, Inc.
25270 This config.status script is free software; the Free Software Foundation
25271 gives unlimited permission to copy, distribute and modify it."
25273 ac_pwd='$ac_pwd'
25274 srcdir='$srcdir'
25275 INSTALL='$INSTALL'
25276 MKDIR_P='$MKDIR_P'
25277 AWK='$AWK'
25278 test -n "\$AWK" || AWK=awk
25279 _ACEOF
25281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25282 # The default lists apply if the user does not specify any file.
25283 ac_need_defaults=:
25284 while test $# != 0
25286 case $1 in
25287 --*=*)
25288 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25290 ac_shift=:
25293 ac_option=$1
25294 ac_optarg=$2
25295 ac_shift=shift
25297 esac
25299 case $ac_option in
25300 # Handling of the options.
25301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25302 ac_cs_recheck=: ;;
25303 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25304 $as_echo "$ac_cs_version"; exit ;;
25305 --debug | --debu | --deb | --de | --d | -d )
25306 debug=: ;;
25307 --file | --fil | --fi | --f )
25308 $ac_shift
25309 case $ac_optarg in
25310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25311 esac
25312 as_fn_append CONFIG_FILES " '$ac_optarg'"
25313 ac_need_defaults=false;;
25314 --header | --heade | --head | --hea )
25315 $ac_shift
25316 case $ac_optarg in
25317 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25318 esac
25319 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25320 ac_need_defaults=false;;
25321 --he | --h)
25322 # Conflict between --help and --header
25323 as_fn_error "ambiguous option: \`$1'
25324 Try \`$0 --help' for more information.";;
25325 --help | --hel | -h )
25326 $as_echo "$ac_cs_usage"; exit ;;
25327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25328 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25329 ac_cs_silent=: ;;
25331 # This is an error.
25332 -*) as_fn_error "unrecognized option: \`$1'
25333 Try \`$0 --help' for more information." ;;
25335 *) as_fn_append ac_config_targets " $1"
25336 ac_need_defaults=false ;;
25338 esac
25339 shift
25340 done
25342 ac_configure_extra_args=
25344 if $ac_cs_silent; then
25345 exec 6>/dev/null
25346 ac_configure_extra_args="$ac_configure_extra_args --silent"
25349 _ACEOF
25350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25351 if \$ac_cs_recheck; then
25352 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25353 shift
25354 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25355 CONFIG_SHELL='$SHELL'
25356 export CONFIG_SHELL
25357 exec "\$@"
25360 _ACEOF
25361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25362 exec 5>>config.log
25364 echo
25365 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25366 ## Running $as_me. ##
25367 _ASBOX
25368 $as_echo "$ac_log"
25369 } >&5
25371 _ACEOF
25372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25374 # INIT-COMMANDS
25377 srcdir="$srcdir"
25378 host="$host"
25379 target="$target"
25380 with_multisubdir="$with_multisubdir"
25381 with_multisrctop="$with_multisrctop"
25382 with_target_subdir="$with_target_subdir"
25383 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25384 multi_basedir="$multi_basedir"
25385 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25386 CC="$CC"
25387 CXX="$CXX"
25388 GFORTRAN="$GFORTRAN"
25389 GCJ="$GCJ"
25390 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25393 # The HP-UX ksh and POSIX shell print the target directory to stdout
25394 # if CDPATH is set.
25395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25397 sed_quote_subst='$sed_quote_subst'
25398 double_quote_subst='$double_quote_subst'
25399 delay_variable_subst='$delay_variable_subst'
25400 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25401 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25402 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25403 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25404 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25405 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25406 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25407 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25408 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25409 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25410 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25411 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25412 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25413 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25414 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25415 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25416 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25417 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25418 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25419 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25420 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25421 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25422 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25423 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25424 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25425 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25426 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25427 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25428 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25429 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25430 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25431 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25432 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25433 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25434 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25435 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25436 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25437 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25438 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25439 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25440 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25441 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25442 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25443 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25444 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"`'
25445 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"`'
25446 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25447 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25448 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25449 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25450 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25451 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25452 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25453 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25454 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25455 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25456 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25457 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25458 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25459 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25460 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25461 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25462 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25463 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25464 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25465 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25466 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25467 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25468 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25469 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25470 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25471 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25472 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25473 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25474 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25475 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25476 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25477 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25478 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25479 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25480 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25481 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25482 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25483 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25484 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25485 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25486 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25487 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25488 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25489 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25490 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25491 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25492 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25493 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25494 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25495 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25496 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25497 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25498 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25499 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25500 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25501 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25502 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25503 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25504 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25505 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25506 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25507 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25508 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25509 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25510 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25511 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25512 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25513 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25514 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25515 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25516 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25517 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25518 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25519 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25520 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25521 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25522 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25523 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25524 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25525 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25526 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25527 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25528 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25529 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25530 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25531 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25532 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25533 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25534 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25535 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25536 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25537 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25538 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25539 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25540 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25541 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25542 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25543 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25544 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25545 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25546 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25547 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25548 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25549 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25550 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25551 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25552 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25553 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25554 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25555 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25556 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25557 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25558 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25559 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25560 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25561 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25562 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25563 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25564 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25565 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25566 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25567 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25568 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25569 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25570 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25571 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25572 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25573 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25574 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25575 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25576 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25577 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25578 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25579 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25580 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25581 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25582 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25583 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25584 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25585 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25586 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25587 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25588 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25589 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25590 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25591 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25592 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25593 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25594 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25595 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25596 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25597 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25598 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25599 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25600 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25601 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25602 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25603 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25604 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25605 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25606 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25607 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25608 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25609 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25610 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25611 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25612 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25613 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25614 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25615 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25616 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25617 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25619 LTCC='$LTCC'
25620 LTCFLAGS='$LTCFLAGS'
25621 compiler='$compiler_DEFAULT'
25623 # Quote evaled strings.
25624 for var in SED \
25625 GREP \
25626 EGREP \
25627 FGREP \
25628 LD \
25629 NM \
25630 LN_S \
25631 lt_SP2NL \
25632 lt_NL2SP \
25633 reload_flag \
25634 OBJDUMP \
25635 deplibs_check_method \
25636 file_magic_cmd \
25637 AR \
25638 AR_FLAGS \
25639 STRIP \
25640 RANLIB \
25641 CC \
25642 CFLAGS \
25643 compiler \
25644 lt_cv_sys_global_symbol_pipe \
25645 lt_cv_sys_global_symbol_to_cdecl \
25646 lt_cv_sys_global_symbol_to_c_name_address \
25647 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25648 SHELL \
25649 ECHO \
25650 lt_prog_compiler_no_builtin_flag \
25651 lt_prog_compiler_wl \
25652 lt_prog_compiler_pic \
25653 lt_prog_compiler_static \
25654 lt_cv_prog_compiler_c_o \
25655 need_locks \
25656 DSYMUTIL \
25657 NMEDIT \
25658 LIPO \
25659 OTOOL \
25660 OTOOL64 \
25661 shrext_cmds \
25662 export_dynamic_flag_spec \
25663 whole_archive_flag_spec \
25664 compiler_needs_object \
25665 with_gnu_ld \
25666 allow_undefined_flag \
25667 no_undefined_flag \
25668 hardcode_libdir_flag_spec \
25669 hardcode_libdir_flag_spec_ld \
25670 hardcode_libdir_separator \
25671 fix_srcfile_path \
25672 exclude_expsyms \
25673 include_expsyms \
25674 file_list_spec \
25675 variables_saved_for_relink \
25676 libname_spec \
25677 library_names_spec \
25678 soname_spec \
25679 finish_eval \
25680 old_striplib \
25681 striplib \
25682 compiler_lib_search_dirs \
25683 predep_objects \
25684 postdep_objects \
25685 predeps \
25686 postdeps \
25687 compiler_lib_search_path \
25688 LD_CXX \
25689 LD_GCJ \
25690 compiler_CXX \
25691 compiler_GCJ \
25692 lt_prog_compiler_no_builtin_flag_CXX \
25693 lt_prog_compiler_no_builtin_flag_GCJ \
25694 lt_prog_compiler_wl_CXX \
25695 lt_prog_compiler_wl_GCJ \
25696 lt_prog_compiler_pic_CXX \
25697 lt_prog_compiler_pic_GCJ \
25698 lt_prog_compiler_static_CXX \
25699 lt_prog_compiler_static_GCJ \
25700 lt_cv_prog_compiler_c_o_CXX \
25701 lt_cv_prog_compiler_c_o_GCJ \
25702 export_dynamic_flag_spec_CXX \
25703 export_dynamic_flag_spec_GCJ \
25704 whole_archive_flag_spec_CXX \
25705 whole_archive_flag_spec_GCJ \
25706 compiler_needs_object_CXX \
25707 compiler_needs_object_GCJ \
25708 with_gnu_ld_CXX \
25709 with_gnu_ld_GCJ \
25710 allow_undefined_flag_CXX \
25711 allow_undefined_flag_GCJ \
25712 no_undefined_flag_CXX \
25713 no_undefined_flag_GCJ \
25714 hardcode_libdir_flag_spec_CXX \
25715 hardcode_libdir_flag_spec_GCJ \
25716 hardcode_libdir_flag_spec_ld_CXX \
25717 hardcode_libdir_flag_spec_ld_GCJ \
25718 hardcode_libdir_separator_CXX \
25719 hardcode_libdir_separator_GCJ \
25720 fix_srcfile_path_CXX \
25721 fix_srcfile_path_GCJ \
25722 exclude_expsyms_CXX \
25723 exclude_expsyms_GCJ \
25724 include_expsyms_CXX \
25725 include_expsyms_GCJ \
25726 file_list_spec_CXX \
25727 file_list_spec_GCJ \
25728 compiler_lib_search_dirs_CXX \
25729 compiler_lib_search_dirs_GCJ \
25730 predep_objects_CXX \
25731 predep_objects_GCJ \
25732 postdep_objects_CXX \
25733 postdep_objects_GCJ \
25734 predeps_CXX \
25735 predeps_GCJ \
25736 postdeps_CXX \
25737 postdeps_GCJ \
25738 compiler_lib_search_path_CXX \
25739 compiler_lib_search_path_GCJ; do
25740 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25741 *[\\\\\\\`\\"\\\$]*)
25742 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25745 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25747 esac
25748 done
25750 # Double-quote double-evaled strings.
25751 for var in reload_cmds \
25752 old_postinstall_cmds \
25753 old_postuninstall_cmds \
25754 old_archive_cmds \
25755 extract_expsyms_cmds \
25756 old_archive_from_new_cmds \
25757 old_archive_from_expsyms_cmds \
25758 archive_cmds \
25759 archive_expsym_cmds \
25760 module_cmds \
25761 module_expsym_cmds \
25762 export_symbols_cmds \
25763 prelink_cmds \
25764 postinstall_cmds \
25765 postuninstall_cmds \
25766 finish_cmds \
25767 sys_lib_search_path_spec \
25768 sys_lib_dlsearch_path_spec \
25769 old_archive_cmds_CXX \
25770 old_archive_cmds_GCJ \
25771 old_archive_from_new_cmds_CXX \
25772 old_archive_from_new_cmds_GCJ \
25773 old_archive_from_expsyms_cmds_CXX \
25774 old_archive_from_expsyms_cmds_GCJ \
25775 archive_cmds_CXX \
25776 archive_cmds_GCJ \
25777 archive_expsym_cmds_CXX \
25778 archive_expsym_cmds_GCJ \
25779 module_cmds_CXX \
25780 module_cmds_GCJ \
25781 module_expsym_cmds_CXX \
25782 module_expsym_cmds_GCJ \
25783 export_symbols_cmds_CXX \
25784 export_symbols_cmds_GCJ \
25785 prelink_cmds_CXX \
25786 prelink_cmds_GCJ; do
25787 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25788 *[\\\\\\\`\\"\\\$]*)
25789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25794 esac
25795 done
25797 # Fix-up fallback echo if it was mangled by the above quoting rules.
25798 case \$lt_ECHO in
25799 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25801 esac
25803 ac_aux_dir='$ac_aux_dir'
25804 xsi_shell='$xsi_shell'
25805 lt_shell_append='$lt_shell_append'
25807 # See if we are running on zsh, and set the options which allow our
25808 # commands through without removal of \ escapes INIT.
25809 if test -n "\${ZSH_VERSION+set}" ; then
25810 setopt NO_GLOB_SUBST
25814 PACKAGE='$PACKAGE'
25815 VERSION='$VERSION'
25816 TIMESTAMP='$TIMESTAMP'
25817 RM='$RM'
25818 ofile='$ofile'
25827 _ACEOF
25829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25831 # Handling of arguments.
25832 for ac_config_target in $ac_config_targets
25834 case $ac_config_target in
25835 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25836 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25837 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25838 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25839 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25840 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25841 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25842 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25843 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25844 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25845 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25846 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25847 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25848 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25849 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25850 "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" ;;
25851 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25852 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25853 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25854 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25855 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25856 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25857 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25859 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25860 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25861 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25862 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25863 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25864 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25865 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25866 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25867 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25868 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25869 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25870 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25872 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25873 esac
25874 done
25877 # If the user did not use the arguments to specify the items to instantiate,
25878 # then the envvar interface is used. Set only those that are not.
25879 # We use the long form for the default assignment because of an extremely
25880 # bizarre bug on SunOS 4.1.3.
25881 if $ac_need_defaults; then
25882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25884 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25888 # Have a temporary directory for convenience. Make it in the build tree
25889 # simply because there is no reason against having it here, and in addition,
25890 # creating and moving files from /tmp can sometimes cause problems.
25891 # Hook for its removal unless debugging.
25892 # Note that there is a small window in which the directory will not be cleaned:
25893 # after its creation but before its name has been assigned to `$tmp'.
25894 $debug ||
25896 tmp=
25897 trap 'exit_status=$?
25898 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25900 trap 'as_fn_exit 1' 1 2 13 15
25902 # Create a (secure) tmp directory for tmp files.
25905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25906 test -n "$tmp" && test -d "$tmp"
25907 } ||
25909 tmp=./conf$$-$RANDOM
25910 (umask 077 && mkdir "$tmp")
25911 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25913 # Set up the scripts for CONFIG_FILES section.
25914 # No need to generate them if there are no CONFIG_FILES.
25915 # This happens for instance with `./config.status config.h'.
25916 if test -n "$CONFIG_FILES"; then
25919 ac_cr=`echo X | tr X '\015'`
25920 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25921 # But we know of no other shell where ac_cr would be empty at this
25922 # point, so we can use a bashism as a fallback.
25923 if test "x$ac_cr" = x; then
25924 eval ac_cr=\$\'\\r\'
25926 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25927 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25928 ac_cs_awk_cr='\r'
25929 else
25930 ac_cs_awk_cr=$ac_cr
25933 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25934 _ACEOF
25938 echo "cat >conf$$subs.awk <<_ACEOF" &&
25939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25940 echo "_ACEOF"
25941 } >conf$$subs.sh ||
25942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25943 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25944 ac_delim='%!_!# '
25945 for ac_last_try in false false false false false :; do
25946 . ./conf$$subs.sh ||
25947 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25949 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25950 if test $ac_delim_n = $ac_delim_num; then
25951 break
25952 elif $ac_last_try; then
25953 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25954 else
25955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25957 done
25958 rm -f conf$$subs.sh
25960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25961 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25962 _ACEOF
25963 sed -n '
25965 s/^/S["/; s/!.*/"]=/
25968 s/^[^!]*!//
25969 :repl
25970 t repl
25971 s/'"$ac_delim"'$//
25972 t delim
25975 s/\(.\{148\}\).*/\1/
25976 t more1
25977 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25980 b repl
25981 :more1
25982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25985 s/.\{148\}//
25986 t nl
25987 :delim
25989 s/\(.\{148\}\).*/\1/
25990 t more2
25991 s/["\\]/\\&/g; s/^/"/; s/$/"/
25994 :more2
25995 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25998 s/.\{148\}//
25999 t delim
26000 ' <conf$$subs.awk | sed '
26001 /^[^""]/{
26003 s/\n//
26005 ' >>$CONFIG_STATUS || ac_write_fail=1
26006 rm -f conf$$subs.awk
26007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26008 _ACAWK
26009 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26010 for (key in S) S_is_set[key] = 1
26011 FS = "\a"
26015 line = $ 0
26016 nfields = split(line, field, "@")
26017 substed = 0
26018 len = length(field[1])
26019 for (i = 2; i < nfields; i++) {
26020 key = field[i]
26021 keylen = length(key)
26022 if (S_is_set[key]) {
26023 value = S[key]
26024 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26025 len += length(value) + length(field[++i])
26026 substed = 1
26027 } else
26028 len += 1 + keylen
26031 print line
26034 _ACAWK
26035 _ACEOF
26036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26037 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26038 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26039 else
26041 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26042 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26043 _ACEOF
26045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26047 # trailing colons and then remove the whole line if VPATH becomes empty
26048 # (actually we leave an empty line to preserve line numbers).
26049 if test "x$srcdir" = x.; then
26050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26051 s/:*\$(srcdir):*/:/
26052 s/:*\${srcdir}:*/:/
26053 s/:*@srcdir@:*/:/
26054 s/^\([^=]*=[ ]*\):*/\1/
26055 s/:*$//
26056 s/^[^=]*=[ ]*$//
26060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26061 fi # test -n "$CONFIG_FILES"
26063 # Set up the scripts for CONFIG_HEADERS section.
26064 # No need to generate them if there are no CONFIG_HEADERS.
26065 # This happens for instance with `./config.status Makefile'.
26066 if test -n "$CONFIG_HEADERS"; then
26067 cat >"$tmp/defines.awk" <<\_ACAWK ||
26068 BEGIN {
26069 _ACEOF
26071 # Transform confdefs.h into an awk script `defines.awk', embedded as
26072 # here-document in config.status, that substitutes the proper values into
26073 # config.h.in to produce config.h.
26075 # Create a delimiter string that does not exist in confdefs.h, to ease
26076 # handling of long lines.
26077 ac_delim='%!_!# '
26078 for ac_last_try in false false :; do
26079 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26080 if test -z "$ac_t"; then
26081 break
26082 elif $ac_last_try; then
26083 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26084 else
26085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26087 done
26089 # For the awk script, D is an array of macro values keyed by name,
26090 # likewise P contains macro parameters if any. Preserve backslash
26091 # newline sequences.
26093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26094 sed -n '
26095 s/.\{148\}/&'"$ac_delim"'/g
26096 t rset
26097 :rset
26098 s/^[ ]*#[ ]*define[ ][ ]*/ /
26099 t def
26101 :def
26102 s/\\$//
26103 t bsnl
26104 s/["\\]/\\&/g
26105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26106 D["\1"]=" \3"/p
26107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26109 :bsnl
26110 s/["\\]/\\&/g
26111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26112 D["\1"]=" \3\\\\\\n"\\/p
26113 t cont
26114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26115 t cont
26117 :cont
26119 s/.\{148\}/&'"$ac_delim"'/g
26120 t clear
26121 :clear
26122 s/\\$//
26123 t bsnlc
26124 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26126 :bsnlc
26127 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26128 b cont
26129 ' <confdefs.h | sed '
26130 s/'"$ac_delim"'/"\\\
26131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26134 for (key in D) D_is_set[key] = 1
26135 FS = "\a"
26137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26138 line = \$ 0
26139 split(line, arg, " ")
26140 if (arg[1] == "#") {
26141 defundef = arg[2]
26142 mac1 = arg[3]
26143 } else {
26144 defundef = substr(arg[1], 2)
26145 mac1 = arg[2]
26147 split(mac1, mac2, "(") #)
26148 macro = mac2[1]
26149 prefix = substr(line, 1, index(line, defundef) - 1)
26150 if (D_is_set[macro]) {
26151 # Preserve the white space surrounding the "#".
26152 print prefix "define", macro P[macro] D[macro]
26153 next
26154 } else {
26155 # Replace #undef with comments. This is necessary, for example,
26156 # in the case of _POSIX_SOURCE, which is predefined and required
26157 # on some systems where configure will not decide to define it.
26158 if (defundef == "undef") {
26159 print "/*", prefix defundef, macro, "*/"
26160 next
26164 { print }
26165 _ACAWK
26166 _ACEOF
26167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26168 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26169 fi # test -n "$CONFIG_HEADERS"
26172 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26173 shift
26174 for ac_tag
26176 case $ac_tag in
26177 :[FHLC]) ac_mode=$ac_tag; continue;;
26178 esac
26179 case $ac_mode$ac_tag in
26180 :[FHL]*:*);;
26181 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26182 :[FH]-) ac_tag=-:-;;
26183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26184 esac
26185 ac_save_IFS=$IFS
26186 IFS=:
26187 set x $ac_tag
26188 IFS=$ac_save_IFS
26189 shift
26190 ac_file=$1
26191 shift
26193 case $ac_mode in
26194 :L) ac_source=$1;;
26195 :[FH])
26196 ac_file_inputs=
26197 for ac_f
26199 case $ac_f in
26200 -) ac_f="$tmp/stdin";;
26201 *) # Look for the file first in the build tree, then in the source tree
26202 # (if the path is not absolute). The absolute path cannot be DOS-style,
26203 # because $ac_f cannot contain `:'.
26204 test -f "$ac_f" ||
26205 case $ac_f in
26206 [\\/$]*) false;;
26207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26208 esac ||
26209 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26210 esac
26211 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26212 as_fn_append ac_file_inputs " '$ac_f'"
26213 done
26215 # Let's still pretend it is `configure' which instantiates (i.e., don't
26216 # use $as_me), people would be surprised to read:
26217 # /* config.h. Generated by config.status. */
26218 configure_input='Generated from '`
26219 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26220 `' by configure.'
26221 if test x"$ac_file" != x-; then
26222 configure_input="$ac_file. $configure_input"
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26224 $as_echo "$as_me: creating $ac_file" >&6;}
26226 # Neutralize special characters interpreted by sed in replacement strings.
26227 case $configure_input in #(
26228 *\&* | *\|* | *\\* )
26229 ac_sed_conf_input=`$as_echo "$configure_input" |
26230 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26231 *) ac_sed_conf_input=$configure_input;;
26232 esac
26234 case $ac_tag in
26235 *:-:* | *:-) cat >"$tmp/stdin" \
26236 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26237 esac
26239 esac
26241 ac_dir=`$as_dirname -- "$ac_file" ||
26242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26243 X"$ac_file" : 'X\(//\)[^/]' \| \
26244 X"$ac_file" : 'X\(//\)$' \| \
26245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26246 $as_echo X"$ac_file" |
26247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26248 s//\1/
26251 /^X\(\/\/\)[^/].*/{
26252 s//\1/
26255 /^X\(\/\/\)$/{
26256 s//\1/
26259 /^X\(\/\).*/{
26260 s//\1/
26263 s/.*/./; q'`
26264 as_dir="$ac_dir"; as_fn_mkdir_p
26265 ac_builddir=.
26267 case "$ac_dir" in
26268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26271 # A ".." for each directory in $ac_dir_suffix.
26272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26273 case $ac_top_builddir_sub in
26274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26276 esac ;;
26277 esac
26278 ac_abs_top_builddir=$ac_pwd
26279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26280 # for backward compatibility:
26281 ac_top_builddir=$ac_top_build_prefix
26283 case $srcdir in
26284 .) # We are building in place.
26285 ac_srcdir=.
26286 ac_top_srcdir=$ac_top_builddir_sub
26287 ac_abs_top_srcdir=$ac_pwd ;;
26288 [\\/]* | ?:[\\/]* ) # Absolute name.
26289 ac_srcdir=$srcdir$ac_dir_suffix;
26290 ac_top_srcdir=$srcdir
26291 ac_abs_top_srcdir=$srcdir ;;
26292 *) # Relative name.
26293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26294 ac_top_srcdir=$ac_top_build_prefix$srcdir
26295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26296 esac
26297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26300 case $ac_mode in
26303 # CONFIG_FILE
26306 case $INSTALL in
26307 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26308 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26309 esac
26310 ac_MKDIR_P=$MKDIR_P
26311 case $MKDIR_P in
26312 [\\/$]* | ?:[\\/]* ) ;;
26313 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26314 esac
26315 _ACEOF
26317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26318 # If the template does not know about datarootdir, expand it.
26319 # FIXME: This hack should be removed a few years after 2.60.
26320 ac_datarootdir_hack=; ac_datarootdir_seen=
26321 ac_sed_dataroot='
26322 /datarootdir/ {
26326 /@datadir@/p
26327 /@docdir@/p
26328 /@infodir@/p
26329 /@localedir@/p
26330 /@mandir@/p'
26331 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26332 *datarootdir*) ac_datarootdir_seen=yes;;
26333 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26335 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26336 _ACEOF
26337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26338 ac_datarootdir_hack='
26339 s&@datadir@&$datadir&g
26340 s&@docdir@&$docdir&g
26341 s&@infodir@&$infodir&g
26342 s&@localedir@&$localedir&g
26343 s&@mandir@&$mandir&g
26344 s&\\\${datarootdir}&$datarootdir&g' ;;
26345 esac
26346 _ACEOF
26348 # Neutralize VPATH when `$srcdir' = `.'.
26349 # Shell code in configure.ac might set extrasub.
26350 # FIXME: do we really want to maintain this feature?
26351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26352 ac_sed_extra="$ac_vpsub
26353 $extrasub
26354 _ACEOF
26355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26358 s|@configure_input@|$ac_sed_conf_input|;t t
26359 s&@top_builddir@&$ac_top_builddir_sub&;t t
26360 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26361 s&@srcdir@&$ac_srcdir&;t t
26362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26363 s&@top_srcdir@&$ac_top_srcdir&;t t
26364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26365 s&@builddir@&$ac_builddir&;t t
26366 s&@abs_builddir@&$ac_abs_builddir&;t t
26367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26368 s&@INSTALL@&$ac_INSTALL&;t t
26369 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26370 $ac_datarootdir_hack
26372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26373 || as_fn_error "could not create $ac_file" "$LINENO" 5
26375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26379 which seems to be undefined. Please make sure it is defined." >&5
26380 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26381 which seems to be undefined. Please make sure it is defined." >&2;}
26383 rm -f "$tmp/stdin"
26384 case $ac_file in
26385 -) cat "$tmp/out" && rm -f "$tmp/out";;
26386 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26387 esac \
26388 || as_fn_error "could not create $ac_file" "$LINENO" 5
26392 # CONFIG_HEADER
26394 if test x"$ac_file" != x-; then
26396 $as_echo "/* $configure_input */" \
26397 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26398 } >"$tmp/config.h" \
26399 || as_fn_error "could not create $ac_file" "$LINENO" 5
26400 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26402 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26403 else
26404 rm -f "$ac_file"
26405 mv "$tmp/config.h" "$ac_file" \
26406 || as_fn_error "could not create $ac_file" "$LINENO" 5
26408 else
26409 $as_echo "/* $configure_input */" \
26410 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26411 || as_fn_error "could not create -" "$LINENO" 5
26413 # Compute "$ac_file"'s index in $config_headers.
26414 _am_arg="$ac_file"
26415 _am_stamp_count=1
26416 for _am_header in $config_headers :; do
26417 case $_am_header in
26418 $_am_arg | $_am_arg:* )
26419 break ;;
26421 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26422 esac
26423 done
26424 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26425 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26426 X"$_am_arg" : 'X\(//\)[^/]' \| \
26427 X"$_am_arg" : 'X\(//\)$' \| \
26428 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26429 $as_echo X"$_am_arg" |
26430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26431 s//\1/
26434 /^X\(\/\/\)[^/].*/{
26435 s//\1/
26438 /^X\(\/\/\)$/{
26439 s//\1/
26442 /^X\(\/\).*/{
26443 s//\1/
26446 s/.*/./; q'`/stamp-h$_am_stamp_count
26450 # CONFIG_LINK
26453 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26455 else
26456 # Prefer the file from the source tree if names are identical.
26457 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26458 ac_source=$srcdir/$ac_source
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26462 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26464 if test ! -r "$ac_source"; then
26465 as_fn_error "$ac_source: file not found" "$LINENO" 5
26467 rm -f "$ac_file"
26469 # Try a relative symlink, then a hard link, then a copy.
26470 case $srcdir in
26471 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26472 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26473 esac
26474 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26475 ln "$ac_source" "$ac_file" 2>/dev/null ||
26476 cp -p "$ac_source" "$ac_file" ||
26477 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26480 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26481 $as_echo "$as_me: executing $ac_file commands" >&6;}
26483 esac
26486 case $ac_file$ac_mode in
26487 "default-1":C)
26488 # Only add multilib support code if we just rebuilt the top-level
26489 # Makefile.
26490 case " $CONFIG_FILES " in
26491 *" Makefile "*)
26492 ac_file=Makefile . ${multi_basedir}/config-ml.in
26494 esac ;;
26495 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26496 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26497 # are listed without --file. Let's play safe and only enable the eval
26498 # if we detect the quoting.
26499 case $CONFIG_FILES in
26500 *\'*) eval set x "$CONFIG_FILES" ;;
26501 *) set x $CONFIG_FILES ;;
26502 esac
26503 shift
26504 for mf
26506 # Strip MF so we end up with the name of the file.
26507 mf=`echo "$mf" | sed -e 's/:.*$//'`
26508 # Check whether this is an Automake generated Makefile or not.
26509 # We used to match only the files named `Makefile.in', but
26510 # some people rename them; so instead we look at the file content.
26511 # Grep'ing the first line is not enough: some people post-process
26512 # each Makefile.in and add a new line on top of each file to say so.
26513 # Grep'ing the whole file is not good either: AIX grep has a line
26514 # limit of 2048, but all sed's we know have understand at least 4000.
26515 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26516 dirpart=`$as_dirname -- "$mf" ||
26517 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26518 X"$mf" : 'X\(//\)[^/]' \| \
26519 X"$mf" : 'X\(//\)$' \| \
26520 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26521 $as_echo X"$mf" |
26522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26523 s//\1/
26526 /^X\(\/\/\)[^/].*/{
26527 s//\1/
26530 /^X\(\/\/\)$/{
26531 s//\1/
26534 /^X\(\/\).*/{
26535 s//\1/
26538 s/.*/./; q'`
26539 else
26540 continue
26542 # Extract the definition of DEPDIR, am__include, and am__quote
26543 # from the Makefile without running `make'.
26544 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26545 test -z "$DEPDIR" && continue
26546 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26547 test -z "am__include" && continue
26548 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26549 # When using ansi2knr, U may be empty or an underscore; expand it
26550 U=`sed -n 's/^U = //p' < "$mf"`
26551 # Find all dependency output files, they are included files with
26552 # $(DEPDIR) in their names. We invoke sed twice because it is the
26553 # simplest approach to changing $(DEPDIR) to its actual value in the
26554 # expansion.
26555 for file in `sed -n "
26556 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26557 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26558 # Make sure the directory exists.
26559 test -f "$dirpart/$file" && continue
26560 fdir=`$as_dirname -- "$file" ||
26561 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26562 X"$file" : 'X\(//\)[^/]' \| \
26563 X"$file" : 'X\(//\)$' \| \
26564 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26565 $as_echo X"$file" |
26566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26567 s//\1/
26570 /^X\(\/\/\)[^/].*/{
26571 s//\1/
26574 /^X\(\/\/\)$/{
26575 s//\1/
26578 /^X\(\/\).*/{
26579 s//\1/
26582 s/.*/./; q'`
26583 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26584 # echo "creating $dirpart/$file"
26585 echo '# dummy' > "$dirpart/$file"
26586 done
26587 done
26590 "libtool":C)
26592 # See if we are running on zsh, and set the options which allow our
26593 # commands through without removal of \ escapes.
26594 if test -n "${ZSH_VERSION+set}" ; then
26595 setopt NO_GLOB_SUBST
26598 cfgfile="${ofile}T"
26599 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26600 $RM "$cfgfile"
26602 cat <<_LT_EOF >> "$cfgfile"
26603 #! $SHELL
26605 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26606 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26608 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26610 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26611 # 2006, 2007, 2008 Free Software Foundation, Inc.
26612 # Written by Gordon Matzigkeit, 1996
26614 # This file is part of GNU Libtool.
26616 # GNU Libtool is free software; you can redistribute it and/or
26617 # modify it under the terms of the GNU General Public License as
26618 # published by the Free Software Foundation; either version 2 of
26619 # the License, or (at your option) any later version.
26621 # As a special exception to the GNU General Public License,
26622 # if you distribute this file as part of a program or library that
26623 # is built using GNU Libtool, you may include this file under the
26624 # same distribution terms that you use for the rest of that program.
26626 # GNU Libtool is distributed in the hope that it will be useful,
26627 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26628 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26629 # GNU General Public License for more details.
26631 # You should have received a copy of the GNU General Public License
26632 # along with GNU Libtool; see the file COPYING. If not, a copy
26633 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26634 # obtained by writing to the Free Software Foundation, Inc.,
26635 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26638 # The names of the tagged configurations supported by this script.
26639 available_tags="CXX GCJ "
26641 # ### BEGIN LIBTOOL CONFIG
26643 # Which release of libtool.m4 was used?
26644 macro_version=$macro_version
26645 macro_revision=$macro_revision
26647 # Whether or not to build shared libraries.
26648 build_libtool_libs=$enable_shared
26650 # Whether or not to build static libraries.
26651 build_old_libs=$enable_static
26653 # What type of objects to build.
26654 pic_mode=$pic_mode
26656 # Whether or not to optimize for fast installation.
26657 fast_install=$enable_fast_install
26659 # The host system.
26660 host_alias=$host_alias
26661 host=$host
26662 host_os=$host_os
26664 # The build system.
26665 build_alias=$build_alias
26666 build=$build
26667 build_os=$build_os
26669 # A sed program that does not truncate output.
26670 SED=$lt_SED
26672 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26673 Xsed="\$SED -e 1s/^X//"
26675 # A grep program that handles long lines.
26676 GREP=$lt_GREP
26678 # An ERE matcher.
26679 EGREP=$lt_EGREP
26681 # A literal string matcher.
26682 FGREP=$lt_FGREP
26684 # A BSD- or MS-compatible name lister.
26685 NM=$lt_NM
26687 # Whether we need soft or hard links.
26688 LN_S=$lt_LN_S
26690 # What is the maximum length of a command?
26691 max_cmd_len=$max_cmd_len
26693 # Object file suffix (normally "o").
26694 objext=$ac_objext
26696 # Executable file suffix (normally "").
26697 exeext=$exeext
26699 # whether the shell understands "unset".
26700 lt_unset=$lt_unset
26702 # turn spaces into newlines.
26703 SP2NL=$lt_lt_SP2NL
26705 # turn newlines into spaces.
26706 NL2SP=$lt_lt_NL2SP
26708 # How to create reloadable object files.
26709 reload_flag=$lt_reload_flag
26710 reload_cmds=$lt_reload_cmds
26712 # An object symbol dumper.
26713 OBJDUMP=$lt_OBJDUMP
26715 # Method to check whether dependent libraries are shared objects.
26716 deplibs_check_method=$lt_deplibs_check_method
26718 # Command to use when deplibs_check_method == "file_magic".
26719 file_magic_cmd=$lt_file_magic_cmd
26721 # The archiver.
26722 AR=$lt_AR
26723 AR_FLAGS=$lt_AR_FLAGS
26725 # A symbol stripping program.
26726 STRIP=$lt_STRIP
26728 # Commands used to install an old-style archive.
26729 RANLIB=$lt_RANLIB
26730 old_postinstall_cmds=$lt_old_postinstall_cmds
26731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26733 # A C compiler.
26734 LTCC=$lt_CC
26736 # LTCC compiler flags.
26737 LTCFLAGS=$lt_CFLAGS
26739 # Take the output of nm and produce a listing of raw symbols and C names.
26740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26742 # Transform the output of nm in a proper C declaration.
26743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26745 # Transform the output of nm in a C name address pair.
26746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26748 # Transform the output of nm in a C name address pair when lib prefix is needed.
26749 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26751 # The name of the directory that contains temporary libtool files.
26752 objdir=$objdir
26754 # Shell to use when invoking shell scripts.
26755 SHELL=$lt_SHELL
26757 # An echo program that does not interpret backslashes.
26758 ECHO=$lt_ECHO
26760 # Used to examine libraries when file_magic_cmd begins with "file".
26761 MAGIC_CMD=$MAGIC_CMD
26763 # Must we lock files when doing compilation?
26764 need_locks=$lt_need_locks
26766 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26767 DSYMUTIL=$lt_DSYMUTIL
26769 # Tool to change global to local symbols on Mac OS X.
26770 NMEDIT=$lt_NMEDIT
26772 # Tool to manipulate fat objects and archives on Mac OS X.
26773 LIPO=$lt_LIPO
26775 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26776 OTOOL=$lt_OTOOL
26778 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26779 OTOOL64=$lt_OTOOL64
26781 # Old archive suffix (normally "a").
26782 libext=$libext
26784 # Shared library suffix (normally ".so").
26785 shrext_cmds=$lt_shrext_cmds
26787 # The commands to extract the exported symbol list from a shared archive.
26788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26790 # Variables whose values should be saved in libtool wrapper scripts and
26791 # restored at link time.
26792 variables_saved_for_relink=$lt_variables_saved_for_relink
26794 # Do we need the "lib" prefix for modules?
26795 need_lib_prefix=$need_lib_prefix
26797 # Do we need a version for libraries?
26798 need_version=$need_version
26800 # Library versioning type.
26801 version_type=$version_type
26803 # Shared library runtime path variable.
26804 runpath_var=$runpath_var
26806 # Shared library path variable.
26807 shlibpath_var=$shlibpath_var
26809 # Is shlibpath searched before the hard-coded library search path?
26810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26812 # Format of library name prefix.
26813 libname_spec=$lt_libname_spec
26815 # List of archive names. First name is the real one, the rest are links.
26816 # The last name is the one that the linker finds with -lNAME
26817 library_names_spec=$lt_library_names_spec
26819 # The coded name of the library, if different from the real name.
26820 soname_spec=$lt_soname_spec
26822 # Command to use after installation of a shared archive.
26823 postinstall_cmds=$lt_postinstall_cmds
26825 # Command to use after uninstallation of a shared archive.
26826 postuninstall_cmds=$lt_postuninstall_cmds
26828 # Commands used to finish a libtool library installation in a directory.
26829 finish_cmds=$lt_finish_cmds
26831 # As "finish_cmds", except a single script fragment to be evaled but
26832 # not shown.
26833 finish_eval=$lt_finish_eval
26835 # Whether we should hardcode library paths into libraries.
26836 hardcode_into_libs=$hardcode_into_libs
26838 # Compile-time system search path for libraries.
26839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26841 # Run-time system search path for libraries.
26842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26844 # Whether dlopen is supported.
26845 dlopen_support=$enable_dlopen
26847 # Whether dlopen of programs is supported.
26848 dlopen_self=$enable_dlopen_self
26850 # Whether dlopen of statically linked programs is supported.
26851 dlopen_self_static=$enable_dlopen_self_static
26853 # Commands to strip libraries.
26854 old_striplib=$lt_old_striplib
26855 striplib=$lt_striplib
26858 # The linker used to build libraries.
26859 LD=$lt_LD
26861 # Commands used to build an old-style archive.
26862 old_archive_cmds=$lt_old_archive_cmds
26864 # A language specific compiler.
26865 CC=$lt_compiler
26867 # Is the compiler the GNU compiler?
26868 with_gcc=$GCC
26870 # Compiler flag to turn off builtin functions.
26871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26873 # How to pass a linker flag through the compiler.
26874 wl=$lt_lt_prog_compiler_wl
26876 # Additional compiler flags for building library objects.
26877 pic_flag=$lt_lt_prog_compiler_pic
26879 # Compiler flag to prevent dynamic linking.
26880 link_static_flag=$lt_lt_prog_compiler_static
26882 # Does compiler simultaneously support -c and -o options?
26883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26885 # Whether or not to add -lc for building shared libraries.
26886 build_libtool_need_lc=$archive_cmds_need_lc
26888 # Whether or not to disallow shared libs when runtime libs are static.
26889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26891 # Compiler flag to allow reflexive dlopens.
26892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26894 # Compiler flag to generate shared objects directly from archives.
26895 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26897 # Whether the compiler copes with passing no objects directly.
26898 compiler_needs_object=$lt_compiler_needs_object
26900 # Create an old-style archive from a shared archive.
26901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26903 # Create a temporary old-style archive to link instead of a shared archive.
26904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26906 # Commands used to build a shared archive.
26907 archive_cmds=$lt_archive_cmds
26908 archive_expsym_cmds=$lt_archive_expsym_cmds
26910 # Commands used to build a loadable module if different from building
26911 # a shared archive.
26912 module_cmds=$lt_module_cmds
26913 module_expsym_cmds=$lt_module_expsym_cmds
26915 # Whether we are building with GNU ld or not.
26916 with_gnu_ld=$lt_with_gnu_ld
26918 # Flag that allows shared libraries with undefined symbols to be built.
26919 allow_undefined_flag=$lt_allow_undefined_flag
26921 # Flag that enforces no undefined symbols.
26922 no_undefined_flag=$lt_no_undefined_flag
26924 # Flag to hardcode \$libdir into a binary during linking.
26925 # This must work even if \$libdir does not exist
26926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26928 # If ld is used when linking, flag to hardcode \$libdir into a binary
26929 # during linking. This must work even if \$libdir does not exist.
26930 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26932 # Whether we need a single "-rpath" flag with a separated argument.
26933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26936 # DIR into the resulting binary.
26937 hardcode_direct=$hardcode_direct
26939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26940 # DIR into the resulting binary and the resulting library dependency is
26941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26942 # library is relocated.
26943 hardcode_direct_absolute=$hardcode_direct_absolute
26945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26946 # into the resulting binary.
26947 hardcode_minus_L=$hardcode_minus_L
26949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26950 # into the resulting binary.
26951 hardcode_shlibpath_var=$hardcode_shlibpath_var
26953 # Set to "yes" if building a shared library automatically hardcodes DIR
26954 # into the library and all subsequent libraries and executables linked
26955 # against it.
26956 hardcode_automatic=$hardcode_automatic
26958 # Set to yes if linker adds runtime paths of dependent libraries
26959 # to runtime path list.
26960 inherit_rpath=$inherit_rpath
26962 # Whether libtool must link a program against all its dependency libraries.
26963 link_all_deplibs=$link_all_deplibs
26965 # Fix the shell variable \$srcfile for the compiler.
26966 fix_srcfile_path=$lt_fix_srcfile_path
26968 # Set to "yes" if exported symbols are required.
26969 always_export_symbols=$always_export_symbols
26971 # The commands to list exported symbols.
26972 export_symbols_cmds=$lt_export_symbols_cmds
26974 # Symbols that should not be listed in the preloaded symbols.
26975 exclude_expsyms=$lt_exclude_expsyms
26977 # Symbols that must always be exported.
26978 include_expsyms=$lt_include_expsyms
26980 # Commands necessary for linking programs (against libraries) with templates.
26981 prelink_cmds=$lt_prelink_cmds
26983 # Specify filename containing input files.
26984 file_list_spec=$lt_file_list_spec
26986 # How to hardcode a shared library path into an executable.
26987 hardcode_action=$hardcode_action
26989 # The directories searched by this compiler when creating a shared library.
26990 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26992 # Dependencies to place before and after the objects being linked to
26993 # create a shared library.
26994 predep_objects=$lt_predep_objects
26995 postdep_objects=$lt_postdep_objects
26996 predeps=$lt_predeps
26997 postdeps=$lt_postdeps
26999 # The library search path used internally by the compiler when linking
27000 # a shared library.
27001 compiler_lib_search_path=$lt_compiler_lib_search_path
27003 # ### END LIBTOOL CONFIG
27005 _LT_EOF
27007 case $host_os in
27008 aix3*)
27009 cat <<\_LT_EOF >> "$cfgfile"
27010 # AIX sometimes has problems with the GCC collect2 program. For some
27011 # reason, if we set the COLLECT_NAMES environment variable, the problems
27012 # vanish in a puff of smoke.
27013 if test "X${COLLECT_NAMES+set}" != Xset; then
27014 COLLECT_NAMES=
27015 export COLLECT_NAMES
27017 _LT_EOF
27019 esac
27022 ltmain="$ac_aux_dir/ltmain.sh"
27025 # We use sed instead of cat because bash on DJGPP gets confused if
27026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27027 # text mode, it properly converts lines to CR/LF. This bash problem
27028 # is reportedly fixed, but why not run on old versions too?
27029 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27030 || (rm -f "$cfgfile"; exit 1)
27032 case $xsi_shell in
27033 yes)
27034 cat << \_LT_EOF >> "$cfgfile"
27036 # func_dirname file append nondir_replacement
27037 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27038 # otherwise set result to NONDIR_REPLACEMENT.
27039 func_dirname ()
27041 case ${1} in
27042 */*) func_dirname_result="${1%/*}${2}" ;;
27043 * ) func_dirname_result="${3}" ;;
27044 esac
27047 # func_basename file
27048 func_basename ()
27050 func_basename_result="${1##*/}"
27053 # func_dirname_and_basename file append nondir_replacement
27054 # perform func_basename and func_dirname in a single function
27055 # call:
27056 # dirname: Compute the dirname of FILE. If nonempty,
27057 # add APPEND to the result, otherwise set result
27058 # to NONDIR_REPLACEMENT.
27059 # value returned in "$func_dirname_result"
27060 # basename: Compute filename of FILE.
27061 # value retuned in "$func_basename_result"
27062 # Implementation must be kept synchronized with func_dirname
27063 # and func_basename. For efficiency, we do not delegate to
27064 # those functions but instead duplicate the functionality here.
27065 func_dirname_and_basename ()
27067 case ${1} in
27068 */*) func_dirname_result="${1%/*}${2}" ;;
27069 * ) func_dirname_result="${3}" ;;
27070 esac
27071 func_basename_result="${1##*/}"
27074 # func_stripname prefix suffix name
27075 # strip PREFIX and SUFFIX off of NAME.
27076 # PREFIX and SUFFIX must not contain globbing or regex special
27077 # characters, hashes, percent signs, but SUFFIX may contain a leading
27078 # dot (in which case that matches only a dot).
27079 func_stripname ()
27081 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27082 # positional parameters, so assign one to ordinary parameter first.
27083 func_stripname_result=${3}
27084 func_stripname_result=${func_stripname_result#"${1}"}
27085 func_stripname_result=${func_stripname_result%"${2}"}
27088 # func_opt_split
27089 func_opt_split ()
27091 func_opt_split_opt=${1%%=*}
27092 func_opt_split_arg=${1#*=}
27095 # func_lo2o object
27096 func_lo2o ()
27098 case ${1} in
27099 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27100 *) func_lo2o_result=${1} ;;
27101 esac
27104 # func_xform libobj-or-source
27105 func_xform ()
27107 func_xform_result=${1%.*}.lo
27110 # func_arith arithmetic-term...
27111 func_arith ()
27113 func_arith_result=$(( $* ))
27116 # func_len string
27117 # STRING may not start with a hyphen.
27118 func_len ()
27120 func_len_result=${#1}
27123 _LT_EOF
27125 *) # Bourne compatible functions.
27126 cat << \_LT_EOF >> "$cfgfile"
27128 # func_dirname file append nondir_replacement
27129 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27130 # otherwise set result to NONDIR_REPLACEMENT.
27131 func_dirname ()
27133 # Extract subdirectory from the argument.
27134 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27135 if test "X$func_dirname_result" = "X${1}"; then
27136 func_dirname_result="${3}"
27137 else
27138 func_dirname_result="$func_dirname_result${2}"
27142 # func_basename file
27143 func_basename ()
27145 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27149 # func_stripname prefix suffix name
27150 # strip PREFIX and SUFFIX off of NAME.
27151 # PREFIX and SUFFIX must not contain globbing or regex special
27152 # characters, hashes, percent signs, but SUFFIX may contain a leading
27153 # dot (in which case that matches only a dot).
27154 # func_strip_suffix prefix name
27155 func_stripname ()
27157 case ${2} in
27158 .*) func_stripname_result=`$ECHO "X${3}" \
27159 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27160 *) func_stripname_result=`$ECHO "X${3}" \
27161 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27162 esac
27165 # sed scripts:
27166 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27167 my_sed_long_arg='1s/^-[^=]*=//'
27169 # func_opt_split
27170 func_opt_split ()
27172 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27173 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27176 # func_lo2o object
27177 func_lo2o ()
27179 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27182 # func_xform libobj-or-source
27183 func_xform ()
27185 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27188 # func_arith arithmetic-term...
27189 func_arith ()
27191 func_arith_result=`expr "$@"`
27194 # func_len string
27195 # STRING may not start with a hyphen.
27196 func_len ()
27198 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27201 _LT_EOF
27202 esac
27204 case $lt_shell_append in
27205 yes)
27206 cat << \_LT_EOF >> "$cfgfile"
27208 # func_append var value
27209 # Append VALUE to the end of shell variable VAR.
27210 func_append ()
27212 eval "$1+=\$2"
27214 _LT_EOF
27217 cat << \_LT_EOF >> "$cfgfile"
27219 # func_append var value
27220 # Append VALUE to the end of shell variable VAR.
27221 func_append ()
27223 eval "$1=\$$1\$2"
27226 _LT_EOF
27228 esac
27231 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27232 || (rm -f "$cfgfile"; exit 1)
27234 mv -f "$cfgfile" "$ofile" ||
27235 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27236 chmod +x "$ofile"
27239 cat <<_LT_EOF >> "$ofile"
27241 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27243 # The linker used to build libraries.
27244 LD=$lt_LD_CXX
27246 # Commands used to build an old-style archive.
27247 old_archive_cmds=$lt_old_archive_cmds_CXX
27249 # A language specific compiler.
27250 CC=$lt_compiler_CXX
27252 # Is the compiler the GNU compiler?
27253 with_gcc=$GCC_CXX
27255 # Compiler flag to turn off builtin functions.
27256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27258 # How to pass a linker flag through the compiler.
27259 wl=$lt_lt_prog_compiler_wl_CXX
27261 # Additional compiler flags for building library objects.
27262 pic_flag=$lt_lt_prog_compiler_pic_CXX
27264 # Compiler flag to prevent dynamic linking.
27265 link_static_flag=$lt_lt_prog_compiler_static_CXX
27267 # Does compiler simultaneously support -c and -o options?
27268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27270 # Whether or not to add -lc for building shared libraries.
27271 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27273 # Whether or not to disallow shared libs when runtime libs are static.
27274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27276 # Compiler flag to allow reflexive dlopens.
27277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27279 # Compiler flag to generate shared objects directly from archives.
27280 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27282 # Whether the compiler copes with passing no objects directly.
27283 compiler_needs_object=$lt_compiler_needs_object_CXX
27285 # Create an old-style archive from a shared archive.
27286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27288 # Create a temporary old-style archive to link instead of a shared archive.
27289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27291 # Commands used to build a shared archive.
27292 archive_cmds=$lt_archive_cmds_CXX
27293 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27295 # Commands used to build a loadable module if different from building
27296 # a shared archive.
27297 module_cmds=$lt_module_cmds_CXX
27298 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27300 # Whether we are building with GNU ld or not.
27301 with_gnu_ld=$lt_with_gnu_ld_CXX
27303 # Flag that allows shared libraries with undefined symbols to be built.
27304 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27306 # Flag that enforces no undefined symbols.
27307 no_undefined_flag=$lt_no_undefined_flag_CXX
27309 # Flag to hardcode \$libdir into a binary during linking.
27310 # This must work even if \$libdir does not exist
27311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27313 # If ld is used when linking, flag to hardcode \$libdir into a binary
27314 # during linking. This must work even if \$libdir does not exist.
27315 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27317 # Whether we need a single "-rpath" flag with a separated argument.
27318 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27321 # DIR into the resulting binary.
27322 hardcode_direct=$hardcode_direct_CXX
27324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27325 # DIR into the resulting binary and the resulting library dependency is
27326 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27327 # library is relocated.
27328 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27330 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27331 # into the resulting binary.
27332 hardcode_minus_L=$hardcode_minus_L_CXX
27334 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27335 # into the resulting binary.
27336 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27338 # Set to "yes" if building a shared library automatically hardcodes DIR
27339 # into the library and all subsequent libraries and executables linked
27340 # against it.
27341 hardcode_automatic=$hardcode_automatic_CXX
27343 # Set to yes if linker adds runtime paths of dependent libraries
27344 # to runtime path list.
27345 inherit_rpath=$inherit_rpath_CXX
27347 # Whether libtool must link a program against all its dependency libraries.
27348 link_all_deplibs=$link_all_deplibs_CXX
27350 # Fix the shell variable \$srcfile for the compiler.
27351 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27353 # Set to "yes" if exported symbols are required.
27354 always_export_symbols=$always_export_symbols_CXX
27356 # The commands to list exported symbols.
27357 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27359 # Symbols that should not be listed in the preloaded symbols.
27360 exclude_expsyms=$lt_exclude_expsyms_CXX
27362 # Symbols that must always be exported.
27363 include_expsyms=$lt_include_expsyms_CXX
27365 # Commands necessary for linking programs (against libraries) with templates.
27366 prelink_cmds=$lt_prelink_cmds_CXX
27368 # Specify filename containing input files.
27369 file_list_spec=$lt_file_list_spec_CXX
27371 # How to hardcode a shared library path into an executable.
27372 hardcode_action=$hardcode_action_CXX
27374 # The directories searched by this compiler when creating a shared library.
27375 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27377 # Dependencies to place before and after the objects being linked to
27378 # create a shared library.
27379 predep_objects=$lt_predep_objects_CXX
27380 postdep_objects=$lt_postdep_objects_CXX
27381 predeps=$lt_predeps_CXX
27382 postdeps=$lt_postdeps_CXX
27384 # The library search path used internally by the compiler when linking
27385 # a shared library.
27386 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27388 # ### END LIBTOOL TAG CONFIG: CXX
27389 _LT_EOF
27392 cat <<_LT_EOF >> "$ofile"
27394 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27396 # The linker used to build libraries.
27397 LD=$lt_LD_GCJ
27399 # Commands used to build an old-style archive.
27400 old_archive_cmds=$lt_old_archive_cmds_GCJ
27402 # A language specific compiler.
27403 CC=$lt_compiler_GCJ
27405 # Is the compiler the GNU compiler?
27406 with_gcc=$GCC_GCJ
27408 # Compiler flag to turn off builtin functions.
27409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27411 # How to pass a linker flag through the compiler.
27412 wl=$lt_lt_prog_compiler_wl_GCJ
27414 # Additional compiler flags for building library objects.
27415 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27417 # Compiler flag to prevent dynamic linking.
27418 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27420 # Does compiler simultaneously support -c and -o options?
27421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27423 # Whether or not to add -lc for building shared libraries.
27424 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27426 # Whether or not to disallow shared libs when runtime libs are static.
27427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27429 # Compiler flag to allow reflexive dlopens.
27430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27432 # Compiler flag to generate shared objects directly from archives.
27433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27435 # Whether the compiler copes with passing no objects directly.
27436 compiler_needs_object=$lt_compiler_needs_object_GCJ
27438 # Create an old-style archive from a shared archive.
27439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27441 # Create a temporary old-style archive to link instead of a shared archive.
27442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27444 # Commands used to build a shared archive.
27445 archive_cmds=$lt_archive_cmds_GCJ
27446 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27448 # Commands used to build a loadable module if different from building
27449 # a shared archive.
27450 module_cmds=$lt_module_cmds_GCJ
27451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27453 # Whether we are building with GNU ld or not.
27454 with_gnu_ld=$lt_with_gnu_ld_GCJ
27456 # Flag that allows shared libraries with undefined symbols to be built.
27457 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27459 # Flag that enforces no undefined symbols.
27460 no_undefined_flag=$lt_no_undefined_flag_GCJ
27462 # Flag to hardcode \$libdir into a binary during linking.
27463 # This must work even if \$libdir does not exist
27464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27466 # If ld is used when linking, flag to hardcode \$libdir into a binary
27467 # during linking. This must work even if \$libdir does not exist.
27468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27470 # Whether we need a single "-rpath" flag with a separated argument.
27471 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27473 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27474 # DIR into the resulting binary.
27475 hardcode_direct=$hardcode_direct_GCJ
27477 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27478 # DIR into the resulting binary and the resulting library dependency is
27479 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27480 # library is relocated.
27481 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27483 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27484 # into the resulting binary.
27485 hardcode_minus_L=$hardcode_minus_L_GCJ
27487 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27488 # into the resulting binary.
27489 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27491 # Set to "yes" if building a shared library automatically hardcodes DIR
27492 # into the library and all subsequent libraries and executables linked
27493 # against it.
27494 hardcode_automatic=$hardcode_automatic_GCJ
27496 # Set to yes if linker adds runtime paths of dependent libraries
27497 # to runtime path list.
27498 inherit_rpath=$inherit_rpath_GCJ
27500 # Whether libtool must link a program against all its dependency libraries.
27501 link_all_deplibs=$link_all_deplibs_GCJ
27503 # Fix the shell variable \$srcfile for the compiler.
27504 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27506 # Set to "yes" if exported symbols are required.
27507 always_export_symbols=$always_export_symbols_GCJ
27509 # The commands to list exported symbols.
27510 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27512 # Symbols that should not be listed in the preloaded symbols.
27513 exclude_expsyms=$lt_exclude_expsyms_GCJ
27515 # Symbols that must always be exported.
27516 include_expsyms=$lt_include_expsyms_GCJ
27518 # Commands necessary for linking programs (against libraries) with templates.
27519 prelink_cmds=$lt_prelink_cmds_GCJ
27521 # Specify filename containing input files.
27522 file_list_spec=$lt_file_list_spec_GCJ
27524 # How to hardcode a shared library path into an executable.
27525 hardcode_action=$hardcode_action_GCJ
27527 # The directories searched by this compiler when creating a shared library.
27528 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27530 # Dependencies to place before and after the objects being linked to
27531 # create a shared library.
27532 predep_objects=$lt_predep_objects_GCJ
27533 postdep_objects=$lt_postdep_objects_GCJ
27534 predeps=$lt_predeps_GCJ
27535 postdeps=$lt_postdeps_GCJ
27537 # The library search path used internally by the compiler when linking
27538 # a shared library.
27539 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27541 # ### END LIBTOOL TAG CONFIG: GCJ
27542 _LT_EOF
27545 "scripts/jar":F) chmod +x scripts/jar ;;
27547 esac
27548 done # for ac_tag
27551 as_fn_exit 0
27552 _ACEOF
27553 ac_clean_files=$ac_clean_files_save
27555 test $ac_write_fail = 0 ||
27556 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27559 # configure is writing to config.log, and then calls config.status.
27560 # config.status does its own redirection, appending to config.log.
27561 # Unfortunately, on DOS this fails, as config.log is still kept open
27562 # by configure, so config.status won't be able to write to it; its
27563 # output is simply discarded. So we exec the FD to /dev/null,
27564 # effectively closing config.log, so it can be properly (re)opened and
27565 # appended to by config.status. When coming back to configure, we
27566 # need to make the FD available again.
27567 if test "$no_create" != yes; then
27568 ac_cs_success=:
27569 ac_config_status_args=
27570 test "$silent" = yes &&
27571 ac_config_status_args="$ac_config_status_args --quiet"
27572 exec 5>/dev/null
27573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27574 exec 5>>config.log
27575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27576 # would make configure fail if this is the last instruction.
27577 $ac_cs_success || as_fn_exit $?
27581 # CONFIG_SUBDIRS section.
27583 if test "$no_recursion" != yes; then
27585 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27586 # so they do not pile up.
27587 ac_sub_configure_args=
27588 ac_prev=
27589 eval "set x $ac_configure_args"
27590 shift
27591 for ac_arg
27593 if test -n "$ac_prev"; then
27594 ac_prev=
27595 continue
27597 case $ac_arg in
27598 -cache-file | --cache-file | --cache-fil | --cache-fi \
27599 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27600 ac_prev=cache_file ;;
27601 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27602 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27603 | --c=*)
27605 --config-cache | -C)
27607 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27608 ac_prev=srcdir ;;
27609 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27611 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27612 ac_prev=prefix ;;
27613 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27615 --disable-option-checking)
27618 case $ac_arg in
27619 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27620 esac
27621 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27622 esac
27623 done
27625 # Always prepend --prefix to ensure using the same prefix
27626 # in subdir configurations.
27627 ac_arg="--prefix=$prefix"
27628 case $ac_arg in
27629 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27630 esac
27631 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27633 # Pass --silent
27634 if test "$silent" = yes; then
27635 ac_sub_configure_args="--silent $ac_sub_configure_args"
27638 # Always prepend --disable-option-checking to silence warnings, since
27639 # different subdirs can have different --enable and --with options.
27640 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27642 ac_popdir=`pwd`
27643 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27645 # Do not complain, so a configure script can configure whichever
27646 # parts of a large source tree are present.
27647 test -d "$srcdir/$ac_dir" || continue
27649 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27650 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27651 $as_echo "$ac_msg" >&6
27652 as_dir="$ac_dir"; as_fn_mkdir_p
27653 ac_builddir=.
27655 case "$ac_dir" in
27656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27659 # A ".." for each directory in $ac_dir_suffix.
27660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27661 case $ac_top_builddir_sub in
27662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27664 esac ;;
27665 esac
27666 ac_abs_top_builddir=$ac_pwd
27667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27668 # for backward compatibility:
27669 ac_top_builddir=$ac_top_build_prefix
27671 case $srcdir in
27672 .) # We are building in place.
27673 ac_srcdir=.
27674 ac_top_srcdir=$ac_top_builddir_sub
27675 ac_abs_top_srcdir=$ac_pwd ;;
27676 [\\/]* | ?:[\\/]* ) # Absolute name.
27677 ac_srcdir=$srcdir$ac_dir_suffix;
27678 ac_top_srcdir=$srcdir
27679 ac_abs_top_srcdir=$srcdir ;;
27680 *) # Relative name.
27681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27682 ac_top_srcdir=$ac_top_build_prefix$srcdir
27683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27684 esac
27685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27688 cd "$ac_dir"
27690 # Check for guested configure; otherwise get Cygnus style configure.
27691 if test -f "$ac_srcdir/configure.gnu"; then
27692 ac_sub_configure=$ac_srcdir/configure.gnu
27693 elif test -f "$ac_srcdir/configure"; then
27694 ac_sub_configure=$ac_srcdir/configure
27695 elif test -f "$ac_srcdir/configure.in"; then
27696 # This should be Cygnus configure.
27697 ac_sub_configure=$ac_aux_dir/configure
27698 else
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27701 ac_sub_configure=
27704 # The recursion is here.
27705 if test -n "$ac_sub_configure"; then
27706 # Make the cache file name correct relative to the subdirectory.
27707 case $cache_file in
27708 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27709 *) # Relative name.
27710 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27711 esac
27713 { $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
27714 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27715 # The eval makes quoting arguments work.
27716 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27717 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27718 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27721 cd "$ac_popdir"
27722 done
27724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}